Key facts
- The API contains about 9,381 OpenStreetMap public-building records.
- Japan accounts for 44.6% of the records.
- Indonesia accounts for 10% of the records.
- Latitude, longitude, OpenStreetMap tags, and source are populated for all records.
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 Saint-Denis).
Bulk download
GET https://api.outerview.ai/api/v1/beacon/public-building/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 | Country | Latitude | Longitude |
|---|---|---|---|
| 武雄税務署 | Japan | 33.19485 | 130.02138 |
| 沖ノ洲樋門 | Japan | 34.0788 | 134.58047 |
| Натарыяльная кантора | Belarus | 52.45112 | 30.99729 |
| Administration Générale des Douanes | Haiti | 18.54355 | -72.34185 |
| Administration Générale des Impôts | Haiti | 18.54481 | -72.34156 |
| Disaster Management Unit | Trinidad And Tobago | 10.64864 | -61.42577 |
| หมวดการทางหนองหิน | Thailand | 17.12181 | 101.85886 |
| Young Ambassadors for Peace Office | Papua new Guinea | -5.83617 | 142.9802 |
| Gemeindekanzlei | Switzerland | 47.24154 | 7.96989 |
| Direction Generale des Impots Direction Regonale Aquin | Haiti | 18.28262 | -73.393 |
Overview
This API provides OpenStreetMap records associated with the public-building tag. Records may describe named places such as tax offices, customs administrations, government offices, and other public-facing or administrative locations.
Developers and data buyers can use the records for mapping, location analysis, and research. OpenStreetMap discourages this tag and recommends more specific building or feature tags, so treat the results as existing tagged data rather than a preferred classification.
Coverage
The dataset contains about 9,381 records across multiple countries. Japan accounts for 44.6% of records, followed by Indonesia at 10%, Georgia at 6.6%, India at 5.4%, and Russia at 4.6%.
Other represented countries include Haiti, Kenya, and the Philippines. The listed regional coverage includes West Nusa Tenggara and several Japanese prefectures, including Fukuoka, Chiba, and Hiroshima. Sample records also include locations in Haiti, Belarus, Trinidad and Tobago, Thailand, Papua New Guinea, and Switzerland.
Fields
Each record includes latitude and longitude, all available OpenStreetMap tags in properties, and the source dataset. These fields are populated for all records.
The name field is present for 96% of records. Records also include estimated population within one kilometre for 99% and elevation in metres for 98%.
latLatitudelngLongitudepropertiesAll OpenStreetMap tags for the placesourceSource datasetnameName of the placeghsl_pop_1km_2020How many people live here (people)elevation_mHeight above sea level (m)
Queries
Filter records by region, radius, date, or selected fields to focus an analysis on a place or subset of the available data. Stream results for live queries, or use a bulk download when you need a whole dataset.
Available output formats are JSON, GeoJSON, CSV, and Parquet. The data comes from OpenStreetMap contributors and is available under the ODbL.
Use cases
Build maps of tagged public and administrative buildings, or compare their distribution across countries and regions.
Find named offices and public-service locations for location research, add building context to geographic analysis, examine nearby population and elevation, and audit how public-building features are tagged in OpenStreetMap.
Access and pricing
Data is available in JSON, GeoJSON, CSV, and Parquet. An API key provides access, with a free tier for getting started.
Paid plans are available for higher limits and bulk downloads. Pricing is not stated here.
Frequently asked questions
Is there an API for public-building data in Japan?
Yes, this API provides OpenStreetMap records tagged as public buildings, and Japan accounts for 44.6% of its records. Records include coordinates and OpenStreetMap tags, with a name field for most entries. The tag itself is discouraged by OpenStreetMap, so results reflect existing tagging.
How many public-building records does the API contain?
The dataset contains about 9,381 records. It covers multiple countries, with the largest share in Japan at 44.6%, followed by Indonesia at 10% and Georgia at 6.6%. Coverage and names vary across records.
What fields does the Public Building API return?
Records include latitude, longitude, OpenStreetMap tags, and source dataset. They may also include a place name, estimated population within one kilometre, and elevation in metres. Coordinates, tags, and source are populated for all records; the other fields have slightly lower completeness.
Can I filter public-building records by region or radius?
Yes, you can filter records by region or radius to focus on a geographic area. You can also filter by date or selected fields. The dataset includes coordinates for every record, supporting location-based analysis.
Which countries have the most public-building records?
Japan has the largest share at 44.6%, followed by Indonesia at 10%, Georgia at 6.6%, India at 5.4%, and Russia at 4.6%. Haiti, Kenya, and the Philippines are also among the countries represented in the coverage breakdown.
Does the Public Building API return GeoJSON?
Yes, GeoJSON is one of the available formats. The API also offers JSON, CSV, and Parquet. Records contain latitude and longitude, making them suitable for geographic data workflows.
How often is the public-building data updated?
An update frequency is not specified for this dataset. The records come from OpenStreetMap contributors, so check the available data when you need to confirm whether a particular building or tag is current.
Is the OpenStreetMap public-building tag recommended?
No, OpenStreetMap discourages using this tag. Its guidance recommends building=civic or building=public, or a more specific feature tag such as office=government or amenity=townhall. This API is useful for finding existing public-building-tagged records, not for recommending that tagging choice.
Start building with the Public Building API
Free to try. Paid plans raise limits and unlock bulk downloads.