product_idstring | number | booleanwymagane
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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
product_idstring | number | booleanwymaganeThe 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.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Home Depot ProductTo API Home Depot | $0.015 za wywołanie | Asynchroniczny JSON |
Home Depot | $0.015 za wywołanie | Asynchroniczny JSON |
Home Depot | $0.015 za wywołanie | Asynchroniczny JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/home-depot/product z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.015 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: product_id (string | number | boolean). Opcjonalne: store_id (string | number | boolean), delivery_zip (string | number | boolean) i json_restrictor (string | number | boolean). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Wynik JSON. Ten endpoint działa asynchronicznie, więc odpowiedź informuje, jak pobrać gotowy wynik.
Nie. Home Depot Product działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Home Depot.