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://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.

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://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.

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.

🧙Free
$0.00 / Mo

  • 50 Requests / Month
💫Basic
$24.99 / Mo

  • 5,000 Requests / Month
⚡Pro
$49.99 / Mo

  • 10,000 Requests / Month
🚀 Enterprise
Custom quote

Need more? We offer unlimited API calls, Request Quote


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]

API Provider: SoftDev

Useful links:


Category:


Tags: