# Store Locations of 4,000+ Brands - Chain Store Locator Data (`gazidev/chain-store-locations`) Actor

Every location of 4,000+ retail, restaurant, bank and fuel chains worldwide: address, lat/lon, phone, opening hours, website, brand Wikidata ID. From the AllThePlaces CC0 open dataset. Filter by country or bbox; weekly opened/closed store monitor. $0.40 per 1,000.

- **URL**: https://apify.com/gazidev/chain-store-locations.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 store locations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Store Locations of 4,000+ Brands - Chain Store Locator Data

Get **every store location of a retail, restaurant, bank, fuel or parcel-locker chain worldwide** - Starbucks, McDonald's, Lidl, Aldi, 7-Eleven, Subway, Shell, FedEx, Żabka and 4,000+ more - with **address, latitude/longitude, phone, opening hours, store website and brand Wikidata ID**.

The data comes from **[AllThePlaces](https://www.alltheplaces.xyz)**, the open project that collects official store-locator data every week and publishes it under the **CC0 1.0 public-domain waiver**. This Actor downloads only the files you need from the latest weekly run (5,700+ spider files, 40M+ features) and turns them into a clean table. It does not scrape brand websites itself, so runs are fast (about 30,000 locations in 10 seconds) and cheap.

### What you can do with it

- **Site selection & retail real estate:** map every competitor store in a city, region or country.
- **Competitor & franchise research:** count locations per brand, country and category; compare footprints.
- **Store openings & closures monitor:** schedule weekly with `onlyChanged` to get the stores that opened or closed since last week.
- **Data enrichment:** match your CRM or POI database to brand Wikidata IDs, phones and opening hours.
- **Maps, logistics & AI agents:** feed clean coordinates into GIS tools, route planners or an LLM.

### Input

| Field | What it does |
|---|---|
| `brands` | Brand names (`Lidl`, `Aldi Süd`, `McDonald's`) or Wikidata IDs (`Q37158` = Starbucks). Accents and case are ignored. |
| `spiders` | Optional AllThePlaces spider names (`starbucks_us`, `tesco_gb`) - the whole file is returned. |
| `countries` | ISO-2 codes (`US`, `GB`, `DE`). Only that country's files are downloaded. Empty = worldwide. |
| `bbox` | `minLon,minLat,maxLon,maxLat`, e.g. `13.0,52.3,13.8,52.7` (Berlin). |
| `onlyChanged` | Monitor mode: only locations that are `new` or `closed` compared with the previous weekly run. |
| `includeAllTags` | Adds `extraTags` (drive-through, fuel types, ATM, wheelchair, localized names...). |
| `maxItems` | Stop after N locations (0 = no limit). |
| `atpRunId` | Use an older weekly run instead of the latest one. |

```json
{
  "brands": ["Starbucks", "Q38076"],
  "countries": ["DE", "AT", "CH"],
  "maxItems": 1000
}
```

### Output example

```json
{
  "brand": "Starbucks",
  "brandWikidata": "Q37158",
  "name": "Starbucks",
  "branch": "Passau Ludwigsplatz 8",
  "category": "amenity=cafe",
  "ref": "82884-312441",
  "street": "Ludwigsplatz 8 94032 Passau",
  "city": "Passau",
  "postcode": "94032",
  "country": "DE",
  "lat": 48.57396,
  "lon": 13.45765,
  "website": "https://www.starbucks.co.uk/store-locator/82884-312441/passau-ludwigsplatz-8",
  "openingHours": "Mo-Th 07:00-20:00; Fr 07:00-21:00; Sa 08:00-21:00; Su 09:00-20:00",
  "sourceUri": "https://www.starbucks.co.uk/api/v2/stores/...",
  "spider": "starbucks_eu",
  "atpId": "oHD2G7L5KmhT9YvQIcKPOR_il8c=",
  "atpRun": "2026-10-24-13-32-37",
  "collectedAt": "2026-10-29T11:36:12",
  "licence": "CC0-1.0",
  "attribution": "AllThePlaces contributors (https://www.alltheplaces.xyz), released under the CC0 1.0 waiver"
}
```

Other fields when available: `state`, `fullAddress`, `phone`, `email`, `operator`, `status` (`new` / `closed` in monitor mode), `previousRun`, `extraTags`. Opening hours use the OpenStreetMap `opening_hours` format. Empty fields are left out.

The run summary (key-value store record `OUTPUT`) lists the matched brands, every spider file with its feature count, new/closed/unchanged counts in monitor mode, and warnings.

### Popular brands (locations in the 2026-10-24 run)

Deutsche Post 135k, Shell 49k, 7-Eleven 45k, FedEx 56k, Western Union 44k, Citibank 36k, Starbucks 29k, Żabka 26k, Amazon Locker 26k, Subway 23k, McDonald's 18k, Lidl 13k, Aldi Süd 7k... 4,220 brands in total, each with its Wikidata ID.

### Pricing

Pay per result, no subscription:

| Event | Price |
|---|---|
| Location saved | **$0.0004** ($0.40 per 1,000) |
| Opened/closed location (monitor mode) | $0.0008 |
| Actor start | $0.00005 |

| Actor | Price per location | Source |
|---|---|---|
| **This Actor** | **$0.0004** | AllThePlaces open data (CC0), 4,000+ brands |
| piotrv1001/brand-store-locator-scraper | $0.006 | scrapes each brand's site |
| silentflow/storeleads-scraper | $0.0039 | scrapes each brand's site |

Set a maximum charge per run in the Apify Console and the Actor stops cleanly when it is reached.

### FAQ

**Is the data legal to use commercially?** Yes. AllThePlaces releases its downloads under the Creative Commons CC0 waiver (public domain). Every row carries `licence` and `attribution` fields; attribution is not required but appreciated.

**How fresh is it?** AllThePlaces runs every week. Each row shows the run (`atpRun`) and when that spider collected the data (`collectedAt`).

**My brand returns nothing.** Try its Wikidata ID (search wikidata.org) or the spider name from alltheplaces.xyz/spiders.html. A brand only appears if an AllThePlaces spider covers it; the run summary lists warnings.

**Why are some `closed` stores missing after a big change?** If a spider's count changes by more than half between two weeks (usually a broken or rewritten spider), monitor mode skips that file instead of reporting thousands of false openings/closures. The skip is listed in `OUTPUT`.

**Is every location complete?** Fields depend on what the brand's store locator publishes; coordinates, city and country are almost always present, phone and hours often.

### Use with AI agents / Apify MCP

Add this Actor to Claude, Cursor or any MCP client through the [Apify MCP server](https://mcp.apify.com) (`gazidev/chain-store-locations`). Example prompt: *"List all Lidl stores in Ireland with opening hours"* or *"Which 7-Eleven stores in Japan closed this week?"*. The compact JSON output is easy for an LLM to read.

### Data attribution

Store data: © AllThePlaces contributors, https://www.alltheplaces.xyz - CC0 1.0. Brand IDs: Wikidata (CC0). This Actor is not affiliated with AllThePlaces or any brand listed.

# Actor input Schema

## `brands` (type: `array`):

Brand names (e.g. `McDonald's`, `Lidl`, `Aldi Süd`, `Shell`) or Wikidata IDs (e.g. `Q37158` for Starbucks). Wikidata IDs are exact; names match the brand name case- and accent-insensitively (several brands with the same name are all included). 4,000+ brands are covered.

## `spiders` (type: `array`):

Optional AllThePlaces spider names (e.g. `starbucks_us`, `lidl`, `tesco_gb`) - every location in that spider file is returned, whatever its brand. See the list at alltheplaces.xyz/spiders.html.

## `countries` (type: `array`):

ISO 3166-1 alpha-2 country codes (`US`, `GB`, `DE`...). Only the spider files for these countries are downloaded, so runs are faster. Leave empty for worldwide.

## `bbox` (type: `string`):

Optional `minLon,minLat,maxLon,maxLat`, e.g. `13.0,52.3,13.8,52.7` for Berlin. Combine with Countries for faster runs.

## `onlyChanged` (type: `boolean`):

Compare with the previous weekly AllThePlaces run and return only locations that appeared (`status: new`) or disappeared (`status: closed`). Spider files whose count changed by more than half are skipped to avoid false alerts. Schedule weekly to track openings and closures.

## `includeAllTags` (type: `boolean`):

Add `extraTags` with every other OpenStreetMap-style tag in the source (e.g. `drive_through`, `fuel:diesel`, `atm`, `wheelchair`, localized names).

## `maxItems` (type: `integer`):

Stop after this many locations (0 = no limit). You are charged only for locations saved.

## `atpRunId` (type: `string`):

Use an older weekly run, e.g. `2026-10-17-13-32-31`. Leave empty for the latest run.

## Actor input object example

```json
{
  "brands": [
    "Starbucks"
  ],
  "countries": [
    "DE",
    "AT",
    "CH"
  ],
  "onlyChanged": false,
  "includeAllTags": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `locations` (type: `string`):

No description

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "brands": [
        "Starbucks"
    ],
    "countries": [
        "DE",
        "AT",
        "CH"
    ],
    "maxItems": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/chain-store-locations").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "brands": ["Starbucks"],
    "countries": [
        "DE",
        "AT",
        "CH",
    ],
    "maxItems": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/chain-store-locations").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "brands": [
    "Starbucks"
  ],
  "countries": [
    "DE",
    "AT",
    "CH"
  ],
  "maxItems": 1000
}' |
apify call gazidev/chain-store-locations --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/chain-store-locations"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/UuDMaZboD1gOEIKuZ/builds/VHetpmeyZ6ChGvShR/openapi.json
