Usage of questions/{id}/related

Discussion

Returns questions that the site considers related to those identified in id.

The algorithm for determining if questions are related is not documented, and subject to change at any time. Futhermore, these values are very heavily cached, and may not update immediately after a question has been editted. It is also not guaranteed that a question will be considered related to any number (even non-zero) of questions, and a consumer should be able to handle a variable number of returned questions.

This method is new to version 1.1


Parameters

  • id – A single primary key identifier or a vectorized, semicolon-delimited list of identifiers.
    • This is a vectorized parameter, multiple ids can be sent a single request if delimited with a semi-colon
    • string
  • 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), views, creation, or votes
  • todate – Unix timestamp of the maximum creation date on a returned item.
    • unix epoch date, range [0, 253,402,300,799]

Try it