[{"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://pr213-testing.zylalabs.com/api/5606/spain+restrooms+api/7283/get+restrooms?page=Required&lat=Required&lng=Required' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Spain Restrooms API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
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 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.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund