> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supercycle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Requests

> Making storefront API requests to Supercycle.

To make requests to Supercycle’s storefront API, you will need to go through the [app proxy](https://medium.com/shop-sheriff/what-is-a-shopify-application-proxy-and-how-can-i-use-it-153bf99d1a9d).

The path for this can be found with `window.supercycleAppEmbed.context.proxyPathPrefix` and will usually look like `/apps/supercycle` this will need to be prepended to all requests made to the storefront API.

```javascript theme={null}
async function supercycleFetch(method, path, options) {
  if (!path.startsWith("/")) path = `/${url}`;
	const {	proxyPathPrefix } = window.supercycleAppEmbed.context
  const response = await fetch(proxyPathPrefix + path, {
    method,
    headers: { "Content-Type": "application/json" },
    ...options,
  });

  return response.json();
}
```
