To make a request, call the fetch() function with the path to a
resource and the optional
WixFetchRequest options. The
function returns a promise that resolves to a
The response object contains a number of properties and functions for
retrieving the response's information.
The Fetch API can be used in your front-end or backend code.
To use the Fetch API in the backend, import the
fetch function from the
The implementation of the Fetch API differs slightly depending on where it's being used. The features documented here comprise the base functionality for both implementations. However, each implementation contains additional features:
Was this helpful?