# List Stores

List stores from an official Lidl city overview URL, including store ids, addresses, coordinates, opening hours, status, and services.

- Platform: [Lidl](https://docs.upscrape.com/docs/platforms/lidl)
- Capability ID: `lidl.stores.list`
- Cost: 1 credit per request
- Maximum runtime: 45 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 3,
    "url": "https://www.lidl.co.uk/s/en-GB/store-finder/london/"
  },
  "capability": "lidl.stores.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No |  |
| `url` | `string` | Yes | Official Lidl store-finder city overview URL. |

### Example input

```json
{
  "limit": 3,
  "url": "https://www.lidl.co.uk/s/en-GB/store-finder/london/"
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "count": 83,
  "country": "GB",
  "returned": 3,
  "source_url": "https://www.lidl.co.uk/s/en-GB/store-finder/london/",
  "stores": [
    {
      "address": {
        "city": "London",
        "latitude": 51.43104,
        "longitude": -0.1294,
        "postal_code": "SW16 1BB",
        "street_name": "Streatham High Road",
        "street_number": "222"
      },
      "id": "GB00034",
      "name": "Streatham",
      "opening_hours": {
        "items": [
          {
            "date": "2026-08-21",
            "reason": "REGULAR",
            "timeRanges": [
              {
                "from": "2026-08-21T07:00:00",
                "to": "2026-08-21T22:00:00"
              }
            ]
          },
          {
            "date": "2026-08-22",
            "reason": "REGULAR",
            "timeRanges": [
              {
                "from": "2026-08-22T07:00:00",
                "to": "2026-08-22T22:00:00"
              }
            ]
          },
          {
            "date": "2026-08-23",
            "reason": "SUNDAY_REPEAT",
            "timeRanges": [
              {
                "from": "2026-08-23T11:00:00",
                "to": "2026-08-23T17:00:00"
              }
            ]
          }
        ],
        "timeZone": "Europe/London"
      },
      "services": [
        "1",
        "9",
        "3"
      ],
      "status": {
        "from": null,
        "name": "open",
        "to": null
      }
    },
    {
      "address": {
        "city": "London",
        "latitude": 51.44854,
        "longitude": -0.4092,
        "postal_code": "TW14 9BG",
        "street_name": "New Road"
      },
      "id": "GB00058",
      "name": "Feltham",
      "opening_hours": {
        "items": [
          {
            "date": "2026-08-21",
            "reason": "REGULAR",
            "timeRanges": [
              {
                "from": "2026-08-21T07:00:00",
                "to": "2026-08-21T23:00:00"
              }
            ]
          },
          {
            "date": "2026-08-22",
            "reason": "REGULAR",
            "timeRanges": [
              {
                "from": "2026-08-22T07:00:00",
                "to": "2026-08-22T23:00:00"
              }
            ]
          },
          {
            "date": "2026-08-23",
            "reason": "SUNDAY_REPEAT",
            "timeRanges": [
              {
                "from": "2026-08-23T10:00:00",
                "to": "2026-08-23T16:00:00"
              }
            ]
          }
        ],
        "timeZone": "Europe/London"
      },
      "services": [
        "1",
        "9",
        "3"
      ],
      "status": {
        "from": null,
        "name": "open",
        "to": null
      }
    },
    {
      "address": {
        "city": "London",
        "latitude": 51.46468,
        "longitude": -0.16736,
        "postal_code": "SW11 2LG",
        "street_name": "Falcon Lane"
      },
      "id": "GB00134",
      "name": "Clapham",
      "opening_hours": {
        "items": [
          {
            "date": "2026-08-21",
            "reason": "REGULAR",
            "timeRanges": [
              {
                "from": "2026-08-21T07:00:00",
                "to": "2026-08-21T23:00:00"
              }
            ]
          },
          {
            "date": "2026-08-22",
            "reason": "REGULAR",
            "timeRanges": [
              {
                "from": "2026-08-22T07:00:00",
                "to": "2026-08-22T23:00:00"
              }
            ]
          },
          {
            "date": "2026-08-23",
            "reason": "SUNDAY_REPEAT",
            "timeRanges": [
              {
                "from": "2026-08-23T11:00:00",
                "to": "2026-08-23T17:00:00"
              }
            ]
          }
        ],
        "timeZone": "Europe/London"
      },
      "services": [
        "1",
        "3",
        "35"
      ],
      "status": {
        "from": null,
        "name": "open",
        "to": null
      }
    }
  ]
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `count` | `integer` | 83 |
| `country` | `string` | GB |
| `returned` | `integer` | 3 |
| `source_url` | `string` | https://www.lidl.co.uk/s/en-GB/store-finder/london/ |
| `stores` | `array` | 3 items |
| `stores` | `array` | 3 items |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
