Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I am looking through the API documentation and i am confused how to make a call with filters. I am specifically looking for get the question /answer body back. Is it possible. Could not find any sample of that in the documentation


share|improve this question

1 Answer 1

up vote 2 down vote accepted

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).

share|improve this answer
Thanks. That does the trick :) –  Shyju Nov 11 '12 at 17:14
Wow somehow I was only aware of customs filters and haven't used any other kind (-: –  hippietrail Nov 12 '12 at 8:46

You must log in to answer this question.

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