LurkAPI
Docs · Post comments

Post comments

A Reddit post and its comment thread, with nested replies.

1 credit per callFresh within 1 minuteMCP tool: reddit_post_comments
GEThttps://api.lurkapi.com/v1/reddit/post/comments

Example response

When to use this

Use it to read a thread and learn what people really think: objections, feature requests, the words customers use. You get the post and its comments, best first, with replies nested under replies.items.

Loading more. Reddit loads long threads in batches. Wherever more.has_more is true (at the top level, or inside any comment's replies), pass that more.next_cursor as cursor, with the same url, to load that batch. Those responses have post: null.

Unknown or removed posts return 404 not_found.

Example request

Copy one and replace YOUR_API_KEY with your API key (get one free). The code versions read the key from the LURKAPI_API_KEY environment variable instead.

Language

Parameters

Add them to the URL after a ?. Join several with &.

ParameterDescription
url
stringrequired
The post's URL, e.g. https://www.reddit.com/r/marketing/comments/1wsx466/. A /r/… path works too.
Example
https://www.reddit.com/r/marketing/comments/1wsx466/want_to_become_an_llm_expert_in_marketing_where/
cursor
stringoptional
A more.next_cursor from a previous response, to load that batch of comments.
trim
booleanoptional
true omits the post's selftext_html.
One of
truefalse
Default
false

Example response

A real response, captured from the live API. Lists are trimmed to a couple of items, and long text such as media links is cut short with ….

Show the example response (5 KB)
{
  "success": true,
  "credits_remaining": 999958,
  "credits_charged": 1,
  "post": {
    "id": "1wsx466",
    "name": "t3_1wsx466",
    "title": "Want to become an LLM expert in marketing , where do I start?",
    "author": "Due-Doughnut1818",
    "author_fullname": "t2_1vwbrgv4me",
    "subreddit": "marketing",
    "subreddit_id": "t5_2qhmg",
    "subreddit_name_prefixed": "r/marketing",
    "permalink": "/r/marketing/comments/1wsx466/want_to_become_an_llm_expert_in_marketing_where/",
    "url": "https://www.reddit.com/r/marketing/comments/1wsx466/want_to_become_an_ll…",
    "domain": "self.marketing",
    "score": 0,
    "ups": 0,
    "upvote_ratio": 0.27,
    "num_comments": 20,
    "created": 1790645795,
    "created_utc": 1790645795,
    "is_self": true,
    "is_video": false,
    "over_18": false,
    "spoiler": false,
    "stickied": false,
    "locked": false,
    "link_flair_text": "Question",
    "link_flair_background_color": "#94E044",
    "selftext": "I want to be LLM expert but in marketing. so i working in marketing soci…",
    "selftext_html": "<p>I want to be LLM expert but in marketing. so i working in marketing s…",
    "thumbnail": null,
    "total_awards_received": 0,
    "crosspost_parent_list": null,
    "poll_data": null,
    "gallery_data": null,
    "media": null
  },
  "comments": [
    {
      "id": "pcrhmoe",
      "name": "t1_pcrhmoe",
      "author": "thesupermikey",
      "author_fullname": "t2_4ipwa",
      "body": "Too late. We’ve all moved on to hand written postcards and sound powered landlines.",
      "body_html": "<p>Too late. We’ve all moved on to hand written postcards and sound powered landlines.</p>",
      "score": 18,
      "ups": 18,
      "created": 1790678974,
      "created_utc": 1790678974,
      "created_at_iso": "2026-09-29T10:49:34.000Z",
      "depth": 0,
      "parent_id": "t3_1wsx466",
      "link_id": "t3_1wsx466",
      "permalink": "/r/marketing/comments/1wsx466/want_to_become_an_llm_expert_in_marketing_where/pcrhmoe/",
      "url": "https://www.reddit.com/r/marketing/comments/1wsx466/want_to_become_an_ll…",
      "subreddit": "marketing",
      "subreddit_id": "t5_2qhmg",
      "subreddit_name_prefixed": "r/marketing",
      "collapsed": false,
      "is_submitter": false,
      "replies": {
        "items": [],
        "more": {
          "has_more": false,
          "next_cursor": null
        }
      }
    },
    {
      "id": "pcqrrwb",
      "name": "t1_pcqrrwb",
      "author": "[deleted]",
      "author_fullname": null,
      "body": "",
      "body_html": null,
      "score": 1,
      "ups": 1,
      "created": 1790666431,
      "created_utc": 1790666431,
      "created_at_iso": "2026-09-29T07:20:31.000Z",
      "depth": 0,
      "parent_id": "t3_1wsx466",
      "link_id": "t3_1wsx466",
      "permalink": "/r/marketing/comments/1wsx466/want_to_become_an_llm_expert_in_marketing_where/pcqrrwb/",
      "url": "https://www.reddit.com/r/marketing/comments/1wsx466/want_to_become_an_ll…",
      "subreddit": "marketing",
      "subreddit_id": "t5_2qhmg",
      "subreddit_name_prefixed": "r/marketing",
      "collapsed": true,
      "is_submitter": false,
      "replies": {
        "items": [
          {
            "id": "pcqrryc",
            "name": "t1_pcqrryc",
            "author": "AutoModerator",
            "author_fullname": "t2_6l4z3",
            "body": "Your account must be 30+ days old and it must have 300+ karma to post in…",
            "body_html": "<p>Your account must be 30+ days old and it must have 300+ karma to post…",
            "score": 1,
            "ups": 1,
            "created": 1790666432,
            "created_utc": 1790666432,
            "created_at_iso": "2026-09-29T07:20:32.000Z",
            "depth": 1,
            "parent_id": "t1_pcqrrwb",
            "link_id": "t3_1wsx466",
            "permalink": "/r/marketing/comments/1wsx466/want_to_become_an_llm_expert_in_marketing_where/pcqrryc/",
            "url": "https://www.reddit.com/r/marketing/comments/1wsx466/want_to_become_an_ll…",
            "subreddit": "marketing",
            "subreddit_id": "t5_2qhmg",
            "subreddit_name_prefixed": "r/marketing",
            "collapsed": false,
            "is_submitter": false,
            "replies": {
              "items": [],
              "more": {
                "has_more": false,
                "next_cursor": null
              }
            }
          }
        ],
        "more": {
          "has_more": false,
          "next_cursor": null
        }
      }
    }
  ],
  "more": {
    "has_more": false,
    "next_cursor": null
  }
}

Response fields

Every field in a successful response, and what it means. A name with [] belongs to each item of a list: post.crosspost_parent_list[].id is the id of every item in post.crosspost_parent_list. null means there's no value.

Show all 94 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
postobjectcan be nullThe post. null on cursor responses.
post.idstringPost id, e.g. 1wtfnyr.
post.namestringFullname, t3_ + id. Subreddit listings paginate with it.
post.titlestringPost title.
post.authorstringcan be nullUsername, without u/; null if unknown.
post.author_fullnamestringcan be nullAuthor's account fullname, t2_ + id; null if unknown.
post.subredditstringSubreddit name without r/, e.g. marketing.
post.subreddit_idstringcan be nullSubreddit fullname, t5_ + id.
post.subreddit_name_prefixedstringcan be nullSubreddit name with the r/ prefix, e.g. r/marketing.
post.permalinkstringPath on reddit.com; prepend https://www.reddit.com.
post.urlstringThe link a link post points to (the original post for crossposts), or the post itself for text posts.
post.url_overridden_by_deststringmay be missingOutbound link, on link posts only.
post.domainstringcan be nullself.<subreddit> for text posts, else the linked site.
post.selftextstringPost body as plain text. Empty for link, media and crosspost posts.
post.selftext_htmlstringcan be null · may be missingPost body as HTML. Omitted with trim=true.
post.scorenumberUpvotes minus downvotes.
post.upsnumberSame as score.
post.upvote_rationumbercan be nullShare of votes that are upvotes, 0–1.
post.num_commentsnumberComment count when fetched.
post.creatednumberPosted at, Unix seconds.
post.created_utcnumberPosted at, Unix seconds.
post.is_selfbooleanA text post rather than a link.
post.is_videobooleanA video post.
post.is_gallerybooleanmay be missingPresent (true) on image galleries; absent otherwise.
post.over_18booleanMarked NSFW.
post.spoilerbooleanMarked as a spoiler.
post.stickiedbooleanPinned by moderators.
post.lockedbooleanLocked: no new comments allowed.
post.link_flair_textstringcan be nullPost flair, e.g. "Question"; null without flair.
post.link_flair_background_colorstringcan be nullFlair color as a hex code, e.g. #94E044; null without flair.
post.thumbnailstringcan be nullPreview image URL; null for posts without media.
post.total_awards_receivednumberAwards the post received.
post.crosspost_parent_listobject[]can be nullOn crossposts, the original post as a one-item list (Reddit's shape), with what the card shows: no author or body. null otherwise.
post.crosspost_parent_list[].idstringThe original post's id, e.g. 1ww1x9d.
post.crosspost_parent_list[].namestringIts fullname, t3_ + id.
post.crosspost_parent_list[].titlestringIts title.
post.crosspost_parent_list[].subredditstringIts subreddit, without r/.
post.crosspost_parent_list[].subreddit_name_prefixedstringIts subreddit with the r/ prefix, e.g. r/soccer.
post.crosspost_parent_list[].permalinkstringIts path on reddit.com. Pass it to post comments for its body and replies.
post.crosspost_parent_list[].scorenumbercan be nullIts upvotes minus downvotes; null if the card doesn't show them.
post.crosspost_parent_list[].num_commentsnumbercan be nullIts comment count; null if the card doesn't show it.
post.crosspost_parent_list[].created_utcnumbercan be nullPosted at, Unix seconds; null if the card doesn't show it.
post.poll_dataobjectcan be nullPoll options and votes; null for other posts.
post.poll_data.optionsobject[]Options in display order.
post.poll_data.options[].idstringcan be nullOption id; null on closed polls, which reddit.com shows without ids.
post.poll_data.options[].textstringOption text.
post.poll_data.options[].vote_countnumbercan be nullVotes for this option; null while the poll is open (Reddit shows them once it closes).
post.poll_data.total_vote_countnumbercan be nullVotes cast.
post.poll_data.voting_end_timestampnumbercan be nullWhen voting closes, Unix milliseconds as in Reddit's JSON; null once closed.
post.gallery_dataobjectcan be nullEvery image of a gallery post (on crossposts, the original's); null otherwise.
post.gallery_data.itemsobject[]Images in gallery order.
post.gallery_data.items[].urlstringFull-size image URL (i.redd.it), or a preview if that's all the page has.
post.gallery_data.items[].widthnumbercan be nullOriginal width in pixels.
post.gallery_data.items[].heightnumbercan be nullOriginal height in pixels.
post.mediaobjectcan be nullReddit-hosted video (v.redd.it; on crossposts, the original's); null otherwise, including YouTube and other embeds.
post.media.reddit_videoobjectThe video's streams.
post.media.reddit_video.hls_urlstringHLS playlist with video and audio, as reddit.com plays it.
post.media.reddit_video.fallback_urlstringcan be nullLargest MP4 with audio. A signed link that expires within hours; null when reddit.com offers none.
post.media.reddit_video.widthnumbercan be nullThat MP4's width in pixels.
post.media.reddit_video.heightnumbercan be nullThat MP4's height in pixels.
post.media.reddit_video.durationnumbercan be nullLength in seconds.
commentsobject[]Top-level comments, each with nested replies.
comments[].idstringComment id, e.g. pcrhmoe.
comments[].namestringFullname, t1_ + id.
comments[].authorstringcan be nullUsername, without u/; null if unknown.
comments[].author_fullnamestringcan be nullAuthor's account fullname, t2_ + id.
comments[].bodystringComment text, plain; an image or GIF becomes its URL. Empty for deleted and collapsed comments.
comments[].body_htmlstringcan be nullComment text as HTML; null for deleted and collapsed comments.
comments[].scorenumberUpvotes minus downvotes.
comments[].upsnumberSame as score.
comments[].creatednumberPosted at, Unix seconds.
comments[].created_utcnumberPosted at, Unix seconds.
comments[].created_at_isostringPosted at, ISO 8601.
comments[].depthnumber0 for top-level comments, 1 for their replies, and so on.
comments[].parent_idstringcan be nullt3_… for top-level comments, else the parent comment's t1_….
comments[].link_idstringcan be nullThe post's fullname.
comments[].permalinkstringPath to this comment on reddit.com.
comments[].urlstringThis comment on reddit.com.
comments[].subredditstringSubreddit name without r/.
comments[].subreddit_idstringcan be nullSubreddit fullname, t5_ + id.
comments[].subreddit_name_prefixedstringSubreddit name with the r/ prefix, e.g. r/marketing.
comments[].collapsedbooleanCollapsed by default on Reddit (low score, deleted or moderated). reddit.com loads its text only when expanded, so body is empty.
comments[].is_submitterbooleanWritten by the post's author.
comments[].repliesobjectReplies to this comment.
comments[].replies.itemsRedditComment[]Direct replies, each with its own replies.
comments[].replies.moreobjectMore comments that weren't loaded yet.
comments[].replies.more.has_morebooleanWhether there are more comments to load here.
comments[].replies.more.next_cursorstringcan be nullPass as cursor (with the same url) to load them; null when has_more is false.
moreobjectMore comments that weren't loaded yet.
more.has_morebooleanWhether there are more comments to load here.
more.next_cursorstringcan be nullPass as cursor (with the same url) to load them; null when has_more is false.

Pagination

Results come in pages. To load more, pass the cursor from the previous response as cursor (When to use this says which field holds it). Each call costs 1 credit.

Cost and freshness

Each call costs 1 credit. Calls turned away before they reach the platform (invalid parameters, a key or balance problem, a rate limit) are free, and so are 5xx errors. A not_found is charged, since the platform was checked. How charging works.

Answers are cached for up to 1 minute. A repeat call within that time can return the same data, and costs the same.

Errors

A failed call returns success: false, an error message, a code your program can check, and a docs link. These are the errors this endpoint can return. All error codes.

StatusCodeMeaning
401missing_api_keyNo API key was sent. Put it in the x-api-key header.
401invalid_api_keyThis key doesn't exist or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack, or wait for tomorrow's free top-up.
402over_max_creditsThis call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged.
403account_suspendedThis account is suspended. Email support@lurkapi.com. Not charged.
404not_foundWhat you asked for (a post, an ad, a subreddit) doesn't exist, or there's no endpoint at that path. Charged if the platform was checked.
405method_not_allowedEndpoints only take GET, with parameters in the URL.
429rate_limitedToo many calls in a short time. Wait as many seconds as the retry-after header says, then retry.
500internal_errorSomething broke on our side. Retry. Not charged.
502upstream_errorThe platform didn't send a usable answer. Retry. Not charged.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds. Not charged.
504upstream_timeoutThe platform took over 30 seconds to answer (90 for web pages). Retry. Not charged.

Use it in Claude

Connect LurkAPI to Claude and ask in plain English. This endpoint is the reddit_post_comments tool. For example:

Ask Claude
Use LurkAPI's reddit_post_comments tool with url "https://www.reddit.com/r/marketing/comments/1wsx466/want_to_become_an_llm_expert_in_marketing_where/", then summarize what you find.

Claude calls reddit_post_comments with arguments like these, and each call costs 1 credit:

Tool arguments
{"url": "https://www.reddit.com/r/marketing/comments/1wsx466/want_to_become_an_llm_expert_in_marketing_where/"}

To save tokens, tool results leave out empty fields, keep one URL per image or video, and give transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts. Its _note gives the offset for the next part, and later parts are free for 15 minutes. Pass trim=false for the full response.

From the blog

All posts