I want to write an application for which, after some logic to select a set of questions, it would be most convenient to get the whole set of stuff at once that is normally shown on a Stack Exchange Q&A webpage (like this one):
- the question
- its metadata (score, dates, author, etc.)
- its comments
- all answers
- all of each answer's metadata
- all of each answer's comments
How surprised was I to find nothing like that in the API! I have looked through the Stack Apps tour, the FAQs, and of course the API documentation.
But even the most promising-looking operations come nowhere near this functionality: /questions/{ids}/answers and /questions/{ids}/comments do not, /search and /search/advanced do not, /posts and /posts/{ids}/comments do not.
What am I missing?
Or is there seriously no way to get from the API in one request what the Stack Exchange servers produce hundreds of thousands of times every day in response to a single browser-level URL request for a web page?
Of course, I could parse the HTML. But not only does that look like trouble -- it should simply not be necessary, I think.