GET /answers/{ids}
stackexchange.com:mathoverflow-api
Summary: Get answers by IDs
Operation ID: getAnswersById
Auth: none
Retrieves multiple MathOverflow answers by their IDs in a single request. The `{ids}` parameter accepts a semicolon-separated list of answer IDs. Returns full answer details for each ID including body content, scores, and parent question references. Use this for batch-fetching answers after discovering their IDs from other API calls.
Original spec description
Returns answers identified by specific IDs
Usage Tips
- `site=mathoverflow` is required
- `{ids}` is semicolon-separated list of numeric answer IDs (e.g., `1;2;3`)
- Maximum IDs per request varies but generally keep under 100
- Results include `question_id` to identify the parent question
- Missing IDs are silently skipped
- Answer bodies are included by default
- Use with `/questions/{id}/answers` to first get answer IDs, then batch-fetch details
Parameters (6)
filter
(string, query, optional)
Filter to apply to results
ids
(string, path, required)
Semicolon delimited list of answer IDs
key
(string, query, optional)
API key for higher rate limits
page
(integer, query, optional, default: 1)
Page number for pagination
pagesize
(integer, query, optional, default: 30)
Number of items per page (max 100)
Constraints: {'maximum': 100}
site
(string, query, required, default: mathoverflow)
Site to query (mathoverflow for MathOverflow)
No probe data for this endpoint yet.