Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Shopify Store Products

Документация API
https://api.sandbase.ai/v1/api/shopify/products

List the products of any public Shopify store by its domain, a page at a time, with title, vendor, type, tags, price range, sale price, stock, images, options and every variant's SKU, price and stock. Filter by vendor, type, tag, title, SKU, price, sale, stock or recent arrivals. A domain that is not a public Shopify store comes back not found.

Цена
От $0.00085USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 12 необязательных

Песочница

Ввод
Domain or URL of a public Shopify store, e.g. allbirds.com or https://kith.com. A store on its own domain is addressed by that domain.
1-based page of the store's product list. Each page is billed as one request. Минимум: 1.
Only products carrying at least one of these tags.
1250
Products the store is asked for per page (1-250, default 50). The filters below are applied to that page, so a filtered page can hold fewer, even none while hasMore is true. Диапазон: от 1 до 250.
Only products whose vendor (brand) contains this text.
Only products priced at or below this, in the store's currency. Минимум: 0.
Only products priced at or above this, in the store's currency. Минимум: 0.
Only products with at least one discounted variant.
Only products with at least one variant in stock.
Only products whose product type contains this text, e.g. "Shoes".
Only products with a variant whose SKU code contains this text.
Only products whose title contains this text.
Only products published to the store within the last this many days. Минимум: 1.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Shopify Store Products API

List the products of any public Shopify store by its domain, a page at a time, with title, vendor, type, tags, price range, sale price, stock, images, options and every variant's SKU, price and stock. Filter by vendor, type, tag, title, SKU, price, sale, stock or recent arrivals. A domain that is not a public Shopify store comes back not found.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "shopify/products", "limit": 10, "store": "allbirds.com"}'

The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.

Parameters

NameTypeRequiredDescription
storestringYesDomain or URL of a public Shopify store, e.g. allbirds.com or https://kith.com. A store on its own domain is addressed by that domain.
limitintegerNoProducts the store is asked for per page (1-250, default 50). The filters below are applied to that page, so a filtered page can hold fewer, even none while hasMore is true.
maxPricenumberNoOnly products priced at or below this, in the store's currency.
minPricenumberNoOnly products priced at or above this, in the store's currency.
onlyInStockbooleanNoOnly products with at least one variant in stock. Default false.
onlyOnSalebooleanNoOnly products with at least one discounted variant. Default false.
pageintegerNo1-based page of the store's product list. Each page is billed as one request. Default 1.
productTypestringNoOnly products whose product type contains this text, e.g. "Shoes".
publishedWithinDaysintegerNoOnly products published to the store within the last this many days.
skuContainsstringNoOnly products with a variant whose SKU code contains this text.
tagsarrayNoOnly products carrying at least one of these tags.
titleContainsstringNoOnly products whose title contains this text.
vendorstringNoOnly products whose vendor (brand) contains this text.

Pricing

Billed at the actual cost of each call, about $0.00085 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
ShopifyОт $0.00085 за запросJSON
ShopifyОт $0.00085 за запросJSON
ShopifyОт $0.00085 за запросJSON
ShopifyОт $0.00085 за запросJSON

Вопросы

FAQ

Как использовать API Shopify Store Products?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/shopify/products, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Shopify Store Products?

От $0.00085 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Shopify Store Products?

Обязательные: store (string). Необязательные: page (integer), tags (array), limit (integer), vendor (string), maxPrice (number) и minPrice (number) и еще 6. В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Shopify Store Products?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно).

Нужен ли мне аккаунт разработчика Shopify или API key?

Нет. Shopify Store Products работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Shopify.