Stack Exchange · Schema
Post
Generic post (question or answer) view.
Q And ADeveloper CommunityKnowledge GraphStack OverflowStack ExchangeReputationTagsCommunityMCPAI Grounding
Properties
| Name | Type | Description |
|---|---|---|
| post_id | integer | |
| post_type | string | |
| body | string | |
| body_markdown | string | |
| link | string | |
| score | integer | |
| creation_date | integer | |
| last_activity_date | integer | |
| owner | object | Lightweight user reference embedded in posts and comments. |
| comment_count | integer |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Post",
"description": "Generic post (question or answer) view.",
"$id": "https://raw.githubusercontent.com/api-evangelist/stackexchange/refs/heads/main/json-schema/stackexchange-api-v2-3-post-schema.json",
"type": "object",
"properties": {
"post_id": {
"type": "integer"
},
"post_type": {
"type": "string",
"enum": [
"question",
"answer"
]
},
"body": {
"type": "string"
},
"body_markdown": {
"type": "string"
},
"link": {
"type": "string",
"format": "uri"
},
"score": {
"type": "integer"
},
"creation_date": {
"type": "integer",
"format": "int64"
},
"last_activity_date": {
"type": "integer",
"format": "int64"
},
"owner": {
"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
}
}
},
"comment_count": {
"type": "integer"
}
}
}