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.

Earlier with version 1.x, the parameters: body, comments and answers etc. were available. But these don't seem to be supported with API version 2.x.
Are these parameters not supported in new API? Are they moved to filters?

Sample URL in V1.x:
http://api.stackoverflow.com/1.0/questions/?body=true&comments=true&answers=true&tagged=java

Even if I add these parameters with V2.x methods, body/comments/answers are not in the response. And I get no errors either.

If body and comments have been removed from methods, how can I then include in response?

share|improve this question

1 Answer 1

Are they moved to filters?

Yes, you need to generate a filter that includes the question.body, question.comments, and question.answers fields. There are shorthand filters (i.e. _bca) that will do this for upgrade compatibility, but their use is discouraged and you're better off just making a filter that contains exactly what you want anyway.

share|improve this answer

You must log in to answer this question.

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