GET /domain/posts

Domain Posts

Posts that link to a website (domain). Reddit Scraper API endpoint /domain/posts: parameters, JSON response fields and code examples.

Posts across Reddit that link to one website (domain): title, link, community, author, score, comments, flair, created time, thumbnail and position, up to 25 per page. new lists every post newest first; hot and top follow Reddit search’s ranking. Billed 1 request per page read (a filter or a date range reads up to max_pages pages); with_details=true adds 1 per post detailed.

HTTP Request

GET /domain/posts

Cost (in requests): 1 per page; +1 per post detailed. Every successful answer reports its cost in data.billed_requests.

Parameters

ParameterTypeRequiredDefaultDescription
domainstringYes-Hostname whose links to list, e.g. youtube.com or docs.python.org (no scheme, no path; case-insensitive). An unknown domain answers an empty list.
page_tokenstringNo-Opaque page token from a previous response’s next_page_token. Omit for the first page.
per_pageintegerNo25Posts per page, 1–25 (default 25). Posts of another host (a subdomain such as m.youtube.com is its own domain) are taken out, so a page can hold fewer.
sortstringNohotOrder: hot (default) and top follow Reddit search’s ranking for the site; new is every post, newest first. New posts can take about 10 minutes to appear.
timestringNodefaultTime window for top only: hour, day, week, month, year, all. default (the default) = no window chosen: top reads the last day; other sorts take none. Allowed: default, hour, day, week, month, year, all.
post_typestringNoallKeep only posts of this kind: text, link, image, gif, gallery, video, poll, crosspost, embed, or game. Each page read to fill the answer is billed 1 request (billed_requests says how many). all (default) = no filter. Allowed: all, text, link, image, gif, gallery, video, poll, crosspost, embed, game.
min_scoreintegerNo-Only posts with at least this net score (upvotes minus downvotes). Each page read to fill the answer is billed 1 request; scanned_count says how many posts were examined.
min_commentsintegerNo-Only posts with at least this many comments. Each page read to fill the answer is billed 1 request; scanned_count says how many posts were examined.
posted_afterstringNo-Only items created at or after this time: an ISO 8601 date (2026-01-01, the start of that day, UTC), a datetime (2026-01-01T18:00:00Z) or epoch seconds. Reddit has no date filter: the posts are read newest first and filtered here, so this reaches about the newest 1,000 posts of a listing; for older days of all of Reddit use /post/archive.
posted_beforestringNo-Only items created at or before this time, same formats as posted_after (a bare date includes that whole day). Must not be earlier than posted_after.
max_pagesintegerNo-Most Reddit pages one call reads to fill the page, 1–40. Default 8 with posted_after / posted_before, otherwise 4 (only used with a filter). Every page read is billed; with sort=new the walk stops at the first page older than posted_after.
include_nsfwbooleanNotrueDefault true: adult content included; pass false to exclude it (posts marked NSFW or from 18+ communities are dropped from the page, so a page can hold fewer rows).
with_detailsbooleanNofalseAdds these fields per post (left out without it): upvote_ratio, body_text, body_media, media, poll, author_flair, author_type, author_avatar_url, is_author_nsfw, is_brand_affiliate, distinguished, is_archived, is_crosspost, is_subreddit_nsfw, is_subreddit_quarantined, subreddit_icon_url, shares_count, removed_by, removal_category, thumbnail_width, thumbnail_height. Billed: +1 request per post detailed.
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.

Response

