---
title: "Get Costco category facets"
method: GET
path: "/costco/categories"
tags: ["Costco"]
---

# Get Costco category facets

`GET /costco/categories`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/costco/categories`
- Auth: API key in header `x-api-key`

Returns Costco category slugs and product counts relevant to an optional search term, each slug usable directly with GET /costco/search's category filter. Public data sourced from Costco's own search backend.

## Query parameters

- `query` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- CostcoCategoriesResponseDoc
  - `code` integer
  - `data` CostcoCategoriesResponse
    - `categories` CostcoCategory[]
      - `count` integer
      - `name` string
      - `slug` string
    - `query` string
  - `msg` string

## Other responses

- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/028417aa35bb?raw)
