Usage of /posts/{ids} GET

Discussion

Fetches a set of posts by ids.

This method is meant for grabbing an object when unsure whether an id identifies a question or an answer. This is most common with user entered data.

{ids} can contain up to 100 semicolon delimited ids. To find ids programmatically look for post_id, answer_id, or question_id on post, answer, and question objects respectively.

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

  • activitylast_activity_date
  • creationcreation_date
  • votesscore
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 posts.

Try It

Team slug:
Access token: