2020-01-01 22:37:59 +01:00
|
|
|
---
|
2022-11-20 07:34:38 +01:00
|
|
|
title: timelines API methods
|
2020-01-01 22:37:59 +01:00
|
|
|
description: Read and view timelines of statuses.
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
weight: 40
|
2022-11-20 07:34:38 +01:00
|
|
|
name: timelines
|
2020-01-01 22:37:59 +01:00
|
|
|
parent: methods
|
|
|
|
identifier: methods-timelines
|
2022-11-20 07:34:38 +01:00
|
|
|
aliases: [
|
|
|
|
"/methods/timelines",
|
|
|
|
"/api/methods/timelines",
|
|
|
|
]
|
2020-01-01 22:37:59 +01:00
|
|
|
---
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
<style>
|
|
|
|
#TableOfContents ul ul ul {display: none}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
## View public timeline {#public}
|
|
|
|
|
|
|
|
```http
|
2022-12-14 22:55:30 +01:00
|
|
|
GET /api/v1/timelines/public HTTP/1.1
|
2022-11-20 07:34:38 +01:00
|
|
|
```
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
**Returns:** Array of [Status]({{<relref "entities/status">}})\
|
2020-01-01 22:37:59 +01:00
|
|
|
**OAuth:** Public. Requires app token + `read:statuses` if the instance has disabled public preview.\
|
2020-12-27 07:03:55 +01:00
|
|
|
**Version history:**\
|
|
|
|
0.0.0 - added\
|
|
|
|
2.3.0 - added `only_media`\
|
|
|
|
2.6.0 - add `min_id`\
|
|
|
|
3.0.0 - auth is required if public preview is disabled\
|
|
|
|
3.1.4 - added `remote`\
|
|
|
|
3.3.0 - both `min_id` and `max_id` can be used at the same time now
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
#### Request
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### Headers
|
|
|
|
|
|
|
|
Authorization
|
|
|
|
: Provide this header with `Bearer <user token>` to gain authorized access to this API method.
|
|
|
|
|
|
|
|
##### Query parameters
|
|
|
|
|
|
|
|
local
|
|
|
|
: Boolean. Show only local statuses? Defaults to false.
|
|
|
|
|
|
|
|
remote
|
|
|
|
: Boolean. Show only remote statuses? Defaults to false.
|
|
|
|
|
|
|
|
only_media
|
|
|
|
: Boolean. Show only statuses with media attached? Defaults to false.
|
|
|
|
|
2023-08-21 16:40:12 +02:00
|
|
|
max_id
|
|
|
|
: String. All results returned will be lesser than this ID. In effect, sets an upper bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
since_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. All results returned will be greater than this ID. In effect, sets a lower bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
min_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
limit
|
2022-12-14 22:55:30 +01:00
|
|
|
: Integer. Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
#### Response
|
|
|
|
##### 200: OK
|
|
|
|
|
|
|
|
Sample API call with limit=2
|
|
|
|
|
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "103206804533200177",
|
|
|
|
"created_at": "2019-11-26T23:27:31.000Z",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"visibility": "public",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "103206804086086361",
|
|
|
|
"created_at": "2019-11-26T23:27:32.000Z",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"visibility": "public",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## View hashtag timeline {#tag}
|
|
|
|
|
|
|
|
```http
|
2022-12-14 22:55:30 +01:00
|
|
|
GET /api/v1/timelines/tag/:hashtag HTTP/1.1
|
2022-11-20 07:34:38 +01:00
|
|
|
```
|
2020-01-01 22:37:59 +01:00
|
|
|
|
|
|
|
View public statuses containing the given hashtag.
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
**Returns:** Array of [Status]({{<relref "entities/status">}})\
|
2020-01-01 22:37:59 +01:00
|
|
|
**OAuth:** Public. Requires app token + `read:statuses` if the instance has disabled public preview.\
|
2020-12-27 07:03:55 +01:00
|
|
|
**Version history:**\
|
|
|
|
0.0.0 - added\
|
|
|
|
2.3.0 - added `only_media`\
|
|
|
|
2.6.0 - add `min_id`\
|
2022-12-14 22:55:30 +01:00
|
|
|
2.7.0 - add `any[]`, `all[]`, `none[]` for additional tags\
|
2020-12-27 07:03:55 +01:00
|
|
|
3.0.0 - auth is required if public preview is disabled\
|
2022-12-14 22:55:30 +01:00
|
|
|
3.3.0 - both `min_id` and `max_id` can be used at the same time now. add `remote`
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
#### Request
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### Path parameters
|
|
|
|
|
|
|
|
:hashtag
|
2022-12-14 22:55:30 +01:00
|
|
|
: {{<required>}} String. The name of the hashtag (not including the # symbol).
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
##### Headers
|
|
|
|
|
|
|
|
Authorization
|
|
|
|
: Provide this header with `Bearer <user token>` to gain authorized access to this API method.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### Query parameters
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-12-14 22:55:30 +01:00
|
|
|
any[]
|
|
|
|
: Array of String. Return statuses that contain any of these additional tags.
|
|
|
|
|
|
|
|
all[]
|
|
|
|
: Array of String. Return statuses that contain all of these additional tags.
|
|
|
|
|
|
|
|
none[]
|
|
|
|
: Array of String. Return statuses that contain none of these additional tags.
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
local
|
|
|
|
: Boolean. Return only local statuses? Defaults to false.
|
|
|
|
|
2022-12-14 22:55:30 +01:00
|
|
|
remote
|
|
|
|
: Boolean. Return only remote statuses? Defaults to false.
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
only_media
|
|
|
|
: Boolean. Return only statuses with media attachments? Defaults to false.
|
|
|
|
|
2023-08-21 16:40:12 +02:00
|
|
|
max_id
|
|
|
|
: String. All results returned will be lesser than this ID. In effect, sets an upper bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
since_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. All results returned will be greater than this ID. In effect, sets a lower bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
min_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
limit
|
2022-12-14 22:55:30 +01:00
|
|
|
: Integer. Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
#### Response
|
|
|
|
##### 200: OK
|
|
|
|
|
2022-12-14 22:55:30 +01:00
|
|
|
Sample timeline for the hashtag #cats and limit=2
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "103206185588894565",
|
|
|
|
"created_at": "2019-11-26T20:50:15.866Z",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"visibility": "public",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"content": "<p><a href=\"https://mastodon.social/tags/cats\" class=\"mention hashtag\" rel=\"tag\">#<span>cats</span></a></p>",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"name": "cats",
|
|
|
|
"url": "https://mastodon.social/tags/cats"
|
|
|
|
}
|
|
|
|
],
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "103203659567597966",
|
|
|
|
"created_at": "2019-11-26T10:07:49.000Z",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"visibility": "public",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"content": "<p>Caught on the hop. 😺 </p><p><a href=\"https://chaos.social/tags/Qualit%C3%A4tskatzen\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>Qualitätskatzen</span></a> <a href=\"https://chaos.social/tags/cats\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>cats</span></a> <a href=\"https://chaos.social/tags/mastocats\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>mastocats</span></a> <a href=\"https://chaos.social/tags/catsofmastodon\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>catsofmastodon</span></a> <a href=\"https://chaos.social/tags/Greece\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>Greece</span></a> <a href=\"https://chaos.social/tags/Agistri\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>Agistri</span></a><br>(photo: <span class=\"h-card\"><a href=\"https://chaos.social/@kernpanik\" class=\"u-url mention\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">@<span>kernpanik</span></a></span> | license: CC BY-NC-SA 4.0)</p>",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"name": "qualitätskatzen",
|
|
|
|
"url": "https://mastodon.social/tags/qualit%C3%A4tskatzen"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cats",
|
|
|
|
"url": "https://mastodon.social/tags/cats"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "mastocats",
|
|
|
|
"url": "https://mastodon.social/tags/mastocats"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "catsofmastodon",
|
|
|
|
"url": "https://mastodon.social/tags/catsofmastodon"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "greece",
|
|
|
|
"url": "https://mastodon.social/tags/greece"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "agistri",
|
|
|
|
"url": "https://mastodon.social/tags/agistri"
|
|
|
|
}
|
|
|
|
],
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
##### 404: Not found
|
|
|
|
|
|
|
|
Hashtag does not exist
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"error": "Record not found"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## View home timeline {#home}
|
|
|
|
|
|
|
|
```http
|
2022-12-14 22:55:30 +01:00
|
|
|
GET /api/v1/timelines/home HTTP/1.1
|
2022-11-20 07:34:38 +01:00
|
|
|
```
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2023-08-31 18:18:04 +02:00
|
|
|
View statuses from followed users and hashtags.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
**Returns:** Array of [Status]({{<relref "entities/status">}})\
|
2020-01-01 22:37:59 +01:00
|
|
|
**OAuth:** User + `read:statuses`\
|
2020-12-27 07:03:55 +01:00
|
|
|
**Version history:**\
|
|
|
|
0.0.0 - added\
|
|
|
|
2.6.0 - add `min_id`\
|
|
|
|
3.3.0 - both `min_id` and `max_id` can be used at the same time now
|
2023-08-31 18:18:04 +02:00
|
|
|
4.0.0 - as users can now follow hashtags, statuses from non-followed users may appear in the timeline
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
#### Request
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### Headers
|
|
|
|
|
|
|
|
Authorization
|
|
|
|
: {{<required>}} Provide this header with `Bearer <user token>` to gain authorized access to this API method.
|
|
|
|
|
|
|
|
##### Query parameters
|
|
|
|
|
2023-08-21 16:40:12 +02:00
|
|
|
max_id
|
|
|
|
: String. All results returned will be lesser than this ID. In effect, sets an upper bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
since_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. All results returned will be greater than this ID. In effect, sets a lower bound on results.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
min_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
limit
|
2022-12-14 22:55:30 +01:00
|
|
|
: Integer. Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
#### Response
|
|
|
|
##### 200: OK
|
|
|
|
|
|
|
|
Statuses in your home timeline will be returned
|
|
|
|
|
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "103206791453397862",
|
|
|
|
"created_at": "2019-11-26T23:24:13.113Z",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
},
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
]
|
|
|
|
```
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### 206: Partial content
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
Home feed is regenerating
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
```text
|
2020-01-01 22:37:59 +01:00
|
|
|
```
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### 401: Unauthorized
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
Invalid or missing Authorization header.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
{
|
|
|
|
"error": "The access token is invalid"
|
|
|
|
}
|
|
|
|
```
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## View list timeline {#list}
|
|
|
|
|
|
|
|
```http
|
2022-12-14 22:55:30 +01:00
|
|
|
GET /api/v1/timelines/list/:list_id HTTP/1.1
|
2022-11-20 07:34:38 +01:00
|
|
|
```
|
2020-01-01 22:37:59 +01:00
|
|
|
|
|
|
|
View statuses in the given list timeline.
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
**Returns:** Array of [Status]({{<relref "entities/status">}})\
|
2020-01-01 22:37:59 +01:00
|
|
|
**OAuth:** User token + `read:lists`\
|
2020-12-27 07:03:55 +01:00
|
|
|
**Version history:**\
|
|
|
|
2.1.0 - added\
|
|
|
|
2.6.0 - add `min_id`\
|
|
|
|
3.3.0 - both `min_id` and `max_id` can be used at the same time now
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
#### Request
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### Path parameters
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
:list_id
|
|
|
|
: {{<required>}} String. Local ID of the List in the database.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### Headers
|
|
|
|
|
|
|
|
Authorization
|
|
|
|
: {{<required>}} Provide this header with `Bearer <user token>` to gain authorized access to this API method.
|
|
|
|
|
|
|
|
##### Query parameters
|
|
|
|
|
2023-08-21 16:40:12 +02:00
|
|
|
max_id
|
|
|
|
: String. All results returned will be lesser than this ID. In effect, sets an upper bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
since_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. All results returned will be greater than this ID. In effect, sets a lower bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
min_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
limit
|
2022-12-14 22:55:30 +01:00
|
|
|
: Integer. Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
#### Response
|
|
|
|
##### 200: OK
|
|
|
|
|
|
|
|
Statuses in this list will be returned.
|
|
|
|
|
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "103206791453397862",
|
|
|
|
"created_at": "2019-11-26T23:24:13.113Z",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
},
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
]
|
|
|
|
```
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### 401: Unauthorized
|
|
|
|
|
|
|
|
Invalid or missing Authorization header.
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
{
|
|
|
|
"error": "The access token is invalid"
|
|
|
|
}
|
|
|
|
```
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
##### 404: Not found
|
|
|
|
|
|
|
|
List is not owned by you or does not exist
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"error": "Record not found"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## (DEPRECATED) View direct timeline {#direct}
|
|
|
|
|
|
|
|
```http
|
2022-12-14 22:55:30 +01:00
|
|
|
GET /api/v1/timelines/direct HTTP/1.1
|
2022-11-20 07:34:38 +01:00
|
|
|
```
|
2020-01-01 22:37:59 +01:00
|
|
|
|
|
|
|
View statuses with a "direct" privacy, from your account or in your notifications.
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
**Returns:** Array of [Status]({{<relref "entities/status">}})\
|
2020-01-01 22:37:59 +01:00
|
|
|
**OAuth:** User token + `read:statuses`\
|
|
|
|
**Version history:**\
|
2020-12-27 07:03:55 +01:00
|
|
|
x.x.x - added\
|
2022-11-20 07:34:38 +01:00
|
|
|
2.6.0 - add `min_id`. deprecated in favor of [Conversations API]({{<relref "methods/conversations">}})\
|
2020-12-27 07:03:55 +01:00
|
|
|
3.0.0 - removed
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
#### Request
|
|
|
|
##### Headers
|
|
|
|
|
|
|
|
Authorization
|
|
|
|
: {{<required>}} Provide this header with `Bearer <user token>` to gain authorized access to this API method.
|
|
|
|
|
|
|
|
##### Query parameters
|
|
|
|
|
2023-08-21 16:40:12 +02:00
|
|
|
max_id
|
|
|
|
: String. All results returned will be lesser than this ID. In effect, sets an upper bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
since_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. All results returned will be greater than this ID. In effect, sets a lower bound on results.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
min_id
|
2023-08-21 16:40:12 +02:00
|
|
|
: String. Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
limit
|
2022-12-14 22:55:30 +01:00
|
|
|
: Integer. Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
|
2022-11-20 07:34:38 +01:00
|
|
|
|
|
|
|
#### Response
|
|
|
|
##### 200: OK
|
|
|
|
|
|
|
|
Statuses with direct visibility, authored by you or mentioning you. Statuses are not grouped by conversation, but are returned in chronological order.
|
|
|
|
|
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "103206185588894565",
|
|
|
|
"created_at": "2019-11-26T20:50:15.866Z",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
"visibility": "direct",
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
},
|
2022-11-20 07:34:38 +01:00
|
|
|
// ...
|
2020-01-01 22:37:59 +01:00
|
|
|
]
|
|
|
|
```
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
##### 401: Unauthorized
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
Invalid or missing Authorization header.
|
|
|
|
|
|
|
|
```json
|
2020-01-01 22:37:59 +01:00
|
|
|
{
|
|
|
|
"error": "The access token is invalid"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
## See also
|
|
|
|
|
|
|
|
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/timelines/home_controller.rb" caption="app/controllers/api/v1/timelines/home_controller.rb" >}}
|
|
|
|
|
|
|
|
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/timelines/list_controller.rb" caption="app/controllers/api/v1/timelines/list_controller.rb" >}}
|
|
|
|
|
|
|
|
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/timelines/public_controller.rb" caption="app/controllers/api/v1/timelines/public_controller.rb" >}}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2023-08-31 18:18:04 +02:00
|
|
|
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/timelines/tag_controller.rb" caption="app/controllers/api/v1/timelines/tag_controller.rb" >}}
|