Vai al contenuto
GET /v1/package

Package metadata + recent versions

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/pubdev-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/pubdev-api/v1/package" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pubdev-api/v1/package", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pubdev-api/v1/package");
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/pubdev-api/v1/package",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "package": {
            "name": "http",
            "flutter": false,
            "homepage": null,
            "published": "2025-11-10T18:27:56.434747Z",
            "repository": "https://github.com/dart-lang/http/tree/master/pkgs/http",
            "description": "A composable, multi-platform, Future-based API for HTTP requests.",
            "pub_dev_url": "https://pub.dev/packages/http",
            "dependencies": [
                "async",
                "http_parser",
                "meta",
                "web"
            ],
            "documentation": null,
            "version_count": 130,
            "latest_version": "1.6.0",
            "sdk_constraint": "^3.4.0",
            "recent_versions": [
                {
                    "version": "1.6.0",
                    "published": "2025-11-10T18:27:56.434747Z"
                },
                {
                    "version": "1.5.0",
                    "published": "2025-08-07T22:35:23.863279Z"
                },
                {
                    "version": "1.5.0-beta.2",
                    "published": "2025-07-15T23:37:56.942822Z"
                },
                {
                    "version": "1.5.0-beta",
                    "published": "2025-07-08T17:55:50.858454Z"
                },
                {
                    "version": "1.4.0",
                    "published": "2025-05-06T00:17:13.636460Z"
                },
                {
                    "version": "1.3.0",
                    "published": "2025-01-21T00:32:28.622865Z"
                },
                {
                    "version": "1.2.2",
                    "published": "2024-07-16T20:09:47.863320Z"
                },
                {
                    "version": "1.2.1",
                    "published": "2024-02-15T23:25:27.572746Z"
                }
            ]
        }
    },
    "meta": {
        "timestamp": "2026-05-31T11:53:06.112Z",
        "request_id": "ee00c80b-8e4a-428b-b241-d62c7ed2b9b4"
    },
    "status": "ok",
    "message": "Package retrieved",
    "success": true
}