# OpenStreetMap Scraper

Scrape detailed information(opening hours, phone numbers, emails, etc) from OpenStreetMap by URL

- Template page: [https://www.octoparse.com/template/openstreetmap-scraper](https://www.octoparse.com/template/openstreetmap-scraper)
- Categories: Maps
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from detail pages.

## Output

The current workflow extracts 15 fields, including `Amenity`, `City`, `Email`, `Housenumber`, `Latitude`, `Longitude`, `Opening_hours`, `Page_URL`, `Phone`, `Postcode`, `State`, `Street`, `Title`, `Twitter`, `Website`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Details page URL (up to 1,000 per run) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Details page URL (up to 1,000 per run)

Required. Enter a list of detail page URLs to get information from search results on OpenStreetMap. Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=5000.

## How to Use

# OpenStreetMap Scraper

This template extracts detail-page records from [OpenStreetMap](https://www.openstreetmap.org/). Collected fields include Title, Page URL, Phone, Email, Latitude, Longitude, State, City, Street, Housenumber, Postcode, Amenity, Opening_hours, Website, and Twitter.

**Pricing:** Free of charge (no per-line fee). Octoparse plan or resource limits may still apply.

## Input

- **Details page URL** (Required) — Enter a list of OpenStreetMap detail page URLs. Up to 1,000 entries per run.

## How to Use

1. Open OpenStreetMap Scraper and click **Try it!**.
2. Complete **Details page URL** using the formats and limits shown above.
3. Choose a local or cloud run in Octoparse and start the task.
4. Review fields such as `Title`, `Page_URL`, and `Latitude`, then export the rows in the format you need.

## Tips

- Test one representative value in **Details page URL** before submitting a large batch.
- Keep `Page_URL` in the export so every row can be traced to its originating input.

## Notes

Due to OpenStreetMap being an open-source map, the results obtained may not necessarily be accurate. Please use the information at your discretion, and Octoparse does not take responsibility for the accuracy of the data you collect. If you don't have detail page URLs, you can use the "Listing page by keyword_OpenStreetMap" template by entering keywords to obtain results. If the template doesn't work well, feel free to report it to us with the parameters you test We also provide managed template/crawler customization services. If you're interested, please contact template@octoparse.com with your project details

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [OpenStreetMap Listing Scraper](https://www.octoparse.com/template/openstreetmap-listing-scraper)
- [Bic Camera Search Results Scraper](https://www.octoparse.com/template/bic-camera-search-results-scraper)
- [Google Search Scraper](https://www.octoparse.com/template/google-search-scraper)
- [Google Maps Listings Scraper (by Keywords)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-keyword)
- [Google Maps Email Scraper & Extractor](https://www.octoparse.com/template/google-maps-contact-scraper)

## Input Schema

```json
{
  "title": "OpenStreetMap Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "details_page_URL": {
      "title": "Details page URL (up to 1,000 per run)",
      "description": "Enter a list of detail page URLs to get information from search results on OpenStreetMap.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "details_page_URL"
  ]
}
```

## Input JSON Example

No verified real input/output examples are currently available.


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Amenity": {
      "type": "string",
      "description": ""
    },
    "City": {
      "type": "string",
      "description": ""
    },
    "Email": {
      "type": "string",
      "description": ""
    },
    "Housenumber": {
      "type": "string",
      "description": ""
    },
    "Latitude": {
      "type": "string",
      "description": ""
    },
    "Longitude": {
      "type": "string",
      "description": ""
    },
    "Opening_hours": {
      "type": "string",
      "description": ""
    },
    "Page_URL": {
      "type": "string",
      "description": ""
    },
    "Phone": {
      "type": "string",
      "description": ""
    },
    "Postcode": {
      "type": "string",
      "description": ""
    },
    "State": {
      "type": "string",
      "description": ""
    },
    "Street": {
      "type": "string",
      "description": ""
    },
    "Title": {
      "type": "string",
      "description": ""
    },
    "Twitter": {
      "type": "string",
      "description": ""
    },
    "Website": {
      "type": "string",
      "description": ""
    }
  },
  "title": "OpenStreetMap Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

No verified real input/output examples are currently available.

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

No verified real input/output examples are currently available.

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `openstreetmap-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/openstreetmap-scraper.json)
- [Manifest](https://www.octoparse.com/templates/openstreetmap-scraper-manifest.json)
