latestOpenAPI 3.0.02026-08-10135177718.4 KB

f739db716aaf

Posts

Fetch posts

get/posts/for_user

Query parameters

{"stackTrail":"paths:/posts/for_user:get:parameters:0:schema","oasType":"schema","type":"unknown"}
newer_thaninteger

Include posts newer than the post with this ID

older_thaninteger

Include posts older than the post with this ID

pageinteger
per_pageinteger

Headers

X-HTTP-Method-Overridestring

Response

An array of posts.

total_resultsinteger required
pageinteger required
per_pageinteger required

Example response

{
  "results": [
    {
      "user": {
        "site": {
          "id": 1,
          "icon_url": "https://static.inaturalist.org/sites/1-logo_square.png",
          "locale": "en",
          "name": "iNaturalist",
          "site_name_short": "iNat",
          "url": "https://www.inaturalist.org"
        }
      }
    }
  ]
}