APIs / Loblaws / Search

Loblaws: Search

Search from Loblaws as JSON. 1 credit per successful call.

GET /v1/loblaws/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
querystringRequiredUp to 120 characters
store_idstringRequiredAny
bannerstringOptionalloblaw, nofrills
languagestringOptionalen, fr
pageintegerOptionalAny
price_minnumberOptionalAny
price_maxnumberOptionalAny
sortstringOptionalprice_asc, price_desc, title_asc

Example request

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.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 8 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
store_idstring
bannerstring
languagestring
frominteger
itemsobject[]
filtered_countinteger
search_termstring
search_results_countinteger