Zum Inhalt springen
GET /v1/module

Which distribution provides a module

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "module": {
            "date": "2025-07-04T21:24:15",
            "name": "Moose",
            "author": "ETHER",
            "release": "Moose-2.4000",
            "version": "2.4000",
            "abstract": "A postmodern object system for Perl 5",
            "distribution": "Moose",
            "metacpan_url": "https://metacpan.org/pod/Moose"
        }
    },
    "meta": {
        "timestamp": "2026-05-31T12:54:31.769Z",
        "request_id": "cdd6d3c4-c9fa-4b73-baaf-efe1ab2a74e2"
    },
    "status": "ok",
    "message": "Module retrieved",
    "success": true
}