{"uid":"cap_m7qDaOAJhX-KKKk62NLwS","slug":"codepulse-api-packagist-registry-lookup-0b28e3e1","name":"CodePulse API – Packagist Registry Lookup","description":"Resolves PHP library requirements and tags from Packagist.org.","url":"https://codepulse-api.hahavoid0.workers.dev/registry/packagist","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["package"],"properties":{"package":{"type":"string","description":"Composer package slug (vendor/name, e.g. monolog/monolog)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"package":"monolog/monolog","downloads":50000000},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YsvbhtWrxlgO016RibeQC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a PHP Composer package on Packagist and returns download statistics and registry metadata","exampleAgentPrompt":"How many total downloads does monolog/monolog have on Packagist? I want to know how popular it is and whether it's well-supported.","exampleUseCases":null,"resultDescription":"Returns a JSON object with the package name, total download count, a confidence level (e.g. 'high'), a data freshness date, and a supported flag indicating whether the package is registered on Packagist, plus any warnings or disclaimers.","failureModes":["Package not found on Packagist — result may be empty or supported:false","Invalid vendor/package format causes lookup failure","Packagist API unavailable upstream — timeout or error response","Payment failure via x402/USDC prevents call from completing","Stale data_as_of date if registry cache is not current"],"whenToPreferThis":"Use this endpoint when you need quick, pay-per-call Packagist download statistics or registry existence checks for PHP/Composer packages without setting up an API key. Prefer it over direct Packagist API calls when operating in an x402 micropayment context or when you need a normalized, agent-friendly JSON response with confidence scoring.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:40.608Z","isFirstParty":false}