Places API

Public Toilet API

The Public Toilet API returns mapped locations of public-use toilets and restrooms, with about 470,000 records worldwide. Each record provides coordinates and OpenStreetMap tags, with available details such as opening hours, address, wheelchair access, nearby population and elevation. Developers can use the data to build maps, discovery tools and location-aware services.

United States, Malawi · 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": "public toilet",
    "region_id": "35429",
    "limit": 50
  }'

Key facts

  • The Public Toilet API contains about 470,000 records worldwide.
  • The United States accounts for 14.7% of records; Malawi accounts for 11.7%.
  • Opening hours are present in 37% of records.
  • Nearby population within one kilometre is available for 92% 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 Paris).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/toilets/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
NameCountryHoursWheelchairAddressLatitudeLongitude
Baño PúblicoCuba24/7——22.14807-80.44816
公廁Taiwan24/7——23.8343120.86569
자구네 해적 잠수함Korea South24/7no—33.30752126.16404
금등소공원Korea South24/7no—33.36094126.19164
구좌공설묘지Korea South24/7no—33.45535126.79834
HardplatzSwitzerland24/7no—47.382748.51493
Kuutin WCFinland24/7yes—61.1740226.86671
Tervajärvi PFinland24/7yes—61.1560826.886
KlopstockwieseSwitzerland24/7no—47.361278.52507
Minden Place ToiletsJersey24/7designatedMinden Street49.18611-2.10317

Overview

This API covers mapped toilet and restroom facilities available for public use, subject to local access conditions. The data comes from OpenStreetMap contributors and is useful for developers building public amenity maps, travel tools and location services.

Records reflect mapped information, so access rules and facility details can vary by place. OpenStreetMap data is provided under the ODbL.

Global coverage

The dataset contains about 470,000 records worldwide. The United States accounts for 14.7% of records, Malawi 11.7%, and Tanzania 5.7%.

Coverage includes cities such as Paris, Melbourne, Sydney, Houston and New York City. Among listed regions, Minnesota has 9.4% of records and New South Wales has 2.4%.

Fields in each record

Every record includes latitude, longitude, the source dataset and properties containing OpenStreetMap tags. These tags can include a facility name, country, wheelchair access and other mapped details, as shown in sample records.

Opening hours are present in 37% of records and street address in 23%. The dataset also includes nearby population within one kilometre for 92% of records and elevation for 91%.

  • latLatitude
  • lngLongitude
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • opening_hoursOpening hours (OpenStreetMap format)
  • addressStreet address
  • ghsl_pop_1km_2020How many people live here (people)
  • elevation_mHeight above sea level (m)

Filter and retrieve toilet locations

Filter records by region or radius to find facilities near a place, and select fields relevant to your application. Date filters can be used for date-based queries where applicable; the records describe mapped facilities rather than a dated event stream.

Use streaming for live queries or bulk download when you need a whole dataset. Available formats are JSON, GeoJSON, CSV and Parquet.

What developers build with public toilet data

Build restroom-finder maps for residents and visitors, or add nearby toilet search to travel and navigation products. Use mapped opening hours and wheelchair tags to help users assess facilities before visiting.

Analyze public amenity coverage across cities and regions, combine locations with population and elevation for planning, or create datasets for civic research and accessibility projects.

Access and pricing

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

No prices are stated here. The underlying mapped data is sourced from OpenStreetMap contributors under the ODbL.

Frequently asked questions

Is there an API for public toilets near me?

Yes. The Public Toilet API provides mapped restroom locations that can be searched by region or radius. Records include latitude and longitude, plus OpenStreetMap tags that may describe details such as opening hours and wheelchair access.

How many public toilet locations are in the API?

The API contains about 470,000 mapped public toilet records worldwide. Coverage varies by region; the United States accounts for 14.7% of records and Malawi accounts for 11.7%.

Which countries and cities does the Public Toilet API cover?

The data has global coverage, with records in countries including the United States, Malawi, Tanzania, Sweden and Australia. Listed cities include Paris, Melbourne, Sydney, New York City and Montréal.

What fields does the Public Toilet API return?

Records include latitude, longitude, source and OpenStreetMap properties. Depending on the record, they may also include opening hours, street address, nearby population and elevation. Properties can contain tags such as facility name or wheelchair access.

Does the toilet API include opening hours and wheelchair access?

Opening hours are available for 37% of records. Wheelchair access may appear among the OpenStreetMap tags in properties, but its availability is not specified for the dataset as a whole.

Can I filter public toilets by city or radius?

Yes. You can filter by region or radius to find facilities in a city or around a location. Select the fields your application needs, such as coordinates, opening hours or address when present.

How often is the public toilet data updated?

A specific update frequency is not provided. The records come from OpenStreetMap contributors, so mapped information and facility details can vary as that source changes.

Can I download the whole public toilet dataset?

Yes. Bulk downloads are available for whole-dataset use, alongside streaming for live queries. Supported formats are JSON, GeoJSON, CSV and Parquet.

Start building with the Public Toilet API

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