# Costco API

> Costco returns product, warehouse, hours, and gas price data as a workflow and API.

Search products returns product names, prices, ratings, and savings using required search words, with optional result order and maximum results. Get product returns product details, specifications, pricing, and delivery options using a product name or Costco link. Search warehouses returns nearby locations, hours, services, and posted gas prices using a city, address, or ZIP code.

- Page: https://fous.com/tools/costco
- Handle: `@costco`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://costco.com
- Last verified: Sep 29, 2026

## Methods

### Get product

Operation `get_product`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Get a Costco US product’s public details from its name or link. Prices and delivery information depend on the delivery location; member-only prices remain hidden.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `product` | string | yes | `"https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990"` | Product name or Costco product link, for example Kirkland Signature Paper Towels. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "product"
  ],
  "properties": {
    "product": {
      "type": "string",
      "description": "Product name or Costco product link, for example Kirkland Signature Paper Towels.",
      "examples": [
        "https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990",
        "Kirkland Signature Paper Towels"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "product": "https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990"
    },
    {
      "product": "Kirkland Signature Paper Towels"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `features` | array |  |  |
| `price_usd` | number or null | `16.99` |  |
| `price_text` | string or null |  |  |
| `image_links` | array |  |  |
| `item_number` | string or null | `"956696"` |  |
| `star_rating` | number or null | `4.73` |  |
| `product_link` | string | `"https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990"` |  |
| `product_name` | string | `"Kirkland Signature Extra-Large Absorbent Pads, 30 in L X 23 in W, 100-count"` |  |
| `specifications` | array |  |  |
| `specifications[].name` | string | `"Brand"` |  |
| `specifications[].value` | string | `"Kirkland Signature"` |  |
| `delivery_options` | array |  |  |
| `limit_per_member` | integer or null | `5` |  |
| `savings_end_date` | string or null | `"2026-10-11"` |  |
| `number_of_reviews` | integer or null | `8440` |  |
| `instant_savings_usd` | number or null | `3` |  |

**Example input**

```json
{
  "product": "https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990"
}
```

**Example output**

```json
{
  "features": [
    "Poly backing protects against leaks",
    "Locks in wetness with quilted top layer",
    "Round the clock odor control"
  ],
  "price_usd": 16.99,
  "price_text": null,
  "image_links": [
    "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:0e918d8a-93de-48e3-b20e-815ff77256d3/as/956696-inc__1.avif",
    "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:da32fcfe-51b0-44bc-9737-1474b5170a4a/as/956696-inc__2.avif"
  ],
  "item_number": "956696",
  "star_rating": 4.73,
  "product_link": "https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990",
  "product_name": "Kirkland Signature Extra-Large Absorbent Pads, 30 in L X 23 in W, 100-count",
  "specifications": [
    {
      "name": "Brand",
      "value": "Kirkland Signature"
    },
    {
      "name": "Size",
      "value": "X-Large"
    },
    {
      "name": "Type of Pet",
      "value": "Cat"
    }
  ],
  "delivery_options": [
    "2-Day Delivery"
  ],
  "limit_per_member": 5,
  "savings_end_date": "2026-10-11",
  "number_of_reviews": 8440,
  "instant_savings_usd": 3
}
```

### Search products

Operation `search_products`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Search Costco US products and online prices in Costco order. Prices and availability can vary by delivery location; member-only prices may be hidden.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"price_low_to_high"` | Results order, for example price_low_to_high. |
| `query` | string | yes | `"paper towels"` | Words to search for, for example paper towels. |
| `max_results` | integer | no | `30` | Maximum products to return, for example 24. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "sort": {
      "enum": [
        "best_match",
        "price_low_to_high",
        "price_high_to_low",
        "top_rated"
      ],
      "type": "string",
      "default": "best_match",
      "description": "Results order, for example price_low_to_high.",
      "examples": [
        "price_low_to_high",
        "top_rated",
        "price_high_to_low"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Words to search for, for example paper towels.",
      "examples": [
        "paper towels",
        "laundry detergent",
        "bottled water"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 24,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum products to return, for example 24.",
      "x-fous-developer": true,
      "examples": [
        30,
        5,
        3
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "paper towels"
    },
    {
      "sort": "price_low_to_high",
      "query": "paper towels",
      "max_results": 30
    },
    {
      "sort": "top_rated",
      "query": "laundry detergent",
      "max_results": 5
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `products` | array |  |  |
| `products[].name` | string | `"Kirkland Signature Paper Towels, 2-Ply, 160 Sheets, 12 Individually Wrapped Rolls"` |  |
| `products[].price` | number or null | `23.99` | Displayed online price in USD; null when hidden. |
| `products[].currency` | string | `"USD"` |  |
| `products[].photo_link` | string or null | `"https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:742eba68-7706-48b1-b5c9-9730e77a7910/as/100234271-847__1.avif"` |  |
| `products[].price_text` | string or null | `"$23.99"` |  |
| `products[].item_number` | string or null | `"512599"` |  |
| `products[].member_only` | boolean | `false` |  |
| `products[].online_only` | boolean | `false` |  |
| `products[].star_rating` | number or null | `4.81` |  |
| `products[].product_link` | string | `"https://www.costco.com/kirkland-signature-paper-towels-2-ply-160-sheets-12-individually-wrapped-rolls.product.100234271` |  |
| `products[].review_count` | integer or null | `40964` |  |
| `products[].instant_savings` | number or null |  | Displayed instant savings amount in USD. |
| `products[].instant_savings_end_date` | string or null |  |  |

**Example input**

```json
{
  "query": "paper towels"
}
```

**Example output**

```json
{
  "products": [
    {
      "name": "Kirkland Signature Paper Towels, 2-Ply, 160 Sheets, 12 Individually Wrapped Rolls",
      "price": 23.99,
      "currency": "USD",
      "photo_link": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:742eba68-7706-48b1-b5c9-9730e77a7910/as/100234271-847__1.avif",
      "price_text": "$23.99",
      "item_number": "512599",
      "member_only": false,
      "online_only": false,
      "star_rating": 4.81,
      "product_link": "https://www.costco.com/kirkland-signature-paper-towels-2-ply-160-sheets-12-individually-wrapped-rolls.product.100234271.html",
      "review_count": 40964,
      "instant_savings": null,
      "instant_savings_end_date": null
    },
    {
      "name": "Caboo Bamboo Bath Tissue, 2-Ply, 400 Sheets, 24 Rolls",
      "price": 29.99,
      "currency": "USD",
      "photo_link": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:4dc691fe-a710-4531-8a7b-4cf583d396df/as/1010278-847__1.avif?width=320&height=320&fit=contain",
      "price_text": "$29.99",
      "item_number": "4000139294",
      "member_only": false,
      "online_only": true,
      "star_rating": 4.32,
      "product_link": "https://www.costco.com/caboo-bamboo-bath-tissue-2-ply-400-sheets-24-rolls.product.4000139294.html",
      "review_count": 1723,
      "instant_savings": null,
      "instant_savings_end_date": null
    }
  ]
}
```

### Search warehouses

Operation `search_warehouses`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Find nearby US Costco warehouses with today’s and weekly hours, gas station hours, services, and posted gas prices. Posted prices can differ from pump prices; special holiday hours may differ from the weekly schedule.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `location` | string | yes | `"98033"` | City, street address, or ZIP code to search near, such as Kirkland, WA. |
| `max_results` | integer | no | `3` | Maximum number of nearest warehouses to return, for example 5. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "minLength": 1,
      "description": "City, street address, or ZIP code to search near, such as Kirkland, WA.",
      "examples": [
        "98033",
        "Kirkland, WA",
        "1600 Amphitheatre Parkway, Mountain View, CA"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 5,
      "maximum": 20,
      "minimum": 1,
      "description": "Maximum number of nearest warehouses to return, for example 5.",
      "x-fous-developer": true,
      "examples": [
        3,
        5,
        2
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "98033",
      "max_results": 3
    },
    {
      "location": "Kirkland, WA",
      "max_results": 5
    },
    {
      "location": "1600 Amphitheatre Parkway, Mountain View, CA",
      "max_results": 2
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `warehouses` | array |  |  |
| `warehouses[].phone` | string or null | `"(425) 827-1693"` |  |
| `warehouses[].address` | string | `"8629 120TH AVE NE, KIRKLAND WA 98033-5822"` |  |
| `warehouses[].services` | array |  |  |
| `warehouses[].weekly_hours` | string or null | `"Executive Member Mon-Fri: 9:00 AM - 8:30 PM; Gold Star & Business Member Mon-Fri: 10:00 AM - 8:30 PM; Executive Member ` |  |
| `warehouses[].distance_miles` | number | `0.62` |  |
| `warehouses[].warehouse_name` | string | `"Kirkland Warehouse"` |  |
| `warehouses[].diesel_gas_price` | number or null | `7.159` |  |
| `warehouses[].warehouse_number` | string | `"8"` |  |
| `warehouses[].gas_station_hours` | string or null | `"Mon-Fri: 6:00 AM - 10:00 PM; Sat: 6:00 AM - 8:30 PM; Sun: 6:00 AM - 7:30 PM"` |  |
| `warehouses[].premium_gas_price` | number or null | `5.899` |  |
| `warehouses[].regular_gas_price` | number or null | `5.499` |  |
| `warehouses[].gas_price_currency` | string | `"USD"` |  |
| `warehouses[].today_opening_hours` | string or null | `"Executive Member Mon-Fri: 9:00 AM - 8:30 PM; Gold Star & Business Member Mon-Fri: 10:00 AM - 8:30 PM"` |  |
| `warehouses[].warehouse_page_link` | string | `"https://www.costco.com/w/-/wa/kirkland/8"` |  |

**Example input**

```json
{
  "location": "98033",
  "max_results": 3
}
```

**Example output**

```json
{
  "warehouses": [
    {
      "phone": "(425) 827-1693",
      "address": "8629 120TH AVE NE, KIRKLAND WA 98033-5822",
      "services": [
        "Food Court",
        "Gas Station"
      ],
      "weekly_hours": "Executive Member Mon-Fri: 9:00 AM - 8:30 PM; Gold Star & Business Member Mon-Fri: 10:00 AM - 8:30 PM; Executive Member Sat: 9:00 AM - 7:00 PM; Gold Star & Business Member Sat: 9:30 AM - 7:00 PM; Execu…",
      "distance_miles": 0.62,
      "warehouse_name": "Kirkland Warehouse",
      "diesel_gas_price": null,
      "warehouse_number": "8",
      "gas_station_hours": "Mon-Fri: 6:00 AM - 10:00 PM; Sat: 6:00 AM - 8:30 PM; Sun: 6:00 AM - 7:30 PM",
      "premium_gas_price": 5.899,
      "regular_gas_price": 5.499,
      "gas_price_currency": "USD",
      "today_opening_hours": "Executive Member Mon-Fri: 9:00 AM - 8:30 PM; Gold Star & Business Member Mon-Fri: 10:00 AM - 8:30 PM",
      "warehouse_page_link": "https://www.costco.com/w/-/wa/kirkland/8"
    },
    {
      "phone": "(425) 406-5382",
      "address": "7725 188TH AVE NE, REDMOND WA 98052-6088",
      "services": [
        "Food Court",
        "Gas Station"
      ],
      "weekly_hours": "Executive Member Mon-Fri: 9:00 AM - 8:30 PM; Gold Star & Business Member Mon-Fri: 10:00 AM - 8:30 PM; Executive Member Sat: 9:00 AM - 7:00 PM; Gold Star & Business Member Sat: 9:30 AM - 7:00 PM; Execu…",
      "distance_miles": 4.75,
      "warehouse_name": "Redmond Warehouse",
      "diesel_gas_price": 7.159,
      "warehouse_number": "1225",
      "gas_station_hours": "Mon-Fri: 6:00 AM - 10:00 PM; Sat: 6:00 AM - 8:30 PM; Sun: 6:00 AM - 7:30 PM",
      "premium_gas_price": 5.999,
      "regular_gas_price": 5.449,
      "gas_price_currency": "USD",
      "today_opening_hours": "Executive Member Mon-Fri: 9:00 AM - 8:30 PM; Gold Star & Business Member Mon-Fri: 10:00 AM - 8:30 PM",
      "warehouse_page_link": "https://www.costco.com/w/-/wa/redmond/1225"
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@costco",
  "visibility": "public",
  "operation": "get_product",
  "version": 1,
  "input": {
    "product": "https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@costco\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_product\",\n  \"version\": 1,\n  \"input\": {\n    \"product\": \"https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@costco",
  "visibility": "public",
  "operation": "get_product",
  "version": 1,
  "input": {
    "product": "https://www.costco.com/p/-/kirkland-signature-extra-large-absorbent-pads-30-in-l-x-23-in-w-100-count/100229990"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/costco`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_product`: Get product. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_products`: Search products. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_warehouses`: Search warehouses. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-costco https://api.fous.com/mcp/tools/costco --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare online product prices and ratings
- Find products with displayed instant savings
- Review product details and specifications
- Locate nearby warehouses and check their hours
- Compare posted gas prices at nearby warehouses

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Costco tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Costco account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from costco.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What products match my search?

Search products returns matching products based on the search words you provide.

### What are a product’s details and specifications?

Get product returns public product details and specifications when you provide a product name or Costco link.

### Where are nearby warehouses, and what are their hours?

Search warehouses returns nearby warehouse locations with today’s and weekly hours.

## Related

- [Instacart API](https://fous.com/tools/instacart.md): Search grocery products available from nearby stores.
- [Walmart API](https://fous.com/tools/walmart.md): Walmart helps shoppers find products from Walmart and marketplace sellers, view details, prices, ratings and reviews; availability uses Walmart’s default location, not ZIP codes.
- [Kohl's API](https://fous.com/tools/kohls.md): Shop products and deals on Kohl's.
- [Amazon API](https://fous.com/tools/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Sephora API](https://fous.com/tools/sephora.md): Sephora provides US beauty products, shopping information, product details, and customer reviews; prices and availability may change.
- [Nordstrom API](https://fous.com/tools/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [Aldi API](https://fous.com/tools/aldi.md): Search groceries and prices at ALDI US.
- [Best Buy API](https://fous.com/tools/best-buy.md): Best Buy returns US electronics and appliance listings, prices, deals, specifications, images, reviews, and nearby store pickup and shipping details; prices and availability can change by location and before checkout.
- [All Commerce tools](https://fous.com/tools/category/commerce)
