API · Walmart
GET /walmart/categories/{category_id}
The items in a Walmart category, with sort and filters.
| |
|---|
| Request | GET /v1/walmart/categories/{category_id} |
| Operation id | walmart.category.get |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The items in a Walmart category, with sort and filters.
| Name | Type | Required | Description |
|---|
category_id | string | yes | Browse id, e.g. 3944 or 3944_1060825. Example: 3944. |
| Name | Type | Required | Description |
|---|
page | integer | no | Page, from 1. |
sort_by | "best_match" | "price_low" | "price_high" | "best_seller" | "top_rated" | no | best_match (default), price_low, price_high, best_seller, top_rated. One of best_match, price_low, price_high, best_seller, top_rated. |
min_price | number | null | no | |
max_price | number | null | no | |
store_id | string | no | Only items at this Walmart store. |
facet | string | no | Walmart facet filter as in its URLs, e.g. brand:Ninja. |
country | "US" | "CA" | no | US (default) or CA. One of US, CA. |
limit | integer | no | |
| Status | Meaning | Schema |
|---|
200 | A page of the category. | WalmartListing |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The product or category does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Walmart is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
country | string | |
query | string | null | |
category_id | string | null | |
title | string | null | |
page | number | |
max_page | number | null | |
total | number | null | |
items | object[] | |
Errors use one shape everywhere; see Errors for every code and what to do.