{"uid":"cap_Q-UX_O9iLgEnXVcAK2GMt","slug":"sitecheck-package-search-c95f2ff6","name":"SiteCheck Package Search","description":"Searches package names and descriptions on npm, crates.io, Packagist, RubyGems and NuGet, returning name, version, description, downloads where the registry gives them, licence, repository and last publish date. PyPI has no search API: it is checked by exact name only. Registries that fail are listed in unavailable. Limit per registry max 10.","url":"https://api.sitecheck-api.workers.dev/api/package/search?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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"Package name or keywords (1-100 characters)"},"limit":{"type":"string","description":"Results per registry, 1-10 (default 5)"},"ecosystems":{"type":"string","description":"Comma list of npm, crates, packagist, rubygems, nuget, pypi (default: all)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":2,"query":"express","source":"npm registry, crates.io API, Packagist, RubyGems.org, NuGet search, PyPI JSON (each registry's own terms and licences)","results":[{"url":"https://www.npmjs.com/package/express","name":"express","version":"5.3.0","downloads":635513489,"ecosystem":"npm","repository":"git+https://github.com/expressjs/express.git","description":"Fast, unopinionated, minimalist web framework","lastPublish":"2026-10-09T12:56:54.505Z","downloadsPeriod":"last 30 days"},{"url":"https://www.npmjs.com/package/@types/express","name":"@types/express","version":"5.0.6","downloads":299655572,"ecosystem":"npm","repository":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","description":"TypeScript definitions for express","lastPublish":"2025-12-01T20:35:51.488Z","downloadsPeriod":"last 30 days"}],"pypiNote":"PyPI: exact name match only (no search API)","checkedAt":"2026-10-15T18:21:07.766Z","unavailable":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2SgEzgVf_f2nEDoxmD8ud","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search for open-source packages by name or keywords across npm, crates.io, PyPI, RubyGems, NuGet, and Packagist registries","exampleAgentPrompt":"Search for packages named 'express' across npm, PyPI, and crates.io — show me the top 3 results per registry including version, download count, and description.","exampleUseCases":[{"title":"Finding a Python ML library","prompt":"Search PyPI for packages related to 'machine learning' and show me the top 5 results with their version numbers and download counts."},{"title":"Checking latest npm package version","prompt":"Look up the 'lodash' package on npm — I need to know the current version, how many downloads it gets per month, and where the source repo is."},{"title":"Cross-registry package discovery","prompt":"Search for packages named 'http-client' across npm, RubyGems, and NuGet — give me up to 3 results per registry so I can compare what's available in each ecosystem."}],"resultDescription":"Returns a JSON object with a results array where each item includes package name, version, download count, download period, ecosystem, repository URL, description, and last publish date. Also includes metadata like the query string, source registries queried, a checkedAt timestamp, and any unavailable registries.","failureModes":["Missing required query parameter 'q' returns a validation error","Query string exceeding 100 characters may be rejected","Ecosystems parameter with invalid registry names returns an error or ignores bad values","PyPI only supports exact name matches, not keyword search — partial queries may return no results","Some registries may be temporarily unavailable and appear in the 'unavailable' list","limit values outside 1-10 range may default or error"],"whenToPreferThis":"Use this endpoint when you need to look up or compare open-source packages across multiple language ecosystems simultaneously. It is ideal when you want download stats, version info, and repository links from npm, crates.io, RubyGems, NuGet, Packagist, and PyPI in a single call rather than querying each registry API separately. Prefer this over direct registry APIs when you need cross-ecosystem discovery or a unified response format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:15.653Z","isFirstParty":false,"canonicalSlug":"sitecheck-package-search-c95f2ff6"}