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

How to include answers (if any) also in a particular API request - Stack APIwhen fetching questions?

added 24 characters in body; edited tags
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

I makingmade a small cron job which basically crawlcrawls 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]

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, 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  ?

I making a small cron job which basically crawl questions and answers from Stack.

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 100 latest questions in 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 correct direction  ?

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?

Source Link

How to include answers (if any) also in a particular API request - Stack API

I making a small cron job which basically crawl questions and answers from Stack.

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 100 latest questions in 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 correct direction ?