{
  "openapi": "3.1.0",
  "info": {
    "title": "Dataholm ranking API",
    "version": "1.0.0",
    "description": "Read-only JSON feeds behind https://dataholm.com. The ranking is the top agent-related npm packages by weekly downloads among packages found by keyword search on the npm registry, not all of npm. Data refreshes nightly. No authentication."
  },
  "servers": [
    {
      "url": "https://dataholm.com"
    }
  ],
  "paths": {
    "/api/ranking.json": {
      "get": {
        "operationId": "getRanking",
        "summary": "Current ranking",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ranking"
                },
                "example": {
                  "generated_at": "2026-12-04T22:40:29.996Z",
                  "week_start": "2026-11-27",
                  "week_end": "2026-12-03",
                  "index_size": 1669,
                  "index_note": "Rank is among 1669 agent-related packages found by keyword search on the npm registry, not among every package on npm.",
                  "source": "Official npm public APIs only (registry.npmjs.org search and packument, api.npmjs.org/downloads). No page scraping.",
                  "ranking": "Top packages by weekly downloads among agent-related npm packages found by keyword search, not all of npm.",
                  "home": "https://dataholm.com/",
                  "docs": "https://dataholm.com/openapi.json",
                  "count": 50,
                  "packages": [
                    {
                      "rank": 1,
                      "name": "@modelcontextprotocol/sdk",
                      "slug": "modelcontextprotocol-sdk",
                      "weekly_downloads": 92827523,
                      "prev_week_downloads": 87805927,
                      "growth_wow_pct": 5.7,
                      "category": "MCP servers",
                      "category_slug": "mcp-servers",
                      "description": "Model Context Protocol implementation for TypeScript",
                      "npm_url": "https://www.npmjs.com/package/@modelcontextprotocol/sdk",
                      "repo": "https://github.com/modelcontextprotocol/typescript-sdk",
                      "license": "MIT",
                      "version": "1.32.2",
                      "last_publish": "2026-10-23T18:11:38.734Z",
                      "signals": {
                        "agents_md": false,
                        "mcp": true,
                        "npx_init": false
                      },
                      "url": "https://dataholm.com/package/modelcontextprotocol-sdk"
                    },
                    {
                      "rank": 2,
                      "name": "@modelcontextprotocol/core",
                      "slug": "modelcontextprotocol-core",
                      "weekly_downloads": 48424190,
                      "prev_week_downloads": 43266809,
                      "growth_wow_pct": 11.9,
                      "category": "MCP servers",
                      "category_slug": "mcp-servers",
                      "description": "Model Context Protocol for TypeScript - public Zod schemas (spec + OAuth/OpenID)",
                      "npm_url": "https://www.npmjs.com/package/@modelcontextprotocol/core",
                      "repo": "https://github.com/modelcontextprotocol/typescript-sdk",
                      "license": "Apache-2.0",
                      "version": "2.4.0",
                      "last_publish": "2026-10-23T18:19:54.727Z",
                      "signals": {
                        "agents_md": false,
                        "mcp": true,
                        "npx_init": false
                      },
                      "url": "https://dataholm.com/package/modelcontextprotocol-core"
                    }
                  ],
                  "sponsored": [
                    {
                      "sponsored": true,
                      "label": "Sponsored. Paid placement, not a ranking.",
                      "name": "EazyReader.ai",
                      "package": "eazyread",
                      "url": "https://eazyreader.ai",
                      "npm_url": "https://www.npmjs.com/package/eazyread",
                      "description": "EazyReader makes reading easier for people and for the agents that write for them."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/package/{slug}.json": {
      "get": {
        "operationId": "getPackage",
        "summary": "One ranked package with weekly history",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "modelcontextprotocol-sdk",
            "description": "npm name without @, with / replaced by -"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PackageDoc"
                },
                "example": {
                  "generated_at": "2026-12-04T22:40:29.996Z",
                  "week_start": "2026-11-27",
                  "week_end": "2026-12-03",
                  "index_size": 1669,
                  "index_note": "Rank is among 1669 agent-related packages found by keyword search on the npm registry, not among every package on npm.",
                  "source": "Official npm public APIs only (registry.npmjs.org search and packument, api.npmjs.org/downloads). No page scraping.",
                  "ranking": "Top packages by weekly downloads among agent-related npm packages found by keyword search, not all of npm.",
                  "home": "https://dataholm.com/",
                  "docs": "https://dataholm.com/openapi.json",
                  "package": {
                    "rank": 1,
                    "name": "@modelcontextprotocol/sdk",
                    "slug": "modelcontextprotocol-sdk",
                    "weekly_downloads": 92827523,
                    "prev_week_downloads": 87805927,
                    "growth_wow_pct": 5.7,
                    "category": "MCP servers",
                    "category_slug": "mcp-servers",
                    "description": "Model Context Protocol implementation for TypeScript",
                    "npm_url": "https://www.npmjs.com/package/@modelcontextprotocol/sdk",
                    "repo": "https://github.com/modelcontextprotocol/typescript-sdk",
                    "license": "MIT",
                    "version": "1.32.2",
                    "last_publish": "2026-10-23T18:11:38.734Z",
                    "signals": {
                      "agents_md": false,
                      "mcp": true,
                      "npx_init": false
                    },
                    "url": "https://dataholm.com/package/modelcontextprotocol-sdk",
                    "weeks": [
                      {
                        "start": "2026-09-11",
                        "end": "2026-09-17",
                        "downloads": 59516462
                      },
                      {
                        "start": "2026-09-18",
                        "end": "2026-09-24",
                        "downloads": 63102240
                      },
                      {
                        "start": "2026-09-25",
                        "end": "2026-10-01",
                        "downloads": 72043847
                      },
                      {
                        "start": "2026-10-02",
                        "end": "2026-10-08",
                        "downloads": 80401592
                      },
                      {
                        "start": "2026-10-09",
                        "end": "2026-10-15",
                        "downloads": 66534169
                      },
                      {
                        "start": "2026-10-16",
                        "end": "2026-10-22",
                        "downloads": 56546008
                      },
                      {
                        "start": "2026-10-23",
                        "end": "2026-10-29",
                        "downloads": 87026138
                      },
                      {
                        "start": "2026-10-30",
                        "end": "2026-11-05",
                        "downloads": 88065412
                      },
                      {
                        "start": "2026-11-06",
                        "end": "2026-11-12",
                        "downloads": 87824410
                      },
                      {
                        "start": "2026-11-13",
                        "end": "2026-11-19",
                        "downloads": 94097667
                      },
                      {
                        "start": "2026-11-20",
                        "end": "2026-11-26",
                        "downloads": 87805927
                      },
                      {
                        "start": "2026-11-27",
                        "end": "2026-12-03",
                        "downloads": 92827523
                      }
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown slug"
          }
        }
      }
    },
    "/api/category/{slug}.json": {
      "get": {
        "operationId": "getCategory",
        "summary": "One category",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "mcp-servers",
                "ai-sdk-tooling",
                "other-agent-tooling",
                "agent-clis"
              ]
            },
            "example": "mcp-servers"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoryDoc"
                },
                "example": {
                  "generated_at": "2026-12-04T22:40:29.996Z",
                  "week_start": "2026-11-27",
                  "week_end": "2026-12-03",
                  "index_size": 1669,
                  "index_note": "Rank is among 1669 agent-related packages found by keyword search on the npm registry, not among every package on npm.",
                  "source": "Official npm public APIs only (registry.npmjs.org search and packument, api.npmjs.org/downloads). No page scraping.",
                  "ranking": "Top packages by weekly downloads among agent-related npm packages found by keyword search, not all of npm.",
                  "home": "https://dataholm.com/",
                  "docs": "https://dataholm.com/openapi.json",
                  "category": {
                    "slug": "mcp-servers",
                    "name": "MCP servers",
                    "url": "https://dataholm.com/category/mcp-servers",
                    "count": 19
                  },
                  "packages": [
                    {
                      "rank": 1,
                      "name": "@modelcontextprotocol/sdk",
                      "slug": "modelcontextprotocol-sdk",
                      "weekly_downloads": 92827523,
                      "prev_week_downloads": 87805927,
                      "growth_wow_pct": 5.7,
                      "category": "MCP servers",
                      "category_slug": "mcp-servers",
                      "description": "Model Context Protocol implementation for TypeScript",
                      "npm_url": "https://www.npmjs.com/package/@modelcontextprotocol/sdk",
                      "repo": "https://github.com/modelcontextprotocol/typescript-sdk",
                      "license": "MIT",
                      "version": "1.32.2",
                      "last_publish": "2026-10-23T18:11:38.734Z",
                      "signals": {
                        "agents_md": false,
                        "mcp": true,
                        "npx_init": false
                      },
                      "url": "https://dataholm.com/package/modelcontextprotocol-sdk"
                    },
                    {
                      "rank": 2,
                      "name": "@modelcontextprotocol/core",
                      "slug": "modelcontextprotocol-core",
                      "weekly_downloads": 48424190,
                      "prev_week_downloads": 43266809,
                      "growth_wow_pct": 11.9,
                      "category": "MCP servers",
                      "category_slug": "mcp-servers",
                      "description": "Model Context Protocol for TypeScript - public Zod schemas (spec + OAuth/OpenID)",
                      "npm_url": "https://www.npmjs.com/package/@modelcontextprotocol/core",
                      "repo": "https://github.com/modelcontextprotocol/typescript-sdk",
                      "license": "Apache-2.0",
                      "version": "2.4.0",
                      "last_publish": "2026-10-23T18:19:54.727Z",
                      "signals": {
                        "agents_md": false,
                        "mcp": true,
                        "npx_init": false
                      },
                      "url": "https://dataholm.com/package/modelcontextprotocol-core"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Unknown slug"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Package": {
        "type": "object",
        "required": [
          "rank",
          "name",
          "slug",
          "weekly_downloads",
          "category",
          "npm_url",
          "signals",
          "url"
        ],
        "properties": {
          "rank": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "weekly_downloads": {
            "type": "integer"
          },
          "prev_week_downloads": {
            "type": [
              "integer",
              "null"
            ]
          },
          "growth_wow_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "category": {
            "type": "string"
          },
          "category_slug": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "npm_url": {
            "type": "string",
            "format": "uri"
          },
          "repo": {
            "type": [
              "string",
              "null"
            ]
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_publish": {
            "type": [
              "string",
              "null"
            ]
          },
          "signals": {
            "type": "object",
            "properties": {
              "agents_md": {
                "type": "boolean"
              },
              "mcp": {
                "type": "boolean"
              },
              "npx_init": {
                "type": "boolean"
              }
            },
            "required": [
              "agents_md",
              "mcp",
              "npx_init"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Ranking": {
        "type": "object",
        "required": [
          "week_start",
          "week_end",
          "packages",
          "sponsored"
        ],
        "properties": {
          "generated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "week_start": {
            "type": "string",
            "format": "date"
          },
          "week_end": {
            "type": "string",
            "format": "date"
          },
          "index_size": {
            "type": [
              "integer",
              "null"
            ]
          },
          "index_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "ranking": {
            "type": "string"
          },
          "home": {
            "type": "string"
          },
          "docs": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Package"
            }
          },
          "sponsored": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "sponsored",
                "name"
              ],
              "properties": {
                "sponsored": {
                  "const": true
                },
                "label": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "package": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "npm_url": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "PackageDoc": {
        "type": "object",
        "required": [
          "package"
        ],
        "properties": {
          "generated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "week_start": {
            "type": "string",
            "format": "date"
          },
          "week_end": {
            "type": "string",
            "format": "date"
          },
          "index_size": {
            "type": [
              "integer",
              "null"
            ]
          },
          "index_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "ranking": {
            "type": "string"
          },
          "home": {
            "type": "string"
          },
          "docs": {
            "type": "string"
          },
          "package": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Package"
              },
              {
                "type": "object",
                "properties": {
                  "weeks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "start": {
                          "type": "string"
                        },
                        "end": {
                          "type": "string"
                        },
                        "downloads": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            ]
          }
        }
      },
      "CategoryDoc": {
        "type": "object",
        "required": [
          "category",
          "packages"
        ],
        "properties": {
          "generated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "week_start": {
            "type": "string",
            "format": "date"
          },
          "week_end": {
            "type": "string",
            "format": "date"
          },
          "index_size": {
            "type": [
              "integer",
              "null"
            ]
          },
          "index_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "ranking": {
            "type": "string"
          },
          "home": {
            "type": "string"
          },
          "docs": {
            "type": "string"
          },
          "category": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "count": {
                "type": "integer"
              }
            }
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Package"
            }
          }
        }
      }
    }
  }
}
