Skip to main content
GET
/
v1
/
reddit
/
fetch_subreddit_post_channels
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels?subreddit_name=pics&sort=HOT&range=DAY&need_format=false' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "subredditInfoByName": {
      "__typename": "Subreddit",
      "postFlairTemplates": [
        {
          "id": "260873e0-c9b8-11e5-be06-0ecbb6f4dd8d",
          "text": "Politics",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "66cf8d7a-8718-11e9-803a-0e44312dcdb8",
          "text": "Misleading Title",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "1fd2615c-c9b8-11e5-a106-0e47f9bd707d",
          "text": "Backstory",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "2d9ae03a-cbd3-11e5-94f0-0eea8ef60395",
          "text": "Picture of text",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "e43df516-e8f9-11e8-8bdf-0ec71fb13d9c",
          "text": "! Broken Link !",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "9144ca30-b41a-11f0-a5e5-bab1ece82e7c",
          "text": "OC",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "9f2f09de-e154-11e9-9b7f-0e4b02470cc4",
          "text": "uncivil/7 day ban",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "a768ac40-e154-11e9-88c3-0e2175216af4",
          "text": "uncivil/ban",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "d4931296-e154-11e9-821a-0e0830f0378c",
          "text": "spam/ban",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "f988392c-41f4-11ea-856e-0e3f43166111",
          "text": "Arts/Crafts",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "1aaffde0-873d-11e1-a158-12313b08a511",
          "text": "r3: gratuitous",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "86d860a2-873d-11e1-8aab-12313d2c1af1",
          "text": "r4: no pi",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "f3540c8c-aeba-11e1-b874-12313b078981",
          "text": "r5: title guidelines",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "6473d42a-aee7-11e1-885f-12313d051e91",
          "text": "r6: bad host",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "fed7622a-aeba-11e1-817b-12313d051e91",
          "text": "R6: Indirect Link",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "31d36ec2-e349-11e1-a6a1-12313d051e91",
          "text": "r7: animated",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "2b4de71e-fd6e-11e1-b6c7-12313b0ce1e2",
          "text": "r9: progresspic",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "8fbc89f2-a303-11e9-ad41-0ed60e30de86",
          "text": "R11: Front Page Repost",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "db8d2b8e-31aa-11f0-b76e-0ee6b4914630",
          "text": "r1: ai generated image",
          "isModOnly": false,
          "richtext": null
        }
      ]
    }
  },
  "requestId": "5d265ad0-8c50-48ea-b86a-1156112e660e"
}
πŸͺ™1 creditper request

Copy for AI

πŸ€– Why Code When AI Can Do It For You?

Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.

Authorizations

Authorization
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx Get your API key from the Dashboard.

Query Parameters

subreddit_name
string

Subreddit name (without the r/ prefix)

sort
string
default:HOT

Sort order, default is HOT Options: HOT, NEW, TOP, CONTROVERSIAL, RISING

range
string
default:DAY

Time range, default is DAY Options: HOUR, DAY, WEEK, MONTH, YEAR, ALL

need_format
boolean
default:false

Whether to clean/sanitize the data

Response

The response is of type object.