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.
{
"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
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | positioninteger | idstring | article_numberstring | uomstring | linkurl | brandstring | titlestring | descriptionstring | currencystring | pricenumber | display_pricestring | unit_pricenumber | unit_price_unitstring | package_sizingstring | package_amountnumber | package_unitstring | pricing_unitstring | pricing_unit_typestring | pricing_unit_intervalinteger | offersobject | imagesstring[] | is_sponsoredboolean | badgesobject[] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 21731288_EA | 21731288 | EA | https://www.loblaws.ca/protein-18g-lactose-free-regular-flavour/p/21731288_EA | Silk | Protein 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… | CAD | 7.49 | $7.49 | 0.53 | 100ml | 1.42 l, $0.53/100ml | 1.42 | l | ea | SOLD_BY_EACH | 1 | {2 fields} | [1 item] | true | [1 item] |
| 2 | 2 | 20188873_EA | 20188873 | EA | https://www.loblaws.ca/2-milk/p/20188873_EA | Neilson | 2% Milk | 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… | CAD | 6.44 | $6.44 | 0.16 | 100ml | 4 l, $0.16/100ml | 4 | l | ea | SOLD_BY_EACH | 1 | {2 fields} | [1 item] | — | [1 item] |
| 3 | 3 | 21731300_EA | 21731300 | EA | https://www.loblaws.ca/protein-18g-lactose-free-chocolate-flavour/p/21731300_EA | Silk | Protein 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… | CAD | 7.49 | $7.49 | 0.53 | 100ml | 1.42 l, $0.53/100ml | 1.42 | l | ea | SOLD_BY_EACH | 1 | {2 fields} | [1 item] | true | [1 item] |
[
{
"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"
}
]
}
]position,id,article_number,uom,link,brand,title,description,currency,price,display_price,unit_price,unit_price_unit,package_sizing,package_amount,package_unit,pricing_unit,pricing_unit_type,pricing_unit_interval,offers,images,is_sponsored,badges
1,21731288_EA,21731288,EA,https://www.loblaws.ca/protein-18g-lactose-free-regular-flavour/p/21731288_EA,Silk,"Protein 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…",CAD,7.49,$7.49,0.53,100ml,"1.42 l, $0.53/100ml",1.42,l,ea,SOLD_BY_EACH,1,"{""offer_type"":""OG"",""offer_id"":""OG""}","[""https://digital.loblaws.ca/PCX/21731288_EA/en/1/21731288_en_front_v1_1200.png""]",true,"[{""text"":""Sponsored"",""id"":""SPONSORED""}]"
2,20188873_EA,20188873,EA,https://www.loblaws.ca/2-milk/p/20188873_EA,Neilson,2% Milk,"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…",CAD,6.44,$6.44,0.16,100ml,"4 l, $0.16/100ml",4,l,ea,SOLD_BY_EACH,1,"{""offer_type"":""OG"",""offer_id"":""OG""}","[""https://digital.loblaws.ca/PCX/20188873_EA/en/1/20188873_en_front_1200.png""]",,"[{""text"":""Prepared in Canada"",""id"":""PREPARED_IN_CANADA""}]"
3,21731300_EA,21731300,EA,https://www.loblaws.ca/protein-18g-lactose-free-chocolate-flavour/p/21731300_EA,Silk,"Protein 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…",CAD,7.49,$7.49,0.53,100ml,"1.42 l, $0.53/100ml",1.42,l,ea,SOLD_BY_EACH,1,"{""offer_type"":""OG"",""offer_id"":""OG""}","[""https://digital.loblaws.ca/PCX/21731300_EA/en/1/21731300_en_front_v1_1200.png""]",true,"[{""text"":""Sponsored"",""id"":""SPONSORED""}]"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
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.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
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:
searchtakes aqueryand astore_id, withpage,price_min,price_maxandsort(price_asc, price_desc or title_asc).autocompletetakes aqueryand astore_id. - Products:
producttakes a productid(such as20160571_EA) and astore_id. - Stores:
storeslists the banner's stores with theirid,nameand 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.
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 storeCompare unit prices per 100ml or per kg across brands
Use the Loblaws API to compare unit prices per 100ml or per kg across brandsCompare the same product's price between two stores
Use the Loblaws API to compare the same product's price between two storesSpot sponsored placements in search results
Use the Loblaws API to spot sponsored placements in search resultsFAQ
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.