How to hit the cdnjs API

cdnjs's API at https://api.cdnjs.com searches the libraries hosted on the cdnjs CDN. fields picks what comes back.

Authentication

None — no key, no signup. Every example runs as-is.

Full reference: https://cdnjs.com/api

Get a library

curl "https://api.cdnjs.com/libraries/jquery?fields=name,version,description,homepage"
Run in PostTaco
Example response (trimmed)
{
  "name": "jquery",
  "description": "JavaScript library for DOM operations",
  "version": "4.0.0",
  "homepage": "https://jquery.com/"
}