REFUGE Restrooms

REFUGE Restrooms

Transportation

Provides safe restroom access for transgender, intersex, and gender nonconforming individuals. The api lets you list all restrooms added by date, location or you can make a query to search by id.

Visit API

📚 Documentation & Examples

Everything you need to integrate with REFUGE Restrooms

🚀 Quick Start Examples

REFUGE Restrooms Javascript Examplejavascript
// REFUGE Restrooms API Example
const response = await fetch('https://www.refugerestrooms.org/api/docs/#!/restrooms', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Introducing the Refuge Restrooms Public API

If you're looking for a public restroom, the Refuge Restrooms API is the perfect tool for you! This API provides information about publicly accessible restrooms all over the world. You can use this API to find restrooms near you or to gather information for an app or website.

The Refuge Restrooms API is a RESTful API, which means you can make requests to it using standard HTTP methods like GET, POST, PUT, and DELETE. All requests to the API must be made over HTTPS in order to keep your data secure.

API Documentation

The official API documentation for the Refuge Restrooms API can be found at https://www.refugerestrooms.org/api/docs/#!/restrooms. The documentation includes detailed instructions on how to use the API and descriptions of the various endpoints you can access.

Sample API Requests

In order to make requests to the Refuge Restrooms API, you will need an API key. You can obtain a free API key by creating an account on the Refuge Restrooms website.

Here are some examples of API requests you can make using JavaScript:

Get All Restrooms

const API_KEY = "YOUR_API_KEY";
const ENDPOINT = "https://www.refugerestrooms.org/api/v1/restrooms";

fetch(ENDPOINT, {
  headers: {
    "Authorization": `Token token=${API_KEY}`
  }
})
.then(response => response.json())
.then(data => console.log(data));

Get Restroom Details

const API_KEY = "YOUR_API_KEY";
const RESTROOM_ID = "12345";
const ENDPOINT = `https://www.refugerestrooms.org/api/v1/restrooms/${RESTROOM_ID}`;

fetch(ENDPOINT, {
  headers: {
    "Authorization": `Token token=${API_KEY}`
  }
})
.then(response => response.json())
.then(data => console.log(data));

Search for Restrooms

const API_KEY = "YOUR_API_KEY";
const QUERY = "Chicago";
const ENDPOINT = `https://www.refugerestrooms.org/api/v1/restrooms/search?query=${QUERY}`;

fetch(ENDPOINT, {
  headers: {
    "Authorization": `Token token=${API_KEY}`
  }
})
.then(response => response.json())
.then(data => console.log(data));

These are just a few examples of what you can do with the Refuge Restrooms API. Check out the official documentation for more information on available endpoints and parameters.

Happy coding!

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 3Jun 5Jun 7Jun 9Jun 11Jun 13Jun 15Jun 17Jun 19Jun 21Jun 23Jun 25Jun 27Jun 29Jul 204008001440Minutes
Online
Offline

Related APIs in Transportation