Stack Exchange · JSON Structure

Stackexchange Api V2 3 Answer Structure

An answer on a Stack Exchange site.

Type: object Properties: 22
Q&ADeveloper CommunityKnowledge GraphStack OverflowStack ExchangeReputationTagsCommunityMCPAI Grounding

Answer is a JSON Structure definition published by Stack Exchange, describing 22 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

answer_id question_id title body body_markdown link score up_vote_count down_vote_count is_accepted comment_count creation_date last_activity_date last_edit_date owner last_editor tags content_license community_owned_date locked_date awarded_bounty_amount awarded_bounty_users

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "name": "Answer",
  "description": "An answer on a Stack Exchange site.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackexchange/refs/heads/main/json-structure/stackexchange-api-v2-3-answer-structure.json",
  "type": "object",
  "properties": {
    "answer_id": {
      "type": "int32",
      "example": 11227902
    },
    "question_id": {
      "type": "int32",
      "example": 11227809
    },
    "title": {
      "type": "string",
      "example": "Why is processing a sorted array faster than processing an unsorted array?"
    },
    "body": {
      "type": "string",
      "description": "HTML body (filter-dependent)."
    },
    "body_markdown": {
      "type": "string",
      "description": "Markdown body (filter-dependent)."
    },
    "link": {
      "type": "uri",
      "example": "https://stackoverflow.com/a/11227902"
    },
    "score": {
      "type": "int32",
      "example": 36000
    },
    "up_vote_count": {
      "type": "int32",
      "example": 36500
    },
    "down_vote_count": {
      "type": "int32",
      "example": 500
    },
    "is_accepted": {
      "type": "boolean",
      "example": true
    },
    "comment_count": {
      "type": "int32",
      "example": 20
    },
    "creation_date": {
      "type": "int64",
      "example": 1338719105
    },
    "last_activity_date": {
      "type": "int64",
      "example": 1700000000
    },
    "last_edit_date": {
      "type": "int64"
    },
    "owner": {
      "type": "object",
      "description": "Lightweight user reference embedded in posts and comments.",
      "properties": {
        "user_id": {
          "type": "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": "int32",
          "example": 1500000
        },
        "profile_image": {
          "type": "uri",
          "example": "https://i.sstatic.net/lLZAr.jpg?s=128"
        },
        "link": {
          "type": "uri",
          "example": "https://stackoverflow.com/users/22656/jon-skeet"
        },
        "accept_rate": {
          "type": "int32",
          "example": 92
        }
      }
    },
    "last_editor": {
      "type": "object",
      "description": "Lightweight user reference embedded in posts and comments.",
      "properties": {
        "user_id": {
          "type": "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": "int32",
          "example": 1500000
        },
        "profile_image": {
          "type": "uri",
          "example": "https://i.sstatic.net/lLZAr.jpg?s=128"
        },
        "link": {
          "type": "uri",
          "example": "https://stackoverflow.com/users/22656/jon-skeet"
        },
        "accept_rate": {
          "type": "int32",
          "example": 92
        }
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "java",
        "c++",
        "performance"
      ]
    },
    "content_license": {
      "type": "string",
      "example": "CC BY-SA 4.0"
    },
    "community_owned_date": {
      "type": "int64"
    },
    "locked_date": {
      "type": "int64"
    },
    "awarded_bounty_amount": {
      "type": "int32"
    },
    "awarded_bounty_users": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Lightweight user reference embedded in posts and comments.",
        "properties": {
          "user_id": {
            "type": "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": "int32",
            "example": 1500000
          },
          "profile_image": {
            "type": "uri",
            "example": "https://i.sstatic.net/lLZAr.jpg?s=128"
          },
          "link": {
            "type": "uri",
            "example": "https://stackoverflow.com/users/22656/jon-skeet"
          },
          "accept_rate": {
            "type": "int32",
            "example": 92
          }
        }
      }
    }
  }
}

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/stackexchange-api-v2-3-answer-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 email required.

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