How to use external APIs with the JSON connector?

First, select the JSON/CSV/XML connector in Dataslayer.

Next, find the API you want to use at this link: https://dataslayer.ai/list-of-public-apis (you can also use other public APIs if you have the link).

For this example we will use the CoinStats API. Inside the Dataslayer, in the URL field, copy the "base endpoint" link, (in this case, https://api.coinstats.app/).



Next, copy the "popular endpoints" link you are interested in, deleting the first slash, so that it does not appear duplicated when joining the previous link. (In this case, we add to the previous url " /public/v1/coins", and the resulting url would be https://api.coinstats.app/public/v1/coins).

Enter this link in the Dataslayer "Url" field. It is not necessary to fill in the rest of the fields to obtain the data. When you click on "generate table", the result will be displayed in Dataslayer.

Was this article helpful?
Cancel
Thank you!