Skip to main content
3 of 3
edited title
Brock Adams
  • 13k
  • 5
  • 39
  • 64

How to include answers when fetching questions?

I made a small cron job which crawls questions and answers from Stack Overflow.

Here is my request URL:

https://api.stackexchange.com/2.2/questions?order=desc&tagged=php&site=stackoverflow&filter=withbody&no_expiry=true&pagesize=100&key=[my_app_key]access_token=[my_acc_token]

It returns the 100 latest questions in the PHP tag perfectly. But, I would like to include the answers of the questions too (if it is answered).

I have checked the filters section of documentation but I didn't get it exactly. Can anyone point me to the correct direction?