OpenStreetMap POI Extractor avatar

OpenStreetMap POI Extractor

Pricing

from $0.34 / 1,000 poi saveds

Go to Apify Store
OpenStreetMap POI Extractor

OpenStreetMap POI Extractor

Extract public OpenStreetMap POIs by area and category for lead generation, market mapping, and site research.

Pricing

from $0.34 / 1,000 poi saveds

Rating

0.0

(0)

Developer

Fetch Cat

Fetch Cat

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a month ago

Last modified

Features

Limited permissions

Share

Extract public OpenStreetMap points of interest by neighborhood, bounding box, or coordinates. Export names, categories, locations, available contact details, opening hours, and source URLs as CSV, Excel, JSON, or through the Dataset API.

Coverage depends on what OpenStreetMap contributors have mapped. Start with a small area. This Actor is not a whole-country database download or a Google Maps scraper.

For limited exports with enough matching mapped points, the Actor can use Geofabrik's public Postpass service to avoid busy Overpass mirrors. If points alone cannot fill the requested prefix, it queries Overpass for nodes, ways, and relations instead; a short point sample is never treated as complete or empty coverage. An explicit overpassEndpoint is tried first for up to 15 seconds. If it times out, fails, or returns an invalid response, the Actor warns and uses the normal route: complete-prefix Postpass, then compatible Overpass mirrors, without retrying the failed endpoint. A valid custom response, including no matches, remains authoritative. Recovery shares the independent 270-second run budget (or a shorter platform deadline); exhausted services fail rather than being presented as no matches. Fallback does not add a second start charge or duplicate result charges.

Quick start

  1. Open the Actor input and paste a small bounding box in south,west,north,east order.
  2. Choose OSM tag values and a modest result limit.
  3. Start the run, then open the dataset to inspect or download results.
{
"bbox": "40.720,-74.005,40.730,-73.995",
"amenityTags": ["cafe"],
"maxItems": 10,
"includeRawTags": false
}

Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.

Ready-to-run examples

Choose a public example to see its settings before starting a run:

What you get

  • Local business lists: find cafes, restaurants, shops, or pharmacies in a defined area.
  • Site-selection research: compare mapped amenities near properties or proposed locations.
  • Travel and GIS datasets: collect hotels, museums, attractions, coordinates, and OSM object links.
  • Geospatial enrichment: join by OSM ID and inspect optional raw tags for details already mapped in OSM.

The Actor reads nodes, ways, and relations. A mapped area's center may supply its coordinates. It does not return reviews, ratings, photos, or guaranteed contact information.

Who is it for?

  • Local-market researchers examining mapped amenities in a small area.
  • Site-selection analysts reviewing source-linked points of interest near candidate locations.
  • Travel and GIS teams importing object coordinates and mapped attributes.
  • Directory and data developers joining OSM identities with their own geographic records.

How you can use the data

  • Prepare the existing SoHo cafe sample. Use the small Quick start bounding box, cafe amenity and ten-row cap with raw tags off. Keep osmType, osmId, category and sourceUrl with available coordinates before interpreting mapped coverage.
  • Review hotels near a supplied coordinate. Use the existing Berlin coordinate and seven-hundred-fifty-metre radius with amenities cleared and hotel tourism selected. Categories are alternatives, so clearing the default cafe category prevents adding unintended cafe results.
  • Inspect mapped context for your own site analysis. Enable raw tags when you need to inspect mapped accessibility, brand or operator information. The name keyword matches the mapped name rather than brand, and no accessibility-only filter or distance sort is built in.
  • Join and compare your own area exports. Use object type plus ID and retain source links. Related OSM objects can describe the same area or place, and a mapped area's coordinates can be its center. Use stable explicit area inputs for repeat collection, without treating a new query or cursor as an unchanged historical snapshot.

Input settings

Supply one area alternative. With multiple complete alternatives, the priority is bbox, numeric edges, center/radius, then placeName. Incomplete numeric groups are rejected even when another area is present. Form prefills are examples, not API defaults.

SettingJSON keyPurpose
Bounding boxbboxFour comma-separated values: south, west, north, east.
Numeric edgessouth, west, north, eastSupply all four numeric edges together.
Center and radiuscenterLat, centerLon, radiusMetersSupply all three. Radius is 50–10,000 metres.
Place nameplaceNameA small named area, such as a neighborhood with city and country.
AmenitiesamenityTagsValues such as cafe, restaurant, or pharmacy. Omission defaults to cafe. Use [] to exclude amenities.
ShopsshopTagsValues such as supermarket or bakery.
TourismtourismTagsValues such as hotel, museum, or attraction.
Name filterkeywordCase-insensitive literal match within the OSM name, combined with the category filters.
Result limitmaxItemsMaximum saved POIs: 1–1,000. Default 50.
Raw tagsincludeRawTagsInclude the raw OSM tags object. Default false.
Resume cursorresumeFromIndexSkip this many normalized results in a new query. Default 0.
Custom data serviceoverpassEndpointOptional credential-free HTTPS Overpass interpreter URL, tried first; service failures trigger a warning and bounded automatic fallback.

