# Kroger

> Find Kroger stores and products and check prices and availability by location.

App · 4 actions. Web page: https://docs.lodol.com/docs/integrations/kroger

## Actions

### Get location

Read a store’s address, hours and departments.

**Inputs**

- Location (`location_id`, text, required): Select a store or enter its ID.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "data": {
    "data": {
      "chain": "Kroger",
      "locationId": "01400367",
      "name": "Kroger"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get product

Get details for one product and its price at a selected store.

**Inputs**

- Product id (`product_id`, text, required): The product ID or UPC, including leading zeroes.
- Location (`location_id`, text): Select a store for location-specific prices and availability.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "data": {
    "data": {
      "brand": "Kroger",
      "description": "Whole Milk",
      "productId": "0001111041700",
      "upc": "0001111041700"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List locations

Find nearby stores by ZIP code and distance.

**Inputs**

- Zip code (`zip_code`, text): ZIP code to search around.
- Radius (`radius`, number): Distance in miles from the ZIP code. From 1 to 100.
- Limit (`limit`, number): Maximum locations to return. From 1 to 200.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "chain": "Kroger",
        "locationId": "01400367",
        "name": "Kroger"
      }
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### Search products

Find products by keyword, brand and fulfillment method. Select a store for local prices.

**Inputs**

- Query (`query`, text, required): Search for a product by name.
- Location (`location_id`, text): Select a store for location-specific prices and availability.
- Brand (`brand`, text): Only show products of this brand.
- Fulfillment (`fulfillment`, list): Only return items available through these fulfillment methods. One or more of: `ais` (In store), `csp` (Pickup), `dth` (Delivery), `sth` (Shipping).
- Offset (`offset`, number): First result to return. At least 0.
- Limit (`limit`, number): Maximum matching products to return. From 1 to 50.

**Outputs**

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page, when available.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "brand": "Kroger",
        "description": "Whole Milk",
        "productId": "0001111041700",
        "upc": "0001111041700"
      }
    ],
    "meta": {
      "pagination": {
        "limit": 1,
        "start": 0,
        "total": 1
      }
    }
  },
  "has_more": false,
  "next_cursor": null
}
```
