Places API

Government API

The Government API returns mapped public institutions and civic services, including government offices, civil registries, and administrative facilities, across about 176,000 records. Built from OpenStreetMap data, it provides location, place tags, and available details such as names, addresses, and opening hours for applications, research, and geographic analysis.

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": "government",
    "region_id": "18916",
    "limit": 50
  }'

Key facts

  • The Government API contains about 176,000 records.
  • Brazil represents 53.2% of dataset coverage.
  • Argentina represents 32.2% of dataset coverage.
  • Teresina accounts for 2.2% 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 Teresina).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/government/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
NameAddressCountryWebsiteHoursLatitudeLongitude
Registro Civil Campo GrandeAyacucho Campo Grande ARArgentinahttps://www.registrocivil.misiones.gov.ar/Mo-Fr 07:30-12:30-27.20848-54.97925
Delegación de Tierras de la Provincia de MisionesAyacucho Campo Grande 3362Argentina——-27.20861-54.97963
Concejo DeliberanteFray Luis Beltrán Campo GrandeArgentina——-27.2084-54.97891
Delegación del Ministerio de Ecología y R.N.R.Alberdi Campo GrandeArgentina——-27.20939-54.97904
Instituto de Previsión Social253 Avenida Los Cafetales Campo GrandeArgentina——-27.21682-54.97367
Secretaría Escolar Departamental Cainguás Zona I694 Avenida de Las Américas Aristóbulo del Valle 3364Argentinahttps://www.cgepm.gov.arMo-Fr 07:00-12:00-27.0986-54.89365
Vialidad Provincial - Delegación Aristóbulo del Valle862 Mariano Moreno Aristóbulo del ValleArgentinahttp://www.dpv.misiones.gov.ar/—-27.09618-54.89678
Đồn Biên phòng xã Hạnh Dịch—Vietnam——19.66191104.93312
CDR Aristóbulo del VallePasaje Evaristo Rolín Aristóbulo del Valle 3364 ARArgentinahttps://www.registrocivil.misiones.gov.ar/Mo-Fr 07:30-12:30-27.09528-54.89538
Registro Provincial de las Personas901 San Martín Aristóbulo del ValleArgentina——-27.09534-54.89547

Government places and civic services

This API covers public institutions and civic services represented in OpenStreetMap, including official buildings, offices, and administrative facilities. Sample records include civil registries, provincial departments, and local councils.

Developers, researchers, and data teams can use the records to map government services, enrich location datasets, or study access to civic facilities. Source data is contributed to OpenStreetMap under the ODbL.

Coverage across countries and cities

The dataset contains about 176,000 records. Brazil accounts for 53.2% of coverage and Argentina for 32.2%, followed by Chile, Paraguay, and Uruguay. Records also cover countries including the Philippines, South Korea, and South Africa.

Notable state coverage includes Rio Grande do Sul and Bahia. Cities with mapped records include Teresina, Porto Alegre, Fortaleza, Salvador, and Recife.

Fields in each record

Each record includes latitude, longitude, source, and OpenStreetMap properties. Names are present for 93% of records and addresses for 27%; opening hours are available for 24% and use OpenStreetMap format.

Records also include settlement class, nearby population within 1 km, flood zone, and climate group. Land-use categories are available for 51% of records. Availability varies by place; sample records may also include tags such as website and country.

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

Filter and retrieve records

Filter by region, radius, date, or selected fields, and use streaming for live queries. The available facts do not specify query syntax or date-filter behavior.

For whole-dataset workflows, bulk downloads are available. Choose JSON, GeoJSON, CSV, or Parquet according to your application or analysis needs.

What you can build

Map government offices and civil registries in Brazil or Argentina; create civic-service directories with location and available opening hours; and compare the geographic distribution of public institutions across cities.

Combine facility locations with settlement class, population, flood-zone, climate, or land-use fields for accessibility and planning analysis. Enrich location products with named institutions such as councils, provincial offices, and social security agencies.

Formats and access

Access the API with an API key. JSON, GeoJSON, CSV, and Parquet formats support application integration, mapping, and analysis.

A free tier is available. Paid plans provide higher limits and bulk downloads; pricing details are not stated here.

Frequently asked questions

Is there an API for government offices in Brazil?

Yes. The Government API includes mapped government offices and civic services in Brazil, which accounts for 53.2% of records. You can retrieve place locations and available OpenStreetMap details such as names, addresses, and opening hours.

Does the Government API include Argentina?

Yes. Argentina accounts for 32.2% of the dataset. Sample records include civil registries, provincial departments, and local councils in Misiones, with coordinates and, where mapped, names, addresses, opening hours, and websites.

What fields does the Government API return?

Records include latitude, longitude, source, OpenStreetMap properties, settlement class, nearby population, flood zone, and climate group. Name, address, opening hours, and land-use categories are present for some records, so those fields are not guaranteed for every place.

Can I get government places as GeoJSON?

Yes. GeoJSON is one of the available formats, alongside JSON, CSV, and Parquet. GeoJSON can be used in mapping workflows that work with geographic features and coordinates.

Can I filter government places by region or radius?

Yes. The API supports filtering by region and radius, as well as by date and selected fields. The available facts do not provide query syntax or explain how date filtering is applied.

How often is the government data updated?

The available API information does not specify an update schedule. The records come from OpenStreetMap contributors, so check the API documentation or dataset metadata for current freshness details before relying on a particular refresh interval.

Are opening hours available for every government office?

No. Opening hours are present for 24% of records. When supplied, they use OpenStreetMap format, such as weekday and time ranges shown in the sample records.

Can I download the full Government dataset?

Yes. Bulk downloads are available for whole-dataset workflows, and the listed formats are JSON, GeoJSON, CSV, and Parquet. A free tier is available, while paid plans provide higher limits and bulk downloads.

Start building with the Government API

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