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/product-reviewsGet Home Depot product reviews by product ID: overall rating, ratings histogram, recommendation counts, and reviews with filters and sorting.
您的输出将显示在这里
完成输入,然后点击运行。
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.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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"
}'将您的 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.
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.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Home Depot | $0.015 每次调用 | 异步 JSON |
Home Depot | $0.015 每次调用 | 异步 JSON |
Home Depot | $0.015 每次调用 | 异步 JSON |
问题
向 https://api.sandbase.ai/v1/api/home-depot/product-reviews 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.015,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:product_id (string | number | boolean)。 可选:term (string | number | boolean), start (string | number | boolean), rating (string | number | boolean), sort_by (any), pagesize (string | number | boolean) 和 json_restrictor (string | number | boolean) 以及另外 1 项。 Parameters 表和本页的 Playground 列出了每个字段。
JSON 结果。此端点异步运行,因此响应会告诉您如何获取已完成的结果。
不需要。Home Depot Product Reviews 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Home Depot API 访问权限。