product_idstring | number | booleanобязательно
The Home Depot identifier of a product. Only Product IDs gathered from the Home Depot US are supported.
https://api.sandbase.ai/v1/api/home-depot/productGet a Home Depot product by product ID: title, brand, model number, UPC, price, specifications, images, fulfillment and ratings, localized by store or ZIP.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Get a Home Depot product by product ID: title, brand, model number, UPC, price, specifications, images, fulfillment and ratings, localized by store or ZIP.
curl -X POST "https://api.sandbase.ai/v1/api/home-depot/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product_id": "310009453"}'
This API runs asynchronously. The call returns a task id with status pending; poll GET https://api.sandbase.ai/v1/run/{id} until status is completed and read the result from outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
product_id | string/number/boolean | Yes | The Home Depot identifier of a product. Only Product IDs gathered from the Home Depot US are supported. |
delivery_zip | string/number/boolean | No | ZIP Postal code. To filter the shipping products by a selected area. |
json_restrictor | string/number/boolean | No | The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
store_id | string/number/boolean | No | Store ID to filter the products by the specific store only. |
Flat price per call. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/home-depot/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": "310009453"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
product_idstring | number | booleanобязательноThe Home Depot identifier of a product. Only Product IDs gathered from the Home Depot US are supported.
store_idstring | number | booleanStore ID to filter the products by the specific store only.
delivery_zipstring | number | booleanZIP Postal code. To filter the shipping products by a selected area.
json_restrictorstring | number | booleanThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Home Depot ProductЭтот API Home Depot | $0.015 за запрос | Асинхронный JSON |
Home Depot | $0.015 за запрос | Асинхронный JSON |
Home Depot | $0.015 за запрос | Асинхронный JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/home-depot/product, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.015 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: product_id (string | number | boolean). Необязательные: store_id (string | number | boolean), delivery_zip (string | number | boolean) и json_restrictor (string | number | boolean). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-результат. Этот endpoint работает асинхронно, поэтому ответ подсказывает, как получить готовый результат.
Нет. Home Depot Product работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Home Depot.