# 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/workflows/costco
- Handle: `@costco`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://costco.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Costco.

## Methods

### Get product

Operation `get_product`, version 1. 1 credit per call.

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 call.

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 | `"MacBook Neo Laptop (13-inch) - Apple A18 Pro chip, Built for Apple Intelligence, 6-core CPU, 5-core GPU, 8GB Memory, 51` |  |
| `products[].price` | number or null | `789.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:3e1f57de-df7a-4ed8-82a3-a65dd6c85373/as/4000447644-847_indigo_1` |  |
| `products[].price_text` | string or null | `"$789.99"` |  |
| `products[].item_number` | string or null | `"4000447644"` |  |
| `products[].member_only` | boolean | `false` |  |
| `products[].online_only` | boolean | `false` |  |
| `products[].star_rating` | number or null | `5` |  |
| `products[].product_link` | string | `"https://www.costco.com/macbook-neo-laptop-13-inch---apple-a18-pro-chip-built-for-apple-intelligence-6-core-cpu-5-core-g` |  |
| `products[].review_count` | integer or null | `4` |  |
| `products[].instant_savings` | number or null |  | Displayed instant savings amount in USD. |
| `products[].instant_savings_end_date` | string or null |  |  |

**Example input**

```json
{
  "sort": "top_rated",
  "query": "laundry detergent",
  "max_results": 5
}
```

**Example output**

```json
{
  "products": [
    {
      "name": "MacBook Neo Laptop (13-inch) - Apple A18 Pro chip, Built for Apple Intelligence, 6-core CPU, 5-core GPU, 8GB Memory, 512GB SSD Storage, Touch ID",
      "price": 789.99,
      "currency": "USD",
      "photo_link": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:3e1f57de-df7a-4ed8-82a3-a65dd6c85373/as/4000447644-847_indigo_1.avif",
      "price_text": "$789.99",
      "item_number": "4000447644",
      "member_only": false,
      "online_only": false,
      "star_rating": 5,
      "product_link": "https://www.costco.com/macbook-neo-laptop-13-inch---apple-a18-pro-chip-built-for-apple-intelligence-6-core-cpu-5-core-gpu-8gb-memory-512gb-ssd-storage-touch-id.product.4000447644.html",
      "review_count": 4,
      "instant_savings": null,
      "instant_savings_end_date": null
    },
    {
      "name": "Banana Republic Women's Wrap",
      "price": 17.99,
      "currency": "USD",
      "photo_link": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:1e663a53-bd99-4e63-8c09-090b14862440/as/4000434611-847_red_1.avif",
      "price_text": "$17.99",
      "item_number": "2032592",
      "member_only": false,
      "online_only": false,
      "star_rating": 5,
      "product_link": "https://www.costco.com/banana-republic-womens-wrap.product.4000434611.html",
      "review_count": 2,
      "instant_savings": null,
      "instant_savings_end_date": null
    }
  ]
}
```

### Search warehouses

Operation `search_warehouses`, version 1. 1 credit per call.

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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@costco","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Costco?

No. Fous is not affiliated with Costco. This workflow reads the public costco.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/instacart.md): Search grocery products available from nearby stores.
- [Walmart API](https://fous.com/workflows/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/workflows/kohls.md): Shop products and deals on Kohl's.
- [Amazon API](https://fous.com/workflows/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/workflows/sephora.md): Sephora provides US beauty products, shopping information, product details, and customer reviews; prices and availability may change.
- [Nordstrom API](https://fous.com/workflows/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [Aldi API](https://fous.com/workflows/aldi.md): Search groceries and prices at ALDI US.
- [Best Buy API](https://fous.com/workflows/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 workflows](https://fous.com/workflows/category/commerce)
