APIs / Marketplaces / Walgreens

1 credit per call5 endpoints17 datapointsChecked working 6 Dec 2026

Walgreens API

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

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 OKJSONX-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_idstringsku_idstringupcstringnamestringbrandstringsizestringpricenumbercurrencystringon_salebooleanpromotion_textstringratingnumberreview_countintegerimageurlimagesstring[]urlurlcategory_idsobjectshipping_enabledboolean
130044827840067005131191704767Walgreens Ibuprofen Tablets, Pain Reliever/ Fever ReducerWalgreens50 ea6.99USDfalseBuy 1, Get 1 50% OFF4.542https://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
2300405645sku30536830573015040Advil Pain Reliever and Fever Reducer, Ibuprofen 200mg TabletsAdvil100 ea12.49USDfalseExtra 20% off eligible items* sitewide with code CYBER204.58970https://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
3300418479sku30542330573016940Advil Liqui-Gels Pain Reliever and Fever Reducer, Ibuprofen 200 mgAdvil80 ea13.99USDfalseExtra 20% off eligible items* sitewide with code CYBER204.51938https://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 itemGET /v1/walgreens/search?query=ibuprofen

17 datapoints

Identity

  • product_idstring
  • sku_idstring
  • namestring
  • brandstring
  • category_idsobject

Contact

  • urlurl

Reputation

  • ratingnumber
  • review_countinteger
  • imageurl
  • imagesstring[]

Price

  • pricenumber
  • currencystring

Other

  • upcstring
  • sizestring
  • on_saleboolean
  • promotion_textstring
  • shipping_enabledboolean

Playground

Run this API

cURLshell
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.

EndpointRequired parametersReturnsCost
GET/v1/walgreens/autocomplete
query
valuetypeid
1 credit
GET/v1/walgreens/categories
none
idname
1 credit
GET/v1/walgreens/category
category_id+3 optional
category_idresultspagination
1 credit
GET/v1/walgreens/product
none+2 optional
product_idsku_idgtinnamebrandsize+12 more
1 credit
GET/v1/walgreens/search
query+7 optional
resultspaginationsort_bysort_optionsstore_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.

MarketplacesJSONRESTMCP

More marketplaces APIs

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.