> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# storefrontScript

GraphQL QUERY

Get storefront scripts.  
Requires either a storeHash or the siteUrl.  
Doesn't require a Token.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/queries/storefront-script

## GraphQL Schema

```graphql
query ExampleQuery($storeHash: String, $channelId: Int, $siteUrl: String) {
  storefrontScript(storeHash: $storeHash, channelId: $channelId, siteUrl: $siteUrl) {
    storeHash
    channelId
    script
  }
}
```

## Variables

```json
{
  "storeHash": "example",
  "channelId": 0,
  "siteUrl": "example"
}
```