Get Subreddit Best Time | Rankhog Docs

API Reference

Get Subreddit Best Time

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...

Server URLhttps://api.rankhog.com/

POST

``/agent/v1/best-time

Send

Authorization

Body

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 the organization's time zone. A room without enough posts answers status no_data. Advice only: it moves no send time. 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

organizationId*string

Length1 <= length <= 160

subreddit*string

Length1 <= length <= 80

Response Body

200 application/json

400 application/json

401 application/json

403 application/json

500 application/json

cURL

JavaScript

Go

Python

Java

C#

curl -X POST "https://api.rankhog.com/agent/v1/best-time" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_2x9rnkhdemo",
    "subreddit": "SaaS"
  }'

200400401403500

{
  "advice": "r/saas is busiest Tue 09:00, Wed 10:00 and Thu 11:00 your time (from 120 top posts in 90 days).",
  "bestSlots": [\
    {\
      "dow": 2,\
      "hour": 14,\
      "posts": 9\
    },\
    {\
      "dow": 3,\
      "hour": 15,\
      "posts": 8\
    },\
    {\
      "dow": 4,\
      "hour": 16,\
      "posts": 7\
    }\
  ],
  "reason": null,
  "sampleSize": 120,
  "status": "ready",
  "subreddit": "saas",
  "timeZone": "America/New_York",
  "windowDays": 90
}
{
  "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

Missing OAuth scope

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

API key organization mismatch

Organization access denied

{
  "error": {
    "code": "agentic_internal_error",
    "message": "Rankhog could not complete this agentic request."
  }
}

Get Subreddit ActivityPOST\ \ Return subreddit activity Rankhog already read, without forcing a new read. Get Reddit Browser StatusPOST\ \ Report whether Rankhog Desktop has a ready Reddit browser session for this managed account.