ScavioScavio
Pricing
Tools
Sign InsGet Startedg
13 live endpoints

Costco API

Costco product data with the numbers members actually shop by: online and in-warehouse prices at up to 10 warehouses, warehouse stock, gas prices, the monthly coupon book and a clearance finder. Each one is a single POST returning structured JSON.

Get your API keyRead the docs

50 free credits on signup, enough for 50 Costco searches. No card.

POST /api/v1/costco/search
sample
query:
try
{  "data": {    "country": "us",    "query": "olive oil",    "warehouse_id": "1062",    "total_results": 106,    "page": 1,    "page_size": 5,    "total_pages": 22,    "count": 5,    "results": [      {        "position": 1,        "product_id": "100334841",        "item_number": "692731",        "title": "Kirkland Signature, Organic Extra Virgin Olive Oil, 2 L",        "brand": "Kirkland Signature",        "price": 20.99,        "original_price": 20.99,        "on_sale": false,        "rating": 4.8,        "reviews_count": 6484,        "member_only": false,        "sold_in_warehouse": true,        "warehouse": {          "warehouse_id": "1062",          "price": 15.59,          "availability": "in_stock",          "price_code": {            "ending": "59",            "meaning": "other"          }        }      },      {        "position": 2,        "product_id": "100334844",        "item_number": "71003",        "title": "Kirkland Signature, Extra Virgin Italian Olive Oil, 2 L",        "brand": "Kirkland Signature",        "price": 30.99,        "original_price": 30.99,        "on_sale": false,        "rating": 4.78,        "reviews_count": 2086,        "member_only": false,        "sold_in_warehouse": true,        "warehouse": {          "warehouse_id": "1062",          "price": 21.99,          "availability": "in_stock",          "price_code": {            "ending": "99",            "meaning": "regular_price"          }        }      }    ]  },  "response_time": 3357}
captured example · 1 credits3 / 3 free

Live call against the real endpoint, with prices from the Manhattan warehouse (1062). 3 free runs, then it's your own key.

What is the Scavio Costco API?

The Scavio Costco API is a REST API that returns Costco data as structured JSON. Costco has no public API; Scavio's 13 POST endpoints cover product search and detail, reviews, online versus in-warehouse prices, warehouse stock, gas prices, the member coupon book, deal feeds and a clearance finder, on costco.com and costco.ca.

13
endpoints, all live in production
1
credit for most calls
10
warehouses priced in one call

The Costco data other APIs leave out

Catalog data is the easy part. Shelf prices, stock, gas, coupons and clearance are what Costco shoppers act on.

Warehouse prices

POST /api/v1/costco/prices

The costco.com price next to the shelf price at up to 10 warehouses, each with its discount, final price, promotion dates and limits. The two often differ.

Warehouse availability

POST /api/v1/costco/availability

Whether an item is in stock at a given warehouse, plus warehouse pickup and same-day delivery status, before anyone drives there.

Gas prices

POST /api/v1/costco/gas

Regular, premium and diesel at Costco gas stations near a zip code or coordinates, or at the warehouses you name.

Coupon book

POST /api/v1/costco/coupons

The monthly member coupon book as rows: item number, amount off, final price, warehouse or online scope, limits and valid dates.

Clearance finder

POST /api/v1/costco/clearance

Scan a query or category at one warehouse and keep the items whose shelf price ends in a markdown code: .97 clearance, .00 and .88 manager markdowns.

Search and product

POST /api/v1/costco/search

Keyword or item-number search, category pages, full product detail for 20 items per call, and reviews, on costco.com and costco.ca.

All 13 Costco API endpoints

Every route is a POST, returns JSON, and takes the same API key. Most cost 1 credit; the multi-warehouse endpoints are priced by how many warehouses you ask for.

EndpointReturnsCredits
Search/api/v1/costco/searchKeyword or item-number search: online price, rating, stock and promotions, plus a warehouse's shelf price with warehouse_id1
Category/api/v1/costco/categoryProducts in one category with the same filters and per-warehouse pricing as search1
Categories/api/v1/costco/categoriesThe department list, or one department's full subcategory tree1
Product detail/api/v1/costco/productUp to 20 items per call: description, specs, variants, purchase limits and dated promotions1
Warehouse prices/api/v1/costco/pricesOnline price versus in-warehouse price at up to 10 warehouses, with discount, final price and price code1 (2 at 10 warehouses)
Warehouse availability/api/v1/costco/availabilityIn-warehouse stock status at up to 10 warehouses, plus pickup and same-day delivery status1 per 5 warehouses
Reviews/api/v1/costco/reviewsRating distribution and review bodies, sortable, up to 100 per page1
Warehouse locator/api/v1/costco/warehousesWarehouses near a zip or coordinates with hours, departments, services and gas prices1 (2 on costco.ca)
Gas prices/api/v1/costco/gasRegular, premium and diesel prices at Costco gas stations near a location or at chosen warehouses1 by location; 1 per 5 warehouses
Coupon book/api/v1/costco/couponsThe current member coupon book: item number, amount off, final price, scope and valid dates1
Deals/api/v1/costco/dealsNew, while supplies last, treasure hunt, member favorites, online-only and on-sale feeds1
Clearance finder/api/v1/costco/clearanceItems at one warehouse whose shelf price carries a .97, .00 or .88 markdown code1
Autocomplete/api/v1/costco/autocompleteSearch suggestions for a partial query, plus matching warehouse locations1

