Sam's Club

List Sam's Club departments and categories

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

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

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "departments": [
      {
        "id": "1444",
        "name": "Grocery",
        "subcategories": [
          {
            "id": "1444",
            "name": "Grocery",
            "type": "browse",
            "url": "https://www.samsclub.com/browse/1444"
          }
        ],
        "type": "browse",
        "url": "https://www.samsclub.com/browse/1444"
      }
    ]
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.