{"uid":"cap_ka-HKwKAVm2X4F-F2LhiZ","slug":"scrapemole-pkgs-npm-package-search-692552f6","name":"ScrapeMole Pkgs – npm Package Search","description":"Pay-per-call package registry lookups: npm package metadata, version details, search, and download counts; PyPI project metadata, releases, and name lookup. Public registry data only (no auth, no private packages, no scraping of user profiles). Emails and tokens are stripped. USDC via x402, no accounts.\n\nPayments: x402 v2, scheme \"exact\", USDC on Base (eip155:8453). The payment is verified before the work and settled only when the response is 200. Terms: https://pkgs.scrapemole.workers.dev/terms","url":"https://pkgs.scrapemole.workers.dev/v1/npm/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","examples":["markdown parser"],"description":"Search text."},"limit":{"type":"string","default":"10","description":"Max results (1-20)."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":2,"query":"markdown parser","source":"https://registry.npmjs.org/-/v1/search","results":[{"name":"marked","score":0.91,"version":"15.0.0","keywords":["markdown"],"description":"A markdown parser…"}]}},"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_2556BGBO3Be-r7PypVVjx","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 registry by keyword and returns ranked package results with metadata including name, version, description, keywords, and relevance score","exampleAgentPrompt":"Search npm for markdown parser packages and show me the top 5 results with their versions and descriptions.","exampleUseCases":[{"title":"Find a dependency for a JS project","prompt":"I'm building a Node.js app and need a good library for parsing CSV files — search npm for CSV parser packages and show me the top 10 with their scores and descriptions."},{"title":"Evaluate package alternatives","prompt":"Can you search npm for 'HTTP client' and list the top results so I can compare options like axios or got for my project?"},{"title":"Discover packages for a new feature","prompt":"I need to add PDF generation to my Node app — search npm for PDF generation packages and give me up to 8 results with their latest versions."}],"resultDescription":"Returns a JSON object with a total count of matches, the original query string, the upstream source URL, and an array of up to 20 result objects each containing the package name, relevance score (0–1), latest version, keyword tags, and description.","failureModes":["Missing required 'q' query parameter returns a 400 error","Empty or whitespace-only query may return zero results","Limit outside 1–20 range may be clamped or rejected","Payment not provided or insufficient triggers a 402 Payment Required response","Packages with no description or keywords return partial metadata","Network timeouts from the upstream npm registry propagate as errors"],"whenToPreferThis":"Use this endpoint when an AI agent needs to discover npm packages by keyword — especially when you want ranked, scored results across multiple candidates rather than looking up a single known package. Prefer this over direct npm registry calls when you need pay-per-use billing via USDC x402 with no account setup, or when you want emails and tokens pre-stripped from results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:36:33.923Z","isFirstParty":false,"canonicalSlug":"scrapemole-pkgs-npm-package-search-692552f6"}