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. Create an account and generate an API key on the developer platform.
- 2. Send it as a Bearer token in the
Authorizationheader. - 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=geojsonAdd ®ion_slug=… to limit to one place. Formats: csv, geojson, parquet.
Sample records
Real records from the data, trimmed to the main fields.
| Name | Address | Country | Website | Hours | Latitude | Longitude |
|---|---|---|---|---|---|---|
| Ambasada Kuby | 48 Domaniewska Warszawa 02-672 | Poland | http://misiones.minrex.gob.cu/es/polonia | Mo-Fr 08:30-16:00 | 52.18353 | 20.99691 |
| Konsulat Mali | 6 Podborska Warszawa 02-221 | Poland | https://konsulat-mali.pl/ | — | 52.19198 | 20.9577 |
| Konsulat Uzbekistanu | 21 Wernyhory Warszawa 02-727 | Poland | — | — | 52.1762 | 21.0251 |
| Ambasada Syrii | 38A Świeradowska Warszawa 02-662 | Poland | http://mofaex.gov.sy/warsaw-embassy/ | Mo-Fr 08:30-15:00 | 52.17763 | 21.0184 |
| Rezydencja Ambasadora Peru | 2 Zawrat | Poland | — | — | 52.18656 | 21.02709 |
| Ambasada Mołdawii | 1 Imielińska Warszawa 02-710 | Poland | https://polonia.mfa.gov.md/ | Mo-Fr 08:00-17:00 | 52.18667 | 21.03463 |
| Ambasada Macedonii Północnej | 40 Królowej Marysieńki Warszawa 02-954 | Poland | https://warsaw.mfa.gov.mk/en | — | 52.17291 | 21.07342 |
| Ambasada Jemenu | 54 Królewicza Jakuba Warszawa 02-956 | Poland | https://www.embassy-of-yemen.pl/ | Mo-Fr 09:00-15:00 | 52.17447 | 21.07387 |
| Rezydencja Ambasadora Algierii | 75 Królewicza Jakuba | Poland | — | — | 52.17551 | 21.07205 |
| Ambasada Angoli | 12 Urodzajna Warszawa 02-954 | Poland | http://embangola.pl | Mo-Fr 09:00-15:30 | 52.16962 | 21.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.
latLatitudelngLongitudepropertiesAll OpenStreetMap tags for the placesourceSource datasetnameName of the placewebsiteWebsiteaddressStreet addressopening_hoursOpening hours (OpenStreetMap format)settlement_classCity, town or countrysideghsl_pop_1km_2020How many people live here (people)flood_zoneFlood riskclimate_groupClimate groupland_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.