I am specifically looking to get the question/answer body back. Is it possible?
I am looking through the API documentation and I'm confused about how to make a call with filters.
Sample call I'm trying:
/2.1/questions/1732348?site=stackoverflow
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It only takes a minute to sign up.
Sign up to join this communityI am specifically looking to get the question/answer body back. Is it possible?
I am looking through the API documentation and I'm confused about how to make a call with filters.
Sample call I'm trying:
/2.1/questions/1732348?site=stackoverflow
The most straightforward way to get the body is to use the named withbody
filter, which you pass in as the value of the filter
parameter (example). This will give you all of the default fields, along with the post body.
You can also create a custom filter that passes back question.body
and answer.body
where appropriate along with your select choice of other fields, and use the ID of that filter instead (example).