# Starbucks Store Locator Scraper (`runtime/starbucks-store-locator`) Actor

Scrape Starbucks store locations by searched place with addresses, parsed location fields, distances, store IDs, URLs, coordinates, and source metadata.

- **URL**: https://apify.com/runtime/starbucks-store-locator.md
- **Developed by:** [scraping automation](https://apify.com/runtime) (community)
- **Categories:** Business, E-commerce
- **Stats:** 8 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $22.00 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Starbucks Store Locator Scraper

Extract Starbucks store locations from the public store locator with normalized retail-location fields.

### Who this is for

- Retail analysts
- Location intelligence teams
- Competitor monitoring teams

### What it helps you do

- Collect Starbucks locations by place or search area
- Build store footprint datasets
- Compare addresses, coordinates, amenities, and opening hours

### Inputs you can use

- Search place or coordinates
- Maximum stores

### Data you get

- store name
- address
- city
- region
- postal code
- country
- coordinates
- opening hours
- amenities

### How to get better results

- Start with a narrow, specific query or a small list of source URLs.
- Use realistic limits for the first run, then increase the volume once the output looks right.
- Keep source URLs, dates, and location context when you need repeatable market monitoring.
- Review a few sample records before connecting the dataset to a larger workflow.

### Notes

- Results depend on what the public source exposes at run time.
- Some pages may hide, delay, rename, or remove fields, so individual records can have partial data.
- Use the built-in output table to inspect results before exporting to spreadsheets, dashboards, or automation tools.

### Support

If a run returns unexpected data, open an issue from the Actor page with the input used, the run ID, and the result you expected.

# Actor input Schema

## `place` (type: `string`):

Search location text used in the Starbucks locator input (e.g., "New York, NY, USA" or "Berlin, DE"). This determines the map area and store results.

## `maxStores` (type: `integer`):

Maximum number of store cards to process before stopping. Use lower values for faster runs.

## `zoomClicks` (type: `integer`):

How many times to zoom in on the map after search. More clicks show a tighter area but may reduce store count.

## `delayBetweenZooms` (type: `integer`):

Milliseconds to wait between zoom clicks so the map can re-render.

## `delayAfterZoom` (type: `integer`):

Milliseconds to wait after finishing zooming before extracting stores.

## `debugScreenshots` (type: `boolean`):

Save page screenshots during the run. Keep disabled for normal production runs.

## `failOnNoResults` (type: `boolean`):

If enabled, the Actor fails when no store record can be saved.

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Keep disabled for the default Starbucks locator flow; enable Apify Proxy or custom proxy URLs only when your network requires it.

## Actor input object example

```json
{
  "place": "New York, NY, USA",
  "maxStores": 50,
  "zoomClicks": 3,
  "delayBetweenZooms": 800,
  "delayAfterZoom": 8000,
  "debugScreenshots": false,
  "failOnNoResults": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `stores` (type: `string`):

Extracted Starbucks store results.

## `debug` (type: `string`):

Source URL and run context for extracted stores.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("runtime/starbucks-store-locator").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("runtime/starbucks-store-locator").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 '{}' |
apify call runtime/starbucks-store-locator --silent --output-dataset

```

## MCP server setup

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

```

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/ke7tWxPUcPnQw8xtk/builds/x7pM8ixoPFMRdnnxY/openapi.json
