> ## 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 Post Details in Large Batch (Max 30)

> Batch get post details by a large list of post IDs, supports up to 30 posts per batch, optionally including the context of a specific comment

Note:
Supports a maximum of 30 posts per batch
More than 30 will return an error
Large batch queries may require longer response times
The ID format for the APP API differs from the Web API — a type prefix is required
Post ID prefix: t3_ (e.g., t3_1ojnh50)
Comment ID prefix: t1_ (e.g., t1_abcd123)

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

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_post_details_batch_large

Description: Batch get post details by a large list of post IDs, supports up to 30 posts per batch, optionally including the context of a specific comment

Note:
Supports a maximum of 30 posts per batch
More than 30 will return an error
Large batch queries may require longer response times
The ID format for the APP API differs from the Web API — a type prefix is required
Post ID prefix: t3_ (e.g., t3_1ojnh50)
Comment ID prefix: t1_ (e.g., t1_abcd123)

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

Parameters:
- post_ids (Required): Comma-separated list of post IDs, format: "t3_XXXXXX,t3_YYYYYY,...", up to 30 posts. Example: t3_1ojnh50,t3_1ok432f,t3_1nwil8j,t3_1oj6vn6,t3_1nuenmd
- include_comment_id (Optional): Whether to include a specific comment ID, default is False. Example: false
- comment_id (Optional): Comment ID (used when include_comment_id is True), format: "t1_XXXXXX"
- need_format (Optional): Whether to clean/sanitize the data. Example: false

