Clover Labs Logo

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.

POST/subreddit-recommendations
Scope: workspace:readAI Connector Tool: clover_recommend_subreddits

Headers

  • AuthorizationstringRequired

    Bearer followed by an rr_live_ API key or a connected app's access token. See Authentication.

  • X-Workspace-IdstringRequired

    The workspace to act on, from List Workspaces.

    UUID

Body

  • titlestringRequired

    The post title

    1 to 300 characters

  • bodystring

    The post body, if any

    up to 40000 characters

  • limitinteger

    How many subreddits to return, 1 to 15. Default 8

    1 to 15

Response

200 Recommended subreddits, best fit first.

  • dataobjectRequired
    Show 1 Child Fields
    • recommendationsobject[]Required

      Best fit first; empty when no subreddit fits the post

      Show 10 Child Fields
      • subredditstringRequired

        The subreddit, like r/example

      • membersintegerRequired
      • matchnumberRequired

        How closely the subreddit's audience matches the post, 0 to 1; higher fits better

        nullable

      • postsPerDaynumberRequired

        New posts a day; null when not measured yet

        nullable

      • removalRatenumberRequired

        Share of posts the moderators remove, 0 to 1; lower is safer

      • textPostSharenumberRequired

        Share of posts that are text posts, 0 to 1

        nullable

      • flairSharenumberRequired

        Share of posts that carry a flair, 0 to 1; near 1 usually means flair is required

        nullable

      • commonFlairsstring[]Required

        The most used post flairs

      • descriptionstringRequired

        nullable

      • rulesstring[]Required

        The subreddit's posting rules

Errors

Every error uses the error envelope.

  • 400title is missing or a field is invalid
  • 409The banned list can't be read right now
  • 503Recommendations are busy; try again shortly
  • 401The Authorization header is missing, or the key is invalid or revoked
  • 403The key lacks the endpoint's scope, or cannot reach the workspace
  • 429More than 120 requests in a minute. Wait for Retry-After seconds
  • 500Something 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
}'
200 Response
{
  "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"
        ]
      }
    ]
  }
}