Current Weather and Forecasted Weather API

Current Weather and Forecasted Weather API

With this API you will be able to check the current weather in any city you choose, and also retrieve information about forecasted data.

API description

About the API:

 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!

 

What this API receives and what your API provides (input/output)?

 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. 

 

What are the most common uses cases of this API?

 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. 

 

Are there any limitations with your plans?

Besides API call limitations per month: 

  • Free Plan - 10 requests per minute. No access to Forecasted Sixteen days endpoint. 
  • Basic Plan - 100 requests per minute. Access to all endpoints. 
  • Pro Plan - 200 requests per minute. Access to all endpoints. 

API Documentation

Endpoints


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
}

 



                                                                            
GET https://www.zylalabs.com/api/39/current+weather+and+forecasted+weather+api/111/current+weather
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"coord":{"lon":-68.3,"lat":-54.8},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"base":"stations","main":{"temp":-1.19,"feels_like":-3.92,"temp_min":-1.19,"temp_max":-0.21,"pressure":992,"humidity":86},"visibility":10000,"wind":{"speed":2.06,"deg":290},"clouds":{"all":75},"dt":1657304129,"sys":{"type":1,"id":8303,"country":"AR","sunrise":1657284838,"sunset":1657311731},"timezone":-10800,"id":3833367,"name":"Ushuaia","cod":200}
                                                                                                                                                                                                                    
                                                                                                    

Current Weather - CODE SNIPPETS


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"
    }



                                                                            
