Key facts
- The Flag API contains about 6,178 mapped records.
- France accounts for 46.2% of records, and Germany accounts for 41%.
- Hauts-de-France represents 17% of the records.
- Saarbrücken accounts for 9% of the records.
- The API provides JSON, GeoJSON, CSV, and Parquet formats.
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 Saarbrücken).
Bulk download
GET https://api.outerview.ai/api/v1/beacon/flag/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 |
|---|---|---|---|
| Home | India | 11.01439 | 76.18277 |
| Home | India | 11.01438 | 76.18295 |
| Home | India | 11.0147 | 76.18277 |
| Home | India | 11.0147 | 76.18278 |
| Home | India | 11.01432 | 76.18227 |
| Home | India | 11.01431 | 76.18228 |
| home | India | 11.1575 | 76.18836 |
| home | India | 11.15743 | 76.18833 |
| shope | India | 11.16136 | 76.18327 |
| bustope college short cut road | India | 11.13786 | 76.19087 |
Overview
This API provides geographic records for flags, typically colored fabric displaying a symbol, pattern, or national emblem. The records are sourced from OpenStreetMap contributors under the ODbL.
Mapping teams, researchers, and data buyers can use the locations and tags to study mapped flags or combine them with other place data.
Coverage
The dataset contains about 6,178 records. France accounts for 46.2% and Germany for 41%; other represented countries include Switzerland, the Czech Republic, Belgium, Russia, Poland, and India.
Notable regional concentrations include Hauts-de-France and Baden-Württemberg. City coverage includes Saarbrücken, Karlsruhe, Lille, Witten, and Liévin.
Fields
Every record has latitude and longitude, OpenStreetMap tags in properties, and a source field identifying the source dataset. The properties contain the available tags describing the mapped place.
Some records also include a brand or chain (20% filled), estimated population within 1 km for 2020 (98% filled), and elevation in metres (89% filled).
latLatitudelngLongitudepropertiesAll OpenStreetMap tags for the placesourceSource datasetbrandBrand or chainghsl_pop_1km_2020How many people live here (people)elevation_mHeight above sea level (m)
Queries
Filter flag records by region or radius, select the fields your application needs, and use a date filter when a relevant date field is available. Stream results for live queries or use a bulk download for a whole dataset.
Available output formats are JSON, GeoJSON, CSV, and Parquet.
Use cases
Build maps of mapped flag locations and compare their distribution across regions. Identify areas with many mapped flags for local geographic research.
Combine flag coordinates with population or elevation data to study surrounding context. Use OpenStreetMap tags to classify locations, or incorporate the records into geographic search and discovery products.
Pricing
The API offers an API key, a free tier, and paid plans for higher limits and bulk downloads. No specific prices are stated here.
Choose JSON, GeoJSON, CSV, or Parquet according to your application or analysis workflow.
Frequently asked questions
Is there an API for flag locations?
Yes. The Flag API provides about 6,178 mapped flag records sourced from OpenStreetMap. Records include coordinates and OpenStreetMap tags, with additional fields such as population and elevation available for many records.
Which countries have the most flag records?
France and Germany have the largest shares in this dataset. France accounts for 46.2% of records and Germany for 41%; Switzerland, the Czech Republic, Belgium, Russia, Poland, and India are also represented.
What fields does the Flag API return?
Every record includes latitude, longitude, OpenStreetMap properties, and a source field. Brand or chain information is available for 20% of records, population within 1 km for 2020 for 98%, and elevation for 89%.
Can I get flag locations as GeoJSON?
Yes. GeoJSON is one of the available formats, alongside JSON, CSV, and Parquet. The records include latitude and longitude, which can support geographic mapping workflows.
Can I filter flag records by region or radius?
Yes. The API supports filtering by region or radius. You can also select fields for your query; date filtering applies when a relevant date field is available.
How often is the Flag API data updated?
A specific update schedule is not stated. The records come from OpenStreetMap contributors, so consult the API's current data information when you need to confirm the freshness of a particular location.
Can I download the complete flag dataset?
Bulk downloads are available on paid plans. The API supports JSON, GeoJSON, CSV, and Parquet, so you can choose a format suited to your mapping or analysis tools.
What is the source and license for the flag data?
The data is sourced from OpenStreetMap contributors and is provided under the ODbL. Review the applicable OpenStreetMap attribution and license requirements before using or redistributing the data.
Start building with the Flag API
Free to try. Paid plans raise limits and unlock bulk downloads.