/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/bundlephobia-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bundlephobia-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bundlephobia-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/bundlephobia-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"auth": "none upstream; this gateway requires x-api-key",
"name": "Bundle Size API",
"note": "Minified + gzipped bundle size, dependency count and per-dependency size of any npm package. /v1/size?package=react (or [email protected]), /v1/history?package=react for size across recent versions. Live, no cache. Very large or never-before-measured packages may take a while to build upstream (504 on timeout).",
"source": "Bundlephobia (bundlephobia.com/api) — public, no key",
"endpoints": 3
},
"meta": {
"timestamp": "2026-06-02T16:52:08.952Z",
"request_id": "c41bca51-fe7d-468a-9de5-bae0b5396451"
},
"status": "ok",
"message": "Meta",
"success": true
}