# Kroger Product API Documentation

<p><strong>Kroger Product API</strong> returns one grocery product from kroger.com by its UPC. It adds the description, ingredients, allergen statement, the nutrition panel (serving size, calories, fats, carbohydrates, protein and daily values) and nutritional claims to the fields of the search route.</p><p>Send either <code>upc</code> (12 or 13 digits, as returned by search, for example 0001111041660) or <code>url</code> (a kroger.com product page, where the UPC is the last path part). Only the product with exactly this UPC is returned. An unknown UPC answers 404 and is free. Kroger picks the store from the network location of the request, so prices, sale prices and stock can differ between calls. Prices are in US dollars. Fields Kroger does not publish for a product are left out.</p><p>Costs 1 credit per successful request. Not found and failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/kroger-api/kroger_product](https://scrappa.co/docs/kroger-api/kroger_product)
- **API group:** Kroger API
- **Endpoint:** `GET https://scrappa.co/api/kroger/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 |
| --- | --- | --- | --- |
| `upc` | string | No | Product UPC, 12 or 13 digits, as returned by search, for example 0001111041660. Required unless url is sent. |
| `url` | string | No | A kroger.com product page URL, for example https://www.kroger.com/p/kroger-1-lowfat-milk-gallon/0001111041660. Required unless upc is sent. |

## Example response

```json
{
    "data": {
        "product": {
            "id": "0001111041660",
            "upc": "0001111041660",
            "url": "https://www.kroger.com/p/kroger-1-lowfat-milk-gallon/0001111041660",
            "name": "Kroger\u00ae 1% Lowfat Milk Gallon",
            "size": "1 gal",
            "unit": "fl oz",
            "aisle": {
                "side": "R",
                "number": "100",
                "description": "DAIRY"
            },
            "brand": "Kroger",
            "diets": [
                "Kosher",
                "Pescatarian",
                "Vegetarian"
            ],
            "image": "https://www.kroger.com/product/images/xlarge/front/0001111041660",
            "price": 3.19,
            "images": [
                "https://www.kroger.com/product/images/xlarge/front/0001111041660",
                "https://www.kroger.com/product/images/xlarge/back/0001111041660"
            ],
            "origin": "UNITED STATES",
            "rating": {
                "count": 22,
                "average": 3.23
            },
            "non_gmo": false,
            "organic": false,
            "currency": "USD",
            "allergens": "Contains Milk and its derivates.",
            "nutrition": {
                "nutrients": [
                    {
                        "name": "Sodium",
                        "unit": "mg",
                        "amount": 105,
                        "daily_value_percent": 5
                    },
                    {
                        "name": "Total Carbohydrate",
                        "unit": "g",
                        "amount": 12,
                        "daily_value_percent": 5
                    },
                    {
                        "name": "Trans Fat",
                        "unit": "g",
                        "amount": 0
                    },
                    {
                        "name": "Calories",
                        "unit": "kcal",
                        "amount": 100
                    }
                ],
                "prepared_as": "Unspecified",
                "serving_size": "8 fl oz (240mL)",
                "servings_per_container": 16
            },
            "categories": [
                "Dairy & Eggs > Milk & Dairy Free Milk > 1%, 2%, & Skim Milk"
            ],
            "unit_price": 0.0249,
            "description": "Kroger\u00ae 1% Lowfat Milk Gallon brings a refreshing start to your morning. Smooth and creamy flavor, that'll satisfy your taste buds with every glass. A perfect addition to baking your favorite recipes.\nKroger\u00ae \u2013 Trusted for the everyday moments that matter.\n- 1 gal Jug of Kroger\u00ae 1% Lowfat Milk Gallon\n- Refreshing and creamy with vitamins A & D\n- Lowfat, but uncompromising in flavor\n- A perfect partner for coffee and cereal\n- Kroger\u00ae quality you can trust",
            "fulfillment": [
                "pickup"
            ],
            "ingredients": "Skim Milk, Milk, Vitamin A Palmitate, Vitamin D3.",
            "stock_level": "high",
            "regular_price": 3.19,
            "snap_eligible": true,
            "unit_price_text": "$0.02/fl oz",
            "nutritional_claims": [
                "Low Sodium",
                "Low Fat",
                "No Artificial Ingredients",
                "No Added Sugar",
                "Live Naturally"
            ]
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | Neither upc nor url was sent, or a value is invalid. This response is not billable. |
| 404 | Not Found | No product with this exact UPC was found. This response is not billable. |
| 503 | Upstream Unavailable | Kroger could not be reached after several tries. This response is not billable. Retry shortly. |

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