Skip to content

About

US store and chain locations in Python: 1,065,546 store locations of 1,451 brands in 16,670 lists, and 744,273 chain locations in 5,605 cities, each with its store page. Standard library only, free samples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

US store and chain locations in Python

Python recipes for every US location of the chains people visit: restaurants, cafes, gas stations, pharmacies, banks, ATMs, gyms and more, kept by SpecStream, the live web data engine. Each row carries the brand, address, city, state, ZIP, opening hours, category, the brand's Wikidata ID and the brand's own store page it was read from. Standard library only, no key for the free sample.

Dataset On December 2, 2026 Lists Cut by Page
Store locations 1,065,546 locations of 1,451 brands 16,670 brand, brand in a state or city, category, category in a state, city, state /data/store-locations
Chain locations by city 744,273 locations of 1,117 brands in 5,605 cities 11,529 city, category in a city, brand in a city /data/chain-locations

Every list is read from the All the Places run of November 14, 2026, which reads each brand's store locator. A location shows up in several lists (its brand, its city, its state, its category), so the lists add up to more rows than there are locations. Each recipe prints its list's live count first, so you see today's number.

Run

git clone https://github.com/specstream/us-retail-store-locations-python
cd us-retail-store-locations-python

python recipes/brand_locations.py           # no key, no install
python recipes/fast_food.py
python recipes/stores_by_state.py
python recipes/city_chains.py
python recipes/city_category.py
Starbucks locations in the United States: 16,571 rows, every location in the All the Places run of November 14, 2026, ordered by state, city and address
https://specstream.ai/data/store-locations/brand/starbucks

Brand      Address                                   City       State  ZIP    Category
Starbucks  1000 E Northern Lights Blvd               Anchorage  AK     99508  Cafes
Starbucks  1005 E Dimond Blvd, Southgate Shopping C  Anchorage  AK     99515  Cafes
...

Without a key, each prints a free sample of 10 rows. Find any brand, city, state or category:

python find_lists.py starbucks --family store-locations
#    16,571  $   245.71  /data/store-locations/brand/starbucks
#     2,988  $   109.88  /data/store-locations/brand-in-state/starbucks/california
#     1,471  $    73.55  /data/store-locations/brand-in-state/starbucks/texas
python find_lists.py houston --family chain-locations
#     6,939  $   149.39  /data/chain-locations/city/houston-tx
#     1,260  $    63.00  /data/chain-locations/category/fast-food-restaurants/houston-tx
#     1,021  $    51.05  /data/chain-locations/category/gas-stations/houston-tx

python recipes/brand_locations.py --list /data/store-locations/brand-in-state/starbucks/texas
python recipes/city_category.py --list /data/chain-locations/category/fast-food-restaurants/houston-tx

Take a whole list

Store and chain lists have no date column, so each is sold whole at the price its page shows. With a key, a recipe first tells you the price and spends nothing; run it again with that price as --max-cents to buy the list from your balance and write it to CSV:

export SPECSTREAM_API_KEY=your_key
python recipes/city_category.py --rows                                   # This list is sold whole: 1,021 rows for $51.05 ...
python recipes/city_category.py --rows --max-cents 5105 --csv houston-gas-stations.csv

A franchise developer sizes a market by every competitor's door in a metro; a site selection or commercial real estate team maps the co-tenants around a parcel; a field sales, merchant services or route team builds its territory from every location of the chains it serves; a data team joins brand footprints to its own sales by ZIP.

The rows, in code

from specstream_lists import describe, sample, find_lists, buy, download, write_csv

describe("/data/store-locations/brand/starbucks")             # rows, columns, period, price, last update
sample("/data/chain-locations/city/houston-tx")               # 10 rows, free
find_lists("dollar general", family="store-locations")        # sub-lists by state and city
order = buy("/data/chain-locations/city/houston-tx", max_cents=14939)   # only if the price fits
write_csv(download(order), "houston-chains.csv")

specstream_lists.py is one file, standard library only, Python 3.9+. buy reads SPECSTREAM_API_KEY (Agents & API at specstream.ai/workspace) and never spends more than max_cents. The same file has rows() for lists with a date column, and web_search() and extract() for the live web.

Test

python -m unittest discover -s tests -v

The tests run against a local fake of the API, with null and empty fields, a list sold whole and a refused purchase, so they need no key and spend nothing.

Prices

Price
Free sample and list search free, no key
A whole list, by API from your balance or as CSV or Excel from its page the price its page shows: 5¢ a row for the first 2,000 rows and 1¢ after, $15 at least
Monthly Pro Pass $49 a month: 5,000 ready list rows a month across every list and $49 of API credit
Free credit on sign up $2, which is 2,000 fast searches, no card
Fast web search / Extract API $1 per 1,000 searches / $0.80 per 1,000 pages

Links

License

MIT. The data keeps the terms of its sources.

About

US store and chain locations in Python: 1,065,546 store locations of 1,451 brands in 16,670 lists, and 744,273 chain locations in 5,605 cities, each with its store page. Standard library only, free samples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages