{"uid":"cap_Q5MxnPOlkF-n0HPGB1Vwt","slug":"saylor-innovations-cdnjs-library-search-8191d2fd","name":"Saylor Innovations CDNJS Library Search","description":"Search the cdnjs library catalog - latest version, description, license, homepage, repository, keywords, CDN URL and a ready script tag","url":"https://saylorinnovations.com/api/dev/cdnjs?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":"Library name or keyword"},"limit":{"type":"string","description":"optional 1-30, default 10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["query","libraries"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"count":{"type":"number","description":"Number of items returned"},"query":{"type":"string","description":"The query as the server interpreted it"},"total":{"type":"number","description":"Total number of matching items"},"source":{"type":"string","description":"Data source the values come from"},"libraries":{"type":"array","description":"Matching libraries with name, latest version, description, CDN URL, licence and homepage"}}}}}}},"responseSchema":null,"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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iXk7NeIFqR4jl2jhasIqa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search the cdnjs library catalog and return metadata including latest version, description, license, homepage, repository, keywords, CDN URL, and a ready-to-use script tag","exampleAgentPrompt":"Can you look up lodash on cdnjs and give me the latest version, CDN URL, and a ready-to-use script tag I can drop into my HTML?","exampleUseCases":[{"title":"Frontend library CDN link lookup","prompt":"I need the CDN script tag for the latest version of Chart.js so I can add it to my HTML page — can you search cdnjs for it and give me something I can paste in?"},{"title":"License and homepage check for open source audit","prompt":"I'm auditing my dependencies — can you search cdnjs for moment.js and tell me its license, homepage, and repository URL?"},{"title":"Discover charting libraries via keyword search","prompt":"I'm looking for charting libraries available on cdnjs — can you search for 'chart' and show me up to 15 results with their descriptions and CDN URLs?"}],"resultDescription":"Returns a JSON object containing the interpreted query, total match count, number of items returned, and an array of matching libraries each with name, latest version, description, CDN URL, license, homepage, repository, and keywords, plus a ready-to-use HTML script tag.","failureModes":["No matching libraries found for obscure or misspelled query","Limit parameter out of range (must be 1-30) returns an error or is clamped","Library exists on npm but not indexed on cdnjs — returns empty results","CDN URL may be stale if cdnjs hasn't indexed the absolute latest release","Rate limiting or payment failure returns a 402 or 429 error"],"whenToPreferThis":"Use this endpoint when you need to quickly resolve a JavaScript/CSS library's CDN URL, latest version, or metadata from the cdnjs catalog without scraping the cdnjs website directly. It is ideal for generating ready-to-use script tags, auditing open source licenses, or discovering libraries by keyword. Prefer this over npm registry lookups when you specifically need a CDN delivery URL rather than a package download path.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:22:28.554Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-cdnjs-library-search-8191d2fd"}