Reddit Post API
Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"data": {
"author": "Alex Rivera",
"body": "A short example description of this item.",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"isArchived": false,
"isLocked": true,
"isNsfw": true,
"numComments": 12500,
"permalink": "https://example.com/page",
"score": 5,
"subreddit": "example",
"title": "Example title",
"upvoteRatio": 12.5,
"url": "https://example.com/page"
},
"found": true
}interface RedditPostResponse {
data: {
author: string;
body?: string;
createdUtc: number;
id: string;
image?: string;
isArchived?: boolean;
isLocked?: boolean;
isNsfw?: boolean;
numComments: number;
permalink: string;
score: number;
subreddit: string;
title: string;
upvoteRatio?: number;
url: string;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/reddit.post \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| url | string | "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/"Full Reddit post URL in the /r/<subreddit>/comments/<id>/<slug>/ form, e.g. "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/". The short "reddit.com/comments/<id>" form is not accepted. |
| Response | ||
| data | object | The post record, or null when nothing was found. |
| data.author | string | Author username, without the u/ prefix. Populated whenever the provider has data for the entity. |
| data.body | string | The post's own body text (selftext), as Markdown. Empty for link posts, which carry no body. Populated whenever the provider has data for the entity. |
| data.createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.id | string | Reddit post ID (base-36, without the t3_ prefix). Populated whenever the provider has data for the entity. |
| data.image | string | Preview image for the post, when Reddit generated one. Reddit signs this URL and it is time-limited, so fetch it promptly rather than storing it; the query string carries the signature and must be kept intact. Empty when the post has no preview image. |
| data.isArchived | boolean | True when Reddit has archived the thread, which blocks new comments and votes. Archiving is a per-community setting, so an old thread is not necessarily archived. Absent when the source that served this request does not report it, which means unknown rather than false. |
| data.isLocked | boolean | True when a moderator has locked the thread, which blocks new comments. Absent when the source that served this request does not report it, which means unknown rather than false. |
| data.isNsfw | boolean | True when the post is marked NSFW (over 18). |
| data.numComments | integer | Total number of comments on the post. |
| data.permalink | string | Canonical reddit.com thread path for the post (e.g. "/r/golang/comments/abc123/..."). Differs from url, which is the destination link. Empty if the upstream omits it. Populated whenever the provider has data for the entity. |
| data.score | integer | Net score (upvotes minus downvotes) at fetch time. |
| data.subreddit | string | Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity. |
| data.title | string | Post title. Populated whenever the provider has data for the entity. |
| data.upvoteRatio | number | Fraction of votes that are upvotes, between 0 and 1. Zero when the upstream does not report it. |
| data.url | string | The post's destination link (the external URL for link posts, or the thread URL for self posts). Populated whenever the provider has data for the entity. |
| found | boolean | True when the post was found; false when the lookup returned nothing. |
| Price | ||
| Price per request | USD | $0.0005 |
| Price /1k req | USD | $0.50 |
FAQ
About the Reddit Post API
The AnyAPI Reddit Post API returns Reddit post data as normalized JSON from one POST call to /v1/run/reddit.post. Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON. AnyAPI routes each request across 4 sources and falls back automatically when one fails. It costs from $0.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Reddit post calls through AnyAPI succeeded, with a median response time of 1.4 seconds across 4,890 measured calls.