Skip to content
gist.link ↗

storefrontProducts

Query Shop API — POST https://shop.api.gist.link/graphql

Public product listing for a store — ACTIVE products only. The store is identified by its organization uuid (storeId). No admin data is ever exposed. PUBLIC.

shop:query:storefrontProducts

The calling IAM key must hold this permission (or a wildcard that covers it: shop:query:* or shop:*) and the access token must have been minted with audience=shop. See Permissions.

type Query {
storefrontProducts(storeId: String!, filter: StorefrontProductFilter, first: Int, after: String): ProductConnection!
}
Argument Type Required Description
storeId String! Yes —
filter StorefrontProductFilter No —
first Int No —
after String No —

ProductConnection! — see the Shop types reference.

Terminal window
curl https://shop.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query StorefrontProducts($storeId: String!, $filter: StorefrontProductFilter, $first: Int, $after: String) { storefrontProducts(storeId: $storeId, filter: $filter, first: $first, after: $after) { totalCount edges { cursor node { id uuid title status created_at updated_at } } } }",
"variables": {
"storeId": "example",
"filter": {
"search": "example"
},
"first": 10,
"after": "cursor"
}
}
JSON