Spain Restrooms API is an advanced solution designed to provide complete and up-to-date information about public restrooms in various locations in Spain. Its main objective is to improve the accessibility and comfort of users when searching for suitable restroom facilities in any environment.
The API provides access to detailed data, including information on location, accessibility for people with disabilities, availability of unisex restrooms, and ratings based on positive and negative comments. It also provides accurate data on geographic coordinates, relative distances and orientation, making it easy to integrate into applications that require geolocation-based functionality.
The API is designed to be flexible and scalable, adapting to the needs of users of navigation, tourism, sustainability and inclusive services applications. Its focus on data accuracy and inclusiveness makes it a valuable tool for creating practical, user-centric solutions.
To use this endpoint you must specify.
page = indicates a page value. For example: 1.
unisex = indicates if the toilets to be received are unisex. For example (true or false) this parameter is optional.
Indicates a latitude. For example (40.4168).
Indicates a longitude. For example (-3.7038).
Get Restrooms - Endpoint Features
| Object | Description |
|---|---|
page |
[Required] Indicates a page value |
unisex |
Optional Indicate if you wish to receive unisex bathrooms |
lat |
[Required] Indicates a latitude |
lng |
[Required] Indicates a longitude |
[{"id":69281,"name":"Baños de la UCM","street":"Facultad de CCPP y Sociología ","city":"Madrid ","state":"Madrid ","accessible":true,"unisex":true,"directions":"","comment":"","latitude":40.4167754,"longitude":-3.7037902,"created_at":"2024-05-23T15:48:10.535Z","updated_at":"2024-05-23T15:48:10.581Z","downvote":0,"upvote":0,"country":"ES","changing_table":false,"edit_id":69281,"approved":true,"distance":0.0017761550263777019,"bearing":"158.278949163685"},{"id":60193,"name":"Aseos públicos","street":"Pl. de Tirso de Molina, 1B, 28012","city":"Madrid","state":"Community of Madrid","accessible":true,"unisex":true,"directions":"","comment":"15 minute time limit","latitude":40.4125299,"longitude":-3.70502,"created_at":"2021-10-19T16:23:53.805Z","updated_at":"2021-10-19T16:23:53.901Z","downvote":0,"upvote":0,"country":"ES","changing_table":false,"edit_id":60193,"approved":true,"distance":0.3019351505006863,"bearing":"195.945041502634"},{"id":55855,"name":"Tierra burrito ","street":"Plaza Isabel II ","city":"Madrid","state":"Madrid ","accessible":true,"unisex":true,"directions":"","comment":"","latitude":40.41815450000001,"longitude":-3.709348299999999,"created_at":"2020-03-12T13:06:30.749Z","updated_at":"2020-04-14T21:10:09.449Z","downvote":0,"upvote":1,"country":"ES","changing_table":false,"edit_id":55855,"approved":true,"distance":0.3064978519129739,"bearing":"283.719203440084"},{"id":60209,"name":"Acid Bakehouse","street":"Calle de la Magdalena, 27, 28012","city":"Madrid","state":"Comunidad de Madrid","accessible":true,"unisex":true,"directions":"To the back, make a right","comment":"","latitude":40.4124737,"longitude":-3.7003581,"created_at":"2021-10-22T12:44:40.864Z","updated_at":"2021-10-22T12:44:40.957Z","downvote":0,"upvote":0,"country":"ES","changing_table":false,"edit_id":60209,"approved":true,"distance":0.3494800998642515,"bearing":"141.495088101973"},{"id":49046,"name":"B13 bar","street":"Calle Ballesta, 13","city":"Madrid","state":"Madrid","accessible":false,"unisex":false,"directions":"At the end of the corridor","comment":"The bathrooms are gendered, but you'll find a lot of trans graffiti inside them. Also, it's a transphobia-free space. And vegan!","latitude":40.4219115,"longitude":-3.7034925,"created_at":"2019-04-10T23:43:30.418Z","updated_at":"2019-04-10T23:43:30.524Z","downvote":0,"upvote":0,"country":"ES","changing_table":false,"edit_id":49046,"approved":true,"distance":0.35354074127741675,"bearing":"3.442677151798"},{"id":49057,"name":"Juicy Avenue","street":"Calle de Hortaleza, 25, 28004 ","city":"Madrid","state":"Madrid","accessible":true,"unisex":true,"directions":"","comment":"Baño solo para consumidores","latitude":40.4218725,"longitude":-3.7000192,"created_at":"2019-04-11T18:11:26.853Z","updated_at":"2019-04-11T18:11:26.963Z","downvote":0,"upvote":0,"country":"ES","changing_table":false,"edit_id":49057,"approved":true,"distance":0.4029712270707403,"bearing":"36.699092513541"},{"id":49058,"name":"Juicy Avenue","street":"Calle de Hortaleza, 25, 28004","city":"Madrid","state":"Madrid","accessible":true,"unisex":false,"directions":"","comment":"Baño solo para consumidores","latitude":40.4218725,"longitude":-3.7000192,"created_at":"2019-04-11T18:12:28.833Z","updated_at":"2019-04-11T18:12:28.858Z","downvote":0,"upvote":0,"country":"ES","changing_table":true,"edit_id":49058,"approved":true,"distance":0.4029712270707403,"bearing":"36.699092513541"},{"id":49159,"name":"Sani Sapori","street":"Calle de Lavapiés, 31, 28012 ","city":"Madrid","state":"Madrid","accessible":false,"unisex":true,"directions":"","comment":"","latitude":40.4100317,"longitude":-3.7020479,"created_at":"2019-04-15T16:28:34.309Z","updated_at":"2019-04-15T16:28:34.341Z","downvote":0,"upvote":0,"country":"ES","changing_table":false,"edit_id":49159,"approved":true,"distance":0.4766413291846531,"bearing":"165.486523004078"},{"id":42090,"name":"La oveja negra","street":"Calle de Buenavista","city":"Madrid","state":"Madrid","accessible":true,"unisex":false,"directions":"Bar vegano LGBT friendly donde podemos sentirmos agusto a la hora de ir al baño.","comment":"","latitude":40.4098982,"longitude":-3.6992162,"created_at":"2018-06-26T22:46:52.993Z","updated_at":"2018-06-26T22:46:52.993Z","downvote":1,"upvote":1,"country":"ES","changing_table":false,"edit_id":42090,"approved":true,"distance":0.5343700712827572,"bearing":"146.410050829993"},{"id":46630,"name":"La oveja negra","street":"Calle de BuenaVista ","city":"Madrid","state":"Madrid","accessible":true,"unisex":true,"directions":"","comment":"","latitude":40.4098982,"longitude":-3.6992162,"created_at":"2018-12-26T16:48:07.422Z","updated_at":"2018-12-26T16:48:07.530Z","downvote":0,"upvote":0,"country":"ES","changing_table":false,"edit_id":46630,"approved":true,"distance":0.5343700712827572,"bearing":"146.410050829993"}]
curl --location --request GET 'https://zylalabs.com/api/5606/spain+restrooms+api/7283/get+restrooms?page=Required&lat=Required&lng=Required' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API, users must indicate a page, number of results to receive, coordinates or locations.
The Spain Restrooms API provides detailed information on public restrooms, including location, accessibility, features, and user feedback, for enhanced user convenience.
There are different plans to suit all tastes, including a free trial for a small number of requests, but your rate is limited to avoid abuse of the service.
The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.
Spain Restrooms API helps integrate location-based restroom data into apps, improving accessibility, convenience, and user experience for finding nearby facilities.
The Get Restrooms endpoint returns detailed information about public restrooms, including their names, locations (street, city, state), accessibility features, unisex status, geographic coordinates, user ratings, and distance from a specified point.
Key fields in the response data include "id," "name," "street," "city," "accessible," "unisex," "latitude," "longitude," "upvote," "downvote," and "distance," which provide comprehensive details about each restroom.
Users can customize their requests using parameters such as "page" (for pagination), "unisex" (to filter for unisex restrooms), "latitude," and "longitude" (to specify a location for nearby results).
The response data is organized as an array of restroom objects, each containing structured fields that provide specific information about the restroom, making it easy to parse and utilize in applications.
The endpoint provides information on restroom locations, accessibility features, unisex options, user feedback (upvotes and downvotes), and geographic data, ensuring users can find suitable facilities.
Data accuracy is maintained through regular updates and user feedback mechanisms, allowing users to report issues or provide ratings, which helps ensure the information remains current and reliable.
Typical use cases include integrating restroom location data into navigation apps, tourism guides, and accessibility services, enhancing user experience by providing essential information on public facilities.
Users can utilize the returned data by displaying restroom locations on maps, filtering results based on accessibility needs, and providing users with directions and additional information about each facility.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
3,521ms
Service Level:
100%
Response Time:
11,295ms
Service Level:
100%
Response Time:
11,893ms
Service Level:
100%
Response Time:
9,558ms
Service Level:
100%
Response Time:
3,035ms
Service Level:
100%
Response Time:
4,589ms
Service Level:
100%
Response Time:
331ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
222ms
Service Level:
100%
Response Time:
1,301ms
Service Level:
100%
Response Time:
15ms
Service Level:
100%
Response Time:
15ms
Service Level:
100%
Response Time:
18ms
Service Level:
100%
Response Time:
17ms
Service Level:
100%
Response Time:
7,052ms
Service Level:
100%
Response Time:
2,298ms
Service Level:
100%
Response Time:
1,524ms
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
17ms