---
title: "List Sam's Club departments and categories"
method: GET
path: "/samsclub/departments"
tags: ["Sam's Club"]
---

# List Sam's Club departments and categories

`GET /samsclub/departments`

## Request

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

Returns Sam's Club's full department/category taxonomy, as shown on its own "All Departments" page: every top-level department with its own subcategory list. Each link's type is "browse" (pairs directly with GET /samsclub/category), "cp" (a content/landing page that does not reliably carry a product grid), or empty (an unrecognized link shape).

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SamsclubDepartmentsResponseDoc
  - `code` integer
  - `data` SamsclubDepartmentsResponse
    - `departments` SamsclubDepartment[]
      - `id` string
      - `image_url` string
      - `name` string
      - `subcategories` SamsclubDepartmentLink[]
        - `id` string
        - `name` string
        - `type` string
        - `url` string
      - `type` string
      - `url` string
    - `fetched_at` string
    - `source_url` string
  - `msg` string

## Other responses

- `429`: Too Many Requests
- `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)
