KonbiniAPI

Search subreddit posts from Reddit with KonbiniAPI

Returns posts matching a search query within a specific Reddit subreddit. Supports sorting by relevance, top, new, and more.

This API endpoint returns posts matching a search query within a specific Reddit subreddit. Supports sorting by relevance, top, new, and more.

Perfect for

  • Find posts about a specific topic within a community
  • Brand mention monitoring inside niche subreddits
  • Content research for competitive analysis

1. Make the request

const response = await fetch("https://api.konbiniapi.com/v1/reddit/subreddits/programming/search?q=openai", {
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});

const data = await response.json();

2. Get clean JSON

Response (200 OK)
{
  "data": {
    "type": "OrderedCollectionPage",
    "totalItems": 1309,
    "itemCount": 25,
    "orderedItems": [
      {
        "type": "Note",
        "name": "Launch day",
        "likeCount": 93210,
        "published": "2026-02-27T20:37:38.000Z"
      }
    ]
  }
}