{"uid":"cap_sAuDrjdz2oBe_Yf6cnlvk","slug":"cpan-perl-distribution-lookup-via-metacpan-cc4533cd","name":"CPAN Perl Distribution Lookup via MetaCPAN","description":"CPAN Perl distribution lookup - latest version, abstract, author, licence, runtime dependencies, downstream dependents and open issues from MetaCPAN","url":"https://saylorinnovations.com/api/registry/cpan/:dist?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","pathParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["dist"],"properties":{"dist":{"type":"string","description":"CPAN distribution name in the path, e.g. Moose, Mojolicious, DBI"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["name","version"],"properties":{"name":{"type":"string","description":"Name"},"author":{"type":"string","description":"Author name"},"source":{"type":"string","description":"Data source the values come from"},"license":{"type":"array","description":"License identifier"},"version":{"type":"string","description":"Version identifier"},"abstract":{"type":"string","description":"Abstract text"},"homepage":{"type":["string","null"],"description":"Project homepage URL"},"maturity":{"type":["string","null"]},"released":{"type":["string","null"],"description":"Release date"},"bugtracker":{"type":["string","null"]},"repository":{"type":["string","null"],"description":"Source repository URL"},"main_module":{"type":["string","null"],"description":"Main module"},"maintenance":{"type":["object","null"]},"open_issues":{"type":["number","null"],"description":"Open issues"},"download_url":{"type":["string","null"],"description":"Download URL"},"metacpan_url":{"type":["string","null"],"description":"Metacpan URL"},"module_count":{"type":"number","description":"Number of module"},"distro_packages":{"description":"Distro packages"},"direct_dependents":{"type":["number","null"],"description":"Direct dependents"},"runtime_dependencies":{"type":"number","description":"Runtime dependencies"},"downstream_dependents":{"type":["number","null"],"description":"Downstream dependents"},"runtime_dependency_modules":{"type":["array","null"],"description":"Runtime dependency modules"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RJomK-n5Vk6rrUy6iTEKY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns metadata for a CPAN Perl distribution including latest version, abstract, author, license, runtime dependencies, downstream dependents, and open issues sourced from MetaCPAN.","exampleAgentPrompt":"Can you look up the CPAN distribution 'Moose' and tell me its latest version, author, license, and what other modules depend on it?","exampleUseCases":[{"title":"Dependency audit for Perl project","prompt":"I'm reviewing our Perl codebase and need to know the runtime dependencies and latest version of the 'DBI' CPAN distribution — can you pull that info for me?"},{"title":"Check module maintenance health","prompt":"Is the 'Dancer2' Perl module still actively maintained? Can you check how many open issues it has and who the current author is on CPAN?"},{"title":"Evaluate library before adopting","prompt":"Before we add 'Moo' to our project, can you find its abstract, license, and how many downstream modules depend on it from CPAN?"}],"resultDescription":"A structured JSON object containing the distribution's latest version number, short abstract description, author name, license type, list of runtime dependencies, list of downstream dependent distributions, and count or list of open issues as recorded on MetaCPAN.","failureModes":["Distribution name not found on CPAN — returns 404 or empty result","Misspelled or incorrect distribution name — no data returned","MetaCPAN upstream unavailable — service timeout or 503 error","Distribution exists but has no published metadata fields — partial response with null fields","Network or payment processing failure — request not completed"],"whenToPreferThis":"Choose this endpoint when you need authoritative, up-to-date metadata for a specific CPAN Perl distribution — particularly its version, author, license, dependencies, and dependents — sourced directly from MetaCPAN. It is ideal for Perl dependency audits, library evaluation before adoption, or monitoring open issues on a module. Prefer this over scraping MetaCPAN directly or using general web search when you need structured, machine-readable package metadata reliably.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:24:53.084Z","isFirstParty":false,"canonicalSlug":"cpan-perl-distribution-lookup-via-metacpan-cc4533cd"}