Category values are combined as alternatives, not an intersection. To request only shops or tourism, explicitly set amenityTags to []. At least one nonempty category is needed. There is no distance-based sorting option.

For example, this searches only for hotels near a coordinate:

{
"centerLat": 52.5163,
"centerLon": 13.3777,
"radiusMeters": 750,
"amenityTags": [],
"tourismTags": ["hotel"],
"maxItems": 20
}

Output data

One saved row represents one OSM object. Missing mapped attributes are null. Different OSM objects can represent related places.

Illustrative shape only, not a captured place or a guaranteed result:

{
"osmId": 123456789,
"osmType": "node",
"name": "Example Cafe",
"categoryKey": "amenity",
"categoryValue": "cafe",
"lat": 40.7251,
"lon": -74.0001,
"address": null,
"city": null,
"postcode": null,
"country": null,
"phone": null,
"website": null,
"openingHours": null,
"brand": null,
"operator": null,
"wheelchair": null,
"sourceUrl": "https://www.openstreetmap.org/node/123456789"
}
FieldsMeaning
osmId, osmTypeOSM object ID and type: node, way, or relation.
nameMapped place name, when present.
categoryKey, categoryValueA category tag on the object. Amenity takes precedence over shop and tourism when several exist.
lat, lonObject coordinates or mapped-area center, when available.
address, city, postcode, countryAvailable address tags. address combines mapped components.
phone, website, openingHoursAvailable public contact and hours tags.
brand, operator, wheelchairAvailable brand, operator, and accessibility tags.
rawTagsPresent only when includeRawTags is enabled.
sourceUrlLink to the original OpenStreetMap object.

Download your results

Open your run's dataset, choose Export and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.

See Apify's download and export guide for the available formats and field options.

Pricing

The start event is charged once after area resolution and category validation, before the POI query. The item event applies to saved POI rows after their progress checkpoint. A zero-match query can still incur start, and a failed run can retain saved rows and charges.

Use a small area and saved-row cap. See the live Pricing tab for current rates and plan discounts.

Tips for best results

  • Keep explicit coordinate areas small. The bounding box must use south, west, north, east order.
  • Clear the default amenity when requesting only shops or tourism. Category values combine as alternatives.
  • Keep object type with object ID. Related nodes, ways and relations can describe overlapping places.
  • Review mapped tags rather than inventing missing contacts. OSM coverage varies by contributor and area.
  • Inspect actual saved rows and charges before using a cursor. New queries can overlap previous results.

Limits and caveats

This is a limited public OpenStreetMap query rather than a whole-country download or Google Maps collection. Nodes, ways and relations can have missing mapped attributes or coordinates derived from an area center. Contact details, opening hours and addresses are not guaranteed, and reviews, ratings and photos are not returned.

Provide one complete area alternative. When several complete alternatives exist, bbox takes priority over numeric edges, center/radius and then placeName. Incomplete numeric groups are rejected even if another area is supplied. Correctly ordered bounding boxes must be at most one quarter of a square degree, radius is fifty to ten thousand metres, and saved rows are capped at one thousand. Form prefills are examples rather than API defaults.

At least one nonempty category is needed, with category values combined as alternatives. Clear amenityTags for shop-only or tourism-only searches. Name keyword is a literal case-insensitive match on the mapped name, not brand or accessibility filtering. No distance sort is provided. Named areas depend on public geocoding and can resolve too broadly: use a smaller name or explicit coordinates if rejected.

A completed query without usable mapped POIs succeeds empty. An unsuccessful source query fails rather than proving an area has no places. Saved rows remain available after later failures. Available RUN_SUMMARY reports status, saved and charged counts, next index, empty state, location source, geocoding cache and warnings.

ResumeFromIndex skips normalized results in a fresh query, not a stable snapshot. After interruption, compare the actual dataset and charges before using a stored index: progress can lag after a hard stop or uncertain storage response. Current OSM data can change and cause overlap with earlier output. The Actor does not itself compare runs or monitor changes.

Data is © OpenStreetMap contributors under the ODbL. Review OpenStreetMap attribution and licensing before redistributing mapped information.

Automation and integrations

Save your settings for next time

Once you have an input that works for you, save it as an Apify task. This keeps your settings together so you can use them again without filling in the form from scratch.

Run on a schedule

Need fresh results regularly? You can schedule the Actor or a saved task to run at a time that suits you.

Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.

Send results to your other tools

Use n8n, Make or Zapier to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the Apify integration guides for your chosen tool.

For a custom connection, an Apify webhook can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.

API usage

Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.

The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its defaultDatasetId to fetch the results.

For setup instructions, see Apify's JavaScript client guide, Python client guide and Actor runs API reference.

cURL

curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~openstreetmap-poi-extractor/runs' \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H 'Content-Type: application/json' \
--data @- <<'JSON'
{
"bbox": "40.720,-74.005,40.730,-73.995",
"amenityTags": [
"cafe"
],
"maxItems": 10,
"includeRawTags": false
}
JSON

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/openstreetmap-poi-extractor').call({
"bbox": "40.720,-74.005,40.730,-73.995",
"amenityTags": [
"cafe"
],
"maxItems": 10,
"includeRawTags": false
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('fetch_cat/openstreetmap-poi-extractor').call(run_input={'bbox': '40.720,-74.005,40.730,-73.995', 'amenityTags': ['cafe'], 'maxItems': 10, 'includeRawTags': False})
print(client.dataset(run['defaultDatasetId']).list_items().items)

API usage notes

This REST request starts an asynchronous run. Wait for it to finish, then use its defaultDatasetId with the Dataset API. Do not share your token in support reports.

MCP and AI agents

You can ask your AI assistant to collect data with OpenStreetMap POI Extractor and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.

Connect your assistant through the Apify MCP server. MCP gives your assistant a way to find this scraper, run it and read the results. Follow the official setup and sign-in guide for your app.

Easier setup with an Apify plugin

If you use a supported coding assistant, the official Apify plugin can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.

Use Apify AI in Console

Prefer to keep everything in Apify? Open Apify AI in Console and ask it to find Fetch Cat's OpenStreetMap POI Extractor. You can describe the data you want and ask questions about the results.

Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.

Choose your assistant

Connect just this scraper

To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=fetch_cat/openstreetmap-poi-extractor"
}
}
}

Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.

Use Apify's general server

Already connected to the general Apify MCP server at https://mcp.apify.com? You can use it to find this scraper without adding another server. Ask your assistant to use OpenStreetMap POI Extractor by Fetch Cat, or give it the identifier fetch_cat/openstreetmap-poi-extractor.

Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.

Example requests

  • “Use Fetch Cat’s OpenStreetMap POI Extractor to collect up to 5 cafes in bounding box 40.720,-74.005,40.730,-73.995 with raw tags off. Keep object types, IDs and source links without assuming missing phone or hours means none exist.”
  • “Collect up to 5 hotels within a 750-metre query radius of 52.5163,13.3777, clearing amenity categories and selecting hotel tourism. Keep mapped coordinates and source links without adding cafes or claiming distance-sorted results.”
  • “Retrieve up to 5 cafes in bounding box 40.720,-74.005,40.730,-73.995 with raw tags enabled. Keep available accessibility and operator tags for my own filtering, without inventing unmapped values or automatically resuming an earlier query.”

Normal Apify charges apply. Check the live Pricing tab before asking your assistant to run a larger batch.

Pay with x402

If your AI agent has a funded wallet, it can pay for Apify usage through x402. This experimental option lets an agent use Apify without a conventional account.

Apify AGI provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.

Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.

Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.

Other ways for agents to pay

Apify also supports MPP for prepaid access through AGI and Skyfire for eligible Actors. If your agent already uses one of these, see the agentic payment guide to choose the right setup.

FAQ

Can I download OpenStreetMap POI data as CSV or JSON?

Yes. Export the run dataset as CSV, JSON, or Excel, or retrieve it through the Dataset API. This is a bounded POI search, not a full OSM database export.

Is this an OpenStreetMap POI API alternative?

It wraps a bounded public OSM search in an Apify run with stored results and exports. It is not an official OpenStreetMap service and needs an Apify account. No OSM login or OSM API key is required.

Can I filter by a brand or only show accessible venues?

keyword searches the mapped name, not the brand field. Accessibility is returned in wheelchair when mapped. There is no accessibility-only input filter. Enable raw tags if you need further downstream filtering.

Why did I receive no rows or fewer rows than requested?

The categories, name filter, and selected area may have few or no usable mapped matches. Try a known nearby area and check exact OSM tag values. Missing fields reflect OSM coverage. Increasing the result limit does not fill them.

Can I repeat a search automatically?

Apify supports API automation, integrations, and user-configured schedules. This Actor does not itself monitor changes or compare runs. Use explicit coordinates for repeatable areas.

Support and feedback

For custom additions or integrations, email hello@fetchcat.dev.

Found an error or have a feature request? Open an issue with the run URL, a non-sensitive input example and what you expected.

Need help sharing it? See Apify’s guide to sharing a run when reporting an issue. Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.

Tried this scraper? We'd love to hear how it worked for you. Leave a review to help others choose the right tool and help us improve it. Your feedback means a lot to us.

Made with care for curious people, AI agents and the possibilities in data. ♥