APIs / Marketplaces / Loblaws

1 credit per call4 endpoints23 datapointsChecked working 6 Dec 2026

Loblaws API

Loblaws API for Canadian grocery search and products by store, with CAD prices, sale prices, unit prices and store lists. 1 credit per successful call.

Loblaws
GET/v1/loblaws/search?query=milk&store_id=1099
{
  "success": true,
  "data": {
    "query": "milk",
    "store_id": "1099",
    "banner": "loblaw",
    "language": "en",
    "page": 1,
    "per_page": 48,
    "from": 1,
    "items": [
      {
        "position": 1,
        "id": "21731288_EA",
        "article_number": "21731288",
        "uom": "EA",
        "link": "https://www.loblaws.ca/protein-18g-lactose-free-regular-flavour/p/21731288_EA",
        "brand": "Silk",
        "title": "Protein 18g, Lactose-Free, Regular Flavour",
        "description": "<p>Fuel your mornings* with Silk Protein, a soy based beverage designed for high-protein performance with 6 g of sugar per 250 ml serving.This 1.42 L format delivers 18 g of protein, 2 g of fibre, and 10 essential nutrients including a sour…",
        "currency": "CAD",
        "price": 7.49,
        "display_price": "$7.49",
        "unit_price": 0.53,
        "unit_price_unit": "100ml",
        "package_sizing": "1.42 l, $0.53/100ml",
        "package_amount": 1.42,
        "package_unit": "l",
        "pricing_unit": "ea",
        "pricing_unit_type": "SOLD_BY_EACH",
        "pricing_unit_interval": 1,
        "offers": {
          "offer_type": "OG",
          "offer_id": "OG"
        },
        "images": [
          "https://digital.loblaws.ca/PCX/21731288_EA/en/1/21731288_en_front_v1_1200.png"
        ],
        "is_sponsored": true,
        "badges": [
          {
            "text": "Sponsored",
            "id": "SPONSORED"
          }
        ]
      },
      {
        "position": 2,
        "id": "20188873_EA",
        "article_number": "20188873",
        "uom": "EA",
        "link": "https://www.loblaws.ca/2-milk/p/20188873_EA",
        "brand": "Neilson",
        "title": "2% Milk",
        "description": "Fresh, wholesome milk… naturally from Neilson.Since 1893, Neilson has stood for high quality dairy products. Neilson has always been committed to using the best ingredients, people and processes to produce great tasting quality milk you can…",
        "currency": "CAD",
        "price": 6.44,
        "display_price": "$6.44",
        "unit_price": 0.16,
        "unit_price_unit": "100ml",
        "package_sizing": "4 l, $0.16/100ml",
        "package_amount": 4,
        "package_unit": "l",
        "pricing_unit": "ea",
        "pricing_unit_type": "SOLD_BY_EACH",
        "pricing_unit_interval": 1,
        "offers": {
          "offer_type": "OG",
          "offer_id": "OG"
        },
        "images": [
          "https://digital.loblaws.ca/PCX/20188873_EA/en/1/20188873_en_front_1200.png"
        ],
        "badges": [
          {
            "text": "Prepared in Canada",
            "id": "PREPARED_IN_CANADA"
          }
        ]
      },
      {
        "position": 3,
        "id": "21731300_EA",
        "article_number": "21731300",
        "uom": "EA",
        "link": "https://www.loblaws.ca/protein-18g-lactose-free-chocolate-flavour/p/21731300_EA",
        "brand": "Silk",
        "title": "Protein 18g, Lactose-Free, Chocolate Flavour",
        "description": "<p>Enjoy Silk's soy-based Protein Chocolate beverage, in a convenient 1.42 L format. Each 250 ml serving delivers 18 g of protein, 12 g of sugar, and 2 g of fibre, with a smooth chocolate flavour and no dairy.Made with cane sugar, this plan…",
        "currency": "CAD",
        "price": 7.49,
        "display_price": "$7.49",
        "unit_price": 0.53,
        "unit_price_unit": "100ml",
        "package_sizing": "1.42 l, $0.53/100ml",
        "package_amount": 1.42,
        "package_unit": "l",
        "pricing_unit": "ea",
        "pricing_unit_type": "SOLD_BY_EACH",
        "pricing_unit_interval": 1,
        "offers": {
          "offer_type": "OG",
          "offer_id": "OG"
        },
        "images": [
          "https://digital.loblaws.ca/PCX/21731300_EA/en/1/21731300_en_front_v1_1200.png"
        ],
        "is_sponsored": true,
        "badges": [
          {
            "text": "Sponsored",
            "id": "SPONSORED"
          }
        ]
      }
    ],
    "filtered_count": 54,
    "search_term": "milk",
    "search_results_count": 128
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_3515fe4c73b642c2a001c09e1d532211",
    "credits_charged": 1,
    "credits_remaining": 4894
  }
}
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.

#positionintegeridstringarticle_numberstringuomstringlinkurlbrandstringtitlestringdescriptionstringcurrencystringpricenumberdisplay_pricestringunit_pricenumberunit_price_unitstringpackage_sizingstringpackage_amountnumberpackage_unitstringpricing_unitstringpricing_unit_typestringpricing_unit_intervalintegeroffersobjectimagesstring[]is_sponsoredbooleanbadgesobject[]
1121731288_EA21731288EAhttps://www.loblaws.ca/protein-18g-lactose-free-regular-flavour/p/21731288_EASilkProtein 18g, Lactose-Free, Regular Flavour<p>Fuel your mornings* with Silk Protein, a soy based beverage designed for high-protein performance with 6 g of sugar per 250 ml serving.This 1.42 L format delivers 18 g of protein, 2 g of fibre, and 10 essential nutrients including a sour…CAD7.49$7.490.53100ml1.42 l, $0.53/100ml1.42leaSOLD_BY_EACH1{2 fields}[1 item]true[1 item]
2220188873_EA20188873EAhttps://www.loblaws.ca/2-milk/p/20188873_EANeilson2% MilkFresh, wholesome milk… naturally from Neilson.Since 1893, Neilson has stood for high quality dairy products. Neilson has always been committed to using the best ingredients, people and processes to produce great tasting quality milk you can…CAD6.44$6.440.16100ml4 l, $0.16/100ml4leaSOLD_BY_EACH1{2 fields}[1 item]—[1 item]
3321731300_EA21731300EAhttps://www.loblaws.ca/protein-18g-lactose-free-chocolate-flavour/p/21731300_EASilkProtein 18g, Lactose-Free, Chocolate Flavour<p>Enjoy Silk's soy-based Protein Chocolate beverage, in a convenient 1.42 L format. Each 250 ml serving delivers 18 g of protein, 12 g of sugar, and 2 g of fibre, with a smooth chocolate flavour and no dairy.Made with cane sugar, this plan…CAD7.49$7.490.53100ml1.42 l, $0.53/100ml1.42leaSOLD_BY_EACH1{2 fields}[1 item]true[1 item]

Recorded from our API · 3 items shown · 23 datapoints per itemGET /v1/loblaws/search?query=milk&store_id=1099

23 datapoints

Identity

  • idstring
  • brandstring
  • titlestring
  • pricing_unit_typestring

Contact

  • linkurl

Reputation

  • imagesstring[]
  • badgesobject[]

Price

  • currencystring
  • pricenumber
  • display_pricestring
  • unit_pricenumber
  • unit_price_unitstring
  • package_amountnumber

Other

  • positioninteger
  • article_numberstring
  • uomstring
  • descriptionstring
  • package_sizingstring
  • package_unitstring
  • pricing_unitstring
  • pricing_unit_intervalinteger
  • offersobject
  • is_sponsoredboolean

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/loblaws/search?query=milk&store_id=1099" \
  -H "X-API-Key: $API_KEY"

Loblaws · 4 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/loblaws/autocomplete
querystore_id+2 optional
termstore_idbannerlanguageitems
1 credit
GET/v1/loblaws/product
idstore_id+2 optional
store_idbannerlanguageproduct
1 credit
GET/v1/loblaws/search
querystore_id+6 optional
store_idbannerlanguagefromitemsfiltered_count+2 more
1 credit
GET/v1/loblaws/stores
none+1 optional
idnamebanner_idvisibleaddress
1 credit

Overview

About the Loblaws API

What you can get

The Loblaws API returns Loblaws and No Frills grocery data for Canada as JSON through 4 endpoints. Each takes a banner (loblaw or nofrills), and the product endpoints a language (en or fr). Prices are in CAD and set per store.

  • Search: search takes a query and a store_id, with page, price_min, price_max and sort (price_asc, price_desc or title_asc). autocomplete takes a query and a store_id.
  • Products: product takes a product id (such as 20160571_EA) and a store_id.
  • Stores: stores lists the banner's stores with their id, name and postal code.

The recorded search for "milk" at store 1099 returns items, each with id, article_number, brand, title, price, regular_price, was_price, on_sale, display_price, unit_price, unit_price_unit, package_sizing, images, is_sponsored and badges, 48 to a page, plus search_results_count (132). The first result, Lactantia Purfiltre 1% milk, was on sale at 6.00 CAD, down from 6.35, or 0.30 per 100ml.

How a call works

Pick a store, search, then look up: GET /v1/loblaws/search?query=milk&store_id=1099 with your key in the X-API-Key header returns each product's id; pass it with the same store_id to product. Store ids come from stores. Ask for the next page with page. Every successful call costs 1 credit; failed calls cost nothing.

MarketplacesJSONRESTMCP

More marketplaces APIs

Use cases

Track grocery prices and sales at a specific Loblaws or No Frills store

Use the Loblaws API to track grocery prices and sales at a specific Loblaws or No Frills store

Compare unit prices per 100ml or per kg across brands

Use the Loblaws API to compare unit prices per 100ml or per kg across brands

Compare the same product's price between two stores

Use the Loblaws API to compare the same product's price between two stores

Spot sponsored placements in search results

Use the Loblaws API to spot sponsored placements in search results

FAQ

Questions

How much does the Loblaws API cost?

Each successful call costs 1 credit, on every endpoint, and each search page is one call. Failed calls cost nothing.

Why do I need a store_id?

Prices are set per store, so `search`, `autocomplete` and `product` each take one. Find store ids with `stores`; the recordings used store 1099.

Which banners are covered?

Loblaws and No Frills, set with `banner` (`loblaw` or `nofrills`). `loblaw` is the default.

Do I need a Loblaws or PC Optimum account?

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

Is this the official Loblaws API?

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

Should I build a Loblaws scraper instead?

You can, but a Loblaws scraper is code you maintain: page changes break it, requests get blocked, and Loblaws's terms govern how you collect data. The Loblaws API gives you 4 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 Loblaws API with 100 free credits

No credit card. Failed calls are never billed.