GET /answers/{id}

stackexchange.com:mathoverflow-api

Summary: Get a specific answer by ID
Operation ID: getAnswerById
Auth: none

Retrieves a specific MathOverflow answer by its ID. Returns the complete answer including body content, author details, score, timestamps, and the `question_id` it belongs to. Use this when you know the exact answer ID and need full details — typically after finding an answer ID from a search or the `/answers` list.

Original spec description

Returns a single answer identified by its ID.

Usage Tips

- `site=mathoverflow` is required - Answer IDs can be found in the `answer_id` field from `/answers` or `/questions/{id}/answers` - Returns a list with one item (for consistency) - Response includes `is_accepted` to check if this is the accepted answer - Use `question_id` from response to fetch the parent question

Parameters (3)

filter (string, query, optional)

Filter to include additional fields in response.

id (integer, path, required)

The ID of the answer to retrieve.

site (string, query, required, default: mathoverflow)

Stack Exchange site name. Use 'mathoverflow' for MathOverflow.

Examples (3)

TitleTypeURLAction
Get answer by ID with required parameters curl https://api.stackexchange.com/2.3/answers/12345?site=mathoverflow
Get answer with body content using filter curl https://api.stackexchange.com/2.3/answers/67890?site=mathoverflow&filter=withbody
Get answer with total filter for metadata curl https://api.stackexchange.com/2.3/answers/54321?site=mathoverflow&filter=total

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 10:30:30.202115 200 231ms
2026-03-23 09:23:56.365272 200 245ms
2026-03-23 09:03:58.101405 200 590ms

Response Changes

WhenOldNew
2026-03-23 09:23:56.365272 b7e28723407b 87bece152f0d
2026-03-23 10:30:30.202115 87bece152f0d 6d6c839df010