top of page
Screen Shot 2020-11-04 at 2.29.06 pm.png

WIX FETCH

Wix Fetch Examples

Wix Velo offers the Fetch API to allow us to access resources at various endpoints.

Untitled design (2).png
Gray%20Wavy%20Background_edited.png
Dog's Portrait

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/

Go Fetch

DAD JOKES? YES PLEASE

Wix JSON Request

Wix Fetch can access a huge amount of data across the internet. Some of it is completely necessary to your business, others like this Dad Joke Generator is really more for fun!!

Click the button below to get an amazing dad joke via Wix Fetch.

The Joke

<joke>

Current Weather

...

...

Dog's Portrait

...

Temperature : 

...

Feels Like : 

...

Wind Speed :

...

Wind Direction :

...

Wind Gusts :

...

Precipitation :

...

Last Updated :

...

Something more useful?

Wix Fetch

Enough of the Fun API's now, lets move onto examples of more useful cases of Wix Fetch. 

Try out this API which will allow you to get the weather at a determined location. 

Error

Screen Shot 2020-11-04 at 2.29.06 pm.png

READY TO MAKE IT POSSIBLE?

Get in Touch Today!

Get in touch for a free consult, or send through an enquiry using our form. Can't wait to chat!

support-notes-colour-800px_edited.png
bottom of page