/v1/meta
Spec
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/npmstats-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/npmstats-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/npmstats-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/npmstats-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"auth": "none upstream; this gateway requires x-api-key",
"name": "npm Download Stats API",
"note": "Download counts and trends for any npm package. /v1/downloads?package=react&period=last-month (periods: last-day|last-week|last-month|last-year or YYYY-MM-DD:YYYY-MM-DD), /v1/range for the per-day series, /v1/compare?packages=react,vue,svelte to rank several, /v1/trends for monthly totals over the last year. Live, no cache.",
"source": "npm downloads API (api.npmjs.org/downloads) — public, no key",
"endpoints": 5
},
"meta": {
"timestamp": "2026-06-02T16:52:08.087Z",
"request_id": "e595c296-64db-4211-9b06-5989e4a2fd87"
},
"status": "ok",
"message": "Meta",
"success": true
}