product_idstringwajib
Numeric product ID from get_homepage_featured_products or get_merchant_products results.
https://api.sandbase.ai/v1/api/shop-app/product-detailsRetrieves full details for a single product including current price, original price (if discounted), images, rating, review count, and merchant info. Requires both product_id and product_slug which are available from get_homepage_featured_products or get_merchant_products results.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Retrieves full details for a single product including current price, original price (if discounted), images, rating, review count, and merchant info. Requires both product_id and product_slug which are available from get_homepage_featured_products or get_merchant_products results.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "shop-app/product-details", "product_id": "9144684642526", "product_slug": "sospiro-vibrato-edp"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
product_id | string | Yes | Numeric product ID from get_homepage_featured_products or get_merchant_products results. |
product_slug | string | Yes | Product URL slug from get_homepage_featured_products or get_merchant_products results. |
Flat $0.03 per call. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/shop-app/product-details" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": "9144684642526",
"product_slug": "sospiro-vibrato-edp"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
product_idstringwajibNumeric product ID from get_homepage_featured_products or get_merchant_products results.
product_slugstringwajibProduct URL slug from get_homepage_featured_products or get_merchant_products results.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Shop Product DetailsAPI ini Shop | $0.03 per panggilan | JSON |
Shop | $0.03 per panggilan | JSON |
Shop | $0.03 per panggilan | JSON |
Shop | $0.03 per panggilan | JSON |
Shop | $0.03 per panggilan | JSON |
Shop | $0.03 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/shop-app/product-details 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.
$0.03 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: product_id (string) dan product_slug (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron).
Tidak. Shop Product Details 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 Shop secara terpisah.