# Saylor Innovations CDNJS Library Search

> Saylor Innovations CDNJS Library Search is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

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

## Facts

- Endpoint: GET https://saylorinnovations.com/api/dev/cdnjs?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-cdnjs-library-search-8191d2fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q5MxnPOlkF-n0HPGB1Vwt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-cdnjs-library-search-8191d2fd
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Search the cdnjs library catalog - latest version, description, license, homepage, repository, keywords, CDN URL and a ready script tag

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-cdnjs-library-search-8191d2fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
