Loblaws Product API returns the detail of one product: brand, title, description, store price, was price, unit price, availability, PC Optimum offers, badges and full-size images.
Pass the id exactly as search returned it, for example 20160571_EA, and a store_id. Prices and stock are for that store. Detail is derived from one search lookup. Ratings appear only when the source fills them; no review count or link is invented. Missing values are omitted, never set to 0. Costs 1 credit per successful request. Unknown products and failed requests are free.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
2 required parameters needed before sending a request.
2 optional filters available.
string
Required
productId from search, e.g. 20160571_EA, or its article number.
1234567890
string
Required
Public store id, e.g. 1099. Prices and stock are for this store.
1234567890
string
Optional
en or fr (default en).
en
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"banner": "loblaw",
"product": {
"id": "20160571_EA",
"uom": "EA",
"link": "https://www.loblaws.ca/3-25-homogenized-milk/p/20160571_EA",
"brand": "PC",
"price": 7.44,
"specs": [],
"title": "3.25% Homogenized Milk",
"images": [
"https://digital.loblaws.ca/PCX/20160571_EA/en/1/20160571_en_front_1200.png"
],
"currency": "CAD",
"unit_price": 0.19,
"description": "Fresh homogenized milk",
"regular_price": 7.44,
"article_number": "20160571",
"package_sizing": "4 l, $0.19/100ml",
"unit_price_unit": "100ml"
},
"language": "en",
"store_id": "1099"
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "product"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter or a value is invalid. This response is not billable.
{
"errors": {
"id": [
"A product id is required, e.g. 20160571_EA."
]
},
"message": "The request validation failed"
}Not Found
The product does not exist at this store. This response is not billable.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "product"
},
"error": {
"code": "NOT_FOUND",
"message": "The requested resource was not found."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.