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

Walgreens Product Search API Documentation

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

Search public Walgreens OTC products. Each row has the product id, name, brand, size, USD price, promotion text, rating, review count, availability, image and product url. Filter by brand, price range and category. Sort by price or rating. A numeric query returns that one product. Rows that violate a filter are never returned and overlapping ids are deduplicated. Filters and sort narrow a single page, not the whole catalog. One credit per successful search; an empty result and every error cost nothing.

Walgreens Product Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/walgreens/search
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "ibuprofen",
        "results": [
            {
                "url": "https://www.walgreens.com/store/c/ibuprofen/ID=300429191-product",
                "name": "Ibuprofen 200 mg Tablets",
                "size": "100 ct",
                "brand": "Walgreens",
                "image": "https://pics.walgreens.com/prodimg/300429191/450.jpg",
                "price": 9.99,
                "rating": 4.5,
                "on_sale": false,
                "currency": "USD",
...

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.

6 optional filters available.

query string Required

Search text or a numeric product id, 1 to 200 characters. Example: ibuprofen.

Example value coffee shops
page integer Optional

Page number, also accepted as p, default 1.

Example value 1
sort string Optional

relevance, price_low, price_high, rating_high. Default: relevance.

Example value relevance
brand string Optional

Brand name filter.

Example value example
min_price number Optional

Lowest USD price. Send it together with max_price.

Example value 10
max_price number Optional

Highest USD price. Send it together with min_price.

Example value 10
category string Optional

Category id from the categories endpoint, e.g. 350006.

Example value example

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": {
        "query": "ibuprofen",
        "results": [
            {
                "url": "https://www.walgreens.com/store/c/ibuprofen/ID=300429191-product",
                "name": "Ibuprofen 200 mg Tablets",
                "size": "100 ct",
                "brand": "Walgreens",
                "image": "https://pics.walgreens.com/prodimg/300429191/450.jpg",
                "price": 9.99,
                "rating": 4.5,
                "on_sale": false,
                "currency": "USD",
                "discount": null,
                "product_id": "300429191",
                "store_price": null,
                "availability": "find_at_store",
                "review_count": 120,
                "promotion_text": null
            }
        ],
        "sort_by": "relevance",
        "store_id": "15196",
        "pagination": {
            "per_page": 72,
            "returned": 1,
            "current_page": 1,
            "has_next_page": true
        },
        "sort_options": [
            "relevance",
            "price_low",
            "price_high",
            "rating_high"
        ]
    },
    "success": true
}

Errors

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

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "query": [
            "A search text or product id is required, e.g. ibuprofen."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

Walgreens could not be reached or refused the request. Not billable.

{
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Walgreens is temporarily unavailable. Please retry."
    },
    "success": false
}

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.