Skip to main content
Reddit data via Apify. Search posts across subreddits by keyword, returning titles, bodies, votes, authors, and timestamps. Keep maxItems small to stay inside the sync timeout. 1 endpoint available through Lava’s AI Gateway. See the Reddit API docs for full documentation.
Supports both managed (Lava’s API keys) and unmanaged (bring your own credentials) mode.

Endpoints

Search Reddit posts across all subreddits by keyword. Returns title, body, votes, author, subreddit, timestamps, and media. Use searches (array of queries) with maxItems to cap result count. IMPORTANT: this runs synchronously through the gateway’s short serverless function window, keep maxItems small (≤10) and set skipComments: true and skipUserPosts: true to stay inside the window. Larger queries will 504-timeout. For more results, break into multiple calls or use targeted subreddit URLs via startUrls instead of cross-Reddit search. $3.40 per 1,000 results.

POST https://api.apify.com/v2/acts/trudax~reddit-scraper-lite/run-sync-get-dataset-items — $0.085 / request
const data = await lava.gateway('https://api.apify.com/v2/acts/trudax~reddit-scraper-lite/run-sync-get-dataset-items', {
  body: {
"searches": [
  "AI agents paid APIs"
],
"maxItems": 5,
"searchPosts": true,
"searchComments": false,
"skipUserPosts": true,
"skipComments": true,
"proxy": {
  "useApifyProxy": true
}
},
});

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests