top of page
WIX FETCH
Wix Fetch Examples
Wix Velo offers the Fetch API to allow us to access resources at various endpoints.
FETCH
Wix getJSON
Wix getJSON() is a module of the Wix Fetch API. We would utilise this to retrieve a JSON resource from the network.
First we query the endpoint and it returns a Promise that resolves to a JSON object representing the response to the request.
​
Try it out. Click the button below to get a random image of a dog. Courtesy of https://dog.ceo/dog-api/
Current Weather
...
...
...
Temperature :
...
Feels Like :
...
Wind Speed :
...
Wind Direction :
...
Wind Gusts :
...
Precipitation :
...
Last Updated :
...
bottom of page