Places API

Castle API

The Castle API returns about 14,390 mapped castle records, with location data and OpenStreetMap tags. Use it to find and analyze castles across multiple countries, from Germany and France to Italy and Switzerland. Records include coordinates, names where available, settlement context, and geographic attributes such as flood risk and land use.

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

Key facts

  • The Castle API contains about 14,390 mapped records.
  • Germany accounts for 32% of castle records, and France accounts for 24.8%.
  • Coordinates are populated for 100% of records.
  • Name is populated for 93% of records.
  • Land-use categories are populated for 48% of records.

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 Livarot-Pays-d'Auge).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/castle/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
CityNameCountryWheelchairWebsiteLatitudeLongitude
SoricoCastello di San GiorgioItalyno—46.174819.38054
—Castello di MesoccoSwitzerland—https://www.castellomesocco.ch/46.38029.23263
Solto CollinaCastello di DossoItaly——45.7790610.02637
LovereIl CastelliereItaly——45.8155810.06353
BovegnoCastel VanilItaly——45.7915510.23797
LozioCastello di LozioItaly——45.9972910.23407
Nago-TorboleCastel PenedeItaly——45.8740910.88608
AlaCastel SaioriItaly——45.8003511.00583
MoriOsservatorioItaly—https://www.anamori.org/trinceenagiagrom/index.php?lng=it45.8626910.94912
—Κουλές στο Νιο ΧωριόGreece——35.4167224.14185

Overview

The Castle API provides mapped records for castles and related historic places, sourced from OpenStreetMap contributors. Developers, researchers and data buyers can use the records to build heritage maps, location tools and regional analyses.

Each record combines geographic coordinates with place properties and contextual data. The properties field contains the OpenStreetMap tags available for that place.

Coverage

The dataset contains about 14,390 records. Germany accounts for 32% and France 24.8%; Poland, Hungary, Switzerland and the Czech Republic are also among the leading countries represented.

Coverage includes regions such as Baden-Württemberg, Bavaria and Normandie, as well as cities and towns including Zülpich, Hilzingen and Beuron. The supplied sample also includes records in Italy, Switzerland and Greece.

Fields

Records include lat and lng coordinates, properties containing OpenStreetMap tags, source, name, and settlement_class, which identifies a city, town or countryside setting. Coordinates, properties, source and settlement_class are populated for all records; name is populated for 93%.

Geographic context fields include ghsl_pop_1km_2020 for nearby population, flood_zone for flood risk, climate_group for climate classification, and land_use_categories for land use. Climate group is populated for 99% of records and land use categories for 48%.

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

Queries

Filter records by region, radius, date or selected fields to focus on a place or analysis area. Use stream access for live queries, or bulk download for whole datasets.

Available data formats are JSON, GeoJSON, CSV and Parquet. The dataset is based on OpenStreetMap contributor data, so source tags and place attributes can vary by record.

Use cases

Build heritage and tourism maps that locate castles and display their names and OpenStreetMap details.

Compare mapped castle coverage across countries, regions and cities, including Germany, France and Italy.

Enrich travel or local discovery products with nearby population and settlement context.

Assess castle locations alongside flood-zone, climate-group and land-use information.

Create research datasets for studying the geographic distribution of historic fortified places.

Pricing

The data is available in JSON, GeoJSON, CSV and Parquet. An API key is used for access; a free tier is available, with paid plans for higher limits and bulk downloads.

The source is OpenStreetMap contributors, licensed under the Open Database License (ODbL).

Frequently asked questions

Is there an API for castle locations?

Yes. The Castle API provides about 14,390 mapped castle records with coordinates and OpenStreetMap properties. Records cover multiple countries, with Germany and France making up the largest shares of the dataset.

Which countries have the most castle records?

Germany has the largest share at 32%, followed by France at 24.8%. Poland accounts for 7.6%, Hungary 7.2%, and Switzerland 5.9% of the records.

Can I get castle data for a specific region?

Yes. You can filter records by region to focus on areas such as Bavaria, Baden-Württemberg or Normandie. Coverage also includes individual cities and towns such as Zülpich, Hilzingen and Beuron.

What fields does the Castle API return?

Records include latitude, longitude, OpenStreetMap properties, source, name and settlement class. Additional context includes nearby population, flood zone, climate group and land-use categories. Not every optional field is populated for every record.

Does the API include castle coordinates?

Yes. Latitude and longitude are included and are populated for all records. The coordinates can be used to map castle locations or combine them with geographic context fields.

Can I download the castle dataset in bulk?

Yes. Bulk downloads are available for whole datasets on paid plans. Supported formats include JSON, GeoJSON, CSV and Parquet.

How often is the castle data updated?

The supplied dataset information does not specify an update schedule. The records are sourced from OpenStreetMap contributors, and the properties field contains the OpenStreetMap tags available for each place.

Can I use castle records for geographic analysis?

Yes. Records include coordinates and contextual fields such as flood zone, climate group, nearby population and land-use categories. Land-use categories are populated for 48% of records, so coverage for that field is incomplete.

Start building with the Castle API

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