Skip to content
Scrappa Get API key
Costco API 1 credit/request

Costco Reviews Summary API Documentation

GET https://scrappa.co/api/costco/reviews-summary

Costco Reviews Summary API returns the average rating, the number of reviews per star, the recommendation counts and the dates of the first and last review. A product without reviews returns zero counts and is free. The counts cover all ratings of the product, also ratings without text. Costs 1 credit per successful request.

Costco Reviews Summary API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/costco/reviews-summary
Auth header
x-api-key
Cost
1 credit/request
product_id = 1234567890
Response preview
200 OK
{
    "data": {
        "country": "us",
        "product_id": "4000203457",
        "photo_count": 22,
        "recommended": 91,
        "total_reviews": 245,
        "average_rating": 4.077551020408163,
        "last_review_at": "2026-10-24T16:04:47.000+00:00",
        "first_review_at": "2023-10-08T23:41:37.000+00:00",
        "not_recommended": 54,
        "rating_distribution": {
            "1": 32,
            "2": 16,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

product_id string Required

Product id from search, 4 to 12 digits.

Example value 1234567890
country string Optional

us (default) or ca. Use ca for product ids from costco.ca.

Example value US

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "country": "us",
        "product_id": "4000203457",
        "photo_count": 22,
        "recommended": 91,
        "total_reviews": 245,
        "average_rating": 4.077551020408163,
        "last_review_at": "2026-10-24T16:04:47.000+00:00",
        "first_review_at": "2023-10-08T23:41:37.000+00:00",
        "not_recommended": 54,
        "rating_distribution": {
            "1": 32,
            "2": 16,
            "3": 12,
            "4": 26,
            "5": 159
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "reviews_summary"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "query": [
            "A search text is required, e.g. laptop."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The product, item or warehouse does not exist. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "reviews_summary"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

Costco could not be reached after several tries. This response is not billable. Retry shortly.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "reviews_summary"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Costco could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.