{"uid":"cap_5i9FNP6KBQhPB_hS9OP7m","slug":"saylor-innovations-npm-package-search-42c7f82f","name":"Saylor Innovations npm Package Search","description":"Find up to five npm packages with versions, descriptions, registry ranking scores and source links for package discovery.","url":"https://saylorinnovations.com/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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"Search terms, 2–160 characters."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["service","subject","retrievedAt","source","report"],"properties":{"report":{"type":"object","required":["query","totalResults","results"],"properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"url":{"type":["string","null"]},"name":{"type":"string"},"score":{"type":["number","null"]},"version":{"type":"string"},"description":{"type":["string","null"]}}}},"totalResults":{"type":"integer"}}},"source":{"type":"object","required":["name","url"],"properties":{"url":{"type":"string","format":"uri"},"name":{"type":"string"}}},"service":{"type":"string"},"subject":{"type":"string"},"retrievedAt":{"type":"string","format":"date-time"}}}}}}},"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_jtbUuZj1aRU7pInHSsaya","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search the npm registry and return up to five packages with names, versions, descriptions, registry ranking scores, and source links.","exampleAgentPrompt":"Search npm for packages related to 'date formatting' and show me the top results with their versions, descriptions, and ranking scores.","exampleUseCases":[{"title":"Finding a CSV parsing library","prompt":"Can you search npm for CSV parsing packages and tell me which ones are most popular, including their versions and descriptions?"},{"title":"Discovering authentication middleware","prompt":"Search npm for 'JWT authentication middleware' and show me the top packages with their registry scores so I can pick the best one for my Node.js app."},{"title":"Exploring image processing options","prompt":"What npm packages are available for image resizing or processing in Node.js? Show me the names, versions, and rankings for the top results."}],"resultDescription":"Returns a JSON object containing the original search query, total result count, and an array of up to five npm packages — each with name, latest version, description, registry ranking score (number), and a URL to the package page. Also includes metadata about the service and retrieval timestamp.","failureModes":["Query string shorter than 2 or longer than 160 characters returns a validation error","No matching packages found returns an empty results array with totalResults of 0","npm registry unavailable causes upstream timeout or error response","Malformed or missing 'q' query parameter returns a 400-level error","Payment not provided or insufficient USDC balance returns a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need quick npm package discovery with ranking signals without building your own npm registry client. It's ideal for agents that need to recommend libraries, audit dependencies, or explore package options for a given task — especially in agentic workflows where a $0.003/call cost is acceptable for structured, pre-ranked results without scraping the npm website directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:45.035Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-npm-package-search-42c7f82f"}