Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Shopify Product

Dokumentasi 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.

Harga
Dari $0.00085USD / panggilan
Metode
POST
Respons
JSON
Parameter
2 wajib · 0 opsional

Playground

Input
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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README 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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
ShopifyDari $0.00085 per panggilanJSON
ShopifyDari $0.00085 per panggilanJSON
ShopifyDari $0.00085 per panggilanJSON
ShopifyDari $0.00085 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Shopify Product?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/shopify/product dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Shopify Product?

Mulai dari $0.00085 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Shopify Product?

Wajib: store (string) dan product (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Shopify Product?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron).

Apakah saya memerlukan akun developer atau kunci API Shopify?

Tidak. Shopify Product berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Shopify secara terpisah.