API Documentation

Reddit Home Feed API

Reddit Home Feed: query public data. Empty results and failed requests are free. Page size uses the service default and cannot be supplied.

Test API

Query public data using explicit parameters and saved real response examples.

Open the product page and test
POST https://api.goanyapi.com/api/v1/reddit/home/feed

Request and authentication

Synchronous POST JSON endpoint; no task creation or polling. Authenticate with Authorization: Bearer YOUR_API_KEY. There are no Path or Query parameters.

Input parameters

Parameter Location Type Required Default Constraints and meaning
Authorization Header string Yes — Bearer YOUR_API_KEY
Content-Type Header string Yes application/json application/json
sort JSON body string No BEST Result ordering. Values are case-sensitive. enum: "BEST", "NEW", "TOP", "HOT", "RISING" maxLength: 2048
cursor JSON body string No — Omit on the first request. Use data.result.next_cursor from the previous response unchanged; never invent a cursor. maxLength: 16384
feedLength JSON body integer No 0 Cumulative number of records returned on earlier pages, initially 0. This is not a page size. minimum: 0 maximum: 1000000

Prefer complete resource URLs. Threads user endpoints also accept a username or @username; no separate identifier lookup or additional charge is required. first, count and limit are not public inputs; the service default page size is used and actual results may be fewer.

sort

Value Default
"BEST" Yes
"NEW" —
"TOP" —
"HOT" —
"RISING" —

Request example

POST /api/v1/reddit/home/feed
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "sort": "BEST",
  "feedLength": 0
}

Output fields

Success returns HTTP 200 with business data in data.result. Null, empty strings, empty arrays and missing fields are preserved without fabricated data. False and zero are valid business values, not empty results.

Field Type Meaning
code string ok on success; public error code on failure
message string Request status message
data.result object / null Public result; may be empty or null
data.creditsUsed integer Actual credits charged; zero for empty results, database-configured rate otherwise
data.remainingCredits number Account credit balance after settlement
data.result.count number Record count for this page, not the total across all pages
data.result.has_more boolean Whether more results may exist; no invented pagination without a usable cursor
data.result.next_cursor string Opaque next-page cursor; reuse unchanged only when nonempty, different and continuation is allowed
data.result.posts array Public business field; null, empty and missing values are preserved
data.result.posts[].author string Public business field; null, empty and missing values are preserved
data.result.posts[].authorId string Public business field; null, empty and missing values are preserved
data.result.posts[].awardCount number Public business field; null, empty and missing values are preserved
data.result.posts[].commentCount number Public business field; null, empty and missing values are preserved
data.result.posts[].contentUrl string Public business field; null, empty and missing values are preserved
data.result.posts[].createdAt string Public business field; null, empty and missing values are preserved
data.result.posts[].domain string Public business field; null, empty and missing values are preserved
data.result.posts[].id string Public business field; null, empty and missing values are preserved
data.result.posts[].images array Public business field; null, empty and missing values are preserved
data.result.posts[].language string Public business field; null, empty and missing values are preserved
data.result.posts[].score number Public business field; null, empty and missing values are preserved
data.result.posts[].state null Public business field; null, empty and missing values are preserved
data.result.posts[].subreddit string Public business field; null, empty and missing values are preserved
data.result.posts[].subredditId string Public business field; null, empty and missing values are preserved
data.result.posts[].text string Public business field; null, empty and missing values are preserved
data.result.posts[].title string Public business field; null, empty and missing values are preserved
data.result.posts[].type string Public business field; null, empty and missing values are preserved
data.result.posts[].upvoteRatio number Public business field; null, empty and missing values are preserved
data.result.posts[].url string Public business field; null, empty and missing values are preserved
data.result.posts[].video object Public business field; null, empty and missing values are preserved
data.result.posts[].video.height number Public business field; null, empty and missing values are preserved
data.result.posts[].video.url string Public business field; null, empty and missing values are preserved
data.result.posts[].video.width number Public business field; null, empty and missing values are preserved

Pagination and result boundaries

Omit cursor initially. For the next page, keep filters unchanged and pass data.result.next_cursor unchanged as cursor. Each page is a separate request; only nonempty successful results are charged. Stop when has_more is false or the cursor is empty or unchanged. Never invent a cursor.

feedLength is the cumulative number of records returned before this page, initially zero. Add the actual previous page list length when continuing. count describes only the current page, not an overall total.

Real response example

Captured at: 2026-11-18T09:31:31Z

