Weather Forecast API

Weather Forecast API is a service that provides access to weather data for developers and businesses. With this API, developers can integrate weather information into their applications and services.

About the API:  

 

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.

 

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

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

 

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation.

API Documentation

Endpoints


To use this endpoint all you have to do is insert a city in the parameter.



                                                                            
GET https://zylalabs.com/api/1907/weather+forecast+api/1614/get+weather+by+city
                                                                            
                                                                        

Get weather by city - Endpoint Features

Object Description
city [Required]
Test Endpoint

API EXAMPLE RESPONSE

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

Get weather by city - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1907/weather+forecast+api/1614/get+weather+by+city?city=landon' --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 https://zylalabs.com/api/1907/weather+forecast+api/1615/get+weather+by+longitude+and+latitude
                                                                            
                                                                        

Get weather by longitude and latitude - Endpoint Features

Object Description
lon [Required]
lat [Required]
Test Endpoint

API EXAMPLE RESPONSE

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

Get weather by longitude and latitude - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1907/weather+forecast+api/1615/get+weather+by+longitude+and+latitude?lon=-89.1020&lat=30.430' --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 https://zylalabs.com/api/1907/weather+forecast+api/1616/get+weather+forecast
                                                                            
                                                                        

Get weather forecast - Endpoint Features

Object Description
lat [Required]
lon [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"cod":"200","message":0,"cnt":40,"list":[{"dt":1729479600,"main":{"temp":288.9,"feels_like":288.67,"temp_min":288.9,"temp_max":289.72,"pressure":1024,"sea_level":1024,"grnd_level":1023,"humidity":82,"temp_kf":-0.82},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":2.47,"deg":41,"gust":3.37},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-21 03:00:00"},{"dt":1729490400,"main":{"temp":288.74,"feels_like":288.21,"temp_min":288.43,"temp_max":288.74,"pressure":1024,"sea_level":1024,"grnd_level":1021,"humidity":71,"temp_kf":0.31},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":2.72,"deg":52,"gust":3.69},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-21 06:00:00"},{"dt":1729501200,"main":{"temp":287.9,"feels_like":287.15,"temp_min":287.4,"temp_max":287.9,"pressure":1023,"sea_level":1023,"grnd_level":1021,"humidity":66,"temp_kf":0.5},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":3.01,"deg":45,"gust":4.42},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-21 09:00:00"},{"dt":1729512000,"main":{"temp":286.31,"feels_like":285.33,"temp_min":286.31,"temp_max":286.31,"pressure":1023,"sea_level":1023,"grnd_level":1021,"humidity":63,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":3,"deg":41,"gust":5.33},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-21 12:00:00"},{"dt":1729522800,"main":{"temp":293.36,"feels_like":292.56,"temp_min":293.36,"temp_max":293.36,"pressure":1025,"sea_level":1025,"grnd_level":1023,"humidity":43,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.12,"deg":58,"gust":5.32},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-21 15:00:00"},{"dt":1729533600,"main":{"temp":298.34,"feels_like":297.75,"temp_min":298.34,"temp_max":298.34,"pressure":1022,"sea_level":1022,"grnd_level":1021,"humidity":32,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.33,"deg":101,"gust":3.3},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-21 18:00:00"},{"dt":1729544400,"main":{"temp":298.43,"feels_like":297.93,"temp_min":298.43,"temp_max":298.43,"pressure":1020,"sea_level":1020,"grnd_level":1019,"humidity":35,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.62,"deg":137,"gust":3.32},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-21 21:00:00"},{"dt":1729555200,"main":{"temp":291.41,"feels_like":290.99,"temp_min":291.41,"temp_max":291.41,"pressure":1021,"sea_level":1021,"grnd_level":1019,"humidity":65,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.59,"deg":207,"gust":1.67},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-22 00:00:00"},{"dt":1729566000,"main":{"temp":290.59,"feels_like":290.14,"temp_min":290.59,"temp_max":290.59,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":67,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.73,"deg":52,"gust":0.78},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-22 03:00:00"},{"dt":1729576800,"main":{"temp":289.2,"feels_like":288.58,"temp_min":289.2,"temp_max":289.2,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":66,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":2.03,"deg":36,"gust":2.06},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-22 06:00:00"},{"dt":1729587600,"main":{"temp":288.22,"feels_like":287.56,"temp_min":288.22,"temp_max":288.22,"pressure":1021,"sea_level":1021,"grnd_level":1019,"humidity":68,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":6},"wind":{"speed":2.38,"deg":45,"gust":2.74},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-22 09:00:00"},{"dt":1729598400,"main":{"temp":287.32,"feels_like":286.52,"temp_min":287.32,"temp_max":287.32,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":66,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"clouds":{"all":27},"wind":{"speed":2.7,"deg":49,"gust":3.82},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-22 12:00:00"},{"dt":1729609200,"main":{"temp":294.07,"feels_like":293.39,"temp_min":294.07,"temp_max":294.07,"pressure":1023,"sea_level":1023,"grnd_level":1022,"humidity":45,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":95},"wind":{"speed":2.28,"deg":67,"gust":3.5},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-22 15:00:00"},{"dt":1729620000,"main":{"temp":298,"feels_like":297.69,"temp_min":298,"temp_max":298,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":44,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":{"all":98},"wind":{"speed":1.9,"deg":140,"gust":2.2},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-22 18:00:00"},{"dt":1729630800,"main":{"temp":297.68,"feels_like":297.62,"temp_min":297.68,"temp_max":297.68,"pressure":1020,"sea_level":1020,"grnd_level":1018,"humidity":55,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":{"all":64},"wind":{"speed":2.68,"deg":160,"gust":2.42},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-22 21:00:00"},{"dt":1729641600,"main":{"temp":293,"feels_like":293.21,"temp_min":293,"temp_max":293,"pressure":1021,"sea_level":1021,"grnd_level":1019,"humidity":83,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":82},"wind":{"speed":1.43,"deg":170,"gust":1.49},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-23 00:00:00"},{"dt":1729652400,"main":{"temp":291.88,"feels_like":292.05,"temp_min":291.88,"temp_max":291.88,"pressure":1021,"sea_level":1021,"grnd_level":1019,"humidity":86,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":52},"wind":{"speed":0.02,"deg":243,"gust":0.3},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-23 03:00:00"},{"dt":1729663200,"main":{"temp":290.94,"feels_like":291.02,"temp_min":290.94,"temp_max":290.94,"pressure":1021,"sea_level":1021,"grnd_level":1019,"humidity":86,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"clouds":{"all":26},"wind":{"speed":1.67,"deg":10,"gust":1.6},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-23 06:00:00"},{"dt":1729674000,"main":{"temp":289.83,"feels_like":289.83,"temp_min":289.83,"temp_max":289.83,"pressure":1021,"sea_level":1021,"grnd_level":1019,"humidity":87,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":2.07,"deg":23,"gust":2.2},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-23 09:00:00"},{"dt":1729684800,"main":{"temp":289.25,"feels_like":289.19,"temp_min":289.25,"temp_max":289.25,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":87,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":2.24,"deg":19,"gust":2.35},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-23 12:00:00"},{"dt":1729695600,"main":{"temp":296.4,"feels_like":296.22,"temp_min":296.4,"temp_max":296.4,"pressure":1022,"sea_level":1022,"grnd_level":1020,"humidity":55,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":1},"wind":{"speed":1.72,"deg":34,"gust":2.25},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-23 15:00:00"},{"dt":1729706400,"main":{"temp":300.7,"feels_like":300.69,"temp_min":300.7,"temp_max":300.7,"pressure":1020,"sea_level":1020,"grnd_level":1018,"humidity":44,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":1},"wind":{"speed":1.09,"deg":143,"gust":1.8},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-23 18:00:00"},{"dt":1729717200,"main":{"temp":299.89,"feels_like":300.17,"temp_min":299.89,"temp_max":299.89,"pressure":1018,"sea_level":1018,"grnd_level":1017,"humidity":47,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.29,"deg":178,"gust":3.45},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2024-10-23 21:00:00"},{"dt":1729728000,"main":{"temp":293.51,"feels_like":293.69,"temp_min":293.51,"temp_max":293.51,"pressure":1019,"sea_level":1019,"grnd_level":1017,"humidity":80,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.87,"deg":220,"gust":2.02},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-24 00:00:00"},{"dt":1729738800,"main":{"temp":292.11,"feels_like":292.18,"temp_min":292.11,"temp_max":292.11,"pressure":1020,"sea_level":1020,"grnd_level":1018,"humidity":81,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.37,"deg":295,"gust":1.49},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2024-10-24 03:00:00"},{"dt":1729749600,"main":{"temp":291.29,"feels_like":291.27,"temp_min":291.29,"temp_max":291.29,"pressure":1019,"sea_level":1019,"grnd_level":1017,"humidity":81,"temp_kf":0},"weather":[{"id":800,"main":"Cle...
                                                                                                                                                                                                                    
                                                                                                    

Get weather forecast - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1907/weather+forecast+api/1616/get+weather+forecast?lat=30.430&lon=-89.1020' --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 Weather Forecast 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
  • Specialized Customer Support
  • Real-Time API Monitoring

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

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). 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 paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

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.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
1,063ms

Category:


Related APIs