product_idstring | number | booleanobligatoire
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/product-reviewsGet Home Depot product reviews by product ID: overall rating, ratings histogram, recommendation counts, and reviews with filters and sorting.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Get Home Depot product reviews by product ID: overall rating, ratings histogram, recommendation counts, and reviews with filters and sorting.
curl -X POST "https://api.sandbase.ai/v1/api/home-depot/product-reviews" \
-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. |
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. |
pagesize | string/number/boolean | No | Determines the number of items per page. By default, 100 (maximum allowed value) results are returned. |
rating | string/number/boolean | No | To include only results with specified ratings. Example for single rating only: 5 Example for multiple ratings (separated by comma ,): 5,3,2 |
sort_by | any | No | Sorting reviews. By default the reviews are sorted by newest. Available options: photoreview - Photo Reviews mosthelpfull - Most Helpful oldest - Oldest newest - Newest highestrating - Hig… |
start | string/number/boolean | No | Controls the offset of the reviews. This parameter defaults to 1. If the pagesize is 100, you have to specify start as 101 to get the 2nd page results, and the 3rd page is 201, and so on. |
term | string/number/boolean | No | The term you want to search, only reviews with matching term will be returned. |
verified_purchases | string/number/boolean | No | Whether to include reviews from verified purchases. |
Flat price per call. Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/home-depot/product-reviews" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": "310009453"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
product_idstring | number | booleanobligatoireThe Home Depot identifier of a product. Only Product IDs gathered from the Home Depot US are supported.
termstring | number | booleanThe term you want to search, only reviews with matching term will be returned.
startstring | number | booleanControls the offset of the reviews. This parameter defaults to `1`. If the `pagesize` is `100`, you have to specify `start` as `101` to get the 2nd page results, and the 3rd page is `201`, and so on.
ratingstring | number | booleanTo include only results with specified ratings. Example for single rating only: `5` Example for multiple ratings (separated by comma `,`): `5,3,2`
sort_byanySorting reviews. By default the reviews are sorted by `newest`. Available options: `photoreview` - Photo Reviews `mosthelpfull` - Most Helpful `oldest` - Oldest `newest` - Newest `highestrating` - Highest rating `lowestrating` - Lowest rating
pagesizestring | number | booleanDetermines the number of items per page. By default, `100` (maximum allowed value) results are returned.
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.
verified_purchasesstring | number | booleanWhether to include reviews from verified purchases.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Home Depot Product ReviewsCette API Home Depot | $0.015 par appel | JSON asynchrone |
Home Depot | $0.015 par appel | JSON asynchrone |
Home Depot | $0.015 par appel | JSON asynchrone |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/home-depot/product-reviews avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.015 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : product_id (string | number | boolean). Facultatif : term (string | number | boolean), start (string | number | boolean), rating (string | number | boolean), sort_by (any), pagesize (string | number | boolean) et json_restrictor (string | number | boolean) et 1 de plus. Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Un résultat JSON. Ce point de terminaison s’exécute de manière asynchrone, donc la réponse vous indique comment récupérer le résultat final.
Non. Home Depot Product Reviews fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Home Depot séparément.