Skip to content

app.bsky.unspecced.getTrendingTopics

Lexicon Version: 1

Type: query

Get a list of trending topics

Parameters:

NameTypeReq’dDescriptionConstraints
viewerstringDID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.Format: did
limitintegerMin: 1
Max: 25
Default: 10
Output:
  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
topicsArray of app.bsky.unspecced.defs#trendingTopic
suggestedArray of app.bsky.unspecced.defs#trendingTopic

{
"lexicon": 1,
"id": "app.bsky.unspecced.getTrendingTopics",
"defs": {
"main": {
"type": "query",
"description": "Get a list of trending topics",
"parameters": {
"type": "params",
"properties": {
"viewer": {
"type": "string",
"format": "did",
"description": "DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 25,
"default": 10
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"topics",
"suggested"
],
"properties": {
"topics": {
"type": "array",
"items": {
"type": "ref",
"ref": "app.bsky.unspecced.defs#trendingTopic"
}
},
"suggested": {
"type": "array",
"items": {
"type": "ref",
"ref": "app.bsky.unspecced.defs#trendingTopic"
}
}
}
}
}
}
}
}