Usage of /similar


Returns questions which are similar to a hypothetical one based on a title and tag combination.

This method is roughly equivalent to a site's related questions suggestion on the ask page.

This method is useful for correlating data outside of a Stack Exchange site with similar content within one.

Note that title must always be passed as a parameter. tagged and nottagged are optional, semi-colon delimited lists of tags.

If tagged is passed it is treated as a preference, there is no guarantee that questions returned will have any of those tags. nottagged is treated as a requirement, no questions will be returned with those tags.

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

  • activitylast_activity_date
  • creationcreation_date
  • votesscore
  • relevance – order by "how similar" the questions are, most likely candidate first with a descending order
    • 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]