---
title: "Loblaws API: Canadian grocery search, products as JSON"
description: "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."
url: https://perceptlayer.com/apis/loblaws
---

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

1 credit per call 4 endpoints 23 datapoints 

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

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

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

| # | position integer | id string | article\_number string | uom string | link url | brand string | title string | description string | currency string | price number | display\_price string | unit\_price number | unit\_price\_unit string | package\_sizing string | package\_amount number | package\_unit string | pricing\_unit string | pricing\_unit\_type string | pricing\_unit\_interval integer | offers object | images string\[\] | is\_sponsored boolean | badges object\[\] |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 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\] |

Recorded from our API · 3 items shown · 23 datapoints per item GET /v1/loblaws/search?query=milk&store\_id=1099

23 datapoints

### Identity

-   id string
-   brand string
-   title string
-   pricing\_unit\_type string

### Contact

-   link url

### Reputation

-   images string\[\]
-   badges object\[\]

### Price

-   currency string
-   price number
-   display\_price string
-   unit\_price number
-   unit\_price\_unit string
-   package\_amount number

### Other

-   position integer
-   article\_number string
-   uom string
-   description string
-   package\_sizing string
-   package\_unit string
-   pricing\_unit string
-   pricing\_unit\_interval integer
-   offers object
-   is\_sponsored boolean

Playground

## Run this API

cURL shell 

```
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`](https://perceptlayer.com/apis/loblaws/autocomplete) | `query` `store_id` +2 optional | `term` `store_id` `banner` `language` `items` | 1 credit |
| [GET `/v1/loblaws/product`](https://perceptlayer.com/apis/loblaws/product) | `id` `store_id` +2 optional | `store_id` `banner` `language` `product` | 1 credit |
| [GET `/v1/loblaws/search`](https://perceptlayer.com/apis/loblaws/search) | `query` `store_id` +6 optional | `store_id` `banner` `language` `from` `items` `filtered_count` +2 more | 1 credit |
| [GET `/v1/loblaws/stores`](https://perceptlayer.com/apis/loblaws/stores) | none +1 optional | `id` `name` `banner_id` `visible` `address` | 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.

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

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