Shopify

Get Shopify search suggestions

Get a Shopify store's search suggestions across products, collections, pages, articles and queries.

GET/v1/shopify/search/suggest
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
5
storestringrequiredquery

The store's domain, for example `allbirds.com`, `www.allbirds.com` or `weareallbirds.myshopify.com`. A full URL is accepted and reduced to its host. Only public storefront hosts are accepted.

querystringrequiredquery

The partial query to suggest completions for.

min 1 chars · max 512 chars

limitintegeroptionalquery

Rows per page, 1 to 10. Default: 10.

≥ 1 · ≤ 10

countrystringoptionalquery

ISO 3166-1 alpha-2 country used for prices, currency and language, e.g. `GB`. Default: the store's own market.

languagestringoptionalquery

Two-letter language code, e.g. `EN`. Default: the store's own language.

Response fields
100

Endpoint-specific response payload.

datalookupStatus
string

`found` on success; `not_found` when it does not exist or is not a Shopify store; `private` when the storefront is password-protected; `restricted` when the store is paused or frozen.

one of: found, not_found, private, restricted

datastore
string

The store host that was requested.

dataquery
string

The partial query.

Product suggestions.

dataproducts[]id
stringnullable

Product id; null on predictive results.

dataproducts[]gid
stringnullable

The store's global product id; null when the store does not publish it for this row.

dataproducts[]handle
string

Product handle.

dataproducts[]url
stringnullable

Product page URL.

dataproducts[]title
string

Product title.

dataproducts[]vendor
stringnullable

Vendor.

dataproducts[]productType
stringnullable

Product type.

Tags.

dataproducts[]tags[]
stringoptional
dataproducts[]availableForSale
booleannullable

Whether any variant is available.

dataproducts[]updatedAt
stringnullable

Last update, ISO 8601 UTC.

Lowest and highest variant price. Suggestions carry no currency code, so currency is null on this route.

An amount and its currency.

dataproducts[]priceRangeminamount
numbernullable

The amount as a decimal number.

dataproducts[]priceRangemincurrency
stringnullable

ISO 4217 currency code, e.g. `USD`.

An amount and its currency.

dataproducts[]priceRangemaxamount
numbernullable

The amount as a decimal number.

dataproducts[]priceRangemaxcurrency
stringnullable

ISO 4217 currency code, e.g. `USD`.

Lowest and highest compare-at price; null when the product is not on sale. Suggestions carry no currency code, so currency is null on this route.

An amount and its currency.

dataproducts[]compareAtPriceRangeminamount
numbernullable

The amount as a decimal number.

dataproducts[]compareAtPriceRangemincurrency
stringnullable

ISO 4217 currency code, e.g. `USD`.

An amount and its currency.

dataproducts[]compareAtPriceRangemaxamount
numbernullable

The amount as a decimal number.

dataproducts[]compareAtPriceRangemaxcurrency
stringnullable

ISO 4217 currency code, e.g. `USD`.

The main image; null when the product has none.

dataproducts[]featuredImageid
stringnullable

Image id; null when the store does not publish it for this row.

dataproducts[]featuredImageurl
stringnullable

Image URL.

dataproducts[]featuredImagealtText
stringnullable

Alt text the merchant set.

dataproducts[]featuredImagewidth
integernullable

Pixel width.

dataproducts[]featuredImageheight
integernullable

Pixel height.

Variants the image belongs to; empty when not given.

dataproducts[]featuredImagevariantIds[]
stringoptional
dataproducts[]body
stringnullable

Product body text or HTML.

Matching variants where the store lists them.

dataproducts[]variants[]id
string

Variant id.

dataproducts[]variants[]title
stringnullable

Variant title.

Variant price. Suggestions carry no currency code, so currency is null on this route.

dataproducts[]variants[]priceamount
numbernullable

The amount as a decimal number.

dataproducts[]variants[]pricecurrency
stringnullable

ISO 4217 currency code, e.g. `USD`.

dataproducts[]variants[]available
booleannullable

Whether it is available.

dataproducts[]variants[]url
stringnullable

Variant URL.

dataproducts[]variants[]image
stringnullable

Variant image URL.

Collection suggestions.

datacollections[]id
stringnullable

Collection id; null on predictive results.

datacollections[]handle
string

Collection handle.

datacollections[]title
string

Collection title.

datacollections[]url
stringnullable

Collection URL.

datacollections[]body
stringnullable

Collection body text or HTML.

datacollections[]publishedAt
stringnullable

Published, ISO 8601 UTC.

Collection image.

datacollections[]imageid
stringnullable

Image id; null when the store does not publish it for this row.

datacollections[]imageurl
stringnullable

Image URL.

datacollections[]imagealtText
stringnullable

Alt text the merchant set.

datacollections[]imagewidth
integernullable

Pixel width.

datacollections[]imageheight
integernullable

Pixel height.

Variants the image belongs to; empty when not given.

datacollections[]imagevariantIds[]
stringoptional

Page suggestions.

datapages[]id
stringnullable

Page id; null on predictive results.

datapages[]handle
string

Page handle.

datapages[]title
string

Page title.

datapages[]url
stringnullable

Page URL.

datapages[]body
stringnullable

Page body text or HTML.

datapages[]author
stringnullable

Page author where given.

datapages[]publishedAt
stringnullable

Published, ISO 8601 UTC.

Article suggestions.

dataarticles[]id
stringnullable

Article id; null on predictive results.

dataarticles[]handle
string

Article handle.

dataarticles[]title
string

Article title.

dataarticles[]url
stringnullable

Article URL.

dataarticles[]body
stringnullable

Article body text or HTML.

dataarticles[]summaryHtml
stringnullable

Article summary HTML.

dataarticles[]author
stringnullable

Author display name.

dataarticles[]publishedAt
stringnullable

Published, ISO 8601 UTC.

Tags.

dataarticles[]tags[]
stringoptional

Article image.

dataarticles[]imageid
stringnullable

Image id; null when the store does not publish it for this row.

dataarticles[]imageurl
stringnullable

Image URL.

dataarticles[]imagealtText
stringnullable

Alt text the merchant set.

dataarticles[]imagewidth
integernullable

Pixel width.

dataarticles[]imageheight
integernullable

Pixel height.

Variants the image belongs to; empty when not given.

dataarticles[]imagevariantIds[]
stringoptional

Suggested search queries.

dataqueries[]text
string

Suggested search text.

dataqueries[]styledText
stringnullable

The text with match marks.

dataqueries[]url
stringnullable

Suggested search URL.

Notes about the answer, e.g. a requested market the store does not price in and the market it used instead.

datawarnings[]
stringoptional

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/shopify/search/suggest?store=www.allbirds.com&query=shirt" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Shopify search suggestions.