product_idstringобязательно
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.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
product_idstringобязательноNumeric product ID from get_homepage_featured_products or get_merchant_products results.
product_slugstringобязательноProduct URL slug from get_homepage_featured_products or get_merchant_products results.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Shop Product DetailsЭтот API Shop | $0.03 за запрос | JSON |
Shop | $0.03 за запрос | JSON |
Shop | $0.03 за запрос | JSON |
Shop | $0.03 за запрос | JSON |
Shop | $0.03 за запрос | JSON |
Shop | $0.03 за запрос | JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/shop-app/product-details, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.03 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: product_id (string) и product_slug (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно).
Нет. Shop Product Details работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Shop.