{
"id": "pub.chive.tag.getTrending",
"defs": {
"main": {
"type": "query",
"errors": [],
"output": {
"schema": {
"type": "object",
"required": [
"tags",
"timeWindow"
],
"properties": {
"tags": {
"type": "array",
"items": {
"ref": "#tagSummary",
"type": "ref"
},
"description": "List of trending tags"
},
"timeWindow": {
"type": "string",
"description": "Time window used for this response",
"knownValues": [
"day",
"week",
"month"
]
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 50,
"minimum": 1,
"description": "Maximum number of trending tags to return"
},
"timeWindow": {
"type": "string",
"default": "week",
"description": "Time window for trending calculation",
"knownValues": [
"day",
"week",
"month"
]
}
}
},
"description": "Get trending tags within a specified time window"
},
"tagSummary": {
"type": "object",
"required": [
"normalizedForm",
"displayForms",
"usageCount",
"qualityScore",
"isPromoted"
],
"properties": {
"isPromoted": {
"type": "boolean",
"description": "Whether the tag has been promoted to a facet or authority"
},
"promotedTo": {
"ref": "#promotionTarget",
"type": "ref",
"description": "Promotion target if promoted"
},
"usageCount": {
"type": "integer",
"minimum": 0,
"description": "Number of eprints tagged with this tag"
},
"displayForms": {
"type": "array",
"items": {
"type": "string"
},
"description": "All display forms used for this tag"
},
"qualityScore": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Tag quality score (0-100, scaled from 0-1)"
},
"normalizedForm": {
"type": "string",
"description": "Normalized tag form (lowercase, hyphenated)"
}
},
"description": "Summary information for a tag"
},
"promotionTarget": {
"type": "object",
"required": [
"type",
"uri"
],
"properties": {
"uri": {
"type": "string",
"description": "URI of the promotion target"
},
"type": {
"type": "string",
"description": "Type of promotion target",
"knownValues": [
"facet",
"authority"
]
}
},
"description": "Target of tag promotion"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}