> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Reddit APP Subreddit Rules and Style Info

> Get rules and style information for a specified subreddit on Reddit APP

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">1 credit</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">per request</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">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.</p>
  </div>

  <div className="mt-4">
    <button
      type="button"
      className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50"
      onClick={() => navigator.clipboard.writeText(`I want to make an API call to https://api.keyapi.ai/v1/reddit/fetch_subreddit_style.

Please help me write code to make this API call and handle the response appropriately. Include error handling and best practices.

Here are the details:

Endpoint: GET https://api.keyapi.ai/v1/reddit/fetch_subreddit_style

Description: Get rules and style information for a specified subreddit on Reddit APP

Required Headers:
--header 'Authorization: Bearer <YOUR_API_KEY>'

Parameters:
- subreddit_name (Optional): Subreddit name (without the r/ prefix). Example: pics
- need_format (Optional): Whether to clean/sanitize the data. Example: false

Example Response:
{
"code": 0,
"message": "success",
"data": {
"subredditInfoByName": {
  "__typename": "Subreddit",
  "id": "t5_2qh0u",
  "styles": {
    "__typename": "SubredditStyles",
    "icon": null,
    "primaryColor": "#553200",
    "bannerBackgroundImage": "https://styles.redditmedia.com/t5_2qh0u/styles/bannerBackgroundImage_if1cbgj4mc7b1.jpg?format=pjpg&s=531e105575a44022ba215e8d710b933eba3bbd70",
    "bannerBackgroundColor": "#5A74CC",
    "bannerBackgroundImagePosition": null,
    "mobileBannerImage": "https://styles.redditmedia.com/t5_2qh0u/styles/mobileBannerImage_b4mne1y5mc7b1.jpg?format=pjpg&s=c18bf9c4f1509d410625d8d1216ddaac60d17e5a",
    "postDownvoteIconActive": null,
    "postDownvoteIconInactive": null,
    "postDownvoteCountColor": null,
    "postUpvoteIconActive": null,
    "postUpvoteIconInactive": null,
    "postUpvoteCountColor": null,
    "postPlaceholderImage": null,
    "postPlaceholderImagePosition": null,
    "postVoteIcons": null,
    "highlightColor": "#553200",
    "sidebarWidgetBackgroundColor": null,
    "sidebarWidgetHeaderColor": null
  },
  "widgets": {
    "orderedTopbarWidgets": [
      {
        "__typename": "MenuWidget",
        "id": "widget_10n9nqieach4y",
        "shortName": null,
        "isWikiShown": false,
        "menus": [
          {
            "text": "Rules",
            "url": "https://new.re
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/reddit.openapi.json GET /v1/reddit/fetch_subreddit_style
openapi: 3.0.1
info:
  title: Reddit API english documentation
  description: >-
    The english reference documentation of the Reddit API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security:
  - JWT Bearer: []
tags: []
paths:
  /v1/reddit/fetch_subreddit_style:
    get:
      tags: []
      summary: Fetch Reddit APP Subreddit Rules and Style Info
      description: Get rules and style information for a specified subreddit on Reddit APP
      parameters:
        - name: subreddit_name
          in: query
          description: Subreddit name (without the r/ prefix)
          required: false
          example: pics
          schema:
            type: string
        - name: need_format
          in: query
          description: Whether to clean/sanitize the data
          required: false
          example: 'false'
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  subredditInfoByName:
                    __typename: Subreddit
                    id: t5_2qh0u
                    styles:
                      __typename: SubredditStyles
                      icon: null
                      primaryColor: '#553200'
                      bannerBackgroundImage: >-
                        https://styles.redditmedia.com/t5_2qh0u/styles/bannerBackgroundImage_if1cbgj4mc7b1.jpg?format=pjpg&s=531e105575a44022ba215e8d710b933eba3bbd70
                      bannerBackgroundColor: '#5A74CC'
                      bannerBackgroundImagePosition: null
                      mobileBannerImage: >-
                        https://styles.redditmedia.com/t5_2qh0u/styles/mobileBannerImage_b4mne1y5mc7b1.jpg?format=pjpg&s=c18bf9c4f1509d410625d8d1216ddaac60d17e5a
                      postDownvoteIconActive: null
                      postDownvoteIconInactive: null
                      postDownvoteCountColor: null
                      postUpvoteIconActive: null
                      postUpvoteIconInactive: null
                      postUpvoteCountColor: null
                      postPlaceholderImage: null
                      postPlaceholderImagePosition: null
                      postVoteIcons: null
                      highlightColor: '#553200'
                      sidebarWidgetBackgroundColor: null
                      sidebarWidgetHeaderColor: null
                    widgets:
                      orderedTopbarWidgets:
                        - __typename: MenuWidget
                          id: widget_10n9nqieach4y
                          shortName: null
                          isWikiShown: false
                          menus:
                            - text: Rules
                              url: https://new.reddit.com/r/pics/wiki/index
                              children: null
                            - text: Title Guidelines
                              url: https://www.reddit.com/r/pics/wiki/titles
                              children: null
                            - text: Civility Rules
                              url: https://www.reddit.com/r/pics/wiki/rule8
                              children: null
                            - text: Pics Minus Politics
                              url: >-
                                https://www.reddit.com/r/pics/search/?q=NOT+flair%3APolitics&sort=hot
                              children: null
                      orderedSidebarWidgets:
                        - __typename: SubredditRulesWidget
                          id: widget_rules-2qh0u
                          shortName: Subreddit Rules
                          display: full
                        - __typename: IdCardWidget
                          id: widget_id-card-2qh0u
                          shortName: Community Details
                          currentlyViewingText: ''
                          subscribersText: Pics
                        - __typename: ModeratorWidget
                          id: widget_moderators-2qh0u
                          shortName: null
                          moderators:
                            - redditor:
                                name: cwenham
                              flair:
                                text: Welsh Pork
                                template:
                                  __typename: FlairTemplate
                                  id: null
                                  isModOnly: false
                                  isEditable: false
                                  backgroundColor: null
                                  text: Welsh Pork
                                  type: text
                                  richtext: null
                                  textColor: DARK
                                  allowableContent: ALL
                                  maxEmojis: 10
                            - redditor:
                                name: _BindersFullOfWomen_
                              flair: null
                            - redditor:
                                name: tragopanic
                              flair:
                                text: 🍿
                                template:
                                  __typename: FlairTemplate
                                  id: null
                                  isModOnly: false
                                  isEditable: false
                                  backgroundColor: null
                                  text: 🍿
                                  type: text
                                  richtext: null
                                  textColor: DARK
                                  allowableContent: ALL
                                  maxEmojis: 10
                            - redditor:
                                name: adeadhead
                              flair:
                                text: rememberingawdah.com 🕊️
                                template:
                                  __typename: FlairTemplate
                                  id: null
                                  isModOnly: false
                                  isEditable: false
                                  backgroundColor: null
                                  text: rememberingawdah.com 🕊️
                                  type: text
                                  richtext: null
                                  textColor: DARK
                                  allowableContent: ALL
                                  maxEmojis: 10
                            - redditor:
                                name: RamsesThePigeon
                              flair: null
                            - redditor:
                                name: n_reineke
                              flair:
                                text: 🦊
                                template:
                                  __typename: FlairTemplate
                                  id: 4883d892-6443-11e8-b937-0e4bcaa8957a
                                  isModOnly: false
                                  isEditable: false
                                  backgroundColor: null
                                  text: ''
                                  type: text
                                  richtext: null
                                  textColor: DARK
                                  allowableContent: ALL
                                  maxEmojis: 10
                            - redditor:
                                name: JoyousCacophony
                              flair: null
                            - redditor:
                                name: remiel
                              flair:
                                text: Knight of new ⚔️
                                template:
                                  __typename: FlairTemplate
                                  id: null
                                  isModOnly: false
                                  isEditable: false
                                  backgroundColor: null
                                  text: Knight of new ⚔️
                                  type: text
                                  richtext: null
                                  textColor: DARK
                                  allowableContent: ALL
                                  maxEmojis: 10
                            - redditor:
                                name: relaxlu
                              flair: null
                            - redditor:
                                name: noeatnosleep
                              flair:
                                text: '[overwritten by script]'
                                template:
                                  __typename: FlairTemplate
                                  id: null
                                  isModOnly: false
                                  isEditable: false
                                  backgroundColor: null
                                  text: '[overwritten by script]'
                                  type: text
                                  richtext: null
                                  textColor: DARK
                                  allowableContent: ALL
                                  maxEmojis: 10
                    moderatorsInfo:
                      edges:
                        - node:
                            id: t2_2fpn
                        - node:
                            id: t2_j0z5u
                        - node:
                            id: t2_itf5
                        - node:
                            id: t2_5tt1l
                        - node:
                            id: t2_59k8h
                        - node:
                            id: t2_7qmzk
                        - node:
                            id: t2_6cfjz
                        - node:
                            id: t2_4gtqs
                        - node:
                            id: t2_6pb3z
                        - node:
                            id: t2_82m30
                        - node:
                            id: t2_ldg1k
                        - node:
                            id: t2_h24z5
                        - node:
                            id: t2_49og7
                        - node:
                            id: t2_17sb7
                        - node:
                            id: t2_o77bz
                        - node:
                            id: t2_3uh1q
                        - node:
                            id: t2_xcql2
                        - node:
                            id: t2_zsx5c
                        - node:
                            id: t2_eceia
                        - node:
                            id: t2_hiat4pb
                        - node:
                            id: t2_qusil
                        - node:
                            id: t2_3zm9kedt
                        - node:
                            id: t2_2717bc9o
                        - node:
                            id: t2_bzgusgaap
                        - node:
                            id: t2_hbkdgzya4
                    rules:
                      - __typename: SubredditRule
                        id: 0783e9fa-9cb5-4fe4-a705-3f0d77111199
                        name: >-
                          No screenshots, AI images, or pictures in which the
                          focus is a screen.
                        violationReason: Screenshot or AI-generated
                        priority: 0
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,3]],"t":"No
                            "},{"e":"link","f":[[1,0,11]],"t":"screenshots","u":"https://i.imgur.com/AtDiqpR.jpg"},{"e":"text","f":[[1,0,49]],"t":".
                            No pictures wherein the only focus is a
                            screen."}],"e":"par"},{"c":[{"e":"text","t":"Images
                            with "},{"e":"link","t":"unnecessary
                            margins","u":"https://i.imgur.com/mhmXSRq.jpg"},{"e":"text","t":"
                            of any color will be assumed to be
                            screenshots."}],"e":"par"},{"c":[{"e":"text","t":"Pictures
                            that include screens can be permitted, but said
                            screens must not be the sole or primary focus of the
                            photographs."}],"e":"par"},{"c":[{"e":"text","t":"We
                            do not allow AI-generated images of any
                            kind."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>No <a
                            href="https://i.imgur.com/AtDiqpR.jpg"
                            target="_blank">screenshots</a>. No pictures wherein
                            the only focus is a screen.</strong></p>


                            <p>Images with <a
                            href="https://i.imgur.com/mhmXSRq.jpg"
                            target="_blank">unnecessary margins</a> of any color
                            will be assumed to be screenshots.</p>


                            <p>Pictures that include screens can be permitted,
                            but said screens must not be the sole or primary
                            focus of the photographs.</p>


                            <p>We do not allow AI-generated images of any
                            kind.</p>
                          markdown: >-
                            **No [screenshots](https://i.imgur.com/AtDiqpR.jpg).
                            No pictures wherein the only focus is a screen.**


                            Images with [unnecessary
                            margins](https://i.imgur.com/mhmXSRq.jpg) of any
                            color will be assumed to be screenshots. 


                            Pictures that include screens can be permitted, but
                            said screens must not be the sole or primary focus
                            of the photographs.


                            We do not allow AI-generated images of any kind.
                      - __typename: SubredditRule
                        id: 77dcb30a-b5bc-440a-a6bd-819ba56532b3
                        name: No digital elements or text.
                        violationReason: No digital elements or text.
                        priority: 1
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,17]],"t":"No
                            pictures with
                            "},{"e":"link","f":[[1,0,72]],"t":"added or
                            superimposed digital text, emojis, or \"MS
                            Paint\"-like
                            scribbles","u":"https://i.imgur.com/QoI5LKt.jpg"},{"e":"text","f":[[1,0,1]],"t":"."}],"e":"par"},{"c":[{"e":"text","t":"\"Added
                            text\" is extended to all drawings, whether done
                            digitally or by
                            hand."}],"e":"par"},{"c":[{"e":"link","t":"Photoshopped","u":"https://i.imgur.com/c8ZPW1F.jpg"},{"e":"text","t":"
                            or otherwise manipulated images are
                            allowed."}],"e":"par"},{"c":[{"e":"text","t":"While
                            we do allow watermarks, they have to be
                            inconspicuous."}],"e":"par"},{"c":[{"e":"text","t":"We
                            also allow faces and anything else you may consider
                            to be personal information to be blurred, boxed out,
                            or otherwise covered."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>No pictures with <a
                            href="https://i.imgur.com/QoI5LKt.jpg"
                            target="_blank">added or superimposed digital text,
                            emojis, or &ldquo;MS Paint&rdquo;-like
                            scribbles</a>.</strong></p>


                            <p>&ldquo;Added text&rdquo; is extended to all
                            drawings, whether done digitally or by hand.</p>


                            <p><a href="https://i.imgur.com/c8ZPW1F.jpg"
                            target="_blank">Photoshopped</a> or otherwise
                            manipulated images are allowed.</p>


                            <p>While we do allow watermarks, they have to be
                            inconspicuous.</p>


                            <p>We also allow faces and anything else you may
                            consider to be personal information to be blurred,
                            boxed out, or otherwise covered.</p>
                          markdown: >-
                            **No pictures with [added or superimposed digital
                            text, emojis, or "MS Paint"-like
                            scribbles](https://i.imgur.com/QoI5LKt.jpg).**


                            "Added text" is extended to all drawings, whether
                            done digitally or by hand.


                            [Photoshopped](https://i.imgur.com/c8ZPW1F.jpg) or
                            otherwise manipulated images are allowed. 


                            While we do allow watermarks, they have to be
                            inconspicuous. 


                            We also allow faces and anything else you may
                            consider to be personal information to be blurred,
                            boxed out, or otherwise covered.
                      - __typename: SubredditRule
                        id: 95a21374-a9e5-4e09-bdc8-be00018c3340
                        name: No pornography or gore.
                        violationReason: No pornography or gore.
                        priority: 2
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,133]],"t":"No
                            pornography or gore. NSFW comment links must be
                            tagged. Posting gratuitous materials may result in
                            an immediate and permanent
                            ban."}],"e":"par"},{"c":[{"e":"text","t":"Artistic
                            nudity is allowed, but must be tagged with
                            \"NSFW.\""}],"e":"par"},{"c":[{"e":"text","t":"If
                            genitals are displayed within a photograph, it will
                            generally be treated as
                            pornography."}],"e":"par"},{"c":[{"e":"text","t":"No
                            pictures which include excessive blood or
                            inside-the-flesh details made visible via any form
                            of laceration."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>No pornography or gore. NSFW comment
                            links must be tagged. Posting gratuitous materials
                            may result in an immediate and permanent
                            ban.</strong></p>


                            <p>Artistic nudity is allowed, but must be tagged
                            with &ldquo;NSFW.&rdquo;</p>


                            <p>If genitals are displayed within a photograph, it
                            will generally be treated as pornography.</p>


                            <p>No pictures which include excessive blood or
                            inside-the-flesh details made visible via any form
                            of laceration.</p>
                          markdown: >-
                            **No pornography or gore. NSFW comment links must be
                            tagged. Posting gratuitous materials may result in
                            an immediate and permanent ban.**


                            Artistic nudity is allowed, but must be tagged with
                            "NSFW." 


                            If genitals are displayed within a photograph, it
                            will generally be treated as pornography. 


                            No pictures which include excessive blood or
                            inside-the-flesh details made visible via any form
                            of laceration.
                      - __typename: SubredditRule
                        id: b3df51cf-ffb1-4237-9f26-91024d95e9d1
                        name: No doxxing or witch-hunts.
                        violationReason: No doxxing or witch-hunts.
                        priority: 3
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,60]],"t":"No
                            personal information may be offered in posts or
                            comments."}],"e":"par"},{"c":[{"e":"text","t":"Personal
                            information includes (but is not limited to) names
                            not in the public domain, names in yearbooks,
                            invoices, receipts, identifying account numbers,
                            home addresses, or telephone
                            numbers."}],"e":"par"},{"c":[{"e":"text","t":"For
                            spam-related and doxxing-centric reasons, we do not
                            allow direct links to social media
                            sites."}],"e":"par"},{"c":[{"e":"text","t":"Subreddit-related
                            meta-drama, stalking, harassment, witch-hunting, or
                            doxxing will not be tolerated and will result in an
                            immediate ban."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>No personal information may be offered in
                            posts or comments.</strong></p>


                            <p>Personal information includes (but is not limited
                            to) names not in the public domain, names in
                            yearbooks, invoices, receipts, identifying account
                            numbers, home addresses, or telephone numbers.</p>


                            <p>For spam-related and doxxing-centric reasons, we
                            do not allow direct links to social media sites.</p>


                            <p>Subreddit-related meta-drama, stalking,
                            harassment, witch-hunting, or doxxing will not be
                            tolerated and will result in an immediate ban.</p>
                          markdown: >-
                            **No personal information may be offered in posts or
                            comments.**


                            Personal information includes (but is not limited
                            to) names not in the public domain, names in
                            yearbooks, invoices, receipts, identifying account
                            numbers, home addresses, or telephone numbers.


                            For spam-related and doxxing-centric reasons, we do
                            not allow direct links to social media sites.


                            Subreddit-related meta-drama, stalking, harassment,
                            witch-hunting, or doxxing will not be tolerated and
                            will result in an immediate ban.
                      - __typename: SubredditRule
                        id: edc6dd68-9ae5-40b5-aed3-3c0d2a7121b7
                        name: Titles must obey all relevant rules.
                        violationReason: Titles must obey all relevant rules.
                        priority: 4
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,58]],"t":"All
                            posts must follow the title rules. Those are
                            detailed
                            "},{"e":"link","f":[[1,0,4]],"t":"here","u":"https://www.reddit.com/r/pics/wiki/titles"},{"e":"text","f":[[1,0,1]],"t":"."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>All posts must follow the title rules.
                            Those are detailed <a
                            href="https://www.reddit.com/r/pics/wiki/titles"
                            target="_blank">here</a>.</strong></p>
                          markdown: >-
                            **All posts must follow the title rules. Those are
                            detailed
                            [here](https://www.reddit.com/r/pics/wiki/titles).**
                      - __typename: SubredditRule
                        id: aaea7b54-a267-4613-8f58-18c755559546
                        name: Only approved image-hosts.
                        violationReason: Only approved image-hosts.
                        priority: 5
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,93]],"t":"Submissions
                            must link directly to a specific image file or to
                            one of the allowed image
                            hosts."}],"e":"par"},{"c":[{"e":"text","t":"You can
                            upload your picture either directly to Reddit or to
                            one of the following image hosts: Imgur.com,
                            Flickr.com, or
                            500px.org."}],"e":"par"},{"c":[{"e":"text","t":"Additionally,
                            we allow any direct link to a picture, provided that
                            the URL ends in .png, .jpg, or
                            .jpeg."}],"e":"par"},{"c":[{"e":"text","t":"URL-shorteners
                            are prohibited, as are URLs in image or
                            album-descriptions."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>Submissions must link directly to a
                            specific image file or to one of the allowed image
                            hosts.</strong></p>


                            <p>You can upload your picture either directly to
                            Reddit or to one of the following image hosts:
                            Imgur.com, Flickr.com, or 500px.org.</p>


                            <p>Additionally, we allow any direct link to a
                            picture, provided that the URL ends in .png, .jpg,
                            or .jpeg.</p>


                            <p>URL-shorteners are prohibited, as are URLs in
                            image or album-descriptions.</p>
                          markdown: >-
                            **Submissions must link directly to a specific image
                            file or to one of the allowed image hosts.**


                            You can upload your picture either directly to
                            Reddit or to one of the following image hosts:
                            Imgur.com, Flickr.com, or 500px.org.


                            Additionally, we allow any direct link to a picture,
                            provided that the URL ends in .png, .jpg, or .jpeg.


                            URL-shorteners are prohibited, as are URLs in image
                            or album-descriptions.
                      - __typename: SubredditRule
                        id: e56d6634-c710-4e1c-b6e0-50b5c9f39f86
                        name: No GIFs or videos.
                        violationReason: No GIFs or videos.
                        priority: 6
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,35]],"t":"No
                            GIFs, videos, or animated
                            media."}],"e":"par"},{"c":[{"e":"text","t":"Please
                            submit animated images to
                            "},{"e":"r/","l":true,"t":"GIFs"},{"e":"text","t":",
                            "},{"e":"r/","l":true,"t":"GIF"},{"e":"text","t":",
                            "},{"e":"r/","l":true,"t":"Videos"},{"e":"text","t":",
                            or
                            "},{"e":"r/","l":true,"t":"ReactionGIFs"},{"e":"text","t":"
                            instead."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>No GIFs, videos, or animated
                            media.</strong></p>


                            <p>Please submit animated images to /r/GIFs, /r/GIF,
                            /r/Videos, or /r/ReactionGIFs instead.</p>
                          markdown: >-
                            **No GIFs, videos, or animated media.**


                            Please submit animated images to /r/GIFs, /r/GIF,
                            /r/Videos, or /r/ReactionGIFs instead.
                      - __typename: SubredditRule
                        id: 9e83527a-81bd-4000-92fb-ea00eda46964
                        name: Remain civil.
                        violationReason: This is uncivil.
                        priority: 7
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,90]],"t":"We
                            enforce a standard of common decency and civility
                            here. Please be respectful to
                            others."}],"e":"par"},{"c":[{"e":"text","t":"Inappropriate
                            behavior or content will be removed and can result
                            in a ban. This includes (but is not limited to)
                            personal attacks, fighting words, or comments that
                            insult or demean a specific user or group of
                            users."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>We enforce a standard of common decency
                            and civility here. Please be respectful to
                            others.</strong></p>


                            <p>Inappropriate behavior or content will be removed
                            and can result in a ban. This includes (but is not
                            limited to) personal attacks, fighting words, or
                            comments that insult or demean a specific user or
                            group of users.</p>
                          markdown: >-
                            **We enforce a standard of common decency and
                            civility here. Please be respectful to others.**


                            Inappropriate behavior or content will be removed
                            and can result in a ban. This includes (but is not
                            limited to) personal attacks, fighting words, or
                            comments that insult or demean a specific user or
                            group of users.
                      - __typename: SubredditRule
                        id: df60dc86-1c7b-408d-b7d0-89fccdb7bb48
                        name: No progress-pictures.
                        violationReason: No progress-pictures.
                        priority: 8
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,150]],"t":"No
                            submissions featuring before-and-after depictions of
                            personal health progress or achievement. No
                            standalone images of personal achievement
                            objects."}],"e":"par"},{"c":[{"e":"text","f":[[2,239,3]],"t":"Progress-pictures
                            are prohibited if they show clear health progress or
                            achievement. For example, before-and-after pictures
                            of weight-loss, sobriety, or muscle-gain are not
                            allowed, whereas images showing a person's young
                            self and old self are
                            allowed."}],"e":"par"},{"c":[{"e":"text","t":"Standalone
                            images of medals, tokens, certificates, and awards
                            are similarly disallowed."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>No submissions featuring before-and-after
                            depictions of personal health progress or
                            achievement. No standalone images of personal
                            achievement objects.</strong></p>


                            <p>Progress-pictures are prohibited if they show
                            clear health progress or achievement. For example,
                            before-and-after pictures of weight-loss, sobriety,
                            or muscle-gain are not allowed, whereas images
                            showing a person&rsquo;s young self and old self
                            <em>are</em> allowed.</p>


                            <p>Standalone images of medals, tokens,
                            certificates, and awards are similarly
                            disallowed.</p>
                          markdown: >-
                            **No submissions featuring before-and-after
                            depictions of personal health progress or
                            achievement. No standalone images of personal
                            achievement objects.**


                            Progress-pictures are prohibited if they show clear
                            health progress or achievement. For example,
                            before-and-after pictures of weight-loss, sobriety,
                            or muscle-gain are not allowed, whereas images
                            showing a person's young self and old self *are*
                            allowed.


                            Standalone images of medals, tokens, certificates,
                            and awards are similarly disallowed.
                      - __typename: SubredditRule
                        id: df6c9ac7-3abd-4920-83ff-758721234394
                        name: No FCoO or flooding.
                        violationReason: No FCoO or flooding.
                        priority: 9
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,48]],"t":"No
                            false claims of ownership (FCoO) or
                            flooding."}],"e":"par"},{"c":[{"e":"text","t":"False
                            claims of ownership (FCoO) \u2013 posting pictures
                            that aren't yours but pretending like they are
                            \u2013 will result in a ban. Please be aware that
                            using the OC tag or writing [OC] in the title is
                            considered FCoO unless the content is 100%
                            produced(taken, drawn or made) by
                            you."}],"e":"par"},{"c":[{"e":"text","t":"Flooding
                            (more than four posts in a rolling twenty-four-hour
                            window) will also result in a ban."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>No false claims of ownership (FCoO) or
                            flooding.</strong></p>


                            <p>False claims of ownership (FCoO) – posting
                            pictures that aren&rsquo;t yours but pretending like
                            they are – will result in a ban. Please be aware
                            that using the OC tag or writing [OC] in the title
                            is considered FCoO unless the content is 100%
                            produced(taken, drawn or made) by you.</p>


                            <p>Flooding (more than four posts in a rolling
                            twenty-four-hour window) will also result in a
                            ban.</p>
                          markdown: >-
                            **No false claims of ownership (FCoO) or flooding.**


                            False claims of ownership (FCoO) – posting pictures
                            that aren't yours but pretending like they are –
                            will result in a ban. Please be aware that using the
                            OC tag or writing [OC] in the title is considered
                            FCoO unless the content is 100% produced(taken,
                            drawn or made) by you.


                            Flooding (more than four posts in a rolling
                            twenty-four-hour window) will also result in a ban.
                      - __typename: SubredditRule
                        id: 05955ec4-e3d9-474d-a40c-f7f82dab30b6
                        name: Reposts are subject to limitations.
                        violationReason: This is an unacceptable repost.
                        priority: 10
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,63]],"t":"Reposts
                            of images on the front page or within the set limit
                            of
                            "},{"e":"r/","l":true,"t":"pics/top"},{"e":"text","f":[[1,0,17]],"t":"
                            will be
                            removed."}],"e":"par"},{"c":[{"e":"text","t":"To
                            keep our subreddit fresh and to avoid having the
                            same content constantly pop up, we currently remove
                            reposts of images that are currently on the front
                            page of
                            "},{"e":"r/","l":true,"t":"Pics"},{"e":"text","t":"."}],"e":"par"},{"c":[{"e":"text","t":"Additionally,
                            we remove reposts of the top 25 images posted this
                            year, and the top 50 of all time."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>Reposts of images on the front page or
                            within the set limit of /r/pics/top will be
                            removed.</strong></p>


                            <p>To keep our subreddit fresh and to avoid having
                            the same content constantly pop up, we currently
                            remove reposts of images that are currently on the
                            front page of /r/Pics.</p>


                            <p>Additionally, we remove reposts of the top 25
                            images posted this year, and the top 50 of all
                            time.</p>
                          markdown: >-
                            **Reposts of images on the front page or within the
                            set limit of /r/pics/top will be removed.**


                            To keep our subreddit fresh and to avoid having the
                            same content constantly pop up, we currently remove
                            reposts of images that are currently on the front
                            page of /r/Pics.


                            Additionally, we remove reposts of the top 25 images
                            posted this year, and the top 50 of all time.
                      - __typename: SubredditRule
                        id: c1a2f7cb-c60d-4568-bcb7-735a9fb992a8
                        name: No self-promotional accounts.
                        violationReason: No self-promotional accounts.
                        priority: 11
                        content:
                          __typename: Content
                          richtext: >-
                            {"document":[{"c":[{"e":"text","f":[[1,0,61]],"t":"Submitters
                            may offer only one self-promotional link per
                            post."}],"e":"par"},{"c":[{"e":"text","t":"Well-established
                            accounts are allowed to offer one self-promotional
                            link per post. Be aware that this does not exclude
                            you from the rest of this rule. Breaking or
                            circumventing this rule may result in temporary or
                            permanent
                            bans."}],"e":"par"},{"c":[{"e":"text","t":"Accounts
                            that exist solely to advertise or promote will be
                            banned, regardless of how or where the promotion
                            itself occurs."}],"e":"par"}]}
                          typeHint: null
                          html: >
                            <p><strong>Submitters may offer only one
                            self-promotional link per post.</strong></p>


                            <p>Well-established accounts are allowed to offer
                            one self-promotional link per post. Be aware that
                            this does not exclude you from the rest of this
                            rule. Breaking or circumventing this rule may result
                            in temporary or permanent bans.</p>


                            <p>Accounts that exist solely to advertise or
                            promote will be banned, regardless of how or where
                            the promotion itself occurs.</p>
                          markdown: >-
                            **Submitters may offer only one self-promotional
                            link per post.**


                            Well-established accounts are allowed to offer one
                            self-promotional link per post. Be aware that this
                            does not exclude you from the rest of this rule.
                            Breaking or circumventing this rule may result in
                            temporary or permanent bans. 


                            Accounts that exist solely to advertise or promote
                            will be banned, regardless of how or where the
                            promotion itself occurs.
                requestId: ebd4d7fd-6063-49c1-a627-3dbbee463f74
          headers: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/reddit/fetch_subreddit_style?subreddit_name=pics&need_format=false' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/reddit/fetch_subreddit_style',
                params={"subreddit_name": "pics", "need_format": "false"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"subreddit_name": "pics",
            "need_format": "false"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/reddit/fetch_subreddit_style?${params}`,
            {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````