Places API

Flag API

The Flag API returns mapped locations tagged as flags in OpenStreetMap, with about 6,178 records. Each record can include coordinates, OpenStreetMap tags, source information, and enrichment such as nearby population and elevation. Developers can use the data to map flag locations, explore geographic coverage, and build location-based datasets.

France, Germany · 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": "flag",
    "region_id": "44958",
    "limit": 50
  }'

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. 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 Saarbrücken).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/flag/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
NameCountryLatitudeLongitude
HomeIndia11.0143976.18277
HomeIndia11.0143876.18295
HomeIndia11.014776.18277
HomeIndia11.014776.18278
HomeIndia11.0143276.18227
HomeIndia11.0143176.18228
homeIndia11.157576.18836
homeIndia11.1574376.18833
shopeIndia11.1613676.18327
bustope college short cut roadIndia11.1378676.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).

  • latLatitude
  • lngLongitude
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • brandBrand or chain
  • ghsl_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.