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

In: header

Query Parameters

name*string

Subreddit name (without r/ prefix)

Response Body

application/json

application/json

curl -X GET "https://api.relayapi.dev/v1/tools/validate/subreddit?name=string"
{
  "exists": true,
  "name": "string",
  "title": "string",
  "subscribers": 0,
  "nsfw": true,
  "post_types": {
    "self": true,
    "link": true,
    "image": true
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}