# Nominatim Geocoder Scraper (`kawsar/nominatim-geocoder-scraper`) Actor

Turn place names and addresses into precise geographic coordinates instantly. Feed your query list and export clean location data, IDs, and display names to JSON, CSV, or Excel with ease

- **URL**: https://apify.com/kawsar/nominatim-geocoder-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Nominatim Geocoder Scraper

Convert place names and address queries into geographic coordinates with Nominatim Geocoder Scraper. Powered by OpenStreetMap data, this actor finds matching locations and returns structured information, including place IDs, coordinates, geographic classifications, and display names. Export your results as JSON, CSV, Excel, or other supported dataset formats.

### What This Actor Does

This actor performs forward geocoding to find locations matching your search queries.

Provide one or more place names or addresses to collect matching geographic records. Results can include OpenStreetMap identifiers, latitude, longitude, place classifications, display names, and licence information.

You can control the number of matches requested per query and set a maximum number of records to collect.

### Search Mode

**Search:** Convert place names or addresses into matching geographic records using Nominatim geocoding.

### Input Example

```json
{
  "mode": "search",
  "queries": ["Berlin"],
  "limit": 1,
  "maxItems": 100,
  "requestDelaySecs": 1
}
```

### Input Parameters

| Parameter | Description |
|---|---|
| `mode` | Collection mode. Use `search` for forward geocoding. |
| `queries` | Array of place names or addresses to search. |
| `limit` | Maximum number of matching results requested per query. |
| `maxItems` | Maximum number of records to collect. |
| `requestDelaySecs` | Delay between requests, in seconds. |

### Output Example

```json
{
  "place_id": 145549253,
  "osm_type": "relation",
  "osm_id": 62422,
  "lat": "52.5173885",
  "lon": "13.3951309",
  "placeClass": "boundary",
  "placeType": "administrative",
  "display_name": "Berlin, Deutschland",
  "licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `place_id` | Identifier assigned to the returned place. |
| `osm_type` | Type of the associated OpenStreetMap object. |
| `osm_id` | OpenStreetMap object identifier. |
| `lat` | Latitude coordinate. |
| `lon` | Longitude coordinate. |
| `placeClass` | Geographic classification of the location. |
| `placeType` | Specific place type. |
| `display_name` | Full display name of the matched location. |
| `licence` | Licence information associated with the geographic data. |
| `scraped_at` | Timestamp when the record was collected. |

### Use Cases

- **Address Enrichment:** Convert city, street, and address names into latitude and longitude coordinates for maps and business records.
- **Transport Planning:** Resolve station names, destinations, and other locations before using routing or distance calculation tools.
- **Data Quality Checks:** Compare stored geographic coordinates with geocoding results to identify inconsistencies.
- **Geographic Research:** Build structured location datasets for spatial analysis and research.
- **Mapping Projects:** Prepare geographic identifiers and coordinates for location-based applications.
- **Bulk Location Processing:** Search multiple place names and export matching records for further analysis.

### FAQ

**What is Nominatim Geocoder Scraper used for?**

It converts place names and address queries into geographic information, including coordinates, OpenStreetMap identifiers, and display names.

**Can I search for multiple locations?**

Yes. Add multiple place names or addresses to the `queries` array.

**Can I control the number of results per query?**

Yes. Use `limit` to specify the maximum number of matching results requested for each query.

**What coordinate information does it return?**

Matching records include `lat` and `lon` fields containing latitude and longitude values.

**Does the output include OpenStreetMap identifiers?**

Yes. Results include `place_id`, `osm_type`, and `osm_id`, along with geographic classification information.

**Can I export the results?**

Yes. Apify supports exporting dataset records as JSON, CSV, Excel, and other available formats.

**Can I schedule recurring geocoding runs?**

Yes. Configure an Apify schedule to refresh your selected location queries automatically at your preferred intervals.

### Trademark Notice

Nominatim and OpenStreetMap are names and trademarks associated with their respective projects and owners. This actor is an independent tool and does not imply affiliation, sponsorship, or endorsement.

### Is Web Scraping Legal?

This actor collects publicly accessible geographic information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source's policies.

- **Personal Data:** Address and location information may sometimes relate to identifiable individuals. Follow applicable privacy laws, including GDPR and CCPA where relevant, and collect only information you are authorized to use.
- **Copyright and Licensing:** OpenStreetMap data is distributed under the Open Database License (ODbL). Review its attribution, share-alike, and other applicable requirements before using or redistributing collected data.
- **Platform Terms and Rate Limits:** Respect Nominatim's usage policies, OpenStreetMap licensing conditions, attribution requirements, and reasonable request practices.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified professional about your intended use.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to fetch. Search forward-geocodes place names via Nominatim.

## `queries` (type: `array`):

Place names or addresses to geocode.

## `limit` (type: `integer`):

Nominatim limit parameter for each search request.

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `requestDelaySecs` (type: `number`):

Seconds to wait before each request. OSM policy is about 1 request per second.

## `userAgent` (type: `string`):

User-Agent header sent with each request. Nominatim requires an identifying UA.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "Springfield"
  ],
  "limit": 1,
  "maxItems": 100,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "queries": [
        "Springfield"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/nominatim-geocoder-scraper").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 = { "queries": ["Springfield"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/nominatim-geocoder-scraper").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 '{
  "queries": [
    "Springfield"
  ]
}' |
apify call kawsar/nominatim-geocoder-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/nominatim-geocoder-scraper"
        }
    }
}
```

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/8v0FOshBgYYoLJIDt/builds/DAYAvW7WbTlmJsolN/openapi.json
