Reddit subreddit posts
Retrieve subreddit posts with the Reddit API. The request accepts a sort order when provided. Use it for discussion discovery and community research. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
- Selected price
- $0.00188 / callPublished pricing
- Sellers / implementations
- 2 / 2
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
Current Reddit — Subreddit Posts · GET | $0.00188 / call | — | —successP50— | |
| Fetch Reddit APP Subreddit Feed · GET | $0.001 / call | —Select to load statistics | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
afterstringcredits_chargedintegercredits_remainingintegerpostsobject[]authorstringauthor_fullnamestringcreatedintegercreated_utcintegerdownsintegeridstringis_videobooleanlink_flair_textnullnamestringnum_commentsintegerscoreintegerselftextstringselftext_htmlstringsubredditstringsubreddit_subscribersintegertitlestringtotal_awards_receivedintegerupsintegerupvote_rationumberurlstring
successboolean
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
after?: string;
credits_charged?: number;
credits_remaining?: number;
posts?: Array<{
author?: string;
author_fullname?: string;
created?: number;
created_utc?: number;
downs?: number;
id?: string;
is_video?: boolean;
link_flair_text?: null;
name?: string;
num_comments?: number;
score?: number;
selftext?: string;
selftext_html?: string;
subreddit?: string;
subreddit_subscribers?: number;
title?: string;
total_awards_received?: number;
ups?: number;
upvote_ratio?: number;
url?: string;
}>;
success?: boolean;
};- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit?subreddit=AskReddit' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
subreddit | URL query parametersquery | string | Yes | Subreddit name |
timeframe | URL query parametersquery | string | No | Timeframe to get posts from enum: "all", "day", "week", "month", "year" |
sort | URL query parametersquery | string | No | Sort order enum: "best", "hot", "new", "top", "rising" |
after | URL query parametersquery | string | No | After to get more posts. Get 'after' from previous response. |
trim | URL query parametersquery | boolean | No | Set to true for a trimmed down version of the response |
cache_max_age | URL query parametersquery | string | No | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching) enum: "1d", "3d", "7d", "14d", "30d" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"after": "t3_1lfogps",
"credits_charged": 1,
"credits_remaining": 1000000,
"posts": [
{
"author": "Vetro_Nodulare2",
"author_fullname": "t2_16syu27ar1",
"created": 1750341959,
"created_utc": 1750341959,
"downs": 0,
"id": "1lfbo7u",
"is_video": false,
"link_flair_text": null,
"name": "t3_1lfbo7u",
"num_comments": 349,
"score": 45,
"selftext": "",
"selftext_html": "",
"subreddit": "AskReddit",
"subreddit_subscribers": 56146328,
"title": "What is a thing you love that lots of people hate?",
"total_awards_received": 0,
"ups": 45,
"upvote_ratio": 0.9,
"url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/"
}
],
"success": true
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Reddit subreddit posts
Retrieve subreddit posts with the Reddit API. The request accepts a sort order when provided. Use it for discussion discovery and community research. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
scrapecreators · Reddit — Subreddit Posts: https://openany.si/markets/apis/capabilities/reddit-subreddit-posts-89e98708?offering=3b0d4b6c-671d-45c3-a8fc-8735cda6d2ad · $0.00188 / call
tikhub · Fetch Reddit APP Subreddit Feed: https://openany.si/markets/apis/capabilities/reddit-subreddit-posts-89e98708?offering=4663f4e8-e75a-4eec-84bb-634425f830bd · $0.001 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/reddit-subreddit-posts-89e98708
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit
Price: $0.00188 / call
Provider: scrapecreators
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit?subreddit=AskReddit' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Reddit — Subreddit Posts",
"endpoint": "https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Subreddit name",
"location": "query",
"name": "subreddit",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Timeframe to get posts from",
"enum_values": [
"all",
"day",
"week",
"month",
"year"
],
"location": "query",
"name": "timeframe",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Sort order",
"enum_values": [
"best",
"hot",
"new",
"top",
"rising"
],
"location": "query",
"name": "sort",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "After to get more posts. Get 'after' from previous response.",
"location": "query",
"name": "after",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Set to true for a trimmed down version of the response",
"location": "query",
"name": "trim",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with \"cached\": true and a \"cached_at\" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching)",
"enum_values": [
"1d",
"3d",
"7d",
"14d",
"30d"
],
"location": "query",
"name": "cache_max_age",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "1880",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"subreddit": "AskReddit"
}
},
"response_body": {
"after": "t3_1lfogps",
"credits_charged": 1,
"credits_remaining": 1000000,
"posts": [
{
"author": "Vetro_Nodulare2",
"author_fullname": "t2_16syu27ar1",
"created": 1750341959,
"created_utc": 1750341959,
"downs": 0,
"id": "1lfbo7u",
"is_video": false,
"link_flair_text": null,
"name": "t3_1lfbo7u",
"num_comments": 349,
"score": 45,
"selftext": "",
"selftext_html": "",
"subreddit": "AskReddit",
"subreddit_subscribers": 56146328,
"title": "What is a thing you love that lots of people hate?",
"total_awards_received": 0,
"ups": 45,
"upvote_ratio": 0.9,
"url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/"
}
],
"success": true
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 6
Review these request fields before running. Keep the published provider and request method unchanged.
subreddit- Subreddit name
timeframe- Timeframe to get posts from
sort- Sort order
after- After to get more posts. Get 'after' from previous response.
trim- Set to true for a trimmed down version of the response
cache_max_age- If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching)
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/scrapecreators/v1/reddit/subreddit?subreddit=AskReddit' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "after": "t3_1lfogps", "credits_charged": 1, "credits_remaining": 1000000, "posts": [ { "author": "Vetro_Nodulare2", "author_fullname": "t2_16syu27ar1", "created": 1750341959, "created_utc": 1750341959, "downs": 0, "id": "1lfbo7u", "is_video": false, "link_flair_text": null, "name": "t3_1lfbo7u", "num_comments": 349, "score": 45, "selftext": "", "selftext_html": "", "subreddit": "AskReddit", "subreddit_subscribers": 56146328, "title": "What is a thing you love that lots of people hate?", "total_awards_received": 0, "ups": 45, "upvote_ratio": 0.9, "url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/" } ], "success": true }
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.
Use Reddit subreddit posts with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.