Stack Exchange · Schema

Badge

A badge definition.

Q&ADeveloper CommunityKnowledge GraphStack OverflowStack ExchangeReputationTagsCommunityMCPAI Grounding

Properties

Name Type Description
badge_id integer
name string
description string
rank string
badge_type string
award_count integer
link string
user object Lightweight user reference embedded in posts and comments.
View JSON Schema on GitHub

JSON Schema

stackexchange-api-v2-3-badge-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Badge",
  "description": "A badge definition.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackexchange/refs/heads/main/json-schema/stackexchange-api-v2-3-badge-schema.json",
  "type": "object",
  "properties": {
    "badge_id": {
      "type": "integer",
      "example": 23
    },
    "name": {
      "type": "string",
      "example": "Nice Question"
    },
    "description": {
      "type": "string",
      "example": "Question score of 10 or more."
    },
    "rank": {
      "type": "string",
      "enum": [
        "bronze",
        "silver",
        "gold"
      ],
      "example": "bronze"
    },
    "badge_type": {
      "type": "string",
      "enum": [
        "named",
        "tag_based"
      ],
      "example": "named"
    },
    "award_count": {
      "type": "integer",
      "example": 500000
    },
    "link": {
      "type": "string",
      "format": "uri",
      "example": "https://stackoverflow.com/help/badges/23/nice-question"
    },
    "user": {
      "type": "object",
      "description": "Lightweight user reference embedded in posts and comments.",
      "properties": {
        "user_id": {
          "type": "integer",
          "format": "int64",
          "example": 22656
        },
        "user_type": {
          "type": "string",
          "enum": [
            "unregistered",
            "registered",
            "moderator",
            "team_admin",
            "does_not_exist"
          ],
          "example": "registered"
        },
        "display_name": {
          "type": "string",
          "example": "Jon Skeet"
        },
        "reputation": {
          "type": "integer",
          "example": 1500000
        },
        "profile_image": {
          "type": "string",
          "format": "uri",
          "example": "https://i.sstatic.net/lLZAr.jpg?s=128"
        },
        "link": {
          "type": "string",
          "format": "uri",
          "example": "https://stackoverflow.com/users/22656/jon-skeet"
        },
        "accept_rate": {
          "type": "integer",
          "example": 92
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 Schema
curl "https://apis.io/api/v1/json-schemas/stackexchange-api-v2-3-badge"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no email required.

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