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.


Parameters

  • answers – When "true", the answers to a question will be returned
    • boolean
  • body – When "true", a post's body will be included in the response.
    • boolean
  • comments – When "true", any comments on a post will be included in the response.
    • boolean
  • fromdate – Unix timestamp of the minimum creation date on a returned item.
    • unix epoch date, range [0, 253,402,300,799]
  • max – Maximum of the range to include in the response according to the current sort.
    • integer or unix epoch date
  • min – Minimum of the range to include in the response according to the current sort.
    • integer or unix epoch date
  • order – How the current sort should be ordered.
    • one of desc (default), or asc
  • page – The pagination offset for the current collection. Affected by the specified pagesize.
    • 32-bit signed integer
  • pagesize – The number of collection results to display during pagination. Should be between 0 and 100 inclusive.
    • 32-bit signed integer
  • sort – How a collection should be sorted.
    • one of activity (default), votes, creation, featured, hot, week, or month
  • tagged – Semicolon delimited list of tags questions must have
    • string
  • todate – Unix timestamp of the maximum creation date on a returned item.
    • unix epoch date, range [0, 253,402,300,799]

Try it