KonbiniAPI

Search subreddit posts — Reddit API

Searches public Reddit posts within a subreddit. Supports relevance, hot, top, new, and comments sorting with optional time windows, and can be limited to formats such as images or videos.

GET/v1/reddit/subreddits/{subreddit}/search/posts1 credit per request
Example response200OK
{
  "data": {
    "@context": [
      "https://www.w3.org/ns/activitystreams#",
      "https://konbiniapi.com/ns/social#"
    ],
    "type": "OrderedCollectionPage",
    "partOf": "https://api.konbiniapi.com/v1/reddit/subreddits/reddit/search/posts?query=community%20values",
    "totalItems": 1309,
    "cursor": null,
    "nextCursor": "t3_1l2hl4l",
    "next": "https://api.konbiniapi.com/v1/reddit/subreddits/reddit/search/posts?query=community%20values&cursor=t3_1l2hl4l&count=25&order=top&published=week",
    "itemCount": 30,
    "orderedItems": [
      {
        "type": "Note",
        "id": "https://www.reddit.com/r/reddit/comments/suvhyq/reddit_community_values/",
        "url": "https://www.reddit.com/r/reddit/comments/suvhyq/reddit_community_values/",
        "entityId": "suvhyq",
        "name": "Reddit Community Values",
        "content": "Hi everyone. \n\nOver the last sixteen years, I’ve watched as you have organized into thousands of communities, created an endless amount of fun and interesting content, supported one another, and galvanized global movements. \n\nBolstering that growth has been sets of…",
        "published": "2022-02-17T18:20:38.000Z",
        "isEdited": false,
        "isLocked": false,
        "isOriginal": false,
        "isPinned": false,
        "isSponsored": false,
        "isAdult": false,
        "isSpoiler": false,
        "isSearchable": true,
        "isControversial": false,
        "removedBy": "moderator",
        "likeCount": 1422,
        "score": 1422,
        "voteCount": 1422,
        "upvoteRatio": 0.86,
        "commentCount": 882,
        "shareCount": 9,
        "duplicateCount": 3,
        "contentFormat": "text",
        "repostOf": {
          "type": "Note",
          "id": "https://www.reddit.com/r/announcements/comments/pg006s/covid_denialism_and_policy_clarifications/",
          "url": "https://www.reddit.com/r/announcements/comments/pg006s/covid_denialism_and_policy_clarifications/",
          "entityId": "pg006s"
        },
        "attributedTo": {
          "type": "Person",
          "id": "https://www.reddit.com/user/spez/",
          "url": "https://www.reddit.com/user/spez/",
          "preferredUsername": "spez",
          "name": "spez",
          "isPremium": true,
          "role": "admin",
          "tag": [
            {
              "type": "Tag",
              "name": "reddit",
              "href": "https://www.reddit.com/r/reddit/",
              "icon": {
                "type": "Image",
                "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
                "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
                "width": 1536,
                "height": 528
              }
            }
          ]
        },
        "icon": {
          "type": "Image",
          "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
          "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
          "width": 1536,
          "height": 528
        },
        "image": [
          {
            "type": "Image",
            "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
            "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
            "width": 1536,
            "height": 528
          }
        ],
        "attachment": [
          {
            "type": "Image",
            "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
            "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
            "width": 1536,
            "height": 528
          }
        ],
        "tag": [
          {
            "type": "Tag",
            "name": "reddit",
            "href": "https://www.reddit.com/r/reddit/",
            "icon": {
              "type": "Image",
              "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
              "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
              "width": 1536,
              "height": 528
            }
          }
        ],
        "quote": {
          "type": "Note",
          "id": "https://www.reddit.com/user/spez/comments/1vgbkge/modernizing_reddits_infrastructure_with_you/",
          "url": "https://www.reddit.com/user/spez/comments/1vgbkge/modernizing_reddits_infrastructure_with_you/",
          "entityId": "1vgbkge",
          "name": "Modernizing Reddit’s infrastructure with you",
          "content": "Hi everyone,\n\nLast May, I shared how we were building Reddit for its [next chapter](https://www.reddit.com/user/spez/comments/1kfciml/reddits_next_chapter_smarter_easier_still_human/). I owe you an update, including a few changes I know some people will have strong opinions…",
          "published": "2026-08-05T16:03:56.000Z",
          "isEdited": true,
          "isLocked": false,
          "isOriginal": false,
          "isPinned": false,
          "isSponsored": false,
          "isAdult": false,
          "isSpoiler": false,
          "isSearchable": true,
          "removedBy": "moderator",
          "likeCount": 352,
          "score": 352,
          "voteCount": 352,
          "commentCount": 478,
          "shareCount": 7,
          "contentFormat": "text",
          "attributedTo": {
            "type": "Person",
            "id": "https://www.reddit.com/user/spez/",
            "url": "https://www.reddit.com/user/spez/",
            "preferredUsername": "spez",
            "name": "spez",
            "isPremium": true,
            "role": "admin",
            "tag": [
              {
                "type": "Tag",
                "name": "reddit",
                "href": "https://www.reddit.com/r/reddit/",
                "icon": {
                  "type": "Image",
                  "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
                  "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
                  "width": 1536,
                  "height": 528
                }
              }
            ]
          },
          "icon": {
            "type": "Image",
            "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
            "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
            "width": 1536,
            "height": 528
          },
          "image": [
            {
              "type": "Image",
              "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
              "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
              "width": 1536,
              "height": 528
            }
          ],
          "attachment": [
            {
              "type": "Image",
              "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
              "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
              "width": 1536,
              "height": 528
            }
          ],
          "tag": [
            {
              "type": "Tag",
              "name": "reddit",
              "href": "https://www.reddit.com/r/reddit/",
              "icon": {
                "type": "Image",
                "url": "https://external-preview.redd.it/WSqGR2511AQXIN172aycw9idD-3ENHc5hT_1a0M_2UQ.jpg?auto=webp&s=e4d15f89f1797d8111aeddd772534952d0adae50",
                "entityId": "nYKpDhp2hxECJAtPQcH3bEnaXSyk_O8cQKeLCmKEzyw",
                "width": 1536,
                "height": 528
              }
            }
          ],
          "upvoteRatio": 0.84
        }
      }
    ]
  }
}

Make the request.

One authenticated GET to /v1/reddit/subreddits/{subreddit}/search/posts. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.

Built for

  • Find posts about a specific topic within a community
  • Brand mention monitoring inside niche subreddits
  • Content research for competitive analysis
const response = await fetch("https://api.konbiniapi.com/v1/reddit/subreddits/reddit/search/posts?query=reddit+community+values", {
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});

const data = await response.json();
Parameters7
  • subredditrequiredIn · PathType · stringSubreddit name (with or without r/ prefix)
  • queryrequiredIn · QueryType · stringSearch query. Supports author:name, "phrase" and -word to exclude
  • countIn · QueryType · integerNumber of posts to fetch (maximum: 100)1–100default 25
  • cursorIn · QueryType · stringPagination cursor
  • orderIn · QueryType · stringSort order: relevance (default), hot, top, new, or commentsrelevance | hot | top | new | commentsdefault relevance
  • publishedIn · QueryType · stringOptional time window for search results: hour, day, week, month, year, or allhour | day | week | month | year | all
  • formatsIn · QueryType · stringComma-separated content formats to include: image, video, gallery, gif, text, link

Try it on your own data.

Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.