Weather Forecast API offers a wide range of weather data, such as current weather conditions, hourly and daily forecasts, historical weather data. One of the main advantages of using the API is its ease of use. Developers can quickly and easily retrieve weather data for a particular location by sending a simple request to the API. The data is returned in JSON format, which can be easily parsed and integrated into the developer's application or service. Allowing its users to stay up to date with weather conditions and forecasts.
Another key advantage of the Weather Forecast API is the large amount of information it returns. Developers can receive the weather data they need such as minimum temperature, maximum temperature, weather, humidity, wind speed and precipitation, and receiving that data can be a very valuable resource. In addition, the API offers a variety of endpoints and parameters that allow developers to retrieve data for locations and time periods.
This API provides a wealth of weather data that can be used in a wide range of applications and services. For example, weather data can be used in travel applications to provide users with up-to-date information on weather conditions and forecasts for their destination. It can also be used in logistics applications to help companies plan and optimize their routes based on weather conditions.
Weather data can also be used in agricultural applications to help farmers make informed crop management decisions based on weather conditions. Similarly, weather data can be used in energy applications to help companies optimize their energy consumption based on weather conditions, resulting in cost savings and increased efficiency.
In conclusion, is a powerful and flexible weather data service that provides developers and businesses with access to real-time and historical weather data. This API is a valuable resource for a wide range of applications and services, from travel and logistics to agriculture and energy. By integrating weather data into their applications and services, developers and businesses can provide their users with valuable weather information.
It will receive parameters and provide you with a JSON.
Travel Applications - This API can provide users with up-to-date information on weather conditions and forecasts for their destination. This can help users plan their travel itinerary, pack appropriately and stay safe during their trip.
Logistics applications - Incorporating weather data into logistics applications can help companies plan and optimize their routes based on weather conditions. This can reduce transportation costs, improve delivery times and increase overall efficiency.
Agricultural applications - Incorporating weather data into agricultural applications can help farmers make informed crop management decisions based on weather conditions. This can improve crop yields, reduce damage and increase overall profitability.
Energy applications: incorporating weather data into energy applications can help companies optimize their energy consumption based on weather conditions. This can reduce energy costs, improve energy efficiency and increase overall sustainability.
Outdoor applications - Incorporating weather data into outdoor applications can provide users with up-to-date information on weather conditions and forecasts for their location. This can help users plan outdoor activities, stay safe during their activities, and avoid hazardous weather conditions.
Besides the number of API calls, there is no other limitation.
To use this endpoint all you have to do is insert a city in the parameter.
Get weather by city - Endpoint Features
| Object | Description |
|---|---|
city |
[Required] Enter a city name |
lang |
Optional |
{"coord":{"lon":-89.1028,"lat":30.438},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"base":"stations","main":{"temp":53.69,"feels_like":50.31,"temp_min":47.64,"temp_max":55.38,"pressure":1011,"humidity":33},"visibility":10000,"wind":{"speed":10.36,"deg":310},"clouds":{"all":0},"dt":1705116489,"sys":{"type":1,"id":4248,"country":"US","sunrise":1705064049,"sunset":1705101271},"timezone":-21600,"id":4429197,"name":"Landon","cod":200}
curl --location --request GET 'https://zylalabs.com/api/1907/weather+forecast+api/1614/get+weather+by+city?city=london' --header 'Authorization: Bearer YOUR_API_KEY'
To use this endpoint all you have to do is insert a latitude and longitude in the parameter.
Get weather by longitude and latitude - Endpoint Features
| Object | Description |
|---|---|
latitude |
[Required] Indicates a latitude |
longitude |
[Required] Indicates a longitude |
{"coord":{"lon":-89.102,"lat":30.43},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":307.89,"feels_like":313.21,"temp_min":307.04,"temp_max":309.09,"pressure":1016,"humidity":50},"visibility":10000,"wind":{"speed":4.12,"deg":190},"clouds":{"all":0},"dt":1691001805,"sys":{"type":2,"id":2003455,"country":"US","sunrise":1690974904,"sunset":1691023811},"timezone":-18000,"id":4450687,"name":"West Gulfport","cod":200}
curl --location --request GET 'https://zylalabs.com/api/1907/weather+forecast+api/1615/get+weather+by+longitude+and+latitude?latitude=40.730610&longitude=-73.935242' --header 'Authorization: Bearer YOUR_API_KEY'
To use this endpoint all you have to do is to insert a latitude and longitude, you will get the weather forecast for the next 5 days.
Get weather forecast - Endpoint Features
| Object | Description |
|---|---|
latitude |
[Required] Enter a latitudw |
longitude |
[Required] Enter a longitude |
{"cod":"200","message":0,"cnt":40,"list":[{"dt":1737450000,"main":{"temp":273.77,"feels_like":268.44,"temp_min":272.66,"temp_max":273.77,"pressure":1032,"sea_level":1032,"grnd_level":1030,"humidity":34,"temp_kf":1.11},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":100},"wind":{"speed":6.09,"deg":26,"gust":10.97},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-21 09:00:00"},{"dt":1737460800,"main":{"temp":273.17,"feels_like":268.13,"temp_min":271.97,"temp_max":273.17,"pressure":1032,"sea_level":1032,"grnd_level":1030,"humidity":36,"temp_kf":1.2},"weather":[{"id":600,"main":"Snow","description":"light snow","icon":"13n"},{"id":613,"main":"Snow","description":"shower sleet","icon":"13n"}],"clouds":{"all":100},"wind":{"speed":5.23,"deg":29,"gust":11.64},"visibility":2275,"pop":1,"snow":{"3h":0.84},"sys":{"pod":"n"},"dt_txt":"2025-01-21 12:00:00"},{"dt":1737471600,"main":{"temp":272.03,"feels_like":266.68,"temp_min":271.16,"temp_max":272.03,"pressure":1033,"sea_level":1033,"grnd_level":1031,"humidity":46,"temp_kf":0.87},"weather":[{"id":601,"main":"Snow","description":"snow","icon":"13d"}],"clouds":{"all":100},"wind":{"speed":5.26,"deg":24,"gust":11.39},"visibility":729,"pop":1,"snow":{"3h":2.96},"sys":{"pod":"d"},"dt_txt":"2025-01-21 15:00:00"},{"dt":1737482400,"main":{"temp":271.27,"feels_like":265.77,"temp_min":271.27,"temp_max":271.27,"pressure":1034,"sea_level":1034,"grnd_level":1032,"humidity":63,"temp_kf":0},"weather":[{"id":601,"main":"Snow","description":"snow","icon":"13d"}],"clouds":{"all":100},"wind":{"speed":5.18,"deg":10,"gust":10.93},"visibility":1583,"pop":1,"snow":{"3h":3.95},"sys":{"pod":"d"},"dt_txt":"2025-01-21 18:00:00"},{"dt":1737493200,"main":{"temp":271.59,"feels_like":266.57,"temp_min":271.59,"temp_max":271.59,"pressure":1032,"sea_level":1032,"grnd_level":1030,"humidity":71,"temp_kf":0},"weather":[{"id":601,"main":"Snow","description":"snow","icon":"13d"}],"clouds":{"all":100},"wind":{"speed":4.54,"deg":10,"gust":11.3},"visibility":10000,"pop":1,"snow":{"3h":2.1},"sys":{"pod":"d"},"dt_txt":"2025-01-21 21:00:00"},{"dt":1737504000,"main":{"temp":271.72,"feels_like":266.36,"temp_min":271.72,"temp_max":271.72,"pressure":1033,"sea_level":1033,"grnd_level":1031,"humidity":73,"temp_kf":0},"weather":[{"id":600,"main":"Snow","description":"light snow","icon":"13n"}],"clouds":{"all":100},"wind":{"speed":5.14,"deg":14,"gust":10.33},"visibility":10000,"pop":1,"snow":{"3h":0.71},"sys":{"pod":"n"},"dt_txt":"2025-01-22 00:00:00"},{"dt":1737514800,"main":{"temp":271.45,"feels_like":267.88,"temp_min":271.45,"temp_max":271.45,"pressure":1035,"sea_level":1035,"grnd_level":1033,"humidity":80,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":100},"wind":{"speed":2.72,"deg":10,"gust":9.59},"visibility":10000,"pop":0.04,"sys":{"pod":"n"},"dt_txt":"2025-01-22 03:00:00"},{"dt":1737525600,"main":{"temp":268.44,"feels_like":263.54,"temp_min":268.44,"temp_max":268.44,"pressure":1034,"sea_level":1034,"grnd_level":1032,"humidity":90,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":85},"wind":{"speed":3.46,"deg":341,"gust":8.78},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-22 06:00:00"},{"dt":1737536400,"main":{"temp":264.72,"feels_like":259.2,"temp_min":264.72,"temp_max":264.72,"pressure":1034,"sea_level":1034,"grnd_level":1032,"humidity":91,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":14},"wind":{"speed":3.29,"deg":7,"gust":8.73},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-22 09:00:00"},{"dt":1737547200,"main":{"temp":263.44,"feels_like":258.11,"temp_min":263.44,"temp_max":263.44,"pressure":1034,"sea_level":1034,"grnd_level":1032,"humidity":89,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":11},"wind":{"speed":2.9,"deg":22,"gust":5.16},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-22 12:00:00"},{"dt":1737558000,"main":{"temp":268.2,"feels_like":263.66,"temp_min":268.2,"temp_max":268.2,"pressure":1035,"sea_level":1035,"grnd_level":1033,"humidity":66,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":9},"wind":{"speed":3.04,"deg":45,"gust":4.83},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2025-01-22 15:00:00"},{"dt":1737568800,"main":{"temp":273.55,"feels_like":271.38,"temp_min":273.55,"temp_max":273.55,"pressure":1032,"sea_level":1032,"grnd_level":1030,"humidity":57,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":5},"wind":{"speed":1.83,"deg":55,"gust":2.5},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2025-01-22 18:00:00"},{"dt":1737579600,"main":{"temp":274.98,"feels_like":274.98,"temp_min":274.98,"temp_max":274.98,"pressure":1030,"sea_level":1030,"grnd_level":1028,"humidity":62,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.64,"deg":193,"gust":0.44},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2025-01-22 21:00:00"},{"dt":1737590400,"main":{"temp":270.49,"feels_like":268.52,"temp_min":270.49,"temp_max":270.49,"pressure":1030,"sea_level":1030,"grnd_level":1028,"humidity":82,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":4},"wind":{"speed":1.41,"deg":206,"gust":1.55},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-23 00:00:00"},{"dt":1737601200,"main":{"temp":269.07,"feels_like":269.07,"temp_min":269.07,"temp_max":269.07,"pressure":1031,"sea_level":1031,"grnd_level":1029,"humidity":81,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":85},"wind":{"speed":0.52,"deg":277,"gust":0.77},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-23 03:00:00"},{"dt":1737612000,"main":{"temp":268.71,"feels_like":266.07,"temp_min":268.71,"temp_max":268.71,"pressure":1031,"sea_level":1031,"grnd_level":1029,"humidity":84,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":93},"wind":{"speed":1.65,"deg":338,"gust":1.54},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-23 06:00:00"},{"dt":1737622800,"main":{"temp":269.35,"feels_like":266.32,"temp_min":269.35,"temp_max":269.35,"pressure":1030,"sea_level":1030,"grnd_level":1028,"humidity":87,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":100},"wind":{"speed":1.96,"deg":349,"gust":2.03},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-23 09:00:00"},{"dt":1737633600,"main":{"temp":269.69,"feels_like":267.02,"temp_min":269.69,"temp_max":269.69,"pressure":1031,"sea_level":1031,"grnd_level":1028,"humidity":89,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":100},"wind":{"speed":1.76,"deg":354,"gust":1.86},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-23 12:00:00"},{"dt":1737644400,"main":{"temp":273.45,"feels_like":271.69,"temp_min":273.45,"temp_max":273.45,"pressure":1032,"sea_level":1032,"grnd_level":1030,"humidity":77,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":100},"wind":{"speed":1.53,"deg":346,"gust":2.2},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2025-01-23 15:00:00"},{"dt":1737655200,"main":{"temp":277.12,"feels_like":274.88,"temp_min":277.12,"temp_max":277.12,"pressure":1031,"sea_level":1031,"grnd_level":1029,"humidity":74,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":100},"wind":{"speed":2.44,"deg":344,"gust":3.85},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2025-01-23 18:00:00"},{"dt":1737666000,"main":{"temp":278.69,"feels_like":276.84,"temp_min":278.69,"temp_max":278.69,"pressure":1028,"sea_level":1028,"grnd_level":1026,"humidity":75,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":100},"wind":{"speed":2.32,"deg":352,"gust":3.56},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2025-01-23 21:00:00"},{"dt":1737676800,"main":{"temp":274.99,"feels_like":273.65,"temp_min":274.99,"temp_max":274.99,"pressure":1029,"sea_level":1029,"grnd_level":1027,"humidity":91,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":100},"wind":{"speed":1.4,"deg":340,"gust":1.89},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-24 00:00:00"},{"dt":1737687600,"main":{"temp":273.24,"feels_like":273.24,"temp_min":273.24,"temp_max":273.24,"pressure":1030,"sea_level":1030,"grnd_level":1028,"humidity":91,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":92},"wind":{"speed":1.25,"deg":312,"gust":1.3},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-24 03:00:00"},{"dt":1737698400,"main":{"temp":272.53,"feels_like":269.52,"temp_min":272.53,"temp_max":272.53,"pressure":1030,"sea_level":1030,"grnd_level":1028,"humidity":95,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":96},"wind":{"speed":2.38,"deg":322,"gust":3.6},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2025-01-24 06:00:00"},{"dt":1737709200,"main":{"temp":271.7,"feels_like":268.51,"temp_min":271.7,"temp_max":271.7,"pressure":1029,"sea_level":1029,"grnd_level":1027,"humidity":92,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":99},"wind":{"speed":2.41,"deg":346,"gust":4.41},"visibility":10000}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/1907/weather+forecast+api/1616/get+weather+forecast?latitude=40.730610&longitude=-73.935242' --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.
Each endpoint returns weather data in JSON format. The "Get weather by city" and "Get weather by longitude and latitude" endpoints provide current conditions, including temperature, humidity, wind speed, and weather description. The "Get weather forecast" endpoint returns a 5-day forecast with similar data structured in a list format for each day.
Key fields include "temp" (temperature), "humidity," "wind" (speed and direction), "weather" (conditions), and "visibility." For forecasts, additional fields like "dt" (date/time) and "pop" (probability of precipitation) are included.
The "Get weather by city" endpoint accepts a city name, while the "Get weather by longitude and latitude" endpoint requires latitude and longitude values. The "Get weather forecast" endpoint also requires latitude and longitude to provide a 5-day forecast.
The response data is structured in a hierarchical format. For current weather, it includes main weather conditions, temperature details, and wind information. The forecast response contains a list of weather data for each day, with timestamps and detailed conditions.
The Weather Forecast API aggregates data from various meteorological sources, including weather stations and satellite data. This ensures comprehensive coverage and accuracy in the weather information provided.
Typical use cases include travel planning, logistics optimization, agricultural decision-making, and outdoor activity planning. Developers can integrate this data into applications to enhance user experience with real-time weather updates.
Users can customize requests by specifying city names or geographic coordinates (latitude and longitude) to retrieve specific weather data. Additionally, they can filter results based on desired parameters, such as current conditions or forecasts.
Users can parse the JSON response to extract relevant weather information for their applications. For instance, they can display current weather conditions, generate alerts for severe weather, or provide forecasts to help users plan activities.
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:
838ms
Service Level:
100%
Response Time:
830ms
Service Level:
100%
Response Time:
4,497ms
Service Level:
100%
Response Time:
746ms
Service Level:
100%
Response Time:
217ms
Service Level:
100%
Response Time:
395ms
Service Level:
100%
Response Time:
2,566ms
Service Level:
100%
Response Time:
1,310ms
Service Level:
100%
Response Time:
683ms
Service Level:
100%
Response Time:
11,987ms
Service Level:
100%
Response Time:
798ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
5,047ms
Service Level:
100%
Response Time:
360ms
Service Level:
100%
Response Time:
568ms
Service Level:
100%
Response Time:
494ms
Service Level:
100%
Response Time:
3,144ms
Service Level:
100%
Response Time:
64ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
157ms