# Loblaws Product API Documentation

<p><strong>Loblaws Product API</strong> returns the detail of one product: brand, title, description, store price, was price, unit price, availability, PC Optimum offers, badges and full-size images.</p><p>Pass the <code>id</code> exactly as search returned it, for example 20160571_EA, and a <code>store_id</code>. 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.</p>

- **Documentation:** [https://scrappa.co/docs/loblaws-api/loblaws_product](https://scrappa.co/docs/loblaws-api/loblaws_product)
- **API group:** Loblaws API
- **Endpoint:** `GET https://scrappa.co/api/loblaws/product`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | productId from search, e.g. 20160571_EA, or its article number. |
| `store_id` | string | Yes | Public store id, e.g. 1099. Prices and stock are for this store. |
| `banner` | string | No | loblaw or nofrills (default loblaw). |
| `language` | string | No | en or fr (default en). |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 404 | Not Found | The product does not exist at this store. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
