Zum Inhalt springen
GET /v1/package

Package metadata + dependencies + downloads

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/cran-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "package": {
            "url": "https://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2",
            "name": "ggplot2",
            "title": "Create Elegant Data Visualisations Using the Grammar of Graphics",
            "author": "Hadley Wickham [aut] (ORCID: <https://orcid.org/0000-0003-4757-117X>), Winston Chang [aut] (ORCID: <https://orcid.org/0000-0002-1576-2126>), Lionel Henry [aut], Thomas Lin Pedersen [aut, cre] (ORCID: <https://orcid.org/0000-0002-5147-4711>), Kohske Takahashi [aut], Claus Wilke [aut] (ORCID: <https://orcid.org/0000-0002-7470-9261>), Kara Woo [aut] (ORCID: <https://orcid.org/0000-0002-5125-4188>), Hiroaki Yutani [aut] (ORCID: <https://orcid.org/0000-0002-3385-7233>), Dewey Dunnington [aut] (ORCID: <https://orcid.org/0000-0002-9415-4582>), Teun van den Brand [aut] (ORCID: <https://orcid.org/0000-0002-9335-7468>), Posit, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)",
            "depends": [
                {
                    "name": "R",
                    "constraint": ">= 4.1"
                }
            ],
            "imports": [
                {
                    "name": "cli",
                    "constraint": null
                },
                {
                    "name": "grDevices",
                    "constraint": null
                },
                {
                    "name": "grid",
                    "constraint": null
                },
                {
                    "name": "gtable",
                    "constraint": ">= 0.3.6"
                },
                {
                    "name": "isoband",
                    "constraint": null
                },
                {
                    "name": "lifecycle",
                    "constraint": "> 1.0.1"
                },
                {
                    "name": "rlang",
                    "constraint": ">= 1.1.0"
                },
                {
                    "name": "S7",
                    "constraint": null
                },
                {
                    "name": "scales",
                    "constraint": ">= 1.4.0"
                },
                {
                    "name": "stats",
                    "constraint": null
                },
                {
                    "name": "vctrs",
                    "constraint": ">= 0.6.0"
                },
                {
                    "name": "withr",
                    "constraint": ">= 2.5.0"
                }
            ],
            "license": "MIT + file LICENSE",
            "version": "4.0.3",
            "cran_url": "https://cran.r-project.org/package=ggplot2",
            "suggests": [
                {
                    "name": "broom",
                    "constraint": null
                },
                {
                    "name": "covr",
                    "constraint": null
                },
                {
                    "name": "dplyr",
            
…