Places API

Hospital API

The Hospital API returns hospital and medical-facility locations with about 114,000 records. Each record includes coordinates, OpenStreetMap tags and contextual fields such as settlement class, nearby population, flood risk and climate group. Developers and data buyers can use the records to map facilities, analyze geographic coverage and combine locations with other spatial data.

Brazil, Argentina · 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": "hospital",
    "region_id": "18647",
    "limit": 50
  }'

Key facts

  • The Hospital API contains about 113,948 records.
  • Brazil accounts for 32.9% of the dataset.
  • Argentina accounts for 19.3% of the dataset.
  • The dataset includes hospital locations in Recife, Brazil.

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 Recife).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/hospital/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
NameCountryWheelchairHoursLatitudeLongitude
Al-TABIB DISPENSARYTanzania——-6.1708839.22489
shaurimoyo hospitalTanzania——-6.1567439.2078
Misaili HospitalTanzanialimited—-6.1553739.23641
District HospitalTanzania——-6.168539.28583
KivungeTanzaniano—-6.1929939.30491
Jendele hospitalTanzaniano—-6.1776939.37297
Kwa baniani hospitalTanzaniano—-6.1638439.34842
Ifa dispensaryTanzaniayes24 hours-6.1450539.22406
Jeshini hospitalTanzaniayes24 hours-6.1208739.21657
Kwagoa dispensaryTanzaniayes24/7-6.1124439.22516

Hospital location data

This dataset represents hospitals and other medical facilities mapped in OpenStreetMap. It includes named places such as hospitals and dispensaries, with geographic coordinates and available map tags.

Developers, researchers and data buyers can use the API to build facility maps, study access to healthcare or enrich geographic analyses. The source is OpenStreetMap contributors, under the ODbL.

Geographic coverage

The dataset contains about 113,948 records. Brazil accounts for 32.9% of coverage, followed by Argentina at 19.3%, Bolivia at 10% and Ecuador at 7.1%.

Other represented countries include Tanzania, Burundi, Zambia and South Africa. Covered cities include Recife, Rio de Janeiro, Salvador, Lubango and Brasília. The coverage figures describe the dataset, not the completeness of hospital listings in each place.

Fields in each record

Records include latitude and longitude, OpenStreetMap properties, source, name and settlement class. Coordinates, properties, source and settlement class are present in all records; name is present in 96%.

Contextual fields include estimated population within 1 km, flood zone and climate group. Land-use categories are present in 43% of records. OpenStreetMap tags may also include details such as wheelchair access or opening hours when mapped.

  • 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

Query and download options

Filter records by region, radius, date or fields to focus an analysis on a place or subset of attributes. Stream results for live queries, or use a bulk download when you need a whole dataset.

Available formats are JSON, GeoJSON, CSV and Parquet. Use the format that fits your application, mapping workflow or data-analysis tools.

What you can build

Map hospitals and dispensaries in cities such as Recife or Dar es Salaam, and compare mapped facility locations across regions.

Analyze proximity between medical facilities and nearby population, or identify areas that may warrant further healthcare-access research.

Combine facility locations with flood-zone and climate-group fields for geographic risk analysis.

Build location search and mapping experiences using facility names, coordinates and available OpenStreetMap tags.

Compare settlement classes and land-use context around mapped medical facilities.

Access and pricing

The data is available in JSON, GeoJSON, CSV and Parquet. An API key is used for access, and a free tier is available to get started.

Paid plans provide higher limits and bulk downloads. Pricing is not stated here; check Outerview for current plan details.

Frequently asked questions

Is there an API for hospital locations in Brazil?

Yes. The Hospital API includes records in Brazil, which accounts for 32.9% of the dataset. Records can include facility names, coordinates and OpenStreetMap tags, along with contextual geographic fields.

How many hospital records does the API contain?

The dataset contains about 113,948 records. This is an approximate total, and it describes the dataset rather than guaranteeing complete coverage of every hospital or medical facility.

How often is the hospital data updated?

The available information does not specify an update schedule. The data source is OpenStreetMap contributors, so check Outerview's current dataset details if you need to confirm freshness for a particular use.

What fields does the Hospital API return?

Records include latitude, longitude, OpenStreetMap properties, source, name and settlement class. Additional fields describe nearby population, flood zone, climate group and land-use categories. Some OpenStreetMap tags, such as wheelchair access or opening hours, may be present when mapped.

Can I filter hospital data by city or region?

Yes. You can filter by region and focus on places such as Recife, Rio de Janeiro or Salvador. You can also select fields for your query. The dataset's geographic coverage should not be treated as proof that every facility in a place is included.

Can I search for hospitals within a radius?

Yes. Radius filtering can narrow results to locations around an area of interest. Hospital records include latitude and longitude, so the returned locations can support proximity analysis and map displays.

Can I download the hospital dataset as GeoJSON or CSV?

Yes. Available formats include GeoJSON and CSV, as well as JSON and Parquet. Bulk downloads are available on paid plans, which also provide higher limits.

Does the API include wheelchair access and opening hours?

Those details may appear in the OpenStreetMap properties when they have been mapped. Sample records include wheelchair access and opening hours, but these tags are not listed as guaranteed fields for every hospital.

Start building with the Hospital API

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