Saved from a real successful request, preserving all public result records. data.creditsUsed and data.remainingCredits are omitted; live responses include the current configured charge and balance. Displaying saved examples sends no query or charge; media URLs may expire.

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "posts": [
        {
          "id": "t3_1xza0cr",
          "title": "I hate kids",
          "author": "Relative-Trainer636",
          "authorId": "t2_14m54lg3s0",
          "score": 1135,
          "upvoteRatio": 0.9436178543461238,
          "commentCount": 485,
          "createdAt": "2026-11-18T08:24:48.338000+0000",
          "type": "video",
          "domain": "v.redd.it",
          "contentUrl": "https://v.redd.it/02afydc9yb2i1",
          "url": "https://www.reddit.com/r/mildlyinfuriating/comments/1xza0cr/i_hate_kids/",
          "subreddit": "r/mildlyinfuriating",
          "subredditId": "t5_2ubgg",
          "awardCount": 0,
          "language": "en",
          "state": null,
          "text": null,
          "images": [
            "https://styles.redditmedia.com/t5_2ubgg/styles/communityIcon_lkxajjefezh51.png?width=48&height=48&frame=1&auto=webp&s=1026e253952639769a3173e30781f0e047bdaf62",
            "https://external-preview.redd.it/i-hate-kids-v0-eXl2b2Y4ZDl5YjJpMahSKdao_uoYYewhz5gw3xdTqQUGorUTrfF4IIGpiTjy.png?width=640&crop=smart&format=pjpg&auto=webp&s=d555a31e577021d60dff02851973bdc0713c3dee"
          ],
          "video": {
            "url": "https://packaged-media.redd.it/02afydc9yb2i1/pb/m2-res_1080p.mp4?m=DASHPlaylist.mpd&var=sgpssan&v=1&e=1795010400&s=e20b19e2284e43d0442763a10563475a0ff0a736",
            "width": 1920,
            "height": 1080
          }
        },
        {
          "id": "t3_1xz37az",
          "title": "Rao’s sauce jars from Costco are 0.3 oz smaller than normal",
          "author": "Promit",
          "authorId": "t2_316tj",
          "score": 2362,
          "upvoteRatio": 0.9530825901512214,
          "commentCount": 514,
          "createdAt": "2026-11-18T02:07:42.011000+0000",
          "type": "image",
          "domain": "i.redd.it",
          "contentUrl": "https://i.redd.it/x2yzgi7d4a2i1.jpeg",
          "url": "https://www.reddit.com/r/mildlyinteresting/comments/1xz37az/raos_sauce_jars_from_costco_are_03_oz_smaller/",
          "subreddit": "r/mildlyinteresting",
          "subredditId": "t5_2ti4h",
          "awardCount": 0,
          "language": "en",
          "state": null,
          "text": null,
          "images": [
            "https://b.thumbs.redditmedia.com/lTgz7Yx_6n8VZemjf54viYVZgFhW2GlB6dlpj1ZwKbo.png",
            "https://preview.redd.it/raos-sauce-jars-from-costco-are-0-3-oz-smaller-than-normal-v0-x2yzgi7d4a2i1.jpeg?width=640&crop=smart&auto=webp&s=e810c2f63400d8dce2bc43360f99737329841b4b",
            "https://preview.redd.it/raos-sauce-jars-from-costco-are-0-3-oz-smaller-than-normal-v0-x2yzgi7d4a2i1.jpeg?width=640&crop=smart&auto=webp&s=e810c2f63400d8dce2bc43360f99737329841b4b",
            "https://i.redd.it/x2yzgi7d4a2i1.jpeg"
          ],
          "video": null
        },
        {
          "id": "t3_1xywt0y",
          "title": "If a Titanic style disaster happened today, would the men be expected to give up their seats in the lifeboats for the women and children?",
          "author": "Greefire7",
          "authorId": "t2_12kuhfug4u",
          "score": 1969,
          "upvoteRatio": 0.8649155722326454,
          "commentCount": 1826,
          "createdAt": "2026-11-17T21:27:58.676000+0000",
          "type": "text",
          "domain": "self.NoStupidQuestions",
          "contentUrl": "https://www.reddit.com/r/NoStupidQuestions/comments/1xywt0y/if_a_titanic_style_disaster_happened_today_would/",
          "url": "https://www.reddit.com/r/NoStupidQuestions/comments/1xywt0y/if_a_titanic_style_disaster_happened_today_would/",
          "subreddit": "r/NoStupidQuestions",
          "subredditId": "t5_2w844",
          "awardCount": 0,
          "language": "en",
          "state": null,
          "text": "This is not a question on morality. I’m not asking SHOULD men give up their seats, I am asking would it be socially expected for them to give up their seat? Or is it a first come first served basis",
          "images": [
            "https://styles.redditmedia.com/t5_2w844/styles/communityIcon_krq4riav5m191.png?width=48&height=48&frame=1&auto=webp&s=47cafd5e8a2d7c6a288c2ed70b67aa1e3d818cc0"
          ],
          "video": null
        }
      ],
      "count": 3,
      "next_cursor": "dDNfMXh5d3QweQ==",
      "has_more": true
    }
  }
}

Billing

…

Only nonempty successful results are charged at the current database-configured rate. Empty results and failures are free; internal identifier handling has no additional charge. Each page settles separately. Valid false and zero results are not treated as empty.

Status codes

HTTP Meaning
200 Success, including free empty results
400 Invalid JSON, parameters or resource URL
401 Authentication required or invalid credentials
402 Insufficient credits
429 Rate limited; follow Retry-After
502 Data request failed
503 API or pricing is not configured