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 commitments. One click upgrade/downgrade or cancellation. No questions asked.
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.
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.
Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]
Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the ‘X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.
The ‘X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]
To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.
Service Level:
100%
Response Time:
3,521ms
Service Level:
100%
Response Time:
12,144ms
Service Level:
100%
Response Time:
14,000ms
Service Level:
100%
Response Time:
9,558ms
Service Level:
100%
Response Time:
3,035ms
Service Level:
99%
Response Time:
4,781ms
Service Level:
100%
Response Time:
331ms
Service Level:
100%
Response Time:
249ms
Service Level:
90%
Response Time:
2,269ms
Service Level:
100%
Response Time:
233ms
Service Level:
100%
Response Time:
1,163ms
Service Level:
100%
Response Time:
396ms
Service Level:
100%
Response Time:
86ms
Service Level:
100%
Response Time:
109ms
Service Level:
100%
Response Time:
624ms
Service Level:
100%
Response Time:
1,386ms
Service Level:
100%
Response Time:
1,614ms
Service Level:
100%
Response Time:
1,551ms
Service Level:
100%
Response Time:
1,026ms
Service Level:
100%
Response Time:
46ms