Discover/costco.com API
live

costco.com APIcostco.com

Search Costco's product catalog, fetch member reviews, browse savings deals, and find warehouse locations via a structured API with 8 endpoints.

Endpoints
8
Updated
11d ago
Try it
Number of results per page
Search keyword (e.g., 'television', 'organic coffee')
Pagination offset (0-based)
Sort order: price_low_high, price_high_low, top_rated, best_match
api.parse.bot/scraper/1802ebc9-74ad-4148-ab24-013ecb147fa5/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/1802ebc9-74ad-4148-ab24-013ecb147fa5/search_products?rows=24&query=television&start=0&sort_by=price_low_high' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 8 totalclick to expand

Search for products by keyword with pagination and sorting. Returns product listings with pricing, ratings, images, and availability information.

Input
ParamTypeDescription
rowsintegerNumber of results per page
queryrequiredstringSearch keyword (e.g., 'television', 'organic coffee')
startintegerPagination offset (0-based)
sort_bystringSort order: price_low_high, price_high_low, top_rated, best_match
Response
{
  "type": "object",
  "fields": {
    "facets": "object containing available filter facets (price, brand, category, ratings)",
    "fusion": "object with query metadata (requestedSort, fusionQueryId)",
    "response": "object containing docs array of product listings and numFound total count"
  },
  "sample": {
    "data": {
      "facets": {
        "Brand_attr": {
          "buckets": []
        },
        "item_location_pricing_salePrice": {
          "buckets": []
        }
      },
      "fusion": {
        "fusionQueryId": "sAqzOBh5Lv",
        "requestedSort": "item_location_pricing_salePrice asc"
      },
      "response": {
        "docs": [
          {
            "image": "https://bfasset.costco-static.com/...",
            "item_name": "TCL 55\" Class - Q77K Series - 4K UHD QLED Smart TV",
            "item_number": "9555677",
            "item_ratings": 4.5,
            "item_location_pricing_salePrice": 329.99
          }
        ],
        "start": 0,
        "numFound": 171
      }
    },
    "status": "success"
  }
}

About the costco.com API

The Costco.com API covers 8 endpoints that expose product search, category browsing, detailed product data, member reviews, warehouse locations, and current promotions. The search_products endpoint returns a response.docs array with pricing, ratings, and availability, while get_product_details accepts comma-separated item numbers and returns priceData, description, and attributes per product. Specialized endpoints cover precious metals and pharmacy/health products as discrete query surfaces.

Product Search and Category Browsing

The search_products endpoint accepts a required query string plus optional rows, start, and sort_by parameters (price_low_high, price_high_low, top_rated, best_match). It returns a response object containing a docs array of product listings and a numFound count, alongside a facets object that groups available filters by price, brand, category, and ratings. The get_category_listing endpoint works identically but is driven by a category_path string such as /televisions.html or /grocery-household.html instead of a keyword.

Product Details and Member Reviews

get_product_details takes one or more item numbers (comma-separated, sourced from search result docs) and returns data.products.catalogData, which includes itemNumber, priceData, description, attributes, and additionalFieldData per item. Reviews are retrieved separately through get_product_reviews, which requires the product_id — specifically the group_id field from search results, not the item_number. Review objects include Rating, Title, ReviewText, and UserNickname, along with a TotalResults count and an Includes object covering related authors, products, and comments.

Warehouse Locations and Deals

get_warehouse_locations accepts latitude and longitude coordinates and an optional limit, returning a salesLocations array with fields for salesLocationId, name, distance, address, phone, hours, and services. The get_savings_deals endpoint surfaces products with active discounts using the same docs/numFound/facets response shape as general search. Two additional focused endpoints — get_gold_and_precious_metals and get_pharmacy_medications — query specific product verticals and share the same response structure, with get_pharmacy_medications accepting an optional query parameter for keyword filtering within health categories.

Common use cases
  • Monitor price changes on specific items by polling get_product_details with tracked item numbers and comparing priceData over time.
  • Build a Costco deal aggregator by paginating through get_savings_deals and filtering the returned docs by discount depth or category.
  • Find the nearest Costco warehouse with available services by querying get_warehouse_locations with a user's GPS coordinates.
  • Aggregate member sentiment on a product category by retrieving reviews via get_product_reviews and analyzing Rating and ReviewText fields.
  • Populate a price-comparison tool with Costco listings by running search_products queries and extracting pricing and availability from response.docs.
  • Track Costco's precious metals inventory and spot-price positioning by polling get_gold_and_precious_metals at regular intervals.
  • Filter and display health supplement options by querying get_pharmacy_medications with keywords like 'probiotic' or 'vitamin D' and surfacing facets for user filtering.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Costco have an official public developer API?+
No. Costco does not publish a public developer API or offer API keys for third-party use. This Parse API provides structured access to Costco.com data without requiring a Costco developer account.
What is the difference between `product_id` and `item_number`, and which does `get_product_reviews` use?+
item_number is the SKU-level identifier returned in search result docs and used by get_product_details. product_id for reviews corresponds to the group_id field in search results — a catalog-level identifier that may group multiple item variants. get_product_reviews requires group_id, not item_number; passing an item_number will not return results.
Does the API return in-warehouse stock levels or only online availability?+
The product endpoints return availability information as present in the product listing data, but warehouse-level real-time inventory by location is not currently exposed as a distinct field. get_warehouse_locations returns services per store but not per-SKU stock. You can fork this API on Parse and revise it to add an endpoint targeting warehouse-specific inventory if that data surface is available.
Can I filter `get_product_reviews` by star rating or date?+
The endpoint accepts limit and offset for pagination but does not currently expose sort or filter parameters for rating value or review date. The full TotalResults count and paginated Results array are returned; client-side filtering on Rating is possible with the returned data. You can fork this API on Parse and revise the endpoint to add server-side rating or date filters if the underlying data surface supports them.
Does the API cover Costco's travel, auto-buying, or services offerings?+
Not currently. The 8 endpoints cover merchandise product search and details, member reviews, warehouse locations, savings deals, precious metals, and pharmacy/health products. Costco Travel, the auto program, and non-merchandise services are not included. You can fork this API on Parse and revise it to add endpoints for those verticals.
Page content last updated . Spec covers 8 endpoints from costco.com.
Related APIs in EcommerceSee all →
mouser.com API
mouser.com API
bigbasket.com API
Browse and search BigBasket's online grocery catalog. Retrieve product details, pricing, stock availability, category trees, search suggestions, homepage promotions, and delivery coverage — all in one API.
woocommerce.com API
Browse and search thousands of WooCommerce extensions, themes, and business services from the official marketplace while accessing detailed product information, user reviews, and ratings. Integrate marketplace data, blog content, and documentation directly into your applications to help users discover and learn about WooCommerce solutions.
bilbasen.dk API
Search Denmark's largest car marketplace to find vehicles by make and model, then access detailed pricing and technical specifications including emissions, weight, MSRP, battery size, and equipment details. Get comprehensive car listings and full specs to compare vehicles on Bilbasen.dk.
leroymerlin.fr API
Search and browse Leroy Merlin France's complete product catalog to find items by category, view pricing, product details, and compare offerings from Leroy Merlin and their online partners. Access real-time product information including names, IDs, URLs, and seller details to help you discover and evaluate home improvement and DIY products.
lowes.com API
Search and browse products from Lowe's, including product listings by category, detailed product information, and pricing. Retrieve comprehensive details on specific items to compare options and make informed purchasing decisions.
vivino.com API
Search and discover wines across thousands of options while accessing detailed information like user reviews, pricing, winery profiles, and food pairing recommendations. Explore grape varieties, compare wines side-by-side, and find the perfect bottle based on ratings and availability.
lazada.co.th API
Search for products and browse categories on Lazada Thailand to find detailed information like prices, descriptions, and availability. Discover items by keyword or category to compare specifications and make informed purchasing decisions.