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

Costco Warehouses API Documentation

GET https://scrappa.co/api/costco/warehouses

Costco Warehouses API lists warehouses nearest first with address, coordinates, phone, opening hours, holiday closures and services (pharmacy, tire center, gas station and more). Send latitude and longitude or a postal_code. The list covers the US and Canada. Use the id with the warehouse route and as the warehouse parameter of search. Costs 1 credit per successful request.

Costco Warehouses API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/costco/warehouses
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "page": 1,
        "per_page": 2,
        "warehouses": [
            {
                "id": "243",
                "name": "Queens",
                "type": "Warehouse",
                "hours": [
                    {
                        "days": [
                            "monday",
                            "tuesday",
...

Parameters

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

Runnable path

This endpoint has no required query parameters.

6 optional filters available.

latitude number Optional

Latitude, with longitude.

Example value 10
longitude number Optional

Longitude, with latitude.

Example value 10
postal_code string Optional

Postal or ZIP code. Use it instead of coordinates.

Example value example
locale string Optional

en-US (default), en-CA or fr-CA. Sets the language of names and hours.

Example value en-US
page integer Optional

One-based page number (default 1).

Example value 1
per_page integer Optional

Warehouses per page, 1 to 50 (default 10).

Example value 10

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": {
        "page": 1,
        "per_page": 2,
        "warehouses": [
            {
                "id": "243",
                "name": "Queens",
                "type": "Warehouse",
                "hours": [
                    {
                        "days": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday"
                        ],
                        "open": "09:00",
                        "close": "20:30",
                        "label": "Business Mon-Fri",
                        "closed": false
                    },
                    {
                        "days": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday"
                        ],
                        "open": "10:00",
                        "close": "20:30",
                        "label": "Mon-Fri",
                        "closed": false
                    }
                ],
                "phone": "(718) 267-3680",
                "address": {
                    "city": "LONG ISLAND CITY",
                    "line1": "3250 VERNON BLVD",
                    "line2": null,
                    "state": "NY",
                    "country": "US",
                    "postal_code": "11106-4927"
                },
                "distance": 3.26,
                "holidays": [
                    {
                        "date": "2026-11-26",
                        "name": "Thanksgiving Day",
                        "open": null,
                        "close": null,
                        "closed": true
                    }
                ],
                "latitude": 40.76760808,
                "services": [
                    {
                        "code": "food",
                        "name": "Food Court",
                        "hours": [],
                        "phone": "(718) 267-3681"
                    },
                    {
                        "code": "optical",
                        "name": "Optical Department",
                        "hours": [],
                        "phone": "(718) 267-5512"
                    },
                    {
                        "code": "pharmacy",
                        "name": "Pharmacy",
                        "hours": [
                            {
                                "days": [
                                    "monday",
                                    "tuesday",
                                    "wednesday",
                                    "thursday",
                                    "friday"
                                ],
                                "open": "09:00",
                                "close": "19:00",
                                "label": "Mon-Fri",
                                "closed": false
                            },
                            {
                                "days": [
                                    "saturday"
                                ],
                                "open": "09:00",
                                "close": "18:00",
                                "label": "Sat",
                                "closed": false
                            },
                            {
                                "days": [
                                    "sunday"
                                ],
                                "open": null,
                                "close": null,
                                "label": "Sun",
                                "closed": true
                            }
                        ],
                        "phone": "(718) 267-5516"
                    }
                ],
                "longitude": -73.93886284,
                "time_zone": "America/New_York",
                "region_code": "NE",
                "opening_date": "1996-11-20",
                "distance_unit": "mi",
                "has_gas_station": false
            },
            {
                "id": "1062",
                "name": "Manhattan",
                "type": "Warehouse",
                "hours": [
                    {
                        "days": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday"
                        ],
                        "open": "09:00",
                        "close": "20:30",
                        "label": "Business Mon-Fri",
                        "closed": false
                    },
                    {
                        "days": [
                            "monday",
                            "tuesday",
                            "wednesday",
                            "thursday",
                            "friday"
                        ],
                        "open": "10:00",
                        "close": "20:30",
                        "label": "Mon-Fri",
                        "closed": false
                    }
                ],
                "phone": "(212) 896-5875",
                "address": {
                    "city": "NEW YORK",
                    "line1": "517 E 117TH ST",
                    "line2": null,
                    "state": "NY",
                    "country": "US",
                    "postal_code": "10035-4409"
                },
                "distance": 4.71,
                "holidays": [
                    {
                        "date": "2026-11-26",
                        "name": "Thanksgiving Day",
                        "open": null,
                        "close": null,
                        "closed": true
                    }
                ],
                "latitude": 40.79570001,
                "services": [
                    {
                        "code": "food",
                        "name": "Food Court",
                        "hours": [],
                        "phone": null
                    },
                    {
                        "code": "hearing",
                        "name": "Hearing Aids",
                        "hours": [],
                        "phone": "(212) 896-5897"
                    },
                    {
                        "code": "optical",
                        "name": "Optical Department",
                        "hours": [],
                        "phone": "(212) 896-5884"
                    }
                ],
                "longitude": -73.93067747,
                "time_zone": "America/New_York",
                "region_code": "NE",
                "opening_date": "2009-11-12",
                "distance_unit": "mi",
                "has_gas_station": false
            }
        ],
        "has_next_page": true
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "warehouses"
    },
    "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"
}
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": "warehouses"
    },
    "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.