Skip to content
Scrappa Get API key
Walgreens API 1 credit / request

Walgreens Category Shelf API Documentation

GET https://scrappa.co/api/walgreens/category

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.

Walgreens Category Shelf API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/walgreens/category
Auth header
x-api-key
Cost
1 credit / request
category_id = 1234567890
Response preview
200 OK
{
    "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
            }
        ],
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

category_id string Required

Category id from the categories endpoint, e.g. 350006. Also accepted as N.

Example value 1234567890
offset integer Optional

Row offset, also accepted as No, default 0.

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A numeric category id is required. Not billable.

{
    "errors": {
        "category_id": [
            "The category id is a number from the categories endpoint, e.g. 350006."
        ]
    },
    "message": "The request validation failed"
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.