Shopify

Get Shopify collection

Get one Shopify collection with its filter facets and counts.

GET/v1/shopify/collections/{handle}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
handlestringrequiredpath

The collection handle, as it appears in its URL.

min 1 chars · max 255 chars · pattern: ^[^\s/?#]+$

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.

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
42

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.

The collection when found; null otherwise.

datacollectionid
string

Numeric collection id as a string.

datacollectiongid
stringnullable

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

datacollectionhandle
string

Collection handle.

datacollectiontitle
string

Collection title.

datacollectionurl
stringnullable

Collection page URL.

datacollectiondescription
stringnullable

Description as plain text.

datacollectiondescriptionHtml
stringnullable

Description as HTML.

The merchant's meta tags.

datacollectionseotitle
stringnullable

SEO title.

datacollectionseodescription
stringnullable

SEO description.

Collection image; null when none.

datacollectionimageid
stringnullable

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

datacollectionimageurl
stringnullable

Image URL.

datacollectionimagealtText
stringnullable

Alt text the merchant set.

datacollectionimagewidth
integernullable

Pixel width.

datacollectionimageheight
integernullable

Pixel height.

Variants the image belongs to; empty when not given.

datacollectionimagevariantIds[]
stringoptional
datacollectionupdatedAt
stringnullable

Last update, ISO 8601 UTC.

datacollectionproductsCount
integernullable

Number of products; null when the store does not share it.

The store's filter facets with counts.

datacollectionfilters[]id
string

Filter id.

datacollectionfilters[]label
string

Label.

datacollectionfilters[]type
string

`LIST`, `PRICE_RANGE` or `BOOLEAN`.

datacollectionfilters[]presentation
stringnullable

How the store presents it, e.g. `TEXT`.

Facet values.

datacollectionfilters[]values[]id
string

Filter value id.

datacollectionfilters[]values[]label
string

Label.

datacollectionfilters[]values[]count
integernullable

Matching products.

datacollectionfilters[]values[]input
stringnullable

The store's own filter input as JSON, e.g. `{"available":true}`.

Colour swatch where given.

datacollectionfilters[]values[]swatchcolor
stringnullable

Hex colour.

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/collections/general-clothes-example-products?store=000000band.myshopify.com" \
  -H "x-api-key: YOUR_API_KEY"

Responses

One Shopify collection with its filter facets.