A Fetch component lets you pull live data from a third-party REST API endpoint directly into your app.

Configuration Properties

PropertyDescription
ServiceName of the REST API service you have created inside the Draftbit app.
EndpointName of the API endpoint to fetch data.
Query ParamsOption available if the endpoint has a query parameter attached to it. For example, https://example-data-draftbit.com/books?_limit={{limitParam}} has a query parameter called limitParam. On the Fetch component, you can define a custom value for this parameter.
Poll IntervalAllows defining a value in milliseconds (ms) to refetch data in the background at a time interval from the endpoint. For example, if you set the value to 3000 ms, the Fetch component will automatically refetch the data at every 3 seconds.

📘

Learn how to set and use the Fetch and List component in Fetching Data.


Did this page help you?