Walgreens Store Locator - Store Links & Coordinates Scraper avatar

Walgreens Store Locator - Store Links & Coordinates Scraper

Pricing

from $0.50 / 1,000 links

Go to Apify Store
Walgreens Store Locator - Store Links & Coordinates Scraper

Walgreens Store Locator - Store Links & Coordinates Scraper

Extracts Walgreens store page URLs and GPS coordinates for every US location from the public sitemap.

Pricing

from $0.50 / 1,000 links

Rating

0.0

(0)

Developer

DataCach

DataCach

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Share

Extract every Walgreens store page URL in the United States — straight from Walgreens' own public sitemap, with zero configuration required. This Walgreens store locator scraper returns a clean, deduplicated JSON/CSV/Excel dataset of ~8,000 store links in seconds, ready to feed into a downstream address/phone/hours enrichment pipeline.

What is the Walgreens Store Locator Scraper?

The Walgreens Store Locator - Store Links & Coordinates Scraper is an Apify Actor that extracts Walgreens store page URLs for every US pharmacy location directly from Walgreens' publicly published store-details sitemap. No search terms, ZIP codes, or coordinates are required to get the full list — just click Start. Each result includes the store's URL and an extraction timestamp, so you always know exactly when the data was collected.

What can this Walgreens scraper do?

  • 🔗 Scrape all Walgreens store links from the official sitemap in one run — roughly 8,000 US locations.
  • 🧹 Deduplicated output — every store URL appears only once, even if the sitemap lists it more than once.
  • 🕒 Timestamped extraction — every record carries extraction_datetime (UTC, ISO 8601) and extraction_date (mm-dd-yyyy) so you can track data freshness.
  • ⏭️ Resumable, pay-per-result-safe crawling — a startIndex input lets you page through the sitemap across multiple runs, and excludeUrls lets you skip links you already collected, so you're never charged twice for the same store.
  • 🔁 Crash-safe resume — if a run is migrated or restarted mid-crawl, already-pushed links are remembered and are not re-pushed (and not re-billed under pay-per-result).
  • 📤 Export to JSON, CSV, Excel, HTML, or XML directly from the Apify dataset — no code required.
  • 🔌 Full Apify platform integration: trigger runs via the API or scheduler, monitor runs and get alerted on failures, and connect the output to Zapier, Make, Google Sheets, and hundreds of other integrations.
  • 🌐 Built-in proxy rotation support for reliable, large-scale sitemap fetching.
  • 🤝 Pairs with the Walgreens Store Details Scraper — feed these links in to enrich each store with full address, phone number, opening hours, and geolocation.

What data does the Walgreens Store Locator Scraper extract?

FieldDescriptionExample
urlWalgreens store page URL, parsed from the sitemaphttps://www.walgreens.com/locator/duane+reade-1+path+plz-jersey+city-nj-07306/id=14303
coordinateLabel identifying which source the link was discovered understatic source
extraction_datetimeUTC timestamp of extraction, ISO 8601 format2026-07-24T14:30:00.123456+00:00
extraction_dateExtraction date, mm-dd-yyyy format07-24-2026
  1. Open the Actor's Input tab in Apify Console (or pass input via the API).
  2. Leave maxResults at 0 to collect every store link in the sitemap, or set a small number (e.g. 10) for a quick, cheap test run.
  3. Optionally set startIndex to resume collection partway through the sitemap in a later run, and/or list already-collected links in excludeUrls so you don't pay for them again.
  4. Click Start.
  5. When the run finishes, open the Output tab (or call the Dataset API) and download the results as JSON, CSV, Excel, HTML, or XML.
  6. Optionally, chain the output into the Walgreens Store Details Scraper to enrich each link with full store details.

Input

This Actor's input is intentionally minimal — no start URLs, selectors, or search terms are needed since it reads the full public sitemap directly:

  • Max store links (maxResults) — the maximum number of unique store links to collect. Leave at 0 to collect all ~8,000 links in the sitemap, or set a smaller number for a fast test run. Free-plan accounts are capped at 10 links regardless of this setting.
  • Start index / skip (startIndex) — a positional offset that lets you resume collection after a given number of links have already been discovered, useful for paging through the full sitemap across several runs. Free-plan accounts always run with this forced to 0.
  • Exclude URLs (excludeUrls) — a list of store link URLs to skip regardless of their position, so you never pay again for links you already have from a previous run. Free-plan accounts are capped at 1 excluded URL.

Example input:

{
"maxResults": 0,
"startIndex": 0,
"excludeUrls": []
}

Output example

Each item pushed to the dataset represents a single Walgreens store link:

{
"url": "https://www.walgreens.com/locator/ava+drug,+powered+by+walgreens-124+w+washington+ave-ava-mo-65608/id=15726",
"coordinate": "static source",
"extraction_datetime": "2026-07-24T14:30:00.123456+00:00",
"extraction_date": "07-24-2026"
}

You can download the full dataset in various formats such as JSON, CSV, Excel, HTML, or XML from the Output tab or via the Dataset API.

Use cases

  • 🏪 Build a master list of Walgreens store URLs as the seed input for a detail-page scraper (address, phone, hours, geolocation).
  • 🗺️ Store locator data feeds for pharmacy-comparison apps, healthcare directories, or delivery/logistics platforms.
  • 📊 Market research and location analysis — track how many Walgreens locations exist and where.
  • 🔁 Incremental data pipelines — use startIndex and excludeUrls to keep a store-link dataset in sync over time without re-collecting (and re-paying for) data you already have.
  • 🔗 Input for downstream Actors or scripts that need a reliable, deduplicated list of Walgreens store page URLs.
  • Walgreens Store Metadata Actor — takes store links (like the ones this Actor produces) and extracts full address, phone number, opening hours, and geolocation for each store.

FAQ

This Actor only reads data that Walgreens already publishes publicly for search engines — the store-details XML sitemap. No login, paywall, or private data is involved. That said, scraping legality can depend on your jurisdiction and intended use, and you're responsible for reviewing Walgreens' Terms of Service before using the data. Apify's legal analysis of web scraping is a good starting reference.

Where does the data come from?

All store links come from a single public XML file published by Walgreens at https://www.walgreens.com/sitemap-storedetails.xml. This is the same sitemap search engines like Google use to discover Walgreens store pages — nothing is scraped from behind a login or paywall.

How many Walgreens stores does this Actor return?

The Walgreens sitemap currently lists roughly 8,000 US store locations. A full run (with maxResults left at 0) returns every unique link found in the sitemap at run time.

Can I run this Actor on a schedule or via the API?

Yes. Like any Apify Actor, you can trigger it via the Apify API, set up a recurring schedule, and get run-failure monitoring — all from the Apify Console, no extra setup required.

What happens if the run is interrupted partway through?

The Actor persists already-collected links to the run's key-value store as it goes. If the run is migrated or restarted, it resumes from where it left off instead of re-pushing (and re-billing) links it already collected.

Does this Actor return full store details like address and phone number?

No — this Actor focuses on collecting store page URLs only, quickly and cheaply. For full address, phone, hours, and geolocation data, feed these links into the companion Walgreens Store Details Scraper.

Support

Found a bug or have a feature request? Open an issue on the Actor's Issues tab in Apify Console. Need a custom scraper or a modified version of this Actor for your use case? Reach out through Apify Console to discuss a custom solution.