Firework API V2
The Firework API V2 is available at https://api.flare.io/firework/v2/.
Example: GET https://api.flare.io/firework/v2/assets/
Any feed can be sorted using the orderparameter. To periodically poll a feed to access the new activities:
- When initially polling a feed, use order=asc to sort activities from oldest to newest, and paginate the results.
- When the last page is reached, store the latest response's search_afterattribute.
- To fetch the new items at a later time, use order=asc and set the search_after in the request to the value from the last response. This will fetch only activities created since the last poll.
The documentation for endpoint is described in the section below. To use the interactive capabilities:
- Send a POST request to https://api.flare.io/tokens/generate with your Firework credentials using Basic Auth to get an authentication token.
- On the current page, click on the Authorize button and insert the token using the following format: Bearer {token}. Example value: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.Et9HFtf9R3GEMA0IICOfFMVXY7kkTX1wr4qCyhIf58U
- You should now be able to use SwaggerUI’s built-in tools to query the documented endpoints.
Loading...
Loading...
You can fetch the results of our Account Shops collection using the following snippet:
You can replace the wildcard * by your keyword, domain or query. For example, if you are looking to list myonlinestore.com, you can adapt params to
Important to Note: We are using the parameter search_after as an indicator that more results exist in our database. Therefore, to fetch every single result, you should do multiple http calls to the same url, assigning the parameter search_after from previous HTTP calls to the next HTTP call, until the search_after returned is empty. Here is an example: