Free
For testing and side projects
$0forever
No credit card
No overage charges
Real-time weather data API · by APILayer
Free plan · 100 requests / month · no card
Overview
Weatherstack provides reliable real-time weather forecasts, historical weather data, and marine weather information through a powerful, easy-to-integrate weather API for developers and businesses worldwide.
curl --request GET \
--url "https://api.apilayer.net/weatherstack/current?access_key=YOUR_ACCESS_KEY&query=New%20York"
The Weatherstack docs show the full response object for each endpoint.
See the response in the docsA simple REST API that returns clean JSON. Add your access key to an endpoint, pass a city, ZIP code, coordinates or IP address, and you have live weather in minutes.
Live and hour-by-hour data for millions of cities and towns, from multi-year history to current conditions and up to 14-day forecasts.
Temperature, wind, pressure, precipitation, humidity, UV index, visibility, astronomy and marine data, in metric, scientific or Fahrenheit units.
Runs on APILayer cloud infrastructure, delivers data in milliseconds and averages 99.9% uptime, with HTTPS encryption on every plan.
Pricing
Start free. Upgrade when you go live.
For testing and side projects
$0forever
No credit card
No overage charges
For your first live product
$9.99/ month
Billed monthly
Then $0.0007992 per extra request, up to 100,000 extra a month
50,000 requests / month
Everything in Free, plus:
+ 3 more
See all 13 featuresFor growing traffic
$49.99/ month
Billed monthly
Then $0.0006665333 per extra request, up to 600,000 extra a month
300,000 requests / month
Everything in Starter, plus:
+ 1 more
See all 13 featuresFor high volume
$99.99/ month
Billed monthly
Then $0.00039996 per extra request, up to 2,000,000 extra a month
1,000,000 requests / month
Everything in Professional, plus:
Need more? Contact sales for custom needs.
| 13 features | Free$0Get free key | Starter$9.99/moSubscribe | Professional$49.99/moSubscribe | Enterprise$99.99/moSubscribe |
|---|---|---|---|---|
| Realtime weather | ||||
| HTTPS | ||||
| Location search | – | |||
| Historical data | – | |||
| Marine data | – | |||
| Hourly data | – | |||
| Astronomy data | – | |||
| Forecast | – | – | 7 days | 14 days |
| Languages | – | – | 40 | 40 |
| Bulk queries | – | – | ||
| Commercial use | – | |||
| Standard support | – | |||
| Custom solutions | – | – | – | – |
| Price per extra request after the monthly limit | None | $0.0007992 | $0.0006665333 | $0.00039996 |
Playground
Build a request in your browser and see the response it returns.
Agents
Steps for AI coding agents that add Weatherstack to a project.
A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to Weatherstack. The Free plan includes 100 requests / month and needs no credit card.
Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).
Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.
Call Weatherstack from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.
# add .env to .gitignore
APILAYER_ACCESS_KEY=your_api_keyhttps://api.apilayer.net/weatherstackaccess_key query parameter/current Current weather/historical Historical weather/forecast Forecastcurl "https://api.apilayer.net/weatherstack/current?access_key=$APILAYER_ACCESS_KEY&query=New%20York"The API info tab shows the response this request returns.
Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.
| Plan | Requests / month | Adds |
|---|---|---|
| Free | 100 | Realtime weather, HTTPS |
| Starter | 50,000 | Location search, Historical data, Marine data, Hourly data, Astronomy data, Commercial use, Standard support |
| Professional | 300,000 | Forecast: 7 days, Languages: 40, Bulk queries |
| Enterprise | 1,000,000 | Forecast: 14 days |
Prices are in the Pricing tab.
FAQs
Here are the answers you might be seeking
Weatherstack is a real-time weather API that delivers current conditions, historical data,forecasts, and marine weather data for any location worldwide. Teams use it for everything from side projects to high-traffic production apps.
Location details (name, region, country, coordinates, timezone, local time) plus temperature, feels-like, weather description and icon, wind speed and direction, pressure, precipitation, humidity, cloud cover, UV index and visibility. Higher plans add hourly data, astronomy (sunrise, sunset, moon phase) and marine data such as wave height, swell and water temperature.
Pass a city name, ZIP or postal code, latitude and longitude, or an IP address. The Location Autocomplete endpoint helps users find the right place as they type.
Data is licensed from large weather stations and providers and monitored for consistency. It is updated in real time and served with an average 99.9% uptime.
The weatherstack API is licensing weather data from some of the largest weather stations and weather data providers in the world, all of which are closely monitored for consistency and data accuracy around the clock.
Weather data returned by the API as well as weather forecast data always contains the most up-to-date weather information at the current point in time, updated in real-time.
The weatherstack API is powered by apilayer cloud infrastructure, a system some of the world's most popular real-time API services are running on, making it highly scalable and flexible at any step of the way.
Pricing is based on the number of monthly API requests allowed. Each time the weatherstack API service is used to look up a weather information, one API request is consumed. API errors are not counted towards your monthly quota.
Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached. After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly.
Our API's system status is closely monitored around the clock. Every effort is made to ensure the highest possible level of availability and consistency, and we are proud to have an average uptime rate of nearly 100% (99.9%), calculated based on the past 12 months.
Yes. The Free plan includes 100 requests per month for non-commercial use. Sign up, get your API key and follow the Quickstart in the documentation.
Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.
An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.
Prices for additional API calls will vary based on your plan.
Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.
When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.
If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base.
Still have a question?
Contact support