Get Subreddit Activity | Rankhog Docs

API Reference

Get Subreddit Activity

Return subreddit activity Rankhog already read, without forcing a new read.

Server URLhttps://api.rankhog.com/

POST

``/agent/v1/activity

Send

Authorization

Body

Return subreddit activity Rankhog already read, without forcing a new read. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

Authorization

apiKeyAuth

AuthorizationBearer

Rankhog organization API key sent as Authorization: Bearer rhog_....

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Copy

managedRedditAccountId*string

Length1 <= length <= 160

organizationId*string

Length1 <= length <= 160

maxComments?integer

Default25Range0 <= value <= 100

maxPosts?integer

Default25Range0 <= value <= 100

subreddit*string

Length1 <= length <= 80

Response Body

200 application/json

400 application/json

401 application/json

402 application/json

403 application/json

404 application/json

409 application/json

500 application/json

cURL

JavaScript

Go

Python

Java

C#

curl -X POST "https://api.rankhog.com/agent/v1/activity" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "managedRedditAccountId": "mra_2x9rnkhdemo",
    "organizationId": "org_2x9rnkhdemo",
    "maxComments": 10,
    "maxPosts": 10,
    "subreddit": "SaaS"
  }'

200400401402403404409500

{
  "cached": {
    "capturedAt": "2026-06-17T12:00:00.000Z",
    "comments": [],
    "fetchUrls": {
      "comments": null,
      "posts": "https://www.reddit.com/r/saas.json?limit=100&raw_json=1"
    },
    "posts": [\
      {\
        "author": "founder_alt",\
        "bodyPreview": "We changed onboarding from a checklist to a guided setup and activation improved.",\
        "commentCount": 18,\
        "createdAt": "2026-06-17T10:30:00.000Z",\
        "createdUtc": 1781692200,\
        "fullname": "t3_examplepost",\
        "id": "examplepost",\
        "kind": "post",\
        "parentId": null,\
        "permalink": "https://www.reddit.com/r/SaaS/comments/examplepost/example/",\
        "postId": null,\
        "score": 42,\
        "subreddit": "SaaS",\
        "title": "What actually moved your SaaS activation rate?",\
        "url": "https://www.reddit.com/r/SaaS/comments/examplepost/example/",\
        "observedAt": "2026-06-17T12:00:00.000Z",\
        "observedUrl": "https://www.reddit.com/r/saas.json?limit=100&raw_json=1"\
      }\
    ],
    "source": "reactive_source",
    "mode": "ranked",
    "observation": "partial",
    "observationWindow": {
      "oldestAt": "2026-06-17T12:00:00.000Z",
      "newestAt": "2026-06-17T12:00:00.000Z"
    }
  },
  "freshness": {
    "commentOverlapAt": null,
    "coverageStatus": "healthy",
    "lastSuccessfulScanAt": "2026-06-17T12:00:00.000Z",
    "headIntervalSeconds": 600,
    "postOverlapAt": null,
    "mode": "ranked",
    "postCoverage": "observed",
    "commentCoverage": "partial"
  },
  "subreddit": "SaaS"
}
{
  "error": {
    "code": "agentic_invalid_input",
    "details": {
      "issues": [\
        {\
          "code": "invalid_type",\
          "message": "Expected string, received undefined.",\
          "path": [\
            "organizationId"\
          ]\
        }\
      ]
    },
    "message": "Request body did not match the agentic capability schema."
  }
}

Missing authentication

{
  "error": {
    "code": "agentic_unauthorized",
    "message": "Authenticate before using Rankhog agentic capabilities."
  }
}

Invalid API key

Paid workspace required

{
  "error": {
    "code": "agentic_paid_plan_required",
    "details": {
      "managedAccountBillingStatus": "active",
      "productId": "site_demo",
      "subscriptionStatus": "past_due"
    },
    "message": "This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."
  }
}

Not in this plan

Missing OAuth scope

{
  "error": {
    "code": "agentic_missing_scope",
    "details": {
      "missingScopes": [\
        "rankhog:read",\
        "reddit:activity:read"\
      ]
    },
    "message": "Missing required scope: rankhog:read, reddit:activity:read."
  }
}

API key organization mismatch

Organization access denied

Website access denied

Human actor required

{
  "error": {
    "code": "agentic_managed_account_not_found",
    "message": "Managed Reddit account not found."
  }
}
{
  "error": {
    "code": "agentic_managed_account_inactive",
    "details": {
      "managedAccountStatus": "setup_required"
    },
    "message": "This managed Reddit account must be active before browser-backed agentic tools can run."
  }
}
{
  "error": {
    "code": "agentic_internal_error",
    "message": "Rankhog could not complete this agentic request."
  }
}

Get Subreddit RulesPOST\ \ Fetch verified or live Reddit subreddit rules for a paid Rankhog workspace. Get Subreddit Best TimePOST\ \ Return when a subreddit's top posts of the last 90 days went up: the three best weekday and hour slots in UTC (dow 0 is Sunday), and one sentence in...