---
title: "Walgreens API: US product search, categories as JSON"
description: "Walgreens API for US product search, categories and product details: prices, promotions, UPC, ratings and online stock. 1 credit per successful call."
url: https://perceptlayer.com/apis/walgreens
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / Walgreens

1 credit per call 5 endpoints 17 datapoints 

# Walgreens API

Walgreens API for US product search, categories and product details: prices, promotions, UPC, ratings and online stock. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Walgreens

GET /v1/walgreens/search?query=ibuprofen 

```
{
  "success": true,
  "data": {
    "query": "ibuprofen",
    "results": [
      {
        "product_id": "300448278",
        "sku_id": "400670051",
        "upc": "31191704767",
        "name": "Walgreens Ibuprofen Tablets, Pain Reliever/ Fever Reducer",
        "brand": "Walgreens",
        "size": "50 ea",
        "price": 6.99,
        "currency": "USD",
        "on_sale": false,
        "promotion_text": "Buy 1, Get 1 50% OFF",
        "rating": 4.5,
        "review_count": 42,
        "image": "https://pics.walgreens.com/prodimg/670051/450.jpg",
        "images": [
          "https://pics.walgreens.com/prodimg/670051/450.jpg",
          "https://pics.walgreens.com/prodimg/670051/220.jpg"
        ],
        "url": "https://www.walgreens.com/store/c/walgreens-ibuprofen-tablets,-pain-reliever/fever-reducer/ID=300448278-product",
        "category_ids": {
          "tier1": "359438",
          "tier2": "360547",
          "tier3": "361471"
        },
        "shipping_enabled": true
      },
      {
        "product_id": "300405645",
        "sku_id": "sku305368",
        "upc": "30573015040",
        "name": "Advil Pain Reliever and Fever Reducer, Ibuprofen 200mg Tablets",
        "brand": "Advil",
        "size": "100 ea",
        "price": 12.49,
        "currency": "USD",
        "on_sale": false,
        "promotion_text": "Extra 20% off eligible items* sitewide with code CYBER20",
        "rating": 4.5,
        "review_count": 8970,
        "image": "https://pics.walgreens.com/prodimg/10019/450.jpg",
        "images": [
          "https://pics.walgreens.com/prodimg/10019/450.jpg",
          "https://pics.walgreens.com/prodimg/10019/220.jpg"
        ],
        "url": "https://www.walgreens.com/store/c/advil-pain-reliever-and-fever-reducer,-ibuprofen-200mg-tablets/ID=300405645-product?skuId=sku305368",
        "category_ids": {
          "tier1": "359438",
          "tier2": "360547",
          "tier3": "361471"
        },
        "shipping_enabled": true
      },
      {
        "product_id": "300418479",
        "sku_id": "sku305423",
        "upc": "30573016940",
        "name": "Advil Liqui-Gels Pain Reliever and Fever Reducer, Ibuprofen 200 mg",
        "brand": "Advil",
        "size": "80 ea",
        "price": 13.99,
        "currency": "USD",
        "on_sale": false,
        "promotion_text": "Extra 20% off eligible items* sitewide with code CYBER20",
        "rating": 4.5,
        "review_count": 1938,
        "image": "https://pics.walgreens.com/prodimg/37740/450.jpg",
        "images": [
          "https://pics.walgreens.com/prodimg/37740/450.jpg",
          "https://pics.walgreens.com/prodimg/37740/220.jpg"
        ],
        "url": "https://www.walgreens.com/store/c/advil-liqui-gels-pain-reliever-and-fever-reducer,-ibuprofen-200-mg/ID=300418479-product",
        "category_ids": {
          "tier1": "359438",
          "tier2": "360547",
          "tier3": "361471"
        },
        "shipping_enabled": true
      }
    ],
    "pagination": {
      "current_page": 1,
      "per_page": 72,
      "returned": 72,
      "has_next_page": true
    },
    "sort_by": "relevance",
    "sort_options": [
      "relevance",
      "price_low",
      "price_high"
    ],
    "store_id": "15196"
  },
  "meta": {
    "endpoint_family": "search",
    "duration_ms": 1007,
    "request_id": "req_3ab50b1b8b794a34a49404aaa67da58e",
    "credits_charged": 1,
    "credits_remaining": 4804
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | product\_id string | sku\_id string | upc string | name string | brand string | size string | price number | currency string | on\_sale boolean | promotion\_text string | rating number | review\_count integer | image url | images string\[\] | url url | category\_ids object | shipping\_enabled boolean |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 300448278 | 400670051 | 31191704767 | Walgreens Ibuprofen Tablets, Pain Reliever/ Fever Reducer | Walgreens | 50 ea | 6.99 | USD | false | Buy 1, Get 1 50% OFF | 4.5 | 42 | https://pics.walgreens.com/prodimg/670051/450.jpg | \[2 items\] | https://www.walgreens.com/store/c/walgreens-ibuprofen-tablets,-pain-reliever/fever-reducer/ID=300448278-product | {3 fields} | true |
| 2 | 300405645 | sku305368 | 30573015040 | Advil Pain Reliever and Fever Reducer, Ibuprofen 200mg Tablets | Advil | 100 ea | 12.49 | USD | false | Extra 20% off eligible items\* sitewide with code CYBER20 | 4.5 | 8970 | https://pics.walgreens.com/prodimg/10019/450.jpg | \[2 items\] | https://www.walgreens.com/store/c/advil-pain-reliever-and-fever-reducer,-ibuprofen-200mg-tablets/ID=300405645-product?skuId=sku305368 | {3 fields} | true |
| 3 | 300418479 | sku305423 | 30573016940 | Advil Liqui-Gels Pain Reliever and Fever Reducer, Ibuprofen 200 mg | Advil | 80 ea | 13.99 | USD | false | Extra 20% off eligible items\* sitewide with code CYBER20 | 4.5 | 1938 | https://pics.walgreens.com/prodimg/37740/450.jpg | \[2 items\] | https://www.walgreens.com/store/c/advil-liqui-gels-pain-reliever-and-fever-reducer,-ibuprofen-200-mg/ID=300418479-product | {3 fields} | true |

Recorded from our API · 3 items shown · 17 datapoints per item GET /v1/walgreens/search?query=ibuprofen

17 datapoints

### Identity

-   product\_id string
-   sku\_id string
-   name string
-   brand string
-   category\_ids object

### Contact

-   url url

### Reputation

-   rating number
-   review\_count integer
-   image url
-   images string\[\]

### Price

-   price number
-   currency string

### Other

-   upc string
-   size string
-   on\_sale boolean
-   promotion\_text string
-   shipping\_enabled boolean

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/walgreens/search?query=ibuprofen" \
  -H "X-API-Key: $API_KEY"
```

Walgreens · 5 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/walgreens/autocomplete`](https://perceptlayer.com/apis/walgreens/autocomplete) | `query` | `value` `type` `id` | 1 credit |
| [GET `/v1/walgreens/categories`](https://perceptlayer.com/apis/walgreens/categories) | none | `id` `name` | 1 credit |
| [GET `/v1/walgreens/category`](https://perceptlayer.com/apis/walgreens/category) | `category_id` +3 optional | `category_id` `results` `pagination` | 1 credit |
| [GET `/v1/walgreens/product`](https://perceptlayer.com/apis/walgreens/product) | none +2 optional | `product_id` `sku_id` `gtin` `name` `brand` `size` +12 more | 1 credit |
| [GET `/v1/walgreens/search`](https://perceptlayer.com/apis/walgreens/search) | `query` +7 optional | `results` `pagination` `sort_by` `sort_options` `store_id` | 1 credit |

Overview

## About the Walgreens API

## What you can get

The Walgreens API returns Walgreens product data from the US as JSON through 5 endpoints. Prices are in USD.

-   **Search:** `search` takes a `query`, with `page`, `sort` ( `relevance`, `price_low`, `price_high` or `rating_high`), `brand`, `min_price`, `max_price` and `category`. `autocomplete` takes a partial `query`.
-   **Categories:** `categories` lists top categories. `category` takes a `category_id`, with `offset`.
-   **Products:** `product` takes an `id` or a product `url`.

The recorded search for "ibuprofen" returns `results` (72 per page, with `has_next_page` true), each with `product_id`, `sku_id`, `upc`, `name`, `brand`, `size`, `price`, `currency`, `on_sale`, `promotion_text`, `rating`, `review_count`, `image`, `url`, `category_ids` and `shipping_enabled`. The first result, Walgreens Ibuprofen Tablets in a 50-count, was 6.99 USD with the promotion "Buy 1, Get 1 50% OFF".

## How a call works

Search, then look up: `GET /v1/walgreens/search?query=ibuprofen` with your key in the `X-API-Key` header returns each product's `product_id`. Pass it to `product` as `id`, for example `GET /v1/walgreens/product?id=300448278`, which adds `gtin` and `availability`. Page search with `page` and categories with `offset`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track Walgreens prices and promotions for a list of products

`Use the Walgreens API to track Walgreens prices and promotions for a list of products` 

### Compare store-brand and name-brand prices for one product type

`Use the Walgreens API to compare store-brand and name-brand prices for one product type` 

### Match products to your catalogue by UPC or GTIN

`Use the Walgreens API to match products to your catalogue by UPC or GTIN` 

### Check whether a product is in stock online

`Use the Walgreens API to check whether a product is in stock online` 

FAQ

## Questions

**How much does the Walgreens API cost?**

Each successful call costs one credit, whichever endpoint you call, and each page of results is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Are reviews returned?**

Only as a \`rating\` and \`review\_count\` on each product. There is no endpoint for review texts.

**Does it show sale prices?**

Each product carries \`price\`, \`on\_sale\` and \`promotion\_text\`, so offers such as buy-one-get-one appear as text alongside the price.

**Do I need a Walgreens account?**

No. You call this Walgreens API with your Perceptlayer key in the \`X-API-Key\` header, with no Walgreens login.

**Is this the official Walgreens API?**

No. Perceptlayer is an independent service and is not affiliated with Walgreens. It returns Walgreens data as JSON with a Perceptlayer key, so there is no Walgreens developer account, app review or partner approval to get first. It only reads data: if Walgreens has an official API and you need to act on your own Walgreens account, such as posting, managing orders or reading private data, use that one.

**Should I build a Walgreens scraper instead?**

You can, but a Walgreens scraper is code you maintain: page changes break it, requests get blocked, and Walgreens's terms govern how you collect data. The Walgreens API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Walgreens API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
