Knowledge Base
Recommend Subreddits
Recommends subreddits for a draft post from our subreddit data: best audience fit first, active subreddits that rarely remove posts, never a banned one.
https://app.cloverlabs.ai/api/public/v1/subreddit-recommendationsworkspace:readAI Connector Tool: clover_recommend_subredditsHeaders
AuthorizationstringRequiredBearerfollowed by anrr_live_API key or a connected app's access token. See Authentication.X-Workspace-IdstringRequiredThe workspace to act on, from List Workspaces.
UUID
Body
titlestringRequiredThe post title
1 to 300 characters
bodystringThe post body, if any
up to 40000 characters
limitintegerHow many subreddits to return, 1 to 15. Default 8
1 to 15
Response
200 Recommended subreddits, best fit first.
dataobjectRequiredShow 1 Child FieldsHide Child Fields
recommendationsobject[]RequiredBest fit first; empty when no subreddit fits the post
Show 10 Child FieldsHide Child Fields
subredditstringRequiredThe subreddit, like r/example
membersintegerRequiredmatchnumberRequiredHow closely the subreddit's audience matches the post, 0 to 1; higher fits better
nullable
postsPerDaynumberRequiredNew posts a day; null when not measured yet
nullable
removalRatenumberRequiredShare of posts the moderators remove, 0 to 1; lower is safer
textPostSharenumberRequiredShare of posts that are text posts, 0 to 1
nullable
flairSharenumberRequiredShare of posts that carry a flair, 0 to 1; near 1 usually means flair is required
nullable
commonFlairsstring[]RequiredThe most used post flairs
descriptionstringRequirednullable
rulesstring[]RequiredThe subreddit's posting rules
Errors
Every error uses the error envelope.
400title is missing or a field is invalid409The banned list can't be read right now503Recommendations are busy; try again shortly401The Authorization header is missing, or the key is invalid or revoked403The key lacks the endpoint's scope, or cannot reach the workspace429More than 120 requests in a minute. Wait for Retry-After seconds500Something went wrong on our side
curl -X POST "https://app.cloverlabs.ai/api/public/v1/subreddit-recommendations" \
-H "Authorization: Bearer $CLOVER_LABS_API_KEY" \
-H "X-Workspace-Id: $CLOVER_LABS_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"title": "Anyone found a good budgeting app for freelancers?",
"body": "My income changes every month and most apps assume a steady paycheck.",
"limit": 5
}'{
"data": {
"recommendations": [
{
"subreddit": "r/freelance",
"members": 412000,
"match": 0.612,
"postsPerDay": 38.4,
"removalRate": 0.081,
"textPostShare": 0.94,
"flairShare": 0.12,
"commonFlairs": [
"Question"
],
"description": "A community for freelancers of all kinds.",
"rules": [
"No self promotion"
]
}
]
}
}