Example Response:
{
"code": 0,
"message": "success",
"data": {
"postsInfoByIds": [
  {
    "__typename": "SubredditPost",
    "authorCommunityBadge": null,
    "subreddit": {
      "__typename": "Subreddit",
      "id": "t5_mvcq5",
      "name": "TikTokCringe",
      "prefixedName": "r/TikTokCringe",
      "isQuarantined": false,
      "title": "The Best and Worst of TikTok",
      "type": "PUBLIC",
      "subscribersCount": 5365602,
      "isNsfw": false,
      "isSubscribed": false,
      "isThumbnailsEnabled": true,
      "styles": {
        "icon": "https://styles.redditmedia.com/t5_mvcq5/styles/communityIcon_twjztnhoy2691.jpg?width=64&height=64&frame=1&auto=webp&crop=64:64,smart&s=4372e5388bf0e14e147686cbdb3edf26a872b4de",
        "legacyIcon": null,
        "primaryColor": "#B33BD8",
        "backgroundColor": "#000000",
        "bannerBackgroundImage": "https://styles.redditmedia.com/t5_mvcq5/styles/bannerBackgroundImage_gjg9dsefkz591.jpg?format=pjpg&s=ab45f817c3c7613d0b223efab13391e15ea0b402",
        "legacyPrimaryColor": "#7E53C1"
      },
      "modPermissions": null,
      "communityStatus": null,
      "isTitleSafe": true,
      "isUserBanned": false,
      "tippingStatus": null,
      "whitelistStatus": "SOME_ADS"
    },
    "crosspostRoot": null,
    "id": "t3_1ojnh50",
    "createdAt": "2025-10-30T01:58:59.142000+0000",
    "editedAt"
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/reddit.openapi.json GET /v1/reddit/fetch_post_details_batch_large
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_post_details_batch_large:
    get:
      tags: []
      summary: Fetch Reddit Post Details in Large Batch (Max 30)
      description: >-
        Batch get post details by a large list of post IDs, supports up to 30
        posts per batch, optionally including the context of a specific comment


        Note:

        Supports a maximum of 30 posts per batch

        More than 30 will return an error

        Large batch queries may require longer response times

        The ID format for the APP API differs from the Web API — a type prefix
        is required

        Post ID prefix: t3_ (e.g., t3_1ojnh50)

        Comment ID prefix: t1_ (e.g., t1_abcd123)
      parameters:
        - name: post_ids
          in: query
          description: >-
            Comma-separated list of post IDs, format: "t3_XXXXXX,t3_YYYYYY,...",
            up to 30 posts
          required: true
          example: t3_1ojnh50,t3_1ok432f,t3_1nwil8j,t3_1oj6vn6,t3_1nuenmd
          schema:
            type: string
        - name: include_comment_id
          in: query
          description: Whether to include a specific comment ID, default is False
          required: false
          example: 'false'
          schema:
            type: boolean
            default: false
        - name: comment_id
          in: query
          description: >-
            Comment ID (used when include_comment_id is True), format:
            "t1_XXXXXX"
          required: false
          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:
                  postsInfoByIds:
                    - __typename: SubredditPost
                      authorCommunityBadge: null
                      subreddit:
                        __typename: Subreddit
                        id: t5_mvcq5
                        name: TikTokCringe
                        prefixedName: r/TikTokCringe
                        isQuarantined: false
                        title: The Best and Worst of TikTok
                        type: PUBLIC
                        subscribersCount: 5365602
                        isNsfw: false
                        isSubscribed: false
                        isThumbnailsEnabled: true
                        styles:
                          icon: >-
                            https://styles.redditmedia.com/t5_mvcq5/styles/communityIcon_twjztnhoy2691.jpg?width=64&height=64&frame=1&auto=webp&crop=64:64,smart&s=4372e5388bf0e14e147686cbdb3edf26a872b4de
                          legacyIcon: null
                          primaryColor: '#B33BD8'
                          backgroundColor: '#000000'
                          bannerBackgroundImage: >-
                            https://styles.redditmedia.com/t5_mvcq5/styles/bannerBackgroundImage_gjg9dsefkz591.jpg?format=pjpg&s=ab45f817c3c7613d0b223efab13391e15ea0b402
                          legacyPrimaryColor: '#7E53C1'
                        modPermissions: null
                        communityStatus: null
                        isTitleSafe: true
                        isUserBanned: false
                        tippingStatus: null
                        whitelistStatus: SOME_ADS
                      crosspostRoot: null
                      id: t3_1ojnh50
                      createdAt: 2025-10-30T01:58:59.142000+0000
                      editedAt: null
                      postTitle: '[ 已被版主删除 ]'
                      url: >-
                        https://www.reddit.com/r/TikTokCringe/comments/1ojnh50/%E5%B7%B2%E8%A2%AB%E7%89%88%E4%B8%BB%E5%88%A0%E9%99%A4/
                      content: null
                      domain: v.redd.it
                      isSpoiler: false
                      isNsfw: false
                      isCommercialCommunication: false
                      isLocked: true
                      isSaved: false
                      isReactAllowed: false
                      isHidden: false
                      isGildable: false
                      isCrosspostable: false
                      isScoreHidden: false
                      isArchived: false
                      isStickied: false
                      isPollIncluded: false
                      poll: null
                      isFollowed: false
                      awardingsInfo: null
                      awardings:
                        - __typename: AwardingTotal
                          award:
                            __typename: Award
                            id: award_wholesome_seal
                            name: 正能量
                            tags:
                              - award:legacy
                              - award:group:legacytop
                            static_icon_16:
                              __typename: MediaSource
                              url: >-
                                https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_16.png
                              dimensions:
                                width: 16
                                height: 16
                            static_icon_24:
                              __typename: MediaSource
                              url: >-
                                https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_24.png
                              dimensions:
                                width: 24
                                height: 24
                            static_icon_32:
                              __typename: MediaSource
                              url: >-
                                https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_32.png
                              dimensions:
                                width: 32
                                height: 32
                            static_icon_48:
                              __typename: MediaSource
                              url: >-
                                https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_48.png
                              dimensions:
                                width: 48
                                height: 48
                            static_icon_64:
                              __typename: MediaSource
                              url: >-
                                https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_64.png
                              dimensions:
                                width: 64
                                height: 64
                          total: 1
                      isContestMode: false
                      distinguishedAs: null
                      voteState: NONE
                      score: 33358
                      commentCount: 11462
                      viewCount: null
                      authorFlair: null
                      flair:
                        __typename: PostFlair
                        type: text
                        text: Cringe
                        richtext: null
                        textColor: LIGHT
                        template:
                          id: d74470ce-5c6c-11e9-9455-0e158690b334
                          isEditable: false
                          backgroundColor: '#EA0027'
                      authorInfo:
                        __typename: Redditor
                        id: t2_n5zmzf3v0
                        name: ambachk
                        isBlocked: false
                        isCakeDayNow: false
                        newIcon:
                          __typename: MediaSource
                          url: >-
                            https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b-headshot.png?s=f96f520312f1ccc9ac807f95086bd0104e994b4a
                          dimensions:
                            width: 256
                            height: 256
                        iconSmall:
                          __typename: MediaSource
                          url: >-
                            https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b-headshot.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=1db50c27a77053b8cc9d3ddf09109ebc22224142
                          dimensions:
                            width: 50
                            height: 50
                        snoovatarIcon:
                          __typename: MediaSource
                          url: >-
                            https://i.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfZWI5NTlhNzE1ZGZmZmU2ZjgyZjQ2MDU1MzM5ODJjNDg1OWNiMTRmZV8xNTcxMjU1MA_rare_7f655c9b-871f-4906-97c6-431b2d32153b.png
                          dimensions:
                            width: 380
                            height: 600
                        profile:
                          isNsfw: false
                        accountType: USER
                      isThumbnailEnabled: true
                      thumbnail: null
                      media: null
                      moderationInfo: null
                      suggestedCommentSort: null
                      permalink: /r/TikTokCringe/comments/1ojnh50/已被版主删除/
                      isSelfPost: false
                      postHint: null
                      postEventInfo: null
                      gallery: null
                      devvit: null
                      outboundLink:
                        url: >-
                          https://www.reddit.com/r/TikTokCringe/comments/1ojnh50/%E5%B7%B2%E8%A2%AB%E7%89%88%E4%B8%BB%E5%88%A0%E9%99%A4/
                        expiresAt: 2026-03-05T14:13:49.602894+0000
                      postStats:
                        viewCountTotal: null
                        shareAllTotal: 12621
                      postStatsPrivate:
                        viewCountTotals: null
                      isAuthorBlocked: false
                      upvoteRatio: 0.8373503764285327
                      reactedFrom: null
                      attributionInfo: null
                      crowdControlLevel: 'OFF'
                      isCrowdControlFilterEnabled: false
                      languageCode: en
                      isTranslatable: false
                      isTranslated: false
                      translatedLanguage: null
                      removedByCategory: MODERATOR
                      modContentDiscussion: null
                      predictedRemovalSavedResponses: []
                    - __typename: DeletedSubredditPost
                    - __typename: DeletedSubredditPost
                    - __typename: DeletedSubredditPost
                    - __typename: ProfilePost
                      crosspostRoot: null
                      promotedCommunityPost: null
                      id: t3_1nuenmd
                      createdAt: 2025-09-30T14:26:35.552000+0000
                      editedAt: null
                      postTitle: We don't make shoes. We design walking machines.
                      url: https://v.redd.it/5zg0q12ct9sf1
                      content: null
                      domain: ad.doubleclick.net
                      isSpoiler: false
                      isNsfw: false
                      isCommercialCommunication: false
                      isLocked: true
                      isSaved: false
                      isReactAllowed: false
                      isHidden: false
                      isGildable: false
                      isCrosspostable: false
                      isScoreHidden: true
                      isArchived: false
                      isStickied: false
                      isPollIncluded: false
                      poll: null
                      isFollowed: false
                      awardings: []
                      isContestMode: false
                      distinguishedAs: null
                      voteState: NONE
                      score: null
                      commentCount: 0
                      viewCount: null
                      authorFlair: null
                      flair: null
                      authorInfo:
                        __typename: Redditor
                        id: t2_1ybwblfqjw
                        name: catfootwear
                        isBlocked: false
                        isCakeDayNow: false
                        newIcon:
                          __typename: MediaSource
                          url: >-
                            https://styles.redditmedia.com/t5_fhp41z/styles/profileIcon_tsyygv5xtbsf1.jpg?s=e9c6ad0c1a7fc5987014c20d4d812e3f086459b0
                          dimensions:
                            width: 256
                            height: 256
                        iconSmall:
                          __typename: MediaSource
                          url: >-
                            https://styles.redditmedia.com/t5_fhp41z/styles/profileIcon_tsyygv5xtbsf1.jpg?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=9fa8c6cb23935beaff9628fc727a3fed54570721
                          dimensions:
                            width: 50
                            height: 50
                        snoovatarIcon: null
                        profile:
                          isNsfw: false
                        accountType: USER
                      isThumbnailEnabled: true
                      thumbnail:
                        __typename: MediaSource
                        url: >-
                          https://preview.redd.it/d7pzz1tuabsf1.png?auto=webp&s=7c7a04b80e2590e06f249dd1fd304836a0f9c5fa
                        dimensions:
                          width: 1920
                          height: 1080
                      media:
                        __typename: Media
                        previewMediaId: hZAyNy-L-cLtk6VYJdJvXXEHWr4lNTCJG8NoGg9hYYw
                        still:
                          __typename: StillMedia
                          source:
                            __typename: MediaSource
                            url: >-
                              https://external-preview.redd.it/QurojRig5gO4Ou6BoM0w5qaJmSmJPA12HkSzadEZdNw.png?format=pjpg&auto=webp&s=7d3b659300f7a45b53134e19a20ef4df292d86e7
                            dimensions:
                              width: 1920
                              height: 1080
                          small:
                            __typename: MediaSource
                            url: >-
                              https://external-preview.redd.it/QurojRig5gO4Ou6BoM0w5qaJmSmJPA12HkSzadEZdNw.png?width=108&format=pjpg&auto=webp&s=3ebcd2de6c37eaf0bd95b0c0b775f9e7d9226d85
                            dimensions:
                              width: 108
                              height: 60
                          medium:
                            __typename: MediaSource
                            url: >-
                              https://external-preview.redd.it/QurojRig5gO4Ou6BoM0w5qaJmSmJPA12HkSzadEZdNw.png?width=216&format=pjpg&auto=webp&s=60316782820b52f20c8caffbe87bb9975f398138
                            dimensions:
                              width: 216
                              height: 121
                          large:
                            __typename: MediaSource
                            url: >-
                              https://external-preview.redd.it/QurojRig5gO4Ou6BoM0w5qaJmSmJPA12HkSzadEZdNw.png?width=320&format=pjpg&auto=webp&s=1b19177048ac4a33cdebebc0c996243f07fb3376
                            dimensions:
                              width: 320
                              height: 180
                          xlarge:
                            __typename: MediaSource
                            url: >-
                              https://external-preview.redd.it/QurojRig5gO4Ou6BoM0w5qaJmSmJPA12HkSzadEZdNw.png?width=640&format=pjpg&auto=webp&s=76680d50b839211ab8c6a189d83ac86c869d82dd
                            dimensions:
                              width: 640
                              height: 360
                          xxlarge:
                            __typename: MediaSource
                            url: >-
                              https://external-preview.redd.it/QurojRig5gO4Ou6BoM0w5qaJmSmJPA12HkSzadEZdNw.png?width=960&format=pjpg&auto=webp&s=88c5a768e93cb0a3c0dfc17bd8e3c3c5e9514367
                            dimensions:
                              width: 960
                              height: 540
                          xxxlarge:
                            __typename: MediaSource
                            url: >-
                              https://external-preview.redd.it/QurojRig5gO4Ou6BoM0w5qaJmSmJPA12HkSzadEZdNw.png?width=1080&format=pjpg&auto=webp&s=38da9282f08d3f538335a68cbc9b8a567bfe8f4a
                            dimensions:
                              width: 1080
                              height: 607
                          altText: null
                        obfuscated_still:
                          __typename: StillMedia
                          source: null
                          small: null
                          medium: null
                          large: null
                          xlarge: null
                          xxlarge: null
                          xxxlarge: null
                        animated: null
                        streaming:
                          __typename: StreamingMedia
                          hlsUrl: >-
                            https://v.redd.it/5zg0q12ct9sf1/HLSPlaylist.m3u8?f=hd%2ChlsTrimLow%2ChlsSpecOrder2&v=1&a=1775294029%2CODBmOWMwZWI3YTIyNzE4Y2I2NmViY2RhM2UxMjliNTIwZjUxODQzOTM2YWE5NGExZThjOTFjZGM1MzU5MDQxZQ%3D%3D
                          dashUrl: >-
                            https://v.redd.it/5zg0q12ct9sf1/DASHPlaylist.mpd?f=hd%2ChlsTrimLow%2ChlsSpecOrder2&v=1&a=1775294029%2CYzE1YWIwOThiOTYyNWFkMjcxYWQ2ZjdmYWYwZTU2ZjFmZDMyMDRiZTg5ZGJmYjQ4MDM2MGYyYjZmMWJhNmZmZQ%3D%3D
                          scrubberMediaUrl: https://v.redd.it/5zg0q12ct9sf1/DASH_96.mp4
                          dimensions:
                            width: 1920
                            height: 1080
                          duration: 15
                          isGif: false
                        video: null
                        packagedMedia:
                          __typename: PackagedMedia
                          muxedMp4s: null
                        typeHint: VIDEO
                        download: null
                      moderationInfo: null
                      suggestedCommentSort: QA
                      permalink: >-
                        /user/catfootwear/comments/1nuenmd/we_dont_make_shoes_we_design_walking_machines/
                      isSelfPost: false
                      postHint: HOSTED_VIDEO
                      postEventInfo: null
                      gallery: null
                      devvit: null
                      profile:
                        __typename: Profile
                        redditorInfo:
                          __typename: Redditor
                          id: t2_1ybwblfqjw
                          name: catfootwear
                          prefixedName: u/catfootwear
                          accountType: USER
                        id: t5_fhp41z
                        description: null
                        subscribersCount: 0
                        isNsfw: false
                        isModeratable: false
                        modPermissions: null
                        name: u_catfootwear
                        styles:
                          icon: >-
                            https://styles.redditmedia.com/t5_fhp41z/styles/profileIcon_tsyygv5xtbsf1.jpg?width=64&height=64&frame=1&auto=webp&crop=64:64,smart&s=0a986487962590cb42580419388abba151c12c9d
                          legacyIcon:
                            __typename: MediaSource
                            url: >-
                              https://styles.redditmedia.com/t5_fhp41z/styles/profileIcon_tsyygv5xtbsf1.jpg?width=256&height=256&frame=1&auto=webp&crop=256:256,smart&s=6cc292ce724e95e1023abb87475f33d67f09412e
                            dimensions:
                              width: 256
                              height: 256
                          legacyPrimaryColor: null
                      outboundLink:
                        url: >-
                          https://ad.doubleclick.net/ddm/trackclk/N800582.3146755REDDITPLACEMENT/B33146263.429725512;dc_trk_aid=623002881;dc_trk_cid=241924606;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_755};ltd=;dc_tdv=1
                        expiresAt: null
                      adSupplementaryTextRichtext: null
                      callToAction: Learn More
                      postStats:
                        viewCountTotal: null
                        shareAllTotal: 839
                      postStatsPrivate:
                        viewCountTotals: null
                      isAuthorBlocked: false
                      upvoteRatio: 0.049300060864272674
                      reactedFrom: null
                      attributionInfo: null
                      crowdControlLevel: 'OFF'
                      isCrowdControlFilterEnabled: false
                      languageCode: null
                      isTranslatable: false
                      isTranslated: false
                      translatedLanguage: null
                      removedByCategory: null
                requestId: 917dcce3-2d31-4a2e-b869-5bd71621a737
          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_post_details_batch_large?post_ids=t3_1ojnh50%2Ct3_1ok432f%2Ct3_1nwil8j%2Ct3_1oj6vn6%2Ct3_1nuenmd&include_comment_id=false&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_post_details_batch_large',
                params={"post_ids": "t3_1ojnh50,t3_1ok432f,t3_1nwil8j,t3_1oj6vn6,t3_1nuenmd", "include_comment_id": "false", "need_format": "false"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"post_ids":
            "t3_1ojnh50,t3_1ok432f,t3_1nwil8j,t3_1oj6vn6,t3_1nuenmd",
            "include_comment_id": "false", "need_format": "false"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/reddit/fetch_post_details_batch_large?${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).

````