50 free credits on signup covers 50 single-credit Costco calls. See plans

Search with a warehouse's shelf prices

Add warehouse_id to a search and every row carries that warehouse's price next to the online one. The response on the right is a real capture, field names and all.

from scavio import ScavioClient

client = ScavioClient(api_key="sk_live_your_key")

# Search with warehouse_id: each row also carries that warehouse's shelf price
res = client.costco.search("olive oil", warehouse_id="1062", page_size=5)
for item in res["data"]["results"]:
    print(item["item_number"], item["price"], item["warehouse"]["price"])

# Online vs in-warehouse price at two warehouses - 1 credit
prices = client.costco.prices(item_id="1492456", warehouse_ids=["1062", "1107"])
200 response.jsoncaptured
{
  "data": {
    "country": "us",
    "query": "olive oil",
    "warehouse_id": "1062",
    "total_results": 106,
    "page": 1,
    "page_size": 5,
    "total_pages": 22,
    "count": 5,
    "results": [
      {
        "position": 1,
        "product_id": "100334841",
        "item_number": "692731",
        "title": "Kirkland Signature, Organic Extra Virgin Olive Oil, 2 L",
        "brand": "Kirkland Signature",
        "price": 20.99,
        "original_price": 20.99,
        "on_sale": false,
        "rating": 4.8,
        "reviews_count": 6484,
        "member_only": false,
        "sold_in_warehouse": true,
        "warehouse": {
          "warehouse_id": "1062",
          "price": 15.59,
          "availability": "in_stock",
          "price_code": { "ending": "59", "meaning": "other" }
        }
      },
      {
        "position": 2,
        "product_id": "100334844",
        "item_number": "71003",
        "title": "Kirkland Signature, Extra Virgin Italian Olive Oil, 2 L",
        "brand": "Kirkland Signature",
        "price": 30.99,
        "original_price": 30.99,
        "on_sale": false,
        "rating": 4.78,
        "reviews_count": 2086,
        "member_only": false,
        "sold_in_warehouse": true,
        "warehouse": {
          "warehouse_id": "1062",
          "price": 21.99,
          "availability": "in_stock",
          "price_code": { "ending": "99", "meaning": "regular_price" }
        }
      }
    ]
  },
  "response_time": 3357
}

Why not another Costco data API?

Costco has no public API, and the third-party ones mostly stop at the website catalog.

Costco itself, and catalog-only Costco APIs

  • Costco offers no public API for product, price or inventory data
  • Third-party Costco APIs (OpenWebNinja, Unwrangle, Piloterr, Bright Data, Oxylabs) cover search, product pages and reviews
  • None of them document shelf prices across multiple warehouses, gas prices, the coupon book or clearance codes
  • Mostly online prices, and costco.com prices often differ from the warehouse shelf

Scavio Costco API

  • Online and in-warehouse prices side by side, at up to 10 warehouses per call
  • Warehouse stock status, gas prices, the member coupon book and a clearance finder
  • costco.com and costco.ca in full; search and product on 6 more Costco countries
  • One key, 50 free credits on signup, the same JSON envelope as every Scavio platform

Third-party coverage is based on each vendor's public documentation as of October 2026. Scavio returns publicly available data only.

What developers build with it

Warehouse price tracking

Track the shelf price of the same items across the warehouses you care about, next to the costco.com price, and alert when a promotion starts, ends or a price drops.

prices + search

Clearance and markdown alerts

Run the clearance finder against a warehouse each morning and post new .97 items to a deal channel or a member app before they sell through.

clearance + availability

Gas price maps and fuel apps

Show Costco regular, premium and diesel prices next to other stations, by zip code or by the warehouses a user saved.

gas + warehouses

Coupon book and deal content

Turn the monthly member coupon book into searchable rows, match each offer to its product page, and publish the month's best savings automatically.

coupons + product

Retail and CPG competitive intelligence

Monitor Kirkland Signature and brand pricing, ratings and assortment against other retailers, with item numbers as the stable key.

search + category + reviews

Shopping agents

Give an AI agent Costco as a tool: is it in stock at my warehouse, what does it cost there, is there a coupon, what do reviewers say.

MCP + REST

How to get Costco data as JSON

  1. 1

    Get an API key

    Sign up for a Scavio account and copy your key from the dashboard. You get 50 credits free on signup, with no card required and no Costco account.

  2. 2

    Find your warehouse ids

    Send {"zip": "10025"} to https://api.scavio.dev/api/v1/costco/warehouses with an Authorization: Bearer header. Each warehouse comes back with its warehouse_id.

  3. 3

    Ask for prices, stock, gas or deals

    Pass those warehouse ids to the prices, availability, gas or clearance endpoints, or add warehouse_id to search, category and deals. Every response wraps the payload under data, with credits_used and credits_remaining.