GET https://www.zylalabs.com/api/39/current+weather+and+forecasted+weather+api/112/forecasted+data+-+five+days
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"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"},{"dt":1657324800,"main":{"temp":292.03,"feels_like":291.78,"temp_min":291.79,"temp_max":292.03,"pressure":1017,"sea_level":1017,"grnd_level":1015,"humidity":69,"temp_kf":0.24},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":9},"wind":{"speed":6.99,"deg":271,"gust":10.92},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-09 00:00:00"},{"dt":1657335600,"main":{"temp":289.74,"feels_like":289.52,"temp_min":289.74,"temp_max":289.74,"pressure":1017,"sea_level":1017,"grnd_level":1015,"humidity":79,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":5.72,"deg":271,"gust":10.26},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-09 03:00:00"},{"dt":1657346400,"main":{"temp":288.25,"feels_like":288.06,"temp_min":288.25,"temp_max":288.25,"pressure":1018,"sea_level":1018,"grnd_level":1017,"humidity":86,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":1},"wind":{"speed":3.74,"deg":254,"gust":7.14},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-09 06:00:00"},{"dt":1657357200,"main":{"temp":287.65,"feels_like":287.48,"temp_min":287.65,"temp_max":287.65,"pressure":1018,"sea_level":1018,"grnd_level":1017,"humidity":89,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":3.25,"deg":250,"gust":5.85},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-09 09:00:00"},{"dt":1657368000,"main":{"temp":287.23,"feels_like":287.04,"temp_min":287.23,"temp_max":287.23,"pressure":1019,"sea_level":1019,"grnd_level":1017,"humidity":90,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":2.99,"deg":244,"gust":5.03},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-09 12:00:00"},{"dt":1657378800,"main":{"temp":288.31,"feels_like":288.02,"temp_min":288.31,"temp_max":288.31,"pressure":1020,"sea_level":1020,"grnd_level":1018,"humidity":82,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.8,"deg":243,"gust":4.17},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-09 15:00:00"},{"dt":1657389600,"main":{"temp":290.51,"feels_like":290.18,"temp_min":290.51,"temp_max":290.51,"pressure":1021,"sea_level":1021,"grnd_level":1019,"humidity":72,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":4.74,"deg":253,"gust":6.59},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-09 18:00:00"},{"dt":1657400400,"main":{"temp":291.44,"feels_like":291.13,"temp_min":291.44,"temp_max":291.44,"pressure":1020,"sea_level":1020,"grnd_level":1019,"humidity":69,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":5.78,"deg":259,"gust":7.95},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-09 21:00:00"},{"dt":1657411200,"main":{"temp":290.69,"feels_like":290.35,"temp_min":290.69,"temp_max":290.69,"pressure":1020,"sea_level":1020,"grnd_level":1018,"humidity":71,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":1},"wind":{"speed":5.95,"deg":265,"gust":8.29},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-10 00:00:00"},{"dt":1657422000,"main":{"temp":288.44,"feels_like":288.19,"temp_min":288.44,"temp_max":288.44,"pressure":1019,"sea_level":1019,"grnd_level":1017,"humidity":83,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":2},"wind":{"speed":5.22,"deg":263,"gust":8.32},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-10 03:00:00"},{"dt":1657432800,"main":{"temp":287.11,"feels_like":286.89,"temp_min":287.11,"temp_max":287.11,"pressure":1020,"sea_level":1020,"grnd_level":1018,"humidity":89,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":2},"wind":{"speed":3.37,"deg":254,"gust":6.15},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-10 06:00:00"},{"dt":1657443600,"main":{"temp":286.9,"feels_like":286.71,"temp_min":286.9,"temp_max":286.9,"pressure":1019,"sea_level":1019,"grnd_level":1017,"humidity":91,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":17},"wind":{"speed":2.61,"deg":213,"gust":3.75},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-10 09:00:00"},{"dt":1657454400,"main":{"temp":286.47,"feels_like":286.29,"temp_min":286.47,"temp_max":286.47,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":93,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":24},"wind":{"speed":2.54,"deg":196,"gust":2.98},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-10 12:00:00"},{"dt":1657465200,"main":{"temp":288.19,"feels_like":287.89,"temp_min":288.19,"temp_max":288.19,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":82,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":36},"wind":{"speed":1.55,"deg":159,"gust":1.92},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-10 15:00:00"},{"dt":1657476000,"main":{"temp":292.85,"feels_like":292.49,"temp_min":292.85,"temp_max":292.85,"pressure":1018,"sea_level":1018,"grnd_level":1016,"humidity":62,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"clouds":{"all":20},"wind":{"speed":0.84,"deg":268,"gust":1.24},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-10 18:00:00"},{"dt":1657486800,"main":{"temp":293.83,"feels_like":293.55,"temp_min":293.83,"temp_max":293.83,"pressure":1016,"sea_level":1016,"grnd_level":1014,"humidity":61,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":4},"wind":{"speed":4.29,"deg":270,"gust":4.17},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-10 21:00:00"},{"dt":1657497600,"main":{"temp":292.72,"feels_like":292.4,"temp_min":292.72,"temp_max":292.72,"pressure":1014,"sea_level":1014,"grnd_level":1012,"humidity":64,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":7},"wind":{"speed":4.44,"deg":259,"gust":5.91},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-11 00:00:00"},{"dt":1657508400,"main":{"temp":289.87,"feels_like":289.53,"temp_min":289.87,"temp_max":289.87,"pressure":1013,"sea_level":1013,"grnd_level":1012,"humidity":74,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":7},"wind":{"speed":3.28,"deg":244,"gust":3.98},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-11 03:00:00"},{"dt":1657519200,"main":{"temp":287.81,"feels_like":287.5,"temp_min":287.81,"temp_max":287.81,"pressure":1014,"sea_level":1014,"grnd_level":1012,"humidity":83,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":6},"wind":{"speed":2.88,"deg":232,"gust":3.32},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-11 06:00:00"},{"dt":1657530000,"main":{"temp":287.5,"feels_like":287.24,"temp_min":287.5,"temp_max":287.5,"pressure":1012,"sea_level":1012,"grnd_level":1010,"humidity":86,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":19},"wind":{"speed":2.2,"deg":239,"gust":2.83},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-11 09:00:00"},{"dt":1657540800,"main":{"temp":287.22,"feels_like":287.01,"temp_min":287.22,"temp_max":287.22,"pressure":1012,"sea_level":1012,"grnd_level":1010,"humidity":89,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":14},"wind":{"speed":1.88,"deg":236,"gust":2.21},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2022-07-11 12:00:00"},{"dt":1657551600,"main":{"temp":289.01,"feels_like":288.74,"temp_min":289.01,"temp_max":289.01,"pressure":1012,"sea_level":1012,"grnd_level":1010,"humidity":80,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":28},"wind":{"speed":2,"deg":229,"gust":2.32},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-11 15:00:00"},{"dt":1657562400,"main":{"temp":292.6,"feels_like":292.35,"temp_min":292.6,"temp_max":292.6,"pressure":1012,"sea_level":1012,"grnd_level":1010,"humidity":67,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":35},"wind":{"speed":2.97,"deg":249,"gust":3.41},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-11 18:00:00"},{"dt":1657573200,"main":{"temp":293.76,"feels_like":293.55,"temp_min":293.76,"temp_max":293.76,"pressure":1011,"sea_level":1011,"grnd_level":1009,"humidity":64,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":30},"wind":{"speed":5.44,"deg":250,"gust":6.56},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2022-07-11 21:00:00"},{"dt":1657584000,"main":{"temp":292.3,"feels_like":292.12,"temp_min":292.3,"temp_max":292.3,"pressure":1010,"sea_level":1010,"grnd_level":1008,"humidity":71,"temp_...
                                                                                                                                                                                                                    
                                                                                                    

Forecasted Data - Five Days - CODE SNIPPETS


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' 

    

API Access Key & Authentication

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 Current Weather and Forecasted Weather API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. 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 with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected β€” plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

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.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
124ms

Useful links:


Category:


Tags:


Related APIs