Real response to GET /domain/posts?domain=github.com (arrays trimmed to 2 items, long texts cut with …).

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
  "status": true,
  "request_id": "3bd89968-4876-1494-5fd6-d2bb2f0a",
  "data": {
    "items": [
      {
        "post_id": "t3_1y4j4vf",
        "title": "Unofficial native PC port of the Demons Souls Remake",
        "type": "link",
        "permalink": "/r/fromsoftware/comments/1y4j4vf/unofficial_native_pc_port_of_the_demons_souls/",
        "post_url": "https://www.reddit.com/r/fromsoftware/comments/1y4j4vf/unofficial_native_pc_port_of_the_demons_souls/",
        "url": "https://github.com/SulphurS16/Regaliant",
        "domain": "github.com",
        "subreddit": "fromsoftware",
        "subreddit_id": "t5_31rag",
        "subreddit_type": "public",
        "author": "dex99dex99dex99",
        "is_author_deleted": false,
        "author_id": "t2_1z6spjvswa",
        "flair": {
          "text": "NEWS / PREDICTIONS",
          "rich_text": [
            {
              "type": "text",
              "text": "NEWS / PREDICTIONS",
              "url": null
            }
          ],
          "background_color": "#7193FF",
          "text_color": "dark",
          "flair_id": "c645a9ca-374c-11eb-b26e-0ef87907b83d"
        },
        "score": 137,
        "comments_count": 30,
        "crossposts_count": null,
        "created_at": "2026-11-24T17:24:26.740000+00:00",
        "is_nsfw": false,
        "is_spoiler": false,
        "is_stickied": false,
        "is_locked": false,
        "is_archived": false,
        "is_crosspost": false,
        "crosspost_parent_id": null,
        "crosspost_parent_subreddit": null,
        "position": 1,
        "thumbnail_url": "https://external-preview.redd.it/rMjJAMAp3u_gbC7AJlO0dgvmpaoiFKin0nwVKyubAHc.png?width=140&height=70&auto=webp&s=49659c3467a7c715936a20197591196c1c412547",
        "thumbnail_width": 140,
        "thumbnail_height": 70,
        "media": {
          "type": null,
          "preview_url": "https://external-preview.redd.it/unofficial-native-pc-port-of-the-demons-souls-remake-v0-rMjJAMAp3u_gbC7AJlO0dgvmpaoiFKin0nwVKyubAHc.png?width=1080&crop=smart&auto=webp&s=39d226e3792d6c265af389af9e5c4e8703c46156",
          "preview_width": 1080,
          "preview_height": 540,
          "preview_variants": [
            {
              "size": "thumbnail",
              "url": "https://external-preview.redd.it/unofficial-native-pc-port-of-the-demons-souls-remake-v0-rMjJAMAp3u_gbC7AJlO0dgvmpaoiFKin0nwVKyubAHc.png?width=108&crop=smart&auto=webp&s=5af05bf96bb12fdda555c09483221fbeb8b495f9",
              "width": 108,
              "height": 54
            },
            {
              "size": "compact",
              "url": "https://external-preview.redd.it/unofficial-native-pc-port-of-the-demons-souls-remake-v0-rMjJAMAp3u_gbC7AJlO0dgvmpaoiFKin0nwVKyubAHc.png?width=216&crop=smart&auto=webp&s=cc8214bc89c40ead625487ac9af82979f313edb0",
              "width": 216,
              "height": 108
            }
          ],
          "alt_text": null,
          "hls_url": null,
          "video_url": null,
          "poster_url": null,
          "captions_url": null,
          "duration_seconds": null,
          "width": null,
          "height": null,
          "renditions": [],
          "embed_html": null,
          "embed_provider": null,
          "gallery": []
        }
      },
      {
        "post_id": "t3_1y4am68",
        "title": "OAI too claims their version of VP!=VNP claimed to be found on 6 Nov",
        "type": "link",
        "permalink": "/r/mathematics/comments/1y4am68/oai_too_claims_their_version_of_vpvnp_claimed_to/",
        "post_url": "https://www.reddit.com/r/mathematics/comments/1y4am68/oai_too_claims_their_version_of_vpvnp_claimed_to/",
        "url": "https://github.com/openai/math/blob/main/preprints/VP-and-VNP-are-different-November-23-2026/paper.pdf",
        "domain": "github.com",
        "subreddit": "mathematics",
        "subreddit_id": "t5_2qjc8",
        "subreddit_type": "public",
        "author": "princeanand009",
        "is_author_deleted": false,
        "author_id": "t2_2p1xtn9tpb",
        "flair": {
          "text": "Artificial Intelligence",
          "rich_text": [
            {
              "type": "text",
              "text": "Artificial Intelligence",
              "url": null
            }
          ],
          "background_color": "transparent",
          "text_color": "dark",
          "flair_id": "49c50550-b624-11f1-8c30-1e60c3fbee22"
        },
        "score": 344,
        "comments_count": 75,
        "crossposts_count": 1,
        "created_at": "2026-11-24T11:09:16.595000+00:00",
        "is_nsfw": false,
        "is_spoiler": false,
        "is_stickied": false,
        "is_locked": false,
        "is_archived": false,
        "is_crosspost": false,
        "crosspost_parent_id": null,
        "crosspost_parent_subreddit": null,
        "position": 2,
        "thumbnail_url": "https://external-preview.redd.it/HUKGirSi9TugSINjMsHiDHnY8YcpVFGxM52zlSe_nCM.png?width=140&height=70&auto=webp&s=fd2cdbb44924398604d2468c1b220f3d5f1300d0",
        "thumbnail_width": 140,
        "thumbnail_height": 70,
        "media": {
          "type": null,
          "preview_url": "https://external-preview.redd.it/oai-too-claims-their-version-of-vp-vnp-claimed-to-be-found-v0-HUKGirSi9TugSINjMsHiDHnY8YcpVFGxM52zlSe_nCM.png?width=1080&crop=smart&auto=webp&s=8046d301c0a7056d47608322f279851696c7809e",
          "preview_width": 1080,
          "preview_height": 540,
          "preview_variants": [
            {
              "size": "thumbnail",
              "url": "https://external-preview.redd.it/oai-too-claims-their-version-of-vp-vnp-claimed-to-be-found-v0-HUKGirSi9TugSINjMsHiDHnY8YcpVFGxM52zlSe_nCM.png?width=108&crop=smart&auto=webp&s=0407c290c129feb49435d382b2141ca49dc4df57",
              "width": 108,
              "height": 54
            },
            {
              "size": "compact",
              "url": "https://external-preview.redd.it/oai-too-claims-their-version-of-vp-vnp-claimed-to-be-found-v0-HUKGirSi9TugSINjMsHiDHnY8YcpVFGxM52zlSe_nCM.png?width=216&crop=smart&auto=webp&s=c408fbd31de21cf186f6c41a5c88f7471e16aa40",
              "width": 216,
              "height": 108
            }
          ],
          "alt_text": null,
          "hls_url": null,
          "video_url": null,
          "poster_url": null,
          "captions_url": null,
          "duration_seconds": null,
          "width": null,
          "height": null,
          "renditions": [],
          "embed_html": null,
          "embed_provider": null,
          "gallery": []
        }
      }
    ],
    "has_next_page": true,
    "next_page_token": "eyJ2IjoxLCJraW5kIjoiZG9tYWluX3NlYXJjaCIsImZwIjoiZTg2ZDNiZDVhMSIsInRzIjoxNzk1NTUzNzc0LCJuIjoyNSwidSI6ImV5SmpZVzVrYVdSaGRHVnpYM0psZEhWeWJtVmtJam9pZTF3aWMyVmpkR2x2Ymw4eFgzQnBjR1ZzYVc1bFh6QmZaMnh2WW1Gc1gyMXZaR2xtYVdWeWMxd2lPbHdpTVZ3aUxGd2ljMlZq…",
    "resolved_filters": {
      "domain": {
        "input": "github.com",
        "resolved": "github.com",
        "source": "param"
      },
      "sort": {
        "input": null,
        "resolved": "hot",
        "source": "default"
      }
    },
    "billed_requests": 1
  },
  "request_params": {
    "domain": "github.com"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectDomain listing page (empty list for an unknown domain).
data.itemsarray of objectsPosts linking to the domain, newest first (sponsored rows removed).
data.items[].post_idstringPost fullname, e.g. t3_z1c9z.
data.items[].titlestringPost title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…).
data.items[].typestringtext, link, image, gif, gallery, video, poll, crosspost, embed, game. A text post with inline images is text (its images in body_media). Only with with_details=true on /post/batch and /answers.
data.items[].permalinkstringReddit path, e.g. /r/IAmA/comments/z1c9z/i_am_barack_obama/ (Reddit’s relative value; post_url is the same thread as a full link). Either form can be passed back as url.
data.items[].post_urlstringAbsolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open.
data.items[].urlstringWhere the post points (Reddit’s own url): the outside page for link posts, the image or video file for media posts (https://i.redd.it/…, https://v.redd.it/…), the original post for crossposts, the thread itself for text posts. The post’s own thread is post_url.
data.items[].domainstringLink domain (arstechnica.com). For a text post Reddit fills the placeholder self.{subreddit}, which is not a link domain: /domain/posts refuses it; list text posts with /subreddit/posts?post_type=text.
data.items[].subredditstringSubreddit name without r/.
data.items[].subreddit_idstringSubreddit id (t5_…).
data.items[].subreddit_typestringCommunity type: public, restricted, private, user (a post on a profile)…; null when this endpoint does not carry it. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity and /user/insights.
data.items[].authorstringAuthor username; [deleted] is reported as null with is_author_deleted true. Only with with_details=true on /post/batch and /answers.
data.items[].is_author_deletedbooleanThe author’s account is deleted (the post may remain).
data.items[].author_idstringAuthor account id (t2_…). Only with with_details=true on /post/batch and /answers.
data.items[].flairobjectPost flair. Only with with_details=true on /post/batch and /answers (always on /post/search). On the listing-card routes (/subreddit/posts, the feeds, /content/*, /user/activity and /user/insights posts) it holds text and background_color only.
data.items[].flair.textstringFlair text (emoji shortcodes kept, e.g. :phx-2: Suns).
data.items[].flair.rich_textarray of objectsRich-text flair as parts in display order (text, and emoji with their image URL); null for a plain-text flair or when this endpoint does not carry it.
data.items[].flair.rich_text[].typestringtext or emoji.
data.items[].flair.rich_text[].textstringThe text, or the emoji’s short code (e.g. :nba-1:).
data.items[].flair.rich_text[].urlstring / nullEmoji image URL (emoji parts only).
data.items[].flair.background_colorstringHex background colour (#0079D3) or null when the flair has no colour.
data.items[].flair.text_colorstringlight or dark text on the flair pill.
data.items[].flair.flair_idstringFlair template id, the same as flair_id on /subreddit/flairs. A reference id, not an input of this API; null when this endpoint does not carry it.
data.items[].scoreintegerNet upvotes at fetch time.
data.items[].comments_countintegerComment count reported by Reddit.
data.items[].crossposts_countinteger / nullNumber of crossposts; null when Reddit sends no count (it sends none, not 0, for most posts never crossposted) or this endpoint does not carry it. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity and /user/insights. On the /post/crossposts source_post: Reddit’s total of crossposts of the post.
data.items[].created_atstringISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details.
data.items[].is_nsfwbooleanMarked NSFW.
data.items[].is_spoilerbooleanMarked spoiler. Only with with_details=true on /post/batch and /answers.
data.items[].is_stickiedbooleanPinned in the feed (feeds and listings only). Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search.
data.items[].is_lockedbooleanComments locked. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search.
data.items[].is_archivedbooleanArchived (no new votes or comments). Only with with_details=true on the routes that have it (always on /post/search). Left out on /media/search.
data.items[].is_crosspostbooleanThe post is a crosspost. Only with with_details=true on the routes that have it. Left out on /media/search.
data.items[].crosspost_parent_idstring / nullId of the original post (t3_…) this crosspost shares; null unless is_crosspost and the endpoint carries it. Pass it to /post/details. Only with with_details=true on /post/batch and /answers (always on /post/search).
data.items[].crosspost_parent_subredditstring / nullSubreddit of the original post, without r/; null unless is_crosspost. Only with with_details=true on /post/batch and /answers (always on /post/search).
data.items[].positionintegerRank in the feed or the search results, 1-based and counted across pages (feeds keep Reddit’s gaps where ads were).
data.items[].thumbnail_urlstringThumbnail URL.
data.items[].thumbnail_widthintegerThumbnail pixel width; null when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.items[].thumbnail_heightintegerThumbnail pixel height; null when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.items[].mediaobjectImages, video renditions, gallery, embed. Only with with_details=true on the routes that have it (always on /post/search).
data.items[].media.typestring / nullMedia kind: image, video, gif, gallery, embed or null.
data.items[].media.preview_urlstringLargest still preview URL.
data.items[].media.preview_widthintegerPreview pixel width.
data.items[].media.preview_heightintegerPreview pixel height.
data.items[].media.preview_variantsarray of objectsEvery size Reddit renders of the preview image, smallest first; empty when this endpoint does not carry them.
data.items[].media.preview_variants[].sizestringthumbnail (108 px wide), compact, medium (320), large (640), extra_large (1080) or full (the original size).
data.items[].media.preview_variants[].urlstringImage URL at that size.
data.items[].media.preview_variants[].widthintegerPixel width.
data.items[].media.preview_variants[].heightintegerPixel height.
data.items[].media.alt_textstring / nullImage description the author set for screen readers; null when none.
data.items[].media.hls_urlstring / nullHLS playlist (.m3u8) for hosted video.
data.items[].media.video_urlstring / nullPlayer URL of a third-party embed (YouTube, Streamable…), or the downloadable MP4 of a Reddit-hosted video (signed, expires within about a day). Null when the source of the route does not carry it (a hosted video on a listing card: use renditions).
data.items[].media.poster_urlstring / nullVideo poster image.
data.items[].media.captions_urlstring / nullWebVTT captions URL when available.
data.items[].media.duration_secondsinteger / nullVideo duration in seconds.
data.items[].media.widthinteger / nullVideo pixel width (a hosted video’s full size, or the embed player’s size).
data.items[].media.heightinteger / nullVideo pixel height (a hosted video’s full size, or the embed player’s size).
data.items[].media.renditionsarrayMP4 renditions with bitrate and size (hosted video only).
data.items[].media.embed_htmlstring / nulloEmbed iframe HTML for third-party embeds (YouTube, Streamable…).
data.items[].media.embed_providerstring / nullEmbed provider name, e.g. YouTube or Streamable; null on Reddit-hosted media.
data.items[].media.galleryarrayGallery images in page order.
data.has_next_pagebooleanMore posts available.
data.next_page_tokenstringToken for the next page; null at the end.
data.resolved_filtersobjectHostname as applied.
data.resolved_filters.domainobjectHostname as applied (lower-cased).
data.resolved_filters.domain.inputstringWhat the caller sent.
data.resolved_filters.domain.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.domain.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.resolved_filters.sortobjectOrder as applied (hot by default).
data.resolved_filters.sort.inputstring / nullWhat the caller sent.
data.resolved_filters.sort.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.sort.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later
200 with status: falseBad page tokenerror.code is invalid_page_token: pass next_page_token from the previous answer unchanged

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/domain/posts"

params = {
    "domain": "github.com",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

for item in data["items"]:
    print(item["title"], item["subreddit"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/domain/posts";

const params = new URLSearchParams({
  domain: "github.com",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
data.items.forEach((item) => console.log(item.title, item.subreddit));
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/domain/posts" \
  --data-urlencode "domain=github.com" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  • Related Videos : Videos Reddit suggests after a video post
  • Media Search : Search image and video posts (site-wide or in one subreddit)
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI