Usage of /questions

Discussion

Gets all the questions on the site.

This method allows you make fairly flexible queries across the entire corpus of questions on a site. For example, getting all questions asked in the the week of Jan 1st 2011 with scores of 10 or more is a single query with parameters sort=votes&min=10&fromdate=1293840000&todate=1294444800.

To constrain questions returned to those with a set of tags, use the tagged parameter with a semi-colon delimited list of tags. This is an and contraint, passing tagged=c;java will return only those questions with both tags. As such, passing more than 5 tags will always return zero results.

The sorts accepted by this method operate on the follow fields of the question object:

  • activitylast_activity_date
  • creationcreation_date
  • votesscore
  • hot – by the formula ordering the hot tab
    • Does not accept min or max
  • week – by the formula ordering the week tab
    • Does not accept min or max
  • month – by the formula ordering the month tab
    • Does not accept min or max
activity is the default sort.

It is possible to create moderately complex queries using sort, min, max, fromdate, and todate.

This method returns a list of questions.

Try It

Stack Overflow [edit]