One key, 51 platformsMCP server for agentsPython & JS SDKsn8n community node

Costco API FAQ

Does Costco have a public API?

+

No. Costco does not offer a public API for product, price or inventory data. The Scavio Costco API fills that gap with 13 POST endpoints that return Costco data as structured JSON: product search and detail, reviews, online and in-warehouse prices, warehouse stock status, gas prices, the coupon book, deals and clearance.

Can I get Costco warehouse prices, not just online prices?

+

Yes. The prices endpoint returns the costco.com price next to the shelf price at up to 10 warehouses, and search, category and deals take a warehouse_id that adds that warehouse's price to every result. The two often differ: in our captured example, Kirkland Signature Organic Extra Virgin Olive Oil (2 L) was $20.99 online and $15.59 at the Manhattan warehouse.

Is there a Costco gas prices API?

+

Yes. The gas endpoint returns regular, premium and diesel prices at Costco gas stations near a US zip code or a latitude and longitude, or at specific warehouses you name, with each station's address, distance and hours. A location search costs 1 credit; by warehouse it is 1 credit per 5 warehouses.

Can I get the Costco coupon book as data?

+

Yes. The coupons endpoint returns the current member coupon book in one call: each offer's item number and product id, amount off, final price where stated, warehouse or online scope, limits, and the book's valid dates. The book we captured ran from 2026-09-21 to 2026-10-18 with 203 offers. It costs 1 credit and covers costco.com only.

What do Costco prices ending in .97 mean, and how does the clearance finder work?

+

Costco members read the cents of a warehouse shelf price as a code: .97 is clearance, .00 and .88 are manager markdowns, .49, .79 and .89 are special buys, and .99 is regular price. Costco does not publish these codes, so treat them as a strong hint. The clearance endpoint scans a query or category at one warehouse and returns the items whose shelf price carries the codes you choose; only items Costco lists online are covered.

Which Costco countries are supported?

+

The United States (costco.com) and Canada (costco.ca) on every endpoint except the coupon book, which is US only. Search, product and the warehouse locator also cover Costco in the United Kingdom, Australia, Mexico, Japan, South Korea and Taiwan, with keyword search, sort and paging.

Does the availability endpoint return stock quantities?

+

No. Costco reports a stock status, not a unit count, so the availability endpoint returns in_stock, low_stock, out_of_stock or not_available for each warehouse, plus the status of warehouse pickup and same-day delivery where Costco offers them.

How much does a Costco request cost?

+

Most Costco calls cost 1 credit. The multi-warehouse endpoints are priced by size: prices costs 1 credit for up to 9 warehouses and 2 for 10, availability costs 1 credit per 5 warehouses, and gas by warehouse costs 1 credit per 5. On costco.ca the warehouse locator and gas by location cost 2. New accounts get 50 free credits on signup, with no card required. Paid plans start at $30 per month for 7,000 credits.

What is the difference between a Costco item number and a product id?

+

The item number is the number on the shelf tag and the receipt; the product id is the id of the costco.com product page. Search and product return both. Product, prices and availability accept either, or a costco.com product URL; the reviews endpoint needs the product id.

How fresh is the data?

+

Every request reads Costco live at the moment you call it, so prices, stock status, gas prices and the coupon book reflect what Costco shows at that time. Nothing is served from a nightly snapshot.

Can I look up many Costco products at once?

+

Yes. The product endpoint takes up to 20 item numbers or product ids in one call for 1 credit on costco.com and costco.ca, and the prices endpoint takes up to 20 items across up to 10 warehouses in one call.

Which languages and tools are supported?

+

Every endpoint is a plain HTTPS POST with a JSON body, so any language works. Scavio also ships Python and JavaScript SDKs, a remote MCP server at mcp.scavio.dev for AI agents, and an n8n community node, all on the same API key.

Is using Costco data legal?

+

Scavio returns publicly available Costco data and does not access member accounts or order history. You remain responsible for how you use the data, including compliance with Costco's terms. Talk to your own counsel for your specific use case.

Explore more of Scavio

Walmart API

Search, product, reviews, sellers and store-level pricing.

Target API

Search, categories, detail and reviews.

Home Depot API

Search, item detail with promotions, and reviews.

Amazon API

Search, product detail and seller offers.

Google Shopping API

Products, prices and every seller.

Costco API docs

All 13 endpoints with params and real responses.

Start pulling Costco data today

50 free credits on signup, no card. Your first request is a POST with a keyword or a zip code in it.

Get your API keySee pricing
ScavioScavio

One scraper API for every social, search, e-commerce and real estate platform. Built for AI agents.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative
  • Serper Alternative
  • Tavily vs Scavio
  • SerpAPI vs Scavio
  • All alternatives
  • Compare Scavio vs alternatives

Search APIs

  • Google Search API
  • Amazon Product API
  • YouTube API
  • Reddit API
  • Walmart Product API
  • TikTok API
  • Instagram API

Tools

  • All Tools

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy