RelayAPI

Check if a subreddit exists and get its details

GET
/v1/tools/validate/subreddit
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_). Invite redemption also accepts a server-derived rlay_session_ bearer for a current user session.

In: header

Query Parameters

name*string

Subreddit name (without r/ prefix)

Match^[a-zA-Z0-9_]+$

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/tools/validate/subreddit?name=string"
{  "exists": true,  "name": "string",  "nsfw": true,  "post_types": {    "image": true,    "link": true,    "self": true,    "video": true  },  "subscribers": 0,  "title": "string"}

Found something wrong? Help us improve this page.