Get page of posts ordered by date in descending order. Contains included attachments and authors
filter[categories] | string Default: "0,1,2,3" Example: filter[categories]=1,2,3 List of comma-separated category ID from which to return posts |
page[limit] | integer [ 1 .. 50 ] Default: 20 Example: page[limit]=20 How many posts to return in a page |
page[cursor] | string <date-time> Example: page[cursor]=2021-12-06T15:01:46Z Date to return posts only older than it (page last post date, see response meta) |
{- "meta": {
- "next": "2021-12-14T07:30:12Z"
}, - "data": [
- {
- "id": "56_1639467012000",
- "type": "posts",
- "attributes": {
- "api_id": 670529761717682200,
- "date": "2021-12-14T07:30:12Z",
- "text": "NGC 3372, Mystic Mountain Top",
}, - "relationships": {
- "author": {
- "data": {
- "id": "1",
- "type": "authors"
}
}, - "attachments": {
- "data": [
- {
- "id": "1",
- "type": "photo-attachments"
}
]
}
}
}
], - "included": [
- {
- "id": "1",
- "type": "photo-attachments",
- "attributes": {
- "api_id": "string",
- "width": 0,
- "height": 0,
}
}
]
}
Get feed status. Contains included last post dates for each source site with posts and the sites themselves
{- "data": {
- "id": "1",
- "type": "status",
- "relationships": {
- "last_post_dates": {
- "data": [
- {
- "id": "1:1639567106244",
- "type": "site-last-post-dates"
}
]
}
}
}, - "included": [
- {
- "id": "1:1639567106244",
- "type": "site-last-post-dates",
- "attributes": {
- "date": "2021-12-15T08:56:05Z"
}, - "relationships": {
- "site": {
- "data": {
- "id": "1",
- "type": "sites"
}
}
}
}
]
}