2.9 KiB
title | description | menu | aliases | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
admin/trends API methods | TODO |
|
|
{{< hint style="danger" >}} This page is under construction. {{< /hint >}}
View trending links
GET https://mastodon.example/api/v1/admin/trends/links HTTP/1.1
Returns: [???]({{< relref "entities/???" >}})
OAuth: User token + admin:read
Permissions: Manage Taxonomies
Version history:
3.5.0 - added
Request
Headers
- Authorization
- {{}} Provide this header with
Bearer <user token>
to gain authorized access to this API method.
Response
200: OK
403: Forbidden
Authorized user is missing a permission, or invalid or missing Authorization header
{
"error": "This action is not allowed"
}
View trending statuses
GET https://mastodon.example/api/v1/admin/trends/statuses HTTP/1.1
Returns: [???]({{< relref "entities/???" >}})
OAuth: User token + admin:read
Permissions: Manage Taxonomies
Version history:
3.5.0 - added
Request
Headers
- Authorization
- {{}} Provide this header with
Bearer <user token>
to gain authorized access to this API method.
Response
200: OK
403: Forbidden
Authorized user is missing a permission, or invalid or missing Authorization header
{
"error": "This action is not allowed"
}
View trending tags
GET https://mastodon.example/api/v1/admin/trends/tags HTTP/1.1
Returns: [???]({{< relref "entities/???" >}})
OAuth: User token + admin:read
Permissions: Manage Taxonomies
Version history:
3.5.0 - added
Request
Headers
- Authorization
- {{}} Provide this header with
Bearer <user token>
to gain authorized access to this API method.
Response
200: OK
403: Forbidden
Authorized user is missing a permission, or invalid or missing Authorization header
{
"error": "This action is not allowed"
}
See also
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/admin/trends/links_controller.rb" caption="app/controllers/api/v1/admin/trends/links_controller.rb" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/admin/trends/statuses_controller.rb" caption="app/controllers/api/v1/admin/trends/statuses_controller.rb" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/admin/trends/tags_controller.rb" caption="app/controllers/api/v1/admin/trends/tags_controller.rb" >}}