Discovery
Endpoints and scoring rules for Discover, Explore, Trending, and Recommendations.
/api/v1/discoverGet recommended question boxes with popular or personalized mode.
Authentication
Public endpoint. With mode=personalized, viewer context is applied when authenticated.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| mode | popular | personalized | popular: global ranking / personalized: adds viewer affinity |
| cursor | string | Pagination cursor (question ID) from previous response |
| limit | number | Number of results per page (default: 20, max: 50) |
Response
{
"items": [
{
"handle": "@alice@example.com",
"score": 152.4,
"stats": {
"totalQuestions": 120,
"answeredQuestions": 110,
"answerRate": 91.6,
"recentAnswers7d": 8,
"recentAnswers30d": 23,
"activeDays30d": 16,
"latestAnswerAt": "2026-03-01T08:01:00.000Z"
},
"tags": ["art", "music"],
"reasonCodes": ["activeRecently", "highAnswerRate"]
}
],
"nextCursor": "20",
"mode": "popular"
}Scoring Criteria
baseScore = recentAnswers7d * 6 + recentAnswers30d * 2.5 + activeDays30d * 1.8 + answerRate(0..1) * 40 - reportCount * 3 if mode=personalized: + sameInstance * 8 + sameLanguage * 4 + min(topicOverlap * 2.4, 18)
/api/v1/exploreSearch question boxes by keyword, tag, instance domain, and language.
Authentication
No authentication required (public endpoint)
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| q | string | Free-text query for username, display name, domain, and tags |
| tag | string | Filter to candidates that include the specified tag |
| domain | string | Filter candidates by matching instance domain |
| lang | string | Filter candidates by profile language code |
| sort | relevance | popular | active | new | Sort with weighted relevance/popular/active/new scoring |
| cursor | string | Pagination cursor (question ID) from previous response |
| limit | number | Number of results per page (default: 20, max: 50) |
Response
{
"items": [
{
"handle": "@alice@example.com",
"score": 134.6,
"tags": ["music", "art"],
"reasonCodes": ["activeRecently", "queryMatched", "tagMatched", "sortedByRelevance"]
}
],
"nextCursor": "20",
"applied": {
"q": "music",
"tag": "music",
"domain": "",
"lang": "ja",
"sort": "relevance"
}
}Scoring Criteria
baseScore = recentAnswers7d * 4 + recentAnswers30d * 2 + answerRate(0..1) * 35 - reportCount * 3 queryBoost: username hit +20, display name hit +16, domain hit +10, tag hit +14 sortBoost: active => recentAnswers7d * 10 new => max(0, 120 - accountAgeDays) popular => answeredQuestions * 1.5
/api/v1/trendingGet trending users, tags, and highlighted answers by time range.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| range | daily | weekly | daily: 24h / weekly: 7d |
| userLimit | number | Maximum number of trending users |
| tagLimit | number | Maximum number of trending tags |
| highlightLimit | number | Maximum number of highlighted answers |
Response
{
"range": "weekly",
"users": [
{ "handle": "@alice@example.com", "score": 98.4, "reasonCodes": ["trendingNow"] }
],
"tags": [
{ "tag": "music", "score": 33.2, "count": 19 }
],
"highlights": [
{
"questionId": "q_123",
"handle": "@alice@example.com",
"score": 5.8,
"tags": ["music", "cover"],
"answeredAt": "2026-03-01T08:01:00.000Z"
}
]
}Scoring Criteria
recency = max(0, rangeHours - ageHours) / rangeHours userScore += 1 + recency * 2.5 tagScore += 1 + recency highlightScore = recency * 4 + min(answerLength / 280, 1.6) + min(tagCount, 5) * 0.2 finalTrendingUserScore = userScore + recentAnswers7d * 1.5 + activeDays30d * 0.8 - reportCount * 2
/api/v1/users/:handle/recommendationsGet similar question box recommendations for a target handle.
Authentication
No authentication required (public endpoint)
Path Parameters
| Parameter | Description |
|---|---|
| handle | User handle in the format @user@instance.example |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of results per page (default: 20, max: 50) |
Response
{
"target": {
"handle": "@target@example.com"
},
"recommendations": [
{
"handle": "@alice@example.com",
"score": 87.3,
"reasonCodes": ["sharedAudience", "sharedTopics", "sameInstance", "activeRecently"],
"tags": ["music", "art"]
}
]
}Scoring Criteria
score = sharedSenderCount * 8 + topicOverlap * 2.5 + recentAnswers7d * 2 + recentAnswers30d * 1.2 + answerRate(0..1) * 25 - reportCount * 3 + (sameDomain ? 6 : 0)
Same-instance and discover fallback candidates are used to fill and rank results.