Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Shopify Product

Docs da API
https://api.sandbase.ai/v1/api/shopify/product

Look up one product on any public Shopify store by its handle or product page URL and get title, vendor, type, tags, description, price range, sale price, stock, images, options and every variant's SKU, price and stock in one normalized response.

Preço
A partir de $0.00085USD / chamada
Método
POST
Resposta
JSON
Parâmetros
2 obrigatórios · 0 opcionais

Playground

Entrada
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.
Product handle, the slug after /products/ in the product URL, e.g. mens-strider; the full product page URL also works.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

Shopify Product API

Look up one product on any public Shopify store by its handle or product page URL and get title, vendor, type, tags, description, price range, sale price, stock, images, options and every variant's SKU, price and stock in one normalized response.

Request

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

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

Parameters

NameTypeRequiredDescription
productstringYesProduct handle, the slug after /products/ in the product URL, e.g. mens-strider; the full product page URL also works.
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.

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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
ShopifyA partir de $0.00085 por chamadaJSON
ShopifyA partir de $0.00085 por chamadaJSON
ShopifyA partir de $0.00085 por chamadaJSON
ShopifyA partir de $0.00085 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Shopify Product?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/shopify/product com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Shopify Product?

A partir de $0.00085 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Shopify Product aceita?

Obrigatórios: store (string) e product (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Shopify Product retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona).

Preciso de uma conta de desenvolvedor Shopify ou de uma chave de API?

Não. Shopify Product funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Shopify separadamente.