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

Costco Warehouse Prices API Documentation

GET https://scrappa.co/api/costco/product-price

Costco Warehouse Prices API returns the price of one item for up to two warehouses in one request. online_price is the warehouse price, delivered_price is the price with delivery. Warehouse 847 is the online price in the US, 894 in Canada.

This route takes the item number (item_numbers in the product answer), not the product id. Costs 1 credit per successful request.

Costco Warehouse Prices API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/costco/product-price
Auth header
x-api-key
Cost
1 credit/request
item = example
Response preview
200 OK
{
    "data": {
        "prices": [
            {
                "currency": "USD",
                "discount": 0,
                "warehouse": "243",
                "item_number": "2051888",
                "online_price": 799.99,
                "delivered_price": 799.99
            },
            {
                "currency": "USD",
                "discount": 0,
...

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.

3 optional filters available.

item string Required

Item number from the product answer, 4 to 12 digits.

Example value example
warehouses string Optional

Up to 2 comma separated warehouse numbers (default: the main warehouse and the online price).

Example value example
country string Optional

us (default) or ca. Selects costco.com or costco.ca.

Example value US
locale string Optional

en-US, en-CA or fr-CA. Canadian French works with country ca. Default is the English locale of the country.

Example value en-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": {
        "prices": [
            {
                "currency": "USD",
                "discount": 0,
                "warehouse": "243",
                "item_number": "2051888",
                "online_price": 799.99,
                "delivered_price": 799.99
            },
            {
                "currency": "USD",
                "discount": 0,
                "warehouse": "847",
                "item_number": "2051888",
                "online_price": 799.99,
                "delivered_price": 799.99
            }
        ],
        "country": "us",
        "item_number": "2051888"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product_price"
    },
    "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": "product_price"
    },
    "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": "product_price"
    },
    "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.