Places API

Pharmacy API

The Pharmacy API returns OpenStreetMap pharmacy locations and place details from about 279,000 records. Use it to find pharmacies across countries including Peru, Bolivia and Brazil, with coordinates, names, available addresses and brands, plus geographic context such as settlement class, population, flood zone and climate group.

Peru, Bolivia · 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": "pharmacy",
    "region_id": "16189",
    "limit": 50
  }'

Key facts

  • The Pharmacy API contains about 278,883 records.
  • Peru accounts for 27.4% of pharmacy records.
  • Bolivia accounts for 26.7% of pharmacy records.
  • Brasília accounts for 6.9% of records.
  • Every record includes latitude and longitude.

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 Brasília).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/pharmacy/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
CityNameAddressCountryBrandLatitudeLongitude
Luís Eduardo MagalhãesEstrela TrêsRua da SucupiraBrazil—-12.07583-45.76256
Luís Eduardo MagalhãesFernando Franconn Farmácia EconômicaRua das AcaciasBrazil—-12.07655-45.76595
BarreirasDivaney bertunes drogaria rochaAv. Ruy BarbosaBrazil—-12.15209-44.99884
—InkafarmaAvenida Victor Larco HerreraPeruInkafarma-8.13722-79.04949
—MifarmaAvenida FátimaPeruMifarma-8.13146-79.0337
—Biofarma—Peru—-8.17129-79.01027
—Mifarma1366 Avenida Victor Larco Herrera Víctor Larco HerreraPeruMifarma-8.12826-79.0422
—MifarmaAvenida Los ColibriesPeruMifarma-8.12548-79.03975
—InkafarmaCalle Santa ClaraPeruInkafarma-8.12562-79.03949
—Boticas y SaludAvenida Victor Larco HerreraPeruBoticas y Salud-8.12513-79.03951

Pharmacy location data from OpenStreetMap

This dataset covers stores or counters that dispense medicines, including pharmacies represented in OpenStreetMap. Each record includes a location and available tags describing the place.

Developers and data buyers can use it to build pharmacy directories, map services, location analyses and tools that combine pharmacy locations with other geographic data. The source is OpenStreetMap contributors, under the ODbL license.

Coverage across countries and cities

The dataset contains about 278,883 pharmacy records. Peru accounts for 27.4% of records, Bolivia 26.7%, Brazil 23.8% and Ecuador 19.9%; it also includes locations in Chile, Russia, Argentina and Paraguay.

Coverage includes cities such as Brasília, Rio de Janeiro and Goiânia. Lima is the leading listed state-level area at 13.4% of records, followed by the Federal District at 6.9%.

Fields in each pharmacy record

Every record has latitude and longitude, OpenStreetMap properties, a source value and settlement class. The name is present in 92% of records, while street address is present in 38% and brand in 27%.

Records also include population within 1 km for 2020, flood zone and land-use categories; land-use categories are present in 42% of records. Climate group is present in 99%. These fields support geographic context alongside the pharmacy’s mapped details.

  • latLatitude
  • lngLongitude
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • nameName of the place
  • addressStreet address
  • brandBrand or chain
  • 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 pharmacy data

Filter pharmacy records by region, radius, date or fields to focus a query on the locations and attributes your application needs. Stream for live queries, or use a bulk download when you need a whole dataset.

Choose JSON, GeoJSON, CSV or Parquet for your workflow. Location coordinates make the records suitable for mapping and spatial analysis.

What you can build with pharmacy data

Build a searchable pharmacy directory with mapped locations, names, addresses and brands where available. Compare pharmacy coverage across countries, cities or settlement classes.

Use pharmacy locations to support healthcare access analysis, identify areas for further location research, or enrich maps with population and land-use context. Flood-zone and climate-group fields can also help add environmental context to location planning.

Formats, access and plans

Access the API with an API key and choose JSON, GeoJSON, CSV or Parquet. A free tier is available for getting started.

Paid plans provide higher limits and bulk downloads for larger workloads. No prices are listed here; check Outerview’s current plan details for available options.

Frequently asked questions

Is there an API for pharmacy locations in Peru?

Yes. The Pharmacy API includes OpenStreetMap pharmacy locations in Peru, which accounts for 27.4% of the dataset. Records can include coordinates, names, addresses, brands and other place properties, depending on what is available for each mapped pharmacy.

How many pharmacy records does the API contain?

The dataset contains about 278,883 pharmacy records. Coverage is concentrated in Peru, Bolivia, Brazil and Ecuador, with additional locations in Chile, Russia, Argentina and Paraguay.

Does the Pharmacy API include pharmacies in Brazil?

Yes. Brazil accounts for 23.8% of the pharmacy records. Listed Brazilian coverage includes Brasília, Rio de Janeiro and Goiânia, as well as states such as São Paulo, Minas Gerais and Rio de Janeiro.

What fields does the Pharmacy API return?

Each record includes latitude, longitude, OpenStreetMap properties, source and settlement class. Other fields include name, address, brand, nearby population, flood zone, climate group and land-use categories. Some descriptive fields are not populated for every record.

Can I get pharmacy data as GeoJSON?

Yes. Available formats are JSON, GeoJSON, CSV and Parquet. GeoJSON is an option for workflows that use geographic features, while CSV and Parquet are available for tabular analysis.

Can I filter pharmacy data by location?

Yes. Queries can be filtered by region or radius, as well as by date or fields. This lets you focus on a geographic area or selected record attributes rather than retrieving all pharmacy locations.

How often is the pharmacy data updated?

The supplied dataset information does not specify an update schedule. The records come from OpenStreetMap contributors, so consult Outerview’s current dataset information for details about the freshness of the available data.

Can I download the full pharmacy dataset?

Yes. Bulk downloads are available on paid plans for retrieving whole datasets. You can choose from JSON, GeoJSON, CSV and Parquet, subject to the plan’s available limits and access terms.

Start building with the Pharmacy API

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