Skip to main content
2 of 2
edited tags
rene
  • 2.8k
  • 2
  • 17
  • 35

Get questions with body and answers

How can I get the latest 30 questions with body and answers using the api?

And then, I want to get only first most voted 3 answers for each question. Is this possible with only one request?

To get the question body I use: filter=withbody.

The question body would look like this.

{
        "question_id": ...,
        "creation_date": ...,
        "last_activity_date": ...,
        "score": ...,
        "answer_count": ...,
        "accepted_answer_id": ...,
        "body": "...",
        "answers": [ ????? ]
        "title": "...",
        "tags": [
            ...
        ],
        "view_count": ...,
        "owner": {
            ...
        },
        "link": "...",
        "is_answered": true
    }