Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-shop
string
required

Shopify store URL. Resolves the shop for the request (headless does not accept ?shop=).

Example:

"shop.myshopify.com"

Body

application/json

Request body

Full product search (hybrid text + vector) with applied facets, sort, pagination and optional inline aggregations.

query
string
default:""

Search term. May be empty.

Example:

"running shoe"

target_page
enum<string>
default:search

Search context.

Available options:
search,
collection
target_id
integer

Target object id (e.g. collection id) when scoping to a collection.

locale
string
default:en-US

BCP-47 locale.

market
integer

Shopify market id.

publication_ids
(string | integer)[]

Optional. Numeric Shopify publication (sales channel) ids. When present, only products published on at least one of these channels are returned and the default "published to the Online Store" gate is replaced by this filter; market and B2B filters still apply. A single id may be sent without the array wrapper. Each id must be one the merchant enabled under Settings → Sales channels; unknown ids return 400. The id is the numeric tail of gid://shopify/Publication/.

Maximum array length: 50
Pattern: ^[0-9]+$
Example:
facets
object[]

Applied filters.

sort
enum<string>

Result ordering. Omit it to use the resolved default: the sort configured for this collection if the merchant set one, otherwise the shop-wide default, otherwise relevance — the same value the config endpoint returns as default_ordering. collection_default reproduces the product order the merchant arranged on the collection in Shopify; it needs target_page: "collection" with a target_id and falls back to relevance without one. Collection positions are refreshed by the collection sync, so a product added or reordered since the last sync is ordered last until the next one.

Available options:
relevance,
title_asc,
title_desc,
price_asc,
price_desc,
best_selling,
oldest,
newest,
collection_default,
name_asc,
name_desc,
bestselling,
created_asc,
created_desc
view
enum<string>
default:product_details

Product render mode.

Available options:
product_details,
product_ids
pagination
object

Page-based pagination.

options
object

Search options.

visitor_id
string

Anonymous device/browser UID (the gl_s_uid cookie). The primary personalization key; stays stable when a customer logs in.

client_id
string

Per-session / per-device identifier.

customer_id
string

Shopify customer id. Present only when the shopper is logged in; enables customer-level personalization.

Response

Search results

Product search results with pagination, optional inline facets and metadata.

status
string

Response status.

Example:

"ok"

request_id
string<uuid>

Unique id for this search serve (use for attribution events).

products
object[]

Product objects (or { product_id } when view=product_ids).

pagination
object

Page-based pagination.

facets
object[]

Inline facet aggregations. Present only when include_aggregations/include_facets was requested.

metadata
object

Response metadata.