This API will help you to retrieve current weather data and also forecasted data. You will be able to check the next five and sixteen days!
This API can receive either, the ZIP code of the city we want to check, the name of the city, or the latitude and longitude of the location. All this information will give us detailed data about the current or forecasted weather.
This API is ideal for those companies that want to integrate climate information with their APPs, or maybe integrate them into their website.
This API also could help several organizations to check the forecasted weather and determine if the climate conditions are favorable or not, depending on their activity.
Besides API call limitations per month:
Use this endpoint to retrieve current weather information from any location you choose.
You will receive actual conditions, the temperature, the feels-like temperature, wind conditions, and more...
You will be able to query by city name or latitudes and longitudes to be more precise.
This endpoint will retrieve data based on the metric system or imperial. Also, you can choose to receive the data as JSON or XML.
Output JSON response example:
{
"coord": {
"lon": -71.0598,
"lat": 42.3584
},
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"base": "stations",
"main": {
"temp": 301.78,
"feels_like": 302.92,
"temp_min": 299.23,
"temp_max": 303.93,
"pressure": 1013,
"humidity": 55
},
"visibility": 10000,
"wind": {
"speed": 4.12,
"deg": 240,
"gust": 8.23
},
"clouds": {
"all": 75
},
"dt": 1657304108,
"sys": {
"type": 2,
"id": 2013408,
"country": "US",
"sunrise": 1657271716,
"sunset": 1657326177
},
"timezone": -14400,
"id": 4930956,
"name": "Boston",
"cod": 200
}
Current Weather - Endpoint Features
| Object | Description |
|---|---|
q |
[Required] The name of the city and country you want to check data from. EX: boston,US |
lat |
Optional Insert the latitude of the city you want to check data from. EX: 37.774929 |
long |
Optional Insert the longitude of the city you want to check data from. EX: -122.419418 |
units |
Optional You can use different types of metric systems by units = metric or imperial |
lang |
Optional You can use lang parameter to get output in your language. We support the following languages that you can use with the corresponded lang values: English - en, Russian - ru, Italian - it, Spanish - sp, Ukrainian - ua, German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - se, Chinese Traditional - zhtw, Chinese Simplified - zhcn, Turkish - tr |
mode |
Optional If left blank will default to JSON output. Ability to retrieve data in XML or HTML. |
{"coord":{"lon":150.6,"lat":-34.9667},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"base":"stations","main":{"temp":16.6,"feels_like":15.7,"temp_min":16.07,"temp_max":18.36,"pressure":1005,"humidity":53},"visibility":10000,"wind":{"speed":6.71,"deg":280,"gust":9.83},"clouds":{"all":21},"dt":1687491111,"sys":{"type":2,"id":2010723,"country":"AU","sunrise":1687467934,"sunset":1687503217},"timezone":36000,"id":2166893,"name":"Falls Creek","cod":200}
curl --location --request GET 'https://zylalabs.com/api/39/current+weather+and+forecasted+weather+api/111/current+weather?q=boston,US&units=metric&lang=en&mode=json' --header 'Authorization: Bearer YOUR_API_KEY'
This endpoint will allow you to retrieve forecasted data from the next 5 days at a 3-hour interval.
So you will be able to check how the climate is going to change in the next few days by getting information about every 3 hours interval.
In this endpoint, you can query by city name, latitude, and longitude, and also by zip codes.
Output JSON response example:
{
"cod": "200",
"message": 0,
"cnt": 40,
"list": [
{
"dt": 1657314000,
"main": {
"temp": 292.44,
"feels_like": 292.25,
"temp_min": 292.3,
"temp_max": 292.44,
"pressure": 1018,
"sea_level": 1018,
"grnd_level": 1015,
"humidity": 70,
"temp_kf": 0.14
},
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}
],
"clouds": {
"all": 15
},
"wind": {
"speed": 5.99,
"deg": 264,
"gust": 8.73
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "d"
},
"dt_txt": "2022-07-08 21:00:00"
}Forecasted Data - Five Days - Endpoint Features
| Object | Description |
|---|---|
q |
[Required] The name of the city and country you want to check data from. EX: boston,US |
units |
Optional You can use different types of metric systems by units = metric or imperial |
mode |
Optional If left blank will default to JSON output. Ability to retrieve data in XML or HTML. |
lat |
Optional Insert the latitude of the city you want to check data from. EX: 37.774929 |
long |
Optional Insert the longitude of the city you want to check data from. EX: -122.419418 |
lang |
Optional You can use lang parameter to get output in your language. We support the following languages that you can use with the corresponded lang values: English - en, Russian - ru, Italian - it, Spanish - sp, Ukrainian - ua, German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - se, Chinese Traditional - zhtw, Chinese Simplified - zhcn, Turkish - tr |
zip |
Optional The ZIP code of the city you want to check data from. |
{"cod":"200","message":0,"cnt":40,"list":[{"dt":1667250000,"main":{"temp":16.32,"feels_like":16.04,"temp_min":15.48,"temp_max":16.32,"pressure":1013,"sea_level":1013,"grnd_level":1010,"humidity":78,"temp_kf":0.84},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":{"all":75},"wind":{"speed":1.32,"deg":232,"gust":1.51},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-10-31 21:00:00"},{"dt":1667260800,"main":{"temp":15.72,"feels_like":15.33,"temp_min":14.51,"temp_max":15.72,"pressure":1012,"sea_level":1012,"grnd_level":1009,"humidity":76,"temp_kf":1.21},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":{"all":83},"wind":{"speed":2.72,"deg":265,"gust":3.04},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-11-01 00:00:00"},{"dt":1667271600,"main":{"temp":13.69,"feels_like":13.31,"temp_min":12.38,"temp_max":13.69,"pressure":1012,"sea_level":1012,"grnd_level":1009,"humidity":84,"temp_kf":1.31},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":72},"wind":{"speed":3.33,"deg":243,"gust":4.44},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-01 03:00:00"},{"dt":1667282400,"main":{"temp":12,"feels_like":11.63,"temp_min":12,"temp_max":12,"pressure":1012,"sea_level":1012,"grnd_level":1010,"humidity":91,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":51},"wind":{"speed":3.53,"deg":242,"gust":5.17},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-01 06:00:00"},{"dt":1667293200,"main":{"temp":13.04,"feels_like":12.72,"temp_min":13.04,"temp_max":13.04,"pressure":1011,"sea_level":1011,"grnd_level":1009,"humidity":89,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":81},"wind":{"speed":3.84,"deg":216,"gust":5.57},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-01 09:00:00"},{"dt":1667304000,"main":{"temp":12.95,"feels_like":12.62,"temp_min":12.95,"temp_max":12.95,"pressure":1010,"sea_level":1010,"grnd_level":1008,"humidity":89,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":79},"wind":{"speed":3.71,"deg":201,"gust":5.92},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-01 12:00:00"},{"dt":1667314800,"main":{"temp":12.86,"feels_like":12.47,"temp_min":12.86,"temp_max":12.86,"pressure":1009,"sea_level":1009,"grnd_level":1007,"humidity":87,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":89},"wind":{"speed":4.6,"deg":161,"gust":7.11},"visibility":10000,"pop":0.03,"sys":{"pod":"d"},"dt_txt":"2022-11-01 15:00:00"},{"dt":1667325600,"main":{"temp":12.61,"feels_like":12.2,"temp_min":12.61,"temp_max":12.61,"pressure":1010,"sea_level":1010,"grnd_level":1008,"humidity":87,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":{"all":94},"wind":{"speed":6.09,"deg":265,"gust":11.73},"visibility":7480,"pop":0.66,"rain":{"3h":1.6},"sys":{"pod":"d"},"dt_txt":"2022-11-01 18:00:00"},{"dt":1667336400,"main":{"temp":11.6,"feels_like":10.8,"temp_min":11.6,"temp_max":11.6,"pressure":1010,"sea_level":1010,"grnd_level":1008,"humidity":76,"temp_kf":0},"weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}],"clouds":{"all":100},"wind":{"speed":7.71,"deg":276,"gust":11.22},"visibility":10000,"pop":1,"rain":{"3h":5.53},"sys":{"pod":"d"},"dt_txt":"2022-11-01 21:00:00"},{"dt":1667347200,"main":{"temp":12.15,"feels_like":11.38,"temp_min":12.15,"temp_max":12.15,"pressure":1011,"sea_level":1011,"grnd_level":1009,"humidity":75,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":{"all":64},"wind":{"speed":8.21,"deg":276,"gust":11.59},"visibility":10000,"pop":0.8,"sys":{"pod":"d"},"dt_txt":"2022-11-02 00:00:00"},{"dt":1667358000,"main":{"temp":11.35,"feels_like":10.53,"temp_min":11.35,"temp_max":11.35,"pressure":1014,"sea_level":1014,"grnd_level":1012,"humidity":76,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":2},"wind":{"speed":6.53,"deg":283,"gust":10.21},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-02 03:00:00"},{"dt":1667368800,"main":{"temp":11.12,"feels_like":10.27,"temp_min":11.12,"temp_max":11.12,"pressure":1016,"sea_level":1016,"grnd_level":1014,"humidity":76,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":10},"wind":{"speed":4.36,"deg":271,"gust":6.44},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-02 06:00:00"},{"dt":1667379600,"main":{"temp":10.82,"feels_like":9.99,"temp_min":10.82,"temp_max":10.82,"pressure":1016,"sea_level":1016,"grnd_level":1015,"humidity":78,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"clouds":{"all":98},"wind":{"speed":3.47,"deg":265,"gust":5.68},"visibility":10000,"pop":0.35,"rain":{"3h":0.51},"sys":{"pod":"n"},"dt_txt":"2022-11-02 09:00:00"},{"dt":1667390400,"main":{"temp":10.69,"feels_like":9.75,"temp_min":10.69,"temp_max":10.69,"pressure":1017,"sea_level":1017,"grnd_level":1015,"humidity":74,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"clouds":{"all":99},"wind":{"speed":3.17,"deg":271,"gust":4.32},"visibility":10000,"pop":0.33,"sys":{"pod":"n"},"dt_txt":"2022-11-02 12:00:00"},{"dt":1667401200,"main":{"temp":10.23,"feels_like":9.21,"temp_min":10.23,"temp_max":10.23,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":73,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":97},"wind":{"speed":2.83,"deg":281,"gust":3.76},"visibility":10000,"pop":0.04,"sys":{"pod":"d"},"dt_txt":"2022-11-02 15:00:00"},{"dt":1667412000,"main":{"temp":12.09,"feels_like":10.97,"temp_min":12.09,"temp_max":12.09,"pressure":1019,"sea_level":1019,"grnd_level":1017,"humidity":62,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":{"all":84},"wind":{"speed":3.29,"deg":281,"gust":4.32},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-11-02 18:00:00"},{"dt":1667422800,"main":{"temp":12.61,"feels_like":11.44,"temp_min":12.61,"temp_max":12.61,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":58,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":37},"wind":{"speed":5.36,"deg":274,"gust":6.46},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-11-02 21:00:00"},{"dt":1667433600,"main":{"temp":11.73,"feels_like":10.66,"temp_min":11.73,"temp_max":11.73,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":65,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":47},"wind":{"speed":6.19,"deg":281,"gust":8.05},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-11-03 00:00:00"},{"dt":1667444400,"main":{"temp":10.93,"feels_like":9.91,"temp_min":10.93,"temp_max":10.93,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":70,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":21},"wind":{"speed":6.45,"deg":293,"gust":9.8},"visibility":10000,"pop":0.01,"sys":{"pod":"n"},"dt_txt":"2022-11-03 03:00:00"},{"dt":1667455200,"main":{"temp":10.8,"feels_like":9.71,"temp_min":10.8,"temp_max":10.8,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":68,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":59},"wind":{"speed":6.32,"deg":294,"gust":9.7},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-03 06:00:00"},{"dt":1667466000,"main":{"temp":9.94,"feels_like":6.85,"temp_min":9.94,"temp_max":9.94,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":73,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":66},"wind":{"speed":7.03,"deg":306,"gust":9.56},"visibility":10000,"pop":0.04,"sys":{"pod":"n"},"dt_txt":"2022-11-03 09:00:00"},{"dt":1667476800,"main":{"temp":8.72,"feels_like":6.25,"temp_min":8.72,"temp_max":8.72,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":74,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"clouds":{"all":49},"wind":{"speed":4.38,"deg":344,"gust":8.15},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-11-03 12:00:00"},{"dt":1667487600,"main":{"temp":7.81,"feels_like":6.06,"temp_min":7.81,"temp_max":7.81,"pressure":1020,"sea_level":1020,"grnd_level":1018,"humidity":73,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"clouds":{"all":23},"wind":{"speed":2.73,"deg":349,"gust":3.12},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-11-03 15:00:00"},{"dt":1667498400,"main":{"temp":10.18,"feels_like":8.79,"temp_min":10.18,"temp_max":10.18,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":59,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"clouds":{"all":16},"wind":{"speed":2.07,"deg":355,"gust":2.87},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-11-03 18:00:00"},{"dt":1667509200,"main":{"temp":11.88,"feels_like":10.43,"temp_min":11.88,"temp_max":11.88,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":50,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"clouds":{"all":11},"wind":{"speed":2.65,"deg":289,"gust":3.58},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-11-03 21:00:00"},{"dt":1667520000,"main":{"temp":11.77,"feels_like":10.52,"temp_min":11.77,"temp_max":11.77,"pressure":1021,"sea_level":1021}}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/39/current+weather+and+forecasted+weather+api/112/forecasted+data+-+five+days?q=san francisco, US&units=metric&mode=json&lang=en' --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.
The Current Weather endpoint returns real-time weather conditions, including temperature, humidity, wind speed, and weather descriptions. The Five Days Forecast endpoint provides forecast data at 3-hour intervals, detailing temperature, humidity, wind conditions, and weather descriptions for the next five days.
Key fields include "temp" (temperature), "feels_like" (apparent temperature), "humidity" (moisture level), "wind" (speed and direction), and "weather" (conditions like clear or cloudy). Each field provides essential insights into current and forecasted weather.
The response data is structured in JSON format, with nested objects for detailed information. For example, the "main" object contains temperature and humidity, while the "weather" array provides descriptions and icons for conditions, allowing easy parsing and usage.
Users can query the endpoints using parameters such as city name, ZIP code, or geographic coordinates (latitude and longitude). This flexibility allows for precise location targeting when retrieving weather data.
The Current Weather endpoint provides current conditions, including temperature, wind speed, and weather descriptions. The Five Days Forecast endpoint offers detailed forecasts, including temperature changes, humidity levels, and wind conditions at 3-hour intervals.
Users can customize requests by specifying location parameters (city name, ZIP code, or coordinates) and choosing between metric or imperial units. Additionally, they can select the response format as JSON or XML to suit their application needs.
The API aggregates weather data from various meteorological sources, ensuring comprehensive coverage and accuracy. Data is regularly updated to reflect current conditions and forecasts, maintaining high quality and reliability.
Common use cases include integrating weather information into mobile apps, websites, and dashboards. Businesses may use the data for planning activities based on weather conditions, while individuals can check forecasts for travel or outdoor events.
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:
875ms
Service Level:
100%
Response Time:
830ms
Service Level:
100%
Response Time:
11,987ms
Service Level:
100%
Response Time:
838ms
Service Level:
100%
Response Time:
396ms
Service Level:
100%
Response Time:
746ms
Service Level:
100%
Response Time:
4,497ms
Service Level:
100%
Response Time:
143ms
Service Level:
100%
Response Time:
222ms
Service Level:
100%
Response Time:
683ms
Service Level:
100%
Response Time:
6,718ms
Service Level:
100%
Response Time:
10,571ms
Service Level:
100%
Response Time:
3,160ms
Service Level:
100%
Response Time:
9,089ms
Service Level:
100%
Response Time:
3,984ms
Service Level:
100%
Response Time:
2,894ms
Service Level:
100%
Response Time:
1,718ms
Service Level:
100%
Response Time:
6,807ms
Service Level:
100%
Response Time:
8,059ms
Service Level:
100%
Response Time:
53ms