Places API

Diplomatic API

The Diplomatic API returns OpenStreetMap records for diplomatic places, with about 10,948 records and global coverage. Records include coordinates and available place details such as names, addresses, websites and opening hours, alongside geographic context including population, flood risk, climate group and land use.

United States, Russia · JSON, GeoJSON, CSV, Parquet

POSThttps://api.outerview.ai/v1/stream
curl https://api.outerview.ai/v1/stream \
  -X POST \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "diplomatic",
    "region_id": "143179",
    "limit": 50
  }'

Key facts

  • The Diplomatic API contains about 10,948 OpenStreetMap records.
  • The United States accounts for 11.7% of listed records.
  • New York City has the highest listed city share at 4.5%.
  • The API offers JSON, GeoJSON, CSV and Parquet.

Quick start

  1. 1. Create an account and generate an API key on the developer platform.
  2. 2. Send it as a Bearer token in the Authorization header.
  3. 3. Query by place, radius or date (the example searches New York City).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/diplomatic/download?format=geojson

Add &region_slug=… to limit to one place. Formats: csv, geojson, parquet.

Sample records

Real records from the data, trimmed to the main fields.

10 records
NameAddressCountryWebsiteHoursLatitudeLongitude
Ambasada Kuby48 Domaniewska Warszawa 02-672Polandhttp://misiones.minrex.gob.cu/es/poloniaMo-Fr 08:30-16:0052.1835320.99691
Konsulat Mali6 Podborska Warszawa 02-221Polandhttps://konsulat-mali.pl/—52.1919820.9577
Konsulat Uzbekistanu21 Wernyhory Warszawa 02-727Poland——52.176221.0251
Ambasada Syrii38A Świeradowska Warszawa 02-662Polandhttp://mofaex.gov.sy/warsaw-embassy/Mo-Fr 08:30-15:0052.1776321.0184
Rezydencja Ambasadora Peru2 ZawratPoland——52.1865621.02709
Ambasada Mołdawii1 Imielińska Warszawa 02-710Polandhttps://polonia.mfa.gov.md/Mo-Fr 08:00-17:0052.1866721.03463
Ambasada Macedonii Północnej40 Królowej Marysieńki Warszawa 02-954Polandhttps://warsaw.mfa.gov.mk/en—52.1729121.07342
Ambasada Jemenu54 Królewicza Jakuba Warszawa 02-956Polandhttps://www.embassy-of-yemen.pl/Mo-Fr 09:00-15:0052.1744721.07387
Rezydencja Ambasadora Algierii75 Królewicza JakubaPoland——52.1755121.07205
Ambasada Angoli12 Urodzajna Warszawa 02-954Polandhttp://embangola.plMo-Fr 09:00-15:3052.1696221.07919

Diplomatic place data from OpenStreetMap

The API covers places associated with diplomats and international government representatives, including embassies, consulates and ambassadorial residences. Its source is OpenStreetMap contributors, under the ODbL.

Developers and data teams can use the records to map diplomatic locations, enrich location datasets and analyze the geographic context around these places.

Global coverage, including major cities

The dataset contains about 10,948 records across countries. The United States accounts for 11.7% of records, followed by Russia at 3.9%, Sweden at 3.8% and Brazil at 3.3%.

New York City has the largest listed city share at 4.5%. Other listed cities include Moscow, Accra, Sydney, Madrid, Mexico City, Rio de Janeiro, Chicago, Toronto and San Francisco.

Location, place and geographic context fields

Each record includes latitude and longitude, all available OpenStreetMap tags in properties, the source dataset, and settlement class. Name is filled for 99% of records; website is filled for 61%, address for 49% and opening_hours for 34%.

Geographic context fields include population within 1 km for 2020, flood zone, climate group and land-use categories. These are filled for 100%, 100%, 97% and 84% of records, respectively.

  • latLatitude
  • lngLongitude
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • nameName of the place
  • websiteWebsite
  • addressStreet address
  • opening_hoursOpening hours (OpenStreetMap format)
  • settlement_classCity, town or countryside
  • ghsl_pop_1km_2020How many people live here (people)
  • flood_zoneFlood risk
  • climate_groupClimate group
  • land_use_categoriesLand use

Filter and retrieve diplomatic records

Filter records by region or radius, choose the fields you need, and use date filters where supported by the available data. The listed record fields do not include a date field, so date filtering may not apply to every record or query.

Use streaming for live queries and bulk downloads for whole datasets. Available formats are JSON, GeoJSON, CSV and Parquet.

What you can build with diplomatic data

Build maps or directories of embassies, consulates and diplomatic residences, using coordinates and available names, addresses and websites.

Create location-based lookup tools for users seeking diplomatic offices near a city or within a radius.

Enrich geographic analysis with local population, flood-risk, climate and land-use context around diplomatic places.

Compare the distribution of diplomatic locations across countries and cities, or combine the records with other place data for planning and research.

Develop contact and visit-planning interfaces that show available websites and opening hours.

Formats and access

The API supports JSON, GeoJSON, CSV and Parquet. Access requires an API key, with a free tier available.

Paid plans offer higher limits and bulk downloads for working with whole datasets. Pricing is not stated here.

Frequently asked questions

Is there an API for embassy and consulate locations?

Yes. The Diplomatic API provides OpenStreetMap records for diplomatic places, including embassies, consulates and ambassadorial residences. Records include coordinates and, when available, details such as names, addresses, websites and opening hours.

Does the Diplomatic API include locations in New York City?

Yes. New York City is included, and it has the largest listed city share at 4.5%. The dataset also lists diplomatic locations in cities such as Moscow, Accra, Sydney, Madrid, Mexico City and Chicago.

What fields does the Diplomatic API return?

Records include latitude, longitude, OpenStreetMap tags, source and settlement class. Available place details include name, website, address and opening hours. Geographic context fields include population within 1 km for 2020, flood zone, climate group and land-use categories.

Can I filter diplomatic locations by region or radius?

Yes. Queries can be filtered by region or radius, and you can select the fields you need. The API also supports date filtering where the available data supports it, though the listed record fields do not include a date field.

How often is diplomatic place data updated?

A specific update frequency is not stated. The records come from OpenStreetMap contributors, so check the data available through the API when freshness matters to your application or analysis.

What formats are available for diplomatic data?

The Diplomatic API offers JSON, GeoJSON, CSV and Parquet. These formats support common application, mapping, tabular and analytical workflows.

Can I download the full diplomatic dataset?

Yes. Bulk downloads are available on paid plans for working with whole datasets. Streaming is available for live queries, while the API also supports individual queries and the listed data formats.

What geographic context is included for diplomatic locations?

Records include settlement class, population within 1 km for 2020, flood zone, climate group and land-use categories. The population, flood-zone and settlement-class fields are filled for all records; climate group is filled for 97% and land use for 84%.

Start building with the Diplomatic API

Free to try. Paid plans raise limits and unlock bulk downloads.