{"uid":"cap_L3ArLt68JD7eT3YLf91__","slug":"npm-registry-search-x402-keyless-42cae57e","name":"npm Registry Search (x402 Keyless)","description":"Search the npm registry (keyless). POST {text, size?≤20} → name, version, description, weekly downloads, links. Empty/invalid after settle → 400 charged:false.","url":"https://x402-v2-mint-npm-search.vercel.app/v1/npm-search?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","maximum":20,"minimum":1},"text":{"type":"string","maxLength":200,"minLength":1},"request_id":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_K2azT6Gv2ikbqHcw7hl2k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches the npm package registry by keyword and returns package name, version, description, weekly downloads, and links — no API key required, billed per call via x402.","exampleAgentPrompt":"Search npm for packages related to 'jwt authentication' and show me the top 5 results with their weekly downloads and descriptions.","exampleUseCases":[{"title":"Discover libraries for a new project","prompt":"Search npm for 'markdown parser' and give me the top 10 packages with their weekly downloads so I can pick the most popular one."},{"title":"Evaluate alternatives to a known package","prompt":"Search npm for packages similar to 'axios' — show me up to 8 results including their descriptions and download counts so I can compare HTTP client options."},{"title":"Audit ecosystem coverage for a topic","prompt":"Search npm for 'openai' to see what packages exist around the OpenAI ecosystem — give me 20 results with versions and links."}],"resultDescription":"Returns a list of up to 20 npm packages per query, each with: package name, current version, short description, weekly download count, and relevant links (e.g. npm page, homepage, repository). Returns 400 with charged:false if the query yields no results or is invalid.","failureModes":["400 with charged:false when the search text is empty or produces no valid results","400 if size exceeds the maximum of 20","Payment settlement failure via x402 protocol before the search executes","Network timeout if the npm registry is slow or unavailable","Truncated results if fewer packages exist than the requested size"],"whenToPreferThis":"Prefer this endpoint when you need keyless, pay-per-use npm package search without managing an npm API token. Ideal for AI agents that need on-demand package discovery without pre-registered credentials. Use when you want structured package metadata (name, version, downloads, links) rather than raw npm website scraping.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:37:51.750Z","isFirstParty":false,"canonicalSlug":"npm-registry-search-x402-keyless-42cae57e"}