appBskyUnspeccedGetTrendingTopics top-level constant
app.bsky.unspecced.getTrendingTopics
Implementation
const appBskyUnspeccedGetTrendingTopics = <String, dynamic>{
"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",
"default": 10,
"minimum": 1,
"maximum": 25
}
}
},
"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"
}
}
}
}
}
}
}
};