The Town Weather API provides a complete solution for accessing accurate and up-to-date weather information for cities around the world. This API provides information to users who need to integrate weather data into their applications, websites and services, allowing users to stay informed about current and forecasted weather conditions for specific cities.
With the Town Weather API, users can access a wide range of weather data, such as current weather conditions, temperature forecasts, wind direction levels, humidity levels and more. The API provides detailed and reliable weather information, allowing users to plan their activities, make informed decisions and be prepared for any inclement weather.
One of the main features of the Town Weather API is its extensive coverage of cities around the world. Whether users need weather information for major metropolitan areas, smaller cities or remote locations, the API offers broad coverage to meet a wide variety of needs. This global coverage ensures that users can access accurate weather data from cities in different countries and regions, making the API suitable for a wide range of applications and use cases.
In short, the Town Weather API provides a complete solution for accessing accurate and up-to-date weather information for cities around the world. Thanks to its broad coverage, ease of integration and reliability, this API provides users with the tools they need to stay informed about current and forecast weather conditions for specific cities, enabling them to make informed decisions and be prepared for any inclement weather.
What this API receives and what your API provides (input/output)?
It will receive parameters and provide you with a JSON.
1,000 requests per hour in all plans.
{"coord":{"lon":2.159,"lat":41.3888},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"base":"stations","main":{"temp":288.9,"feels_like":287.97,"temp_min":286.23,"temp_max":291.34,"pressure":1008,"humidity":55},"visibility":10000,"wind":{"speed":8.23,"deg":310,"gust":13.89},"clouds":{"all":20},"dt":1709054124,"sys":{"type":2,"id":18549,"country":"ES","sunrise":1709015421,"sunset":1709055505},"timezone":3600,"id":3128760,"name":"Barcelona","cod":200}
curl --location --request GET 'https://zylalabs.com/api/3585/town+weather+api/3955/weather+by+city?city_name=Barcelona' --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 the name of a city to obtain complete weather information about the indicated city.
The Town Weather API provides users with access to accurate and up-to-date weather information for cities around the world.
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.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
The Town Weather API returns comprehensive weather data, including current conditions, temperature, humidity, wind speed and direction, visibility, and cloud cover for specified cities.
Key fields in the response include "main" (temperature and humidity), "weather" (conditions and descriptions), "wind" (speed and direction), and "sys" (country and sunrise/sunset times).
The response data is structured in JSON format, with nested objects for "coord," "weather," "main," "wind," and "sys," allowing easy access to specific weather attributes.
The endpoint provides information on current weather conditions, temperature forecasts, wind details, humidity levels, and visibility for cities worldwide.
The primary parameter is the city name, which must be specified to retrieve weather data. Additional parameters may include units for temperature (metric or imperial).
Data accuracy is maintained through partnerships with reliable meteorological sources and continuous updates to ensure users receive the most current weather information.
Typical use cases include planning outdoor events, scheduling activities, managing logistics, and agricultural planning based on weather conditions.
Users can extract specific fields from the JSON response, such as temperature or wind speed, to inform decisions or display relevant weather information in their applications.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
83%
Response Time:
235ms
Service Level:
100%
Response Time:
555ms
Service Level:
100%
Response Time:
392ms
Service Level:
100%
Response Time:
990ms
Service Level:
100%
Response Time:
683ms
Service Level:
100%
Response Time:
79ms
Service Level:
100%
Response Time:
838ms
Service Level:
100%
Response Time:
875ms
Service Level:
100%
Response Time:
18,795ms
Service Level:
100%
Response Time:
83ms