Places API

Courthouse API

The Courthouse API returns mapped courthouse and court-building locations from OpenStreetMap, with about 14,090 records worldwide. Records include coordinates, place names, addresses where available, OpenStreetMap tags, and geographic context such as settlement class and flood risk. Use the data to map courts, analyze civic access, or enrich location-based services.

Chile, Brazil · 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": "courthouse",
    "region_id": "23292",
    "limit": 50
  }'

Key facts

  • The Courthouse API contains about 14,090 records worldwide.
  • Chile accounts for 19% of the courthouse records.
  • Brazil accounts for 17.6% of the courthouse records.
  • Santiago accounts for 0.9% of the 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 Santiago).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/courthouse/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
CityNameAddressCountryWebsiteLatitudeLongitude
ProvidenceProvidence Municipal Court325 WASHINGTON Street, RI, 02903, USUnited States—41.82005-71.42062
ProvidenceUnited States District Court for the District of Rhode Island2 EXCHANGE Terrace, RI, 02903, USUnited States—41.82594-71.4103
ConcordNew Hampshire State Supreme CourtNHUnited States—43.21286-71.51979
LeominsterLeominster District Court2, 25 SCHOOL STREET, MA, LEOMINSTER, 01453, USUnited Stateshttps://www.mass.gov/locations/leominster-district-court42.52798-71.76149
LíbanoJuzgados—Colombia—4.923-75.06031
—Casa de Justicia Martires—Colombia—4.60995-74.0859
—Springlands Magistrate Court—Guyana—5.89136-57.13715
ProvidenciaTercer Juzgado Policía Local Providencia46 La Concepción Providencia CLChile—-33.42533-70.61592
Rivière-du-LoupÉdifice Léon-Casgrain Palais de justice30 rue de la Cour, QC, Rivière-du-Loup, G5R1J3, CACanada—47.83635-69.54021
SouthamptonSuffolk County Surrogate's Court320 Center Drive South, Calverton, NY, Southampton, 11933, USUnited States—40.91429-72.66759

Overview

This dataset represents civic government buildings used as courthouses and related court locations. Records come from OpenStreetMap contributors and include mapped locations with their available tags and geographic context.

Developers, civic data teams, researchers, and location-data buyers can use the API to find court buildings, build maps, and connect courthouse locations with other geographic data.

Coverage

The dataset contains about 14,090 records worldwide. Chile accounts for 19% of records, Brazil 17.6%, Japan 14%, and Argentina 10.8%; records also cover Germany, France, the United States, and other countries.

Coverage includes places such as Santiago, Munich, São Paulo, and Valparaíso. Región Metropolitana de Santiago accounts for 2.6% of records, and the city of Santiago accounts for 0.9%.

Fields

Each record includes latitude and longitude, source dataset, settlement class, and OpenStreetMap properties. Names are present for 98% of records and street addresses for 57%.

Geographic context includes population within one kilometer, flood zone, climate group, land-use categories, and, where available, tree canopy percentage, median household income, and median home value.

  • latLatitude
  • lngLongitude
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • nameName of the place
  • addressStreet address
  • settlement_classCity, town or countryside
  • ghsl_pop_1km_2020How many people live here (people)
  • flood_zoneFlood risk
  • climate_groupClimate group
  • land_use_categoriesLand use
  • nlcd_tree_canopy_pctTree cover (%)
  • acs_median_household_income_usdTypical household income (USD (2024 dollars))
  • acs_median_home_value_usdTypical home value (USD)

Queries

Filter courthouse records by region, radius, date, or selected fields to retrieve locations and attributes relevant to an area or analysis. The available fields support geographic discovery and enrichment.

Use streaming for live queries and bulk downloads for whole datasets. Available download formats are JSON, GeoJSON, CSV, and Parquet.

Use cases

Build maps of courthouse locations and compare court access across cities or regions. Combine coordinates with population context to study where court services are located relative to nearby residents.

Enrich civic directories with courthouse names, addresses, and OpenStreetMap tags. Use flood-zone and climate attributes in location planning, or combine land-use, tree-cover, income, and home-value fields with broader geographic analysis.

Pricing

The API supports JSON, GeoJSON, CSV, and Parquet. An API key is required to access the data.

A free tier is available, with paid plans for higher limits and bulk downloads. Pricing is not stated here.

Frequently asked questions

Is there an API for courthouse locations in the United States?

Yes. The Courthouse API includes United States records among its worldwide OpenStreetMap courthouse data. The United States accounts for 3.8% of records, and sample locations include Providence Municipal Court and the United States District Court for the District of Rhode Island.

How many courthouse records does the API contain?

The dataset contains about 14,090 courthouse records. Coverage is global, with the largest country shares in Chile, Brazil, Japan, and Argentina.

What fields does the Courthouse API return?

Records include latitude, longitude, source, settlement class, and OpenStreetMap properties. Name is present for 98% of records and address for 57%. Additional context includes population within one kilometer, flood zone, climate group, and some land-use and socioeconomic fields.

Can I filter courthouse data by city or region?

Yes. The dataset supports filtering by region, and its coverage includes cities such as Santiago, Munich, São Paulo, and Valparaíso. You can also select fields or query by radius to focus on locations relevant to your application.

Does the Courthouse API include coordinates?

Yes. Latitude and longitude are available for 100% of records. These coordinates support mapping, radius-based discovery, and joining courthouse locations to other geographic datasets.

How often is courthouse data updated?

The data source is OpenStreetMap contributors, but an update schedule is not specified here. Check the API or dataset metadata for the current refresh details before relying on it for time-sensitive applications.

Can I download the courthouse dataset in bulk?

Yes. Bulk downloads are available on paid plans for whole datasets. Supported formats include JSON, GeoJSON, CSV, and Parquet, so you can choose a format suited to your data pipeline.

Where does the Courthouse API data come from?

The records come from OpenStreetMap contributors and are distributed under the Open Database License (ODbL). Each record includes a source field, alongside mapped location details and available OpenStreetMap tags.

Start building with the Courthouse API

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