Foursquare Locations Scraper
Pricing
from $0.06 / 1,000 item extracteds
Foursquare Locations Scraper
🏪 Export Foursquare brand locations by city with venue IDs, addresses, phones, websites, categories and coordinates, from live pages or Foursquare's open dataset for 20 US metros.
Pricing
from $0.06 / 1,000 item extracteds
Rating
0.0
(0)
Developer
Automation Lab
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
1
Monthly active users
13 days ago
Last modified
Categories
Features
Share
Export Foursquare brand locations by city without an account or Foursquare API key.
Turn inputs such as https://redirect.foursquare.com/locations/starbucks/new-york-city into clean JSON, CSV, Excel, XML, or RSS datasets containing venue IDs, names, addresses, phones, websites, categories, coordinates, and source labels.
Current data source (November 2026): Foursquare's public brand/city pages now return 404. The Actor still tries them first, then reads Foursquare's open dataset, OS Places, for 20 US metros. That data is a 2025-01-10 snapshot and has no ratings, hours, tips, photos or community counts. Every row says where it came from in
dataSource, so check it before you rely on a field.
Use the Actor for chain expansion analysis, local lead lists, and hospitality research. Recurring refreshes and brand-footprint monitoring apply only if live pages return, because the snapshot does not change between runs.
What does Foursquare Locations Scraper do?
Foursquare Locations Scraper looks up a brand in a city and saves one venue per dataset row, from the live Foursquare page when it answers and otherwise from the OS Places snapshot.
It supports two equivalent input routes:
- 🏪 paste Foursquare
/locations/<brand>/<city>URLs from the redirect, app, www, or bare host; - 📍 provide brand and city pairs and let the Actor build safe URL slugs;
- 🎯 combine multiple cities in one run;
- 🧹 deduplicate repeated venues by their Foursquare venue ID;
- ⛔ stop at a global
maxItemslimit.
A live page embeds up to 30 detailed venue records per brand and city. The open dataset has no such limit: maxItems decides how many rows you get.
Who is it for?
Retail and chain expansion teams
Compare where a brand appears across cities, inspect neighborhood coverage, and feed coordinates into market maps.
Lead generation teams
Build targeted venue lists with phone numbers, addresses, and websites for compliant business outreach.
Hospitality and local-market analysts
Compare categories and venue density across cities. Ratings, tips, and hours appear only on rows from live pages.
Data and reputation teams
Load a dated list of Foursquare places into a warehouse and join it on venueId. Recurring diffs show changes only if live pages return.
Developers and AI agents
Use the Apify API or MCP to turn a brand/city request into structured place data without maintaining a parser.
Why use this Foursquare scraper?
- ⚡ No browser: no browser startup or paid API credentials.
- 🧭 Source-specific: records retain Foursquare venue IDs and canonical links.
- 📦 Export ready: download JSON, CSV, Excel, XML, or RSS from the dataset.
- 🔁 Repeatable: save the input as an Apify Task to run it again. A rerun returns the same venues while rows come from the snapshot.
- 💳 Pay per result plus usage: you pay for unique venue rows and a small run start fee, plus the Apify platform usage of your run.
- 🛡️ Batch safe: invalid or unavailable targets are skipped without discarding useful rows from other targets, the status message says what was lost, and an all-failed run still fails visibly.
What Foursquare location data can I extract?
| Field | Description |
|---|---|
venueId | Stable Foursquare venue identifier |
name | Public venue name |
brand | Brand slug converted to readable text |
queryCity | City requested in the source URL |
category | Primary Foursquare venue category |
neighborhood | Neighborhood label when available |
address, crossStreet | Street and cross-street details |
city, state, postalCode, country | Address components |
latitude, longitude | Venue coordinates |
phone, formattedPhone | Contact number variants |
website | Venue or brand website supplied by Foursquare |
rating, ratingSignals | Foursquare rating and signal count |
checkinsCount, usersCount, tipCount | Source-reported community activity counts, not footfall |
countryCode, timeZone | Published country code and venue time zone |
categoryIds, chainIds | Published category and chain identifiers |
twitter, facebook | Source contact references (usually a handle or page ID, not invented URLs) |
verified | Whether Foursquare marks the venue verified |
isOpen, hoursStatus | Current opening state and status text |
hours, popularHours | Existing flattened weekly schedules |
hoursTimeframes, popularTimeframes | Structured source periods: days, optional includesToday, and open entries with renderedTime |
menuUrl | Public menu link when present |
directionsUrl | Ready-to-open coordinate directions link |
tipText, tipAuthor, tipUrl | One selected public Foursquare tip |
imageUrls | Up to three public venue image URLs |
venueUrl, sourceUrl | Canonical venue and directory links |
sourceTotalLocations | Total locations reported by the source page |
scrapedAt | UTC extraction timestamp |
dataSource | live-page or foursquare-os-places |
dataRelease, dateRefreshed | Open-dataset release, and when Foursquare last refreshed that record |
Optional fields are omitted when the source does not provide them. The Actor does not invent missing contacts, ratings, or hours.
Open-dataset rows contain venueId, name, address parts, coordinates, phone, website, category, twitter, facebook, and the source labels. These fields come only from live pages: neighborhood, crossStreet, rating, ratingSignals, verified, isOpen, hoursStatus, hours, popularHours, the structured schedules, menuUrl, tip fields, imageUrls, checkinsCount, usersCount, tipCount, timeZone, and chainIds. venueUrl opens a Foursquare page that now asks visitors to log in.
How much does it cost to scrape Foursquare locations?
Pricing is pay per event plus platform usage:
- Run start: $0.005 per run.
- Venue: tiered by your Apify plan; the BRONZE price is $0.000091861 per unique saved venue.
- Platform usage: the compute, storage and data transfer your run uses, billed to your Apify account on top of the events above.
In event charges, a 10-venue starter run is about $0.00592 at the BRONZE rate and a 30-venue page is about $0.00776. Your exact event prices are shown in Apify Console before the run and may be lower on higher plans.
Usage grows with how much of the open dataset a run reads, not with how many venues it returns. A brand with few venues across many cities can cost more in usage than in event charges. Check a run's usage in Console, and start with one city and a low maxItems.
The free Apify plan includes monthly platform credits, so small tests may fit inside those credits. Keep maxItems low while validating a new brand/city URL.
How to scrape Foursquare locations
- Open the Actor input page.
- Paste one or more public Foursquare brand/city URLs, or add brand/city objects.
- Set
maxItemsto the most venues you want saved. - Click Start.
- Review the Foursquare venues dataset view.
- Export the data as JSON, CSV, Excel, XML, or RSS.
- Check the status message and Run coverage summary if you asked for several cities.
- Save the input as a Task if you want to run it again.
Input parameters
| Parameter | Type | Required | Purpose |
|---|---|---|---|
startUrls | array | conditional | Foursquare /locations/<brand>/<city> URLs from redirect, app, www, or the bare host |
locations | array | conditional | Objects with brand and city strings |
maxItems | integer | no | Global unique venue limit; default 10 |
Provide at least one startUrls or locations entry. If both are present, the Actor processes both and deduplicates canonical input URLs and venue IDs.
Input example: exact URL
{"startUrls": [{ "url": "https://redirect.foursquare.com/locations/starbucks/new-york-city" }],"maxItems": 10}
HTTP or HTTPS location links from redirect.foursquare.com, app.foursquare.com, www.foursquare.com, or foursquare.com are accepted and normalized to one canonical HTTPS target. A venue detail URL, arbitrary website, or different path shape is skipped.
Input example: brand and city
{"locations": [{ "brand": "Starbucks", "city": "New York City" },{ "brand": "Starbucks", "city": "Chicago" }],"maxItems": 40}
Names are normalized to lowercase URL slugs. For unusual branding, use the exact URL copied from Foursquare to avoid ambiguity.
Output example
{"venueId": "51964c1a498eeaca10e9ea4c","name": "Starbucks","brand": "starbucks","queryCity": "new york city","category": "Coffee Shop","address": "822 Lexington Ave","city": "New York","state": "NY","postalCode": "10065","countryCode": "US","latitude": 40.76462850100318,"longitude": -73.96668685798046,"formattedPhone": "(212) 572-0984","venueUrl": "https://app.foursquare.com/v/51964c1a498eeaca10e9ea4c","sourceUrl": "https://redirect.foursquare.com/locations/starbucks/new-york-city","dataSource": "foursquare-os-places","dataRelease": "2025-01-10","dateRefreshed": "2024-12-01","scrapedAt": "2026-11-06T00:00:00.000Z"}
Coverage and limits
While the live pages are down, these 20 metros are covered: Atlanta, Boston, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Los Angeles, Miami, Minneapolis, New York City, Orlando, Philadelphia, Phoenix, Sacramento, San Francisco, Seattle, Tampa, and Washington DC. Any other city fails with HTTP 404.
Each metro is a bounding box around the city and nearby suburbs, limited to its state. The search reads the parts of the dataset closest to the centre first, so a small maxItems usually returns central venues, but the rows are not sorted by distance.
A venue counts as the brand when its name equals the brand, or when its name starts with the brand as whole words and its website is on the brand's own domain. So Chipotle includes "Chipotle Mexican Grill" on chipotle.com and Whole Foods includes "Whole Foods Market" on wholefoodsmarket.com, while Target skips "Target Field", "Targeted Convergence" and "Target Temporaries" on targettemps.net. A domain may add a generic word from the name, such as "market" or "pharmacy", but nothing else.
"Target Optical" is a separate chain on targetoptical.com, so Target does not return it. Ask for the brand Target Optical to get those venues. A store simply named "Target" is kept even when its website is wrong or missing. The same rule means a branch with a longer name and no matching website is missed, such as "CVS Pharmacy" with no website, and an unusual brand may return nothing. A brand written in non-Latin letters matches nothing and the run fails instead of billing for unrelated venues. Closed venues are excluded.
An uncapped search of a large metro can take several minutes. All 20 metros in one run take longer than the default 5-minute timeout, so raise Timeout for wide runs. If the run nears its timeout, the Actor stops searching, keeps the rows it found, and the status message says how many targets were cut off or not searched. maxItems is a global cap across all inputs. sourceTotalLocations is set only when the whole metro was searched.
Machine-readable run coverage
Open Run coverage summary in the Output tab, or read KV record OUTPUT. Diagnostics do not add dataset rows or item charges. The existing overview remains available; Identity and coverage adds venue IDs, requested markets, community counts and reported totals.
savedUniqueCount: unique venue rows saved; equals the sum of per-targetsavedCountafter a completed run.requestedTargetCount: all supplied entries, before validation and canonical-target deduplication.uniqueTargetCount,duplicateInputTargetCount,invalidInputCount: distinct valid targets, repeated canonical inputs, and skipped invalid entries.attemptedTargetCount,unprocessedTargetCount: distinct valid targets attempted or not reached, because the global cap or the run timeout stopped processing. Unattempted targets are not labeled failed.globalCapStopped: the cap prevented inspection of remaining page records or targets; reaching the cap exactly at the end of the final page is not itself a stop.deadlineStopped: the run neared its timeout, so at least one target was cut off or not searched.targets: each attempted canonicalsourceUrl, plus any target the timeout left unsearched, withstatus(success,empty,failed,partialwhen the timeout cut the search short,not_searchedwhen the timeout came first),reportedTotal,embeddedVenueCount(records read for the target, which can be one above the cap on open-dataset runs),savedCount,duplicateCount, and sanitizedfailureReasonwhen relevant. A valid duplicate-only page issuccesswith zero saved rows, not an inaccessible page. Duplicate counts cover records inspected before the cap, not unseen records.
The summary is persisted before no-results failure when possible; all-invalid or all-unavailable batches still fail. Initialization, storage or platform failures can prevent a complete summary.
Example for a capped page followed by an unattempted city:
{"savedUniqueCount": 2,"requestedTargetCount": 2,"uniqueTargetCount": 2,"duplicateInputTargetCount": 0,"attemptedTargetCount": 1,"unprocessedTargetCount": 1,"invalidInputCount": 0,"globalCapStopped": true,"deadlineStopped": false,"targets": [{"sourceUrl": "https://redirect.foursquare.com/locations/example-coffee/example-city","status": "success","reportedTotal": 120,"embeddedVenueCount": 30,"savedCount": 2,"duplicateCount": 0}]}
Structured schedules preserve rendered source day labels and times, not normalized timestamps, inferred day numbers or 168 hourly popularity values. Each schedule is bounded to 32 periods and 32 open entries per period, with labels up to 200 characters; the existing flattened fields remain unchanged. Unknown values are omitted; numeric zero and boolean false are retained.
Tips for reliable runs
- ✅ Use the brand's plain name and one of the covered metros.
- ✅ Begin with
maxItems: 10to inspect the result shape. - ✅ Use separate city URLs for a multi-market comparison.
- ✅ Store
venueIdas the warehouse merge key. - ✅ Compare
scrapedAtandsourceUrlwhen refreshing records. - ❌ Do not pass individual venue detail URLs.
- ❌ Do not expect ratings, hours, tips, or photos on
foursquare-os-placesrows.
Scheduling a Foursquare monitor
Monitoring works only on rows from live pages. While the Actor reads the fixed open-dataset snapshot, repeat runs return the same venues, so a schedule shows no changes. Check that dataSource is live-page before relying on this.
If live pages return, create an Apify Task from a tested input and add a daily, weekly, or monthly schedule. A practical refresh workflow is:
- run the same brand/city list each week;
- export rows to a named table or warehouse;
- join on
venueId; - detect newly seen and missing locations;
- compare address and contact changes;
- alert only on meaningful differences.
The Actor itself does not retain previous snapshots or label a venue as opened or closed. Your destination system controls that business logic.
Integrations
Google Sheets
Use the Apify Google Sheets integration to load a city-by-city location list for non-technical analysts.
Make
Trigger a run from a scenario, wait for completion, iterate dataset rows, and route qualified venues into a CRM.
Zapier
Start a saved Task on demand and send venue rows into sales or operations workflows.
Webhooks
Attach a run-succeeded webhook that notifies your ETL service with the dataset ID.
Warehouses and BI
Pull dataset JSON through the API and upsert on venueId into BigQuery, Snowflake, PostgreSQL, or a lakehouse.
Use the Actor with the Apify API
The Actor ID is automation-lab/foursquare-locations-scraper.
Keep your Apify token in an environment variable. Never commit it to source control.
JavaScript API example
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('automation-lab/foursquare-locations-scraper').call({locations: [{ brand: 'Starbucks', city: 'New York City' }],maxItems: 10,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python API example
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ['APIFY_TOKEN'])run = client.actor('automation-lab/foursquare-locations-scraper').call(run_input={'locations': [{'brand': 'Starbucks', 'city': 'New York City'}],'maxItems': 10,})items = client.dataset(run['defaultDatasetId']).list_items().itemsprint(items)
cURL API example
curl -X POST \"https://api.apify.com/v2/acts/automation-lab~foursquare-locations-scraper/runs?token=$APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"locations":[{"brand":"Starbucks","city":"New York City"}],"maxItems":10}'
Use the returned run and dataset IDs to poll status and download results.
Use Foursquare Locations Scraper through MCP
Apify MCP lets Claude Code, Claude Desktop, Cursor, and VS Code call the Actor as a tool.
For Claude Code:
$claude mcp add --transport http apify "https://mcp.apify.com?tools=automation-lab/foursquare-locations-scraper"
For Claude Desktop, Cursor, or VS Code:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=automation-lab/foursquare-locations-scraper"}}}
Example prompts:
- “Scrape 10 Starbucks locations from Foursquare in New York City.”
- “Compare this brand's Foursquare locations in Chicago and Los Angeles.”
- “Return a CSV-ready list of venue IDs, phones, addresses, and coordinates.”
Data quality
The Actor preserves source values and omits unavailable optional fields rather than filling them with guesses.
Open-dataset rows are a snapshot from January 2025, so some venues may have moved or closed since. Check dateRefreshed. Ratings and tips are public Foursquare signals, not independent verification. Opening status can change after scraping. Phone numbers and websites may belong to a chain rather than a specific branch when that is what the source publishes.
Always review a sample before using the data for decisions or outreach.
Error handling
The Actor validates each target independently. Invalid URL forms and incomplete brand/city rows are skipped. A non-200 page or a page without the expected embedded state moves a covered metro to the open dataset; other cities are logged and skipped while other targets continue. When rows are saved but a target failed, was cut off by the timeout or was invalid, the run ends SUCCEEDED and its status message gives the rows delivered, the rows asked for and the cause.
The run fails with a clear error when no valid target is supplied or every target fails or yields zero venue records. One malformed request cannot silently become an empty successful dataset or discard useful rows already saved from another target.
Is it legal to scrape Foursquare locations?
This Actor accesses public web pages and an openly licensed dataset without bypassing a login or CAPTCHA.
You are responsible for your use case. Review Foursquare's terms, applicable database and privacy laws, and outreach rules in your jurisdiction. Do not use public contact information for spam, harassment, sensitive profiling, or unlawful discrimination.
Avoid republishing copyrighted photos or tip text beyond what your use case permits. Minimize stored personal information and honor valid deletion or correction requests.
Limitations
- Open-dataset rows are a January 2025 snapshot without ratings, hours, tips, photos, or community counts.
- Only 20 US metros are covered while live pages are down.
- Brand matching uses names and website domains, so it can miss branches or include a business with exactly the same name.
- A live page exposes up to 30 detailed venue records, and its reported total may exceed exported rows.
- Only brand/city location inputs are supported.
- Individual venue URLs and free-form category search are out of scope.
- Optional fields vary by venue.
- Foursquare can change its pages, and the open-dataset mirror could change or go away.
- The Actor does not enrich emails, fetch social profiles, or access private API data; social contact values are copied only when published in the same source response.
- Community activity counts are source-reported signals, not measured foot traffic.
- The Actor does not infer openings, closures, or ownership changes.
Troubleshooting
Why did my URL fail validation?
Confirm it is a Foursquare /locations/<brand>/<city> link from the redirect, app, www, or bare Foursquare host. Venue detail paths and unrelated Foursquare pages are not supported.
Why did I receive fewer venues than maxItems?
maxItems is a ceiling. A brand may have fewer matching venues in that metro, the run may have neared its timeout, and duplicate venue IDs across inputs are saved only once.
Why is a phone, rating, photo, or tip missing?
Check dataSource. Rows from foursquare-os-places never have ratings, tips, or photos, and other fields vary by venue. Missing fields are omitted rather than represented as invented values.
What should I do after a source-layout error?
Retry once later to rule out a transient response. If it persists, check that the city is one of the covered metros, then open an issue with the input and run ID.
Frequently asked questions
Does this Actor need a Foursquare API key?
No. It reads anonymous public brand/city pages and an anonymously available open dataset.
Does it use AI, a browser, or a residential proxy?
No. The implementation uses direct HTTP, deterministic parsing of embedded structured state, and Parquet range reads; it does not call an AI service, launch a browser, or use a proxy.
Where is run data retained?
Results, key-value records, and logs remain in the user's Apify storage under that account's retention settings and can be deleted with Apify's storage controls. Failed operations send sanitized diagnostic input, exceptions and Actor/build/run IDs to our private GlitchTip service for repair. Secret fields and URL queries are removed, and reports are retained for 30 days. There is no external results cache. Foursquare is the named public data source; this Actor is not affiliated with or endorsed by Foursquare.
Can it scrape every Foursquare venue in a city?
No. It returns one brand per city, not every venue. Free-form category search is out of scope.
Can I export to Excel?
Yes. Choose Excel from the dataset export menu after the run.
Are duplicate venues charged twice?
No. Duplicate Foursquare venue IDs are skipped before saving and charging.
Can I schedule it?
Yes, but while rows come from the open-dataset snapshot every run returns the same venues, so a schedule only shows changes if live pages return.
Data license and attribution
Open-dataset rows come from Foursquare OS Places, read from the Source Coop mirror and filtered by this Actor. The dataset's Apache License 2.0 applies to them, and Foursquare's notice follows.
© 2025 Foursquare Labs, Inc. All rights reserved.
The Foursquare OS Places dataset (the "Data") is licensed under the Apache License, Version 2.0 (the "License"). You may not use, modify, or distribute the Data except in compliance with the License.
As set forth more fully in the License, if you use, modify, or distribute the Data, you must:
- provide recipients with a copy of the License.
- if applicable, include prominent notices to the extent you've changed the Data.
- preserve attribution to Foursquare, including preserving the full content of this NOTICE.txt file.
To ensure appropriate attribution to Foursquare, we recommend the following:
- if using/distributing the Data in flat file form as-is or after making changes/modifications: include this NOTICE.txt file, which may be modified to include an additional notice of your changes/modifications, if any.
- if using/distributing the Data in API form as-is or after making changes/modifications: include a copy of the content from this NOTICE.txt file prominently in your developer documentation for such API, which may be modified to include an additional notice of your changes/modifications, if any.
You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, the Data distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
We also encourage you to join our Placemaker community (https://opensource.foursquare.com/placemaker/)—where you can contribute and provide suggestions to improve the accuracy of the Data for future releases for yourself and others.
Related scrapers
Combine this source-specific dataset with other Automation Lab tools when your workflow needs broader local-market coverage:
- Google Maps Lead Finder — discover businesses by map query and enrich lead fields.
- Zomato Restaurant Search Scraper — build restaurant-specific market lists.
- OpenStreetMap Scraper — retrieve open map place data when Foursquare-specific signals are not required.
Use source IDs separately. Do not assume that similarly named records from different platforms are the same venue without a careful address or coordinate match.
Support
If a brand and covered metro stop working, open an Actor issue and include:
- the input URL or brand/city pair;
- the Apify run ID;
- the expected result;
- the actual error or missing field;
- whether the same page opens anonymously in your browser.
That evidence makes source changes faster to reproduce and fix.