npm · JSON Structure

Npm Structure

Structural overview of the npm API surface; extracted from openapi/.

Type: Properties: 0
PackagesJavaScriptNode.jsPackage ManagementRegistrySecurity

Npm Structure is a JSON Structure definition published by npm.

Meta-schema:

JSON Structure

Raw ↑
{
  "provider": "npm",
  "providerId": "npm",
  "kind": "json-structure",
  "description": "Structural overview of the npm API surface; extracted from openapi/.",
  "schemaCount": 9,
  "operationCount": 5,
  "schemas": [
    {
      "name": "RegistryMetadata",
      "type": "object",
      "propertyCount": 11,
      "required": []
    },
    {
      "name": "PackageDocument",
      "type": "object",
      "propertyCount": 16,
      "required": []
    },
    {
      "name": "PackageVersion",
      "type": "object",
      "propertyCount": 19,
      "required": []
    },
    {
      "name": "Person",
      "type": "object",
      "propertyCount": 3,
      "required": []
    },
    {
      "name": "Repository",
      "type": "object",
      "propertyCount": 2,
      "required": []
    },
    {
      "name": "Distribution",
      "type": "object",
      "propertyCount": 6,
      "required": []
    },
    {
      "name": "SearchResults",
      "type": "object",
      "propertyCount": 3,
      "required": []
    },
    {
      "name": "SearchResultItem",
      "type": "object",
      "propertyCount": 3,
      "required": []
    },
    {
      "name": "Error",
      "type": "object",
      "propertyCount": 2,
      "required": []
    }
  ],
  "operations": [
    {
      "method": "GET",
      "path": "/",
      "operationId": "getRegistryMetadata",
      "summary": "Get registry metadata",
      "tags": [
        "Registry"
      ]
    },
    {
      "method": "GET",
      "path": "/{package}",
      "operationId": "getPackageDocument",
      "summary": "Get a package document (packument)",
      "tags": [
        "Packages"
      ]
    },
    {
      "method": "GET",
      "path": "/{package}/{version}",
      "operationId": "getPackageVersion",
      "summary": "Get a specific package version",
      "tags": [
        "Packages"
      ]
    },
    {
      "method": "GET",
      "path": "/-/v1/search",
      "operationId": "searchPackages",
      "summary": "Search packages",
      "tags": [
        "Search"
      ]
    },
    {
      "method": "GET",
      "path": "/{package}/-/{tarball}",
      "operationId": "downloadPackageTarball",
      "summary": "Download a package tarball",
      "tags": [
        "Downloads"
      ]
    }
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/npm-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.