You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/api/README.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,41 +2,42 @@
2
2
3
3
The Meteostat JSON API provides simple access to a large archive of historical weather and climate data. The records are queried by weather station or geo location and can be filtered by specifying a date range and other optional parameters.
4
4
5
-
::: tip Donation
6
-
Help Meteostat provide free weather and climate data by making a [donation](/contributing.html#donations).
7
-
:::
5
+
Meteostat uses [RapidAPI](https://rapidapi.com/meteostat/api/meteostat/), an API marketplace which makes it easy for developers to use thousands of APIs through a common platform.
8
6
9
-
The API is available via this URL:
7
+
This is the base URL for all endpoints:
10
8
11
9
```
12
-
https://api.meteostat.net
10
+
https://meteostat.p.rapidapi.com
13
11
```
14
12
15
-
Access to the API requires users to send their API key along with every request. All API endpoints return a JSON object that contains two properties: `meta` and `data`. The `meta` object provides general information about the data output and debugging information. For instance, the `source` string which holds the names of the organizations which provided the raw data. The `data` property is either an object or an array that contains the actual data output.
13
+
Access to the API requires users to send their RapidAPI key along with every request. All API endpoints return a JSON object that contains two properties: `meta` and `data`. The `meta` object provides general information about the data output and debugging information. The `data` property is either an object or an array that contains the actual data output.
16
14
17
15
All API endpoints are accessible using HTTP Get requests. For debugging, please utilize the HTTP status code of the response.
18
16
19
-
## API Key
17
+
## Sign Up
20
18
21
-
Please submit this [**form**](https://auth.meteostat.net/) to apply for an API key.
19
+
Please sign up on [RapidAPI](https://rapidapi.com/signup) to get an API key. Before you can call the Meteostat JSON API, you'll need to subscribe to one of [our plans](https://rapidapi.com/meteostat/api/meteostat/pricing). But don't worry - you'll get 500 monthly calls for free.
22
20
23
21
## Quick Start
24
22
25
23
Once you have your API key, head over to your terminal, replace the `{key}` parameter with your personal API key and execute the following command:
You should see meta information for the weather station _Frankfurt Airport_ in JSON format.
32
33
33
-
## Quota
34
+
## Plans & Quota
34
35
35
-
Free access to the Meteostat API is limited to 2,000 requests per day and no more than two requests per second. Once this limit is reached, all of your requests will result in HTTP 429, too many requests, until your quota is cleared.
36
+
Meteostat uses a freemium model for its API. We offer a free plan with a hard limit of 500 requests per month. If you need a higher quota, please choose any of our [paid plans](https://rapidapi.com/meteostat/api/meteostat/pricing).
36
37
37
38
## Authentication
38
39
39
-
When retrieving data from Meteostat API endpoints make sure to send the `x-api-key` header along with every request. You cannot use the `key` URL parameter to authenticate API calls as in version 1.
40
+
When retrieving data from Meteostat API endpoints make sure to send the `X-RapidAPI-Key` header along with every request. RapidAPI also supports passing the API Key via query parameter. You can do this by including the `rapidapi-key` parameter in your request.
40
41
41
42
## Status Codes
42
43
@@ -45,8 +46,8 @@ All Meteostat API endpoints return one of the following status codes. You can ut
Copy file name to clipboardExpand all lines: src/api/point/README.md
+2-18Lines changed: 2 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -8,26 +8,10 @@ While weather stations provide data that was measured at a specific location, po
8
8
9
9
## Remarks
10
10
11
-
Point data is currently considered an **experimental feature**. The way data is being interpolated is still subject to changes. Moreover, point data **only returns data if there is at least one nearby weather station** that reported observations in the desired period. The model output is by no means a substitute for actual observations.
12
-
13
-
We encourage API users to give the new feature a try. Please get in touch with Meteostat for feedback and suggestions.
11
+
Point data **only returns data if there is at least one nearby weather station** that reported observations in the desired period. The model's quality is varying based on the number and proximity of nearby weather stations.
14
12
15
13
## Data Model
16
14
17
15
Point data provides more complete time series, as observations of multiple stations are joined together. The data output is being interpolated based on the geographical distance between the different weather stations and the reference point of the query. Additionally, Meteostat adjusts measurements based on environmental circumstances and differences in altitude.
18
16
19
-
Meteostat projects the existing observations which are provided by weather stations around the world to the location specified in the request. Long-term climate averages are based on the incredible [WorldClim](https://worldclim.org/) project. For more precise model output, please provide the elevation of your location using the `alt` parameter.
20
-
21
-
## Endpoints
22
-
23
-
Meteostat provides three different endpoints for point data:
24
-
25
-
*[Hourly Data](hourly.md)
26
-
*[Daily Data](daily.md)
27
-
*[Climate Normals](climate.md)
28
-
29
-
## Vision
30
-
31
-
The use cases for historical weather data are diverse. While actual observations of professional weather stations are crucial for science and research, model data provides a better coverage across the globe. Point data is an addition to the thousands of weather stations which are available through Meteostat.
32
-
33
-
With a growing community of developers and contributors who are using and building Meteostat, we will be able to provide even better model output in the future. We are visioning a machine learning based approach for point data which allows our model to improve over time.
17
+
Meteostat projects the existing observations which are provided by weather stations around the world to the location specified in the request. For more precise model output, please provide the elevation of your location using the `alt` parameter.
0 commit comments