Nota
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tidħol jew tibdel id-direttorji.
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tibdel id-direttorji.
This article shows you how to add an HTTP source to an eventstream.
The HTTP connector provides a no-code, configurable way to stream data from any REST API directly into Eventstream for real-time processing. It allows you to continuously pull data from SaaS platforms and public data feeds and automatically parse JSON responses into structured events. It also offers example public feeds to help you get started quickly—simply select an example API, enter your API key, and let Eventstream prefill the required headers and parameters.
Prerequisites
- A workspace with Fabric capacity or Trial license mode.
- Access to the workspace with Contributor or higher workspace roles.
- If you don't have an eventstream, follow the guide to create an eventstream.
Add HTTP as a source
If you haven't added any source to your eventstream yet, select the Use external source tile.
If you're adding the source to an already published eventstream, switch to Edit mode. On the ribbon, select Add source > External sources.
Search for http, and select Connect to add the HTTP connector to your eventstream.
Configure and connect to HTTP
You can select one of the Example public APIs to get started quickly with predefined headers and parameters, or select Exit to configure your own custom HTTP connector.
Use example public APIs
Select an example public API to quickly set up the HTTP connector:
- Binance. Get the latest Bitcoin price
- CoinGecko. Get the current Bitcoin price in USD
- Transport for London. Get live arrival predictions for a London station
- Alpha Vantage. Get the real-time MSFT stock price
- OpenWeather. Get the weather forecast for a location
- NewsAPI. Get the latest business headlines in the US
For APIs that require an API key, use the provided link to apply for the API key and enter it in the input box. The connector then automatically creates the Fabric cloud connection and prefills the required HTTP headers and parameters.
Important
The Binance example API does not require an API key, but you're responsible for complying with its Terms of Use.
If you choose Use existing connection, select Apply example to prefill the required headers and parameters for the example API without entering an API key.
Alternatively, select Exit to close the window and configure your own HTTP source from scratch.
Configure your own HTTP source
Follow the steps to configure your own HTTP source without an example API.
Create a new connection. Select New connection and enter the required properties for your HTTP source:
- Base Url: The base URL of the HTTP endpoint.
- Token Audience Uri (optional): The resource that the token is intended for.
- Connection name: Enter a name for the connection.
- Authentication kind: Currently, the HTTP connector only supports
Anonymous,Basic, andAPI Keyauthentication.
Request method: Select
GETorPOST.Headers and parameters: If you selected API Key authentication when you created the cloud connection, use the dynamic parameter ${apiKey} in your headers or parameters to reference the API Key.
For example, to connect to CoinGecko, use the header:
x_cg_demo_api_key=${apiKey}.Important
Do NOT enter your API key or other credentials in the headers or parameters.
Request interval (s): Specifies the time in seconds to wait between consecutive requests; valid range is [1, 3600].
Maximum retries: The maximum number of times the connector retries a request when an error occurs; valid range is [10, 100].
Retry backoff (s): The time in seconds to wait following an error before the connector retries; valid range is [1, 3600].
Retry status code: The HTTP error codes returned that prompt the connector to retry the request. Enter a comma-separated list of codes or range of codes. Ranges are specified with a start and optional end code. For example:
400-includes all codes greater than or equal to 400.400-500includes codes from 400 to 500, including 500.404,408,500-prompts the connector to retry on 404 NOT FOUND, 408 REQUEST TIMEOUT, and all 5xx error codes.
Some status codes are always retried, such as unauthorized, timeouts, and too many requests.
Review the configuration summary for the HTTP source and select Add.
You can see the HTTP source added to your eventstream in Edit mode.
Select Publish to publish the changes and begin streaming data from HTTP source to the eventstream.
Limitation
- The HTTP connector currently supports only JSON API responses.
- OAuth authentication is not supported.
- The HTTP source does not support CI/CD features, including Git Integration and Deployment Pipeline. Exporting or importing an Eventstream item that includes this source through Git may result in errors.
Related content
Other connectors: