> ## 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

> Send Storefront API requests through the Shopify app proxy on your store's own domain

Storefront API requests go through the Shopify [app proxy](https://shopify.dev/docs/apps/build/online-store/display-dynamic-data), so they're made to your store's own domain and Shopify signs them for you. There's no API key to send.

The proxy path is available on the page as `window.supercycleAppEmbed.context.proxyPathPrefix`. It usually looks like `/apps/supercycle`. Prepend it to every Storefront API path.

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

  return response.json();
}
```

<Note>
  `window.supercycleAppEmbed` is set by the Supercycle Engine app embed, so it's only present on pages where the [app embed is turned on](/documentation/setup/theme-setup).
</Note>
