---
title: "Walmart API: Categories | Perceptlayer"
description: "Categories from Walmart as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/walmart/categories
---

[APIs](https://perceptlayer.com/apis) / [Walmart](https://perceptlayer.com/apis/walmart) / Categories

# Walmart: Categories

Categories from Walmart as JSON. 1 credit per successful call.

GET `/v1/walmart/categories`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | Optional | Up to 100 characters |
| `page` | integer | Optional | Any |

## Example request

Walmart

GET /v1/walmart/categories 

```
{
  "success": true,
  "data": {
    "search_metadata": {
      "page": 1,
      "total_items": 100
    },
    "categories": [
      {
        "slug": "baseball-socks",
        "category_id": "8502411",
        "url": "https://www.walmart.com/cp/baseball-socks/8502411"
      },
      {
        "slug": "calbee-north-america-llc",
        "category_id": "5702360",
        "url": "https://www.walmart.com/cp/calbee-north-america-llc/5702360"
      },
      {
        "slug": "coleman-camping",
        "category_id": "6320218",
        "url": "https://www.walmart.com/cp/coleman-camping/6320218"
      }
    ],
    "pagination": {
      "current_page": 1,
      "max_page": 125,
      "total_results": 12430,
      "has_more": true
    }
  },
  "meta": {
    "endpoint_family": "categories",
    "duration_ms": 0,
    "attempts": 0
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 12 Nov 2026 and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/walmart?try=categories#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 3 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `search_metadata` | object |
| `categories` | object\[\] |
| `pagination` | object |
