Reddit API

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.

POST/v1/run/reddit.post
Uptime
100.00%
30d · 4,890 calls
Requests
4,890
30d · weekly, last 12 wks
Response
1.4s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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
}
Response interface
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 30d
POST /v1/run/reddit.post
curl -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/"}'
FieldTypeExample value
Request body
urlstring"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
dataobjectThe post record, or null when nothing was found.
data.authorstringAuthor username, without the u/ prefix. Populated whenever the provider has data for the entity.
data.bodystringThe 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.createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
data.idstringReddit post ID (base-36, without the t3_ prefix). Populated whenever the provider has data for the entity.
data.imagestringPreview 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.isArchivedbooleanTrue 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.isLockedbooleanTrue 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.isNsfwbooleanTrue when the post is marked NSFW (over 18).
data.numCommentsintegerTotal number of comments on the post.
data.permalinkstringCanonical 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.scoreintegerNet score (upvotes minus downvotes) at fetch time.
data.subredditstringSubreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
data.titlestringPost title. Populated whenever the provider has data for the entity.
data.upvoteRationumberFraction of votes that are upvotes, between 0 and 1. Zero when the upstream does not report it.
data.urlstringThe 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.
foundbooleanTrue when the post was found; false when the lookup returned nothing.
Price
Price per requestUSD$0.0005
Price /1k reqUSD$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.

It costs from $0.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.