Fetching data from an API is highly useful in many instances. Using the Remote Content widget, you can easily do that.

In this tutorial, we will see in action how we can fetch content from the public API following some simple steps.

For this tutorial, let's use this public API: https://dog.ceo/dog-api/

This API lets you display a random Dog image on each page load.


To start with,

  1. set the URL of Endpoint that you want to query;

  2. enable the "Incorporate in the page" toggle;

  3. enable the "Data is JSON formatted" toggle for returning the data;

  4. type the tokens containing Representative HTML code;


You have successfully used the API. Now, on every page reload a Random Dog image will shown. Like this, you can also use other APIs to fetch the content using Remote Content Widget.

Did this answer your question?