# Walgreens Category Shelf API Documentation

<p>Get one Walgreens category shelf by category id. Each row has the product id, name, brand, USD price, rating, review count and image. The offset may overlap a neighbouring shelf, so ids are deduplicated and the result is never presented as a distinct page. One credit per successful request; an empty result and every error cost nothing.</p>

- **Documentation:** [https://scrappa.co/docs/walgreens-api/walgreens_category](https://scrappa.co/docs/walgreens-api/walgreens_category)
- **API group:** Walgreens API
- **Endpoint:** `GET https://scrappa.co/api/walgreens/category`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `category_id` | string | Yes | Category id from the categories endpoint, e.g. 350006. Also accepted as N. |
| `offset` | integer | No | Row offset, also accepted as No, default 0. |

## Example response

```json
{
    "data": {
        "results": [
            {
                "name": "Ibuprofen 200 mg Tablets",
                "brand": "Walgreens",
                "image": "https://pics.walgreens.com/prodimg/300429191/450.jpg",
                "price": 9.99,
                "rating": 4.5,
                "currency": "USD",
                "product_id": "300429191",
                "review_count": 120
            }
        ],
        "pagination": {
            "returned": 70,
            "has_next_page": false,
            "offset_is_cursor": false,
            "requested_offset": 0
        },
        "category_id": "350006"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A numeric category id is required. Not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
