Ir al contenido
GET /v1/meta

Spec

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/npmstats-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}