Costco API endpoint
Returns Costco warehouses near a latitude/longitude, sorted by distance: name, address, and distance for each. Public data sourced from Costco's own warehouse locator backend.
/costco/warehousesQuery parameters:
latitude (required) — search origin latitude.longitude (required) — search origin longitude.Notable response behavior:
distance_miles is straight-line distance from the given coordinates.latitude/longitude returns 400 before any
upstream request is made.| Field | Filled in, of 47 checked | Values in the sample |
|---|---|---|
| id | 47 | |
| name | 47 | “Seattle” and 46 other values |
| type | 47 | Warehouse in all 47 |
| address_line1 | 47 | |
| city | 47 | “SEATTLE” and 44 other values |
| state | 47 | WA (30), BC (10), OR (7) |
| postal_code | 47 | |
| latitude | 47 | |
| longitude | 47 | |
| distance_miles | 47 | 0.08 to 173.08, median 85.27 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| latitude | number | Yes | Latitude | 47.565 | |
| longitude | number | Yes | Longitude | -122.329 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/costco/warehouses?latitude=47.565&longitude=-122.329" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"warehouses": [
{
"id": "1",
"name": "Seattle",
"type": "Warehouse",
"address_line1": "4401 4TH AVE S",
"city": "SEATTLE",
"state": "WA",
"postal_code": "98134-2311",
"latitude": 47.56482663,
"longitude": -122.3307644,
"distance_miles": 0.083
}
]
}
}Request schema
No body schema
Response schema
#/definitions/costco.warehousesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | costco.WarehousesResponse | No | ||||
| data.warehouses | array | No | ||||
| data.warehouses[].address_line1 | string | No | ||||
| data.warehouses[].city | string | No | ||||
| data.warehouses[].distance_miles | number | No | ||||
| data.warehouses[].id | string | No | ||||
| data.warehouses[].latitude | number | No | ||||
| data.warehouses[].longitude | number | No | ||||
| data.warehouses[].name | string | No | ||||
| data.warehouses[].postal_code | string | No | ||||
| data.warehouses[].state | string | No | ||||
| data.warehouses[].type | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/costco/warehouses?latitude=47.565&longitude=-122.329" \
-H "x-api-key: $CRAWLORA_API_KEY"