For developers
API key
An API key is the credential that tells DailyMeteo who's calling — it replaces signing in with a token you attach to every request. It's how requests get authenticated, how usage gets metered against your credits, and how we can reach you if something looks off.
01 · Setup
Get your key
- 1
Sign in
Create a DailyMeteo account or sign in if you already have one.
- 2
Open Account → API Keys
Head to your account page and switch to the API Keys tab.
- 3
Generate and copy it
Click Generate API key. It's shown once in full — copy it somewhere safe before you navigate away.
02 · Usage
Authenticate your requests
Attach your key as the api_key query parameter on any request to https://api.dailymeteo.com. No headers, no OAuth handshake — just a param on the URL.
| Param | Meaning |
|---|---|
var | Variable to query — e.g. tmin, tmax, tmean, prcp. |
agg_level | agg for observed data, ltm for long-term (climate normal) averages. |
time_scale | Granularity of the returned values — day, mon, or ann. |
lat / lon | Location as decimal degrees. |
api_key | Your API key, from the tab above. |
time | One or more comma-separated dates — returns one value per date. Format depends on time_scale: YYYY-MM-DD for day, YYYY-MM for mon, YYYY for ann. |
from / to | A date range — returns one value per step in range. Same time_scale-dependent format as time above. Use instead of time, not alongside it. |
Single date
Minimum daily temperature for a location on one day.
https://api.dailymeteo.com/meteo/v2/pq/?var=tmin&agg_level=agg&time_scale=day&lat=44.8153318&lon=20.4456588&api_key=YOUR_API_KEY&time=2020-12-22Multiple dates
Comma-separate several dates in time to get exactly those days back, skipping everything in between.
https://api.dailymeteo.com/meteo/v2/pq/?var=tmin&agg_level=agg&time_scale=day&lat=44.8153318&lon=20.4456588&api_key=YOUR_API_KEY&time=2020-12-22,2020-12-25,2021-01-01Date range
Same variable and location, returned as a daily series across a range — swap time for from and to.
https://api.dailymeteo.com/meteo/v2/pq/?var=tmin&agg_level=agg&time_scale=day&lat=44.8153318&lon=20.4456588&api_key=YOUR_API_KEY&from=2020-12-22&to=2021-05-01With curl
curl "https://api.dailymeteo.com/meteo/v2/pq/?var=tmin&agg_level=agg&time_scale=day&lat=44.8153318&lon=20.4456588&api_key=YOUR_API_KEY&time=2020-12-22"Streaming large ranges
For wide ranges, swap /meteo/v2/pq/ for /meteo/v2/graph/ — same parameters, but the response streams back record by record instead of waiting to buffer the whole payload, so you can start processing (or plotting) before the request finishes.
https://api.dailymeteo.com/meteo/v2/graph/?var=tmin&agg_level=agg&time_scale=day&lat=44.8153318&lon=20.4456588&api_key=YOUR_API_KEY&from=1961-01-01&to=2020-12-3103 · Billing
How usage is metered
Every authenticated call is deducted from your credit balance — how much it costs depends on which pricing model you're on.
History bulk credits
1 credit = 1 API call for 1 location, returning 60 years of daily data across every variable.
API subscription
1 credit = 1 day of returned values. Ongoing access, billed monthly.
See choosing a pricing plan for the full breakdown, or check your balance any time on the Billing tab.
04 · Security
Keep it secret
Your API key carries your account's credits. Treat it like a password.
- ✓Keep it server-side — env vars, a secrets manager, anywhere a browser can't read it.
- ✓Re-generate it if you suspect it leaked; the old key stops working instantly.
- ✕Don't commit it to a repo, ship it in client-side JS, or paste it into a bundled app.
- ✕Don't share it in screenshots, tickets, or chat — ask us to look up your account instead.
05 · Lifecycle
Rotating and revoking
Each account holds a single active key at a time. Clicking Re-generate issues a new one and invalidates the old one immediately — any integration still using it will start failing authentication right away, so update all of them before you rotate. Deleting a key from the API Keys tab has the same effect, with nothing to replace it until you generate a new one.
Ready to make your first call? Continue to API docs.