SDKs & client libraries
Official lightweight clients for the MeteoFeed weather API — one bearer token, every endpoint, single-file so you can vendor them today. Or generate a fully-typed client in any language from our OpenAPI spec.
Each client wraps bearer-token auth, query-string building and error handling (including 429 Retry-After). Use the named helpers (current, forecast, warnings, …) or the generic get(path, params) for any of the ~34 endpoints.
🐍 Python
Download meteofeed.pyPython 3.8+ · pip install requests
# pip install requests, then drop in meteofeed.py from meteofeed import MeteoFeed mf = MeteoFeed("mtfd_your_key") now = mf.current(52.37, 4.89) print(now["data"]["temperature"], "°C") # pick a model, or call any endpoint generically: gfs = mf.forecast(52.37, 4.89, hours=48, model="gfs") quakes = mf.get("earthquakes", min_mag=5, limit=10)
🟨 JavaScript / TypeScript
Download meteofeed.jsNode 18+, Deno, Bun or modern browsers · zero dependencies (built-in fetch) · ESM
// import the module (Node 18+ / browser) import { MeteoFeed } from "./meteofeed.js"; const mf = new MeteoFeed("mtfd_your_key"); const now = await mf.current(52.37, 4.89); console.log(now.data.temperature, "°C"); const gfs = await mf.forecast(52.37, 4.89, { hours: 48, model: "gfs" }); const quakes = await mf.get("earthquakes", { min_mag: 5, limit: 10 });
PHP 8.0+ · zero dependencies (built-in cURL)
// require 'meteofeed.php'; use MeteoFeed\Client; $mf = new Client("mtfd_your_key"); $now = $mf->current(52.37, 4.89); echo $now["data"]["temperature"], " °C"; $gfs = $mf->forecast(52.37, 4.89, ["hours" => 48, "model" => "gfs"]); $quakes = $mf->get("earthquakes", ["min_mag" => 5, "limit" => 10]);
No SDK? Just curl
curl -H "Authorization: Bearer mtfd_your_key" \ "https://api.meteofeed.com/v1/current?lat=52.37&lng=4.89"
Prefer a generated, fully-typed client?
Every endpoint, parameter and response is described in our OpenAPI 3.1 spec. Point openapi-generator (or your tool of choice) at it to generate a typed client in 50+ languages, or import it into Postman, Insomnia or Bruno. The single-file clients above are the quick path; the spec is the complete one.