We are trying to figure out how to get the answers for a given question ID in JSON or XML instead of HTML - so far for a URL like this:


We are getting results like this:

        "display_name":"Rob Lewis",

Which is a user object that contains the answer_ID - is there a way to get the actual answer text?


1 Answer 1


The body and body_markdown fields are not in the default filter. Adding a filter that includes those fields will return them.


Creating filters can be a bit tricky, specially if you're new to them. I have an extensive answer written here: How to create API filters?

An appropriate duplicate to your question on StackApps is: How to get question body (markdown) in the API response using filters?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .