Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Reddit App Home Feed

API 文档
https://api.sandbase.ai/v1/api/reddit/app/home-feed

Returns Reddit mobile app home feed content including post metadata, author details, scores, and media links. Supports sorting methods, pagination tokens, and post exclusion lists.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 4 个可选

Playground

输入
Pagination parameter for fetching the next page
List of post IDs to filter out, used to exclude already fetched posts
Whether to clean and format the data
Sort method, supports HOT, NEW, TOP, BEST, CONTROVERSIAL
输出示例
响应outputs · 25.8 KB · 606 行
[
  {
    "data": {
      "after": "dDNfMXd3cXp0NQ==",
      "homefeed": {
        "postsInfoByIds": [
          {
            "__typename": "SubredditPost",
            "attributionInfo": null,
            "authorCommunityBadge": null,
            "authorFlair": {
              "__typename": "AuthorFlair",
              "richtext": "[{\"e\":\"text\",\"t\":\"Teenager\"}]",
              "template": {
                "backgroundColor": "#373C3F",
                "id": "af9abefa-b388-11f0-bec2-c659d5497183"
              },
              "text": "Teenager",
              "textColor": "DARK"
            },
            "authorInfo": {
              "__typename": "Redditor",
              "accountType": "USER",
              "iconSmall": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 50,
                  "width": 50
                },
                "url": "https://styles.redditmedia.com/t5_gc53fl/styles/profileIcon_a3yaqrt1wicg1.jpeg?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=51dea727b8c7bc88cdaad8f58324454fe8d878b0"
              },
              "id": "t2_25tl8ckdgd",
              "isBlocked": false,
              "isCakeDayNow": false,
              "name": "Crimsonrainflower33",
              "newIcon": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 256,
                  "width": 256
                },
                "url": "https://styles.redditmedia.com/t5_gc53fl/styles/profileIcon_a3yaqrt1wicg1.jpeg?frame=1&auto=webp&crop=256%3A256%2Csmart&s=f99995d4e493919f9f7655be3578dd67eb2ca4ed"
              },
              "profile": {
                "isNsfw": false
              },
              "snoovatarIcon": null
            },
            "awardings": [],
            "awardingsInfo": {
              "promos": null
            },
            "commentCount": 489,
            "content": null,
            "createdAt": "2026-10-02T19:20:37.340000+0000",
            "crosspostRoot": null,
            "crowdControlLevel": "OFF",
            "devvit": null,
            "distinguishedAs": null,
            "domain": "i.redd.it",
            "editedAt": null,
            "flair": {
              "__typename": "PostFlair",
              "richtext": "[{\"e\":\"text\",\"t\":\"Discussion\"}]",
              "template": {
                "backgroundColor": "#1FE038",
                "id": "1b713a20-845f-11e3-a1ce-12313d224170",
                "isEditable": false
              },
              "text": "Discussion",
              "textColor": "DARK",
              "type": "richtext"
            },
            "gallery": null,
            "id": "t3_1ww2n4p",
            "isArchived": false,
            "isAuthorBlocked": false,
            "isCommercialCommunication": false,
            "isContestMode": false,
            "isCrosspostable": true,
            "isCrowdControlFilterEnabled": false,
            "isFollowed": false,
            "isGildable": true,
            "isHidden": false,
            "isLocked": false,
            "isNsfw": false,
            "isPollIncluded": false,
            "isReactAllowed": false,
            "isSaved": false,
            "isScoreHidden": false,
            "isSelfPost": false,
            "isSpoiler": false,
            "isStickied": false,
            "isThumbnailEnabled": true,
            "isTranslatable": false,
            "isTranslated": false,
            "languageCode": "en",
            "media": {
              "__typename": "Media",
              "animated": null,
              "download": null,
              "obfuscated_still": {
                "__typename": "StillMedia",
                "large": null,
                "medium": null,
                "small": null,
                "source": null,
                "xlarge": null,
                "xxlarge": null,
                "xxxlarge": null
              },
              "packagedMedia": null,
              "previewMediaId": "956mpuopt3th1",
              "still": {
                "__typename": "StillMedia",
                "altText": null,
                "large": {
                  "__typename": "MediaSource",
                  "dimensions": {
                    "height": 334,
                    "width": 320
                  },
                  "url": "https://preview.redd.it/956mpuopt3th1.jpeg?width=320&auto=webp&s=18a1b28ec355739c1814babace84beb092bfbf4d"
                },
                "medium": {
                  "__typename": "MediaSource",
                  "dimensions": {
                    "height": 225,
                    "width": 216
                  },
                  "url": "https://preview.redd.it/956mpuopt3th1.jpeg?width=216&auto=webp&s=92e88833b4c0fd2d25cb93985181dab2c3d95acd"
                },
                "small": {
                  "__typename": "MediaSource",
                  "dimensions": {
                    "height": 112,
                    "width": 108
                  },
                  "url": "https://preview.redd.it/956mpuopt3th1.jpeg?width=108&auto=webp&s=095fa08301edb92332106c116133e88b2df7e40b"
                },
                "source": {
                  "__typename": "MediaSource",
                  "dimensions": {
                    "height": 1230,
                    "width": 1176
                  },
                  "url": "https://preview.redd.it/956mpuopt3th1.jpeg?auto=webp&s=ec3d8bdaa36bf7dafe0fcd1b00a650ac89c8f0a9"
                },
                "xlarge": {
                  "__typename": "MediaSource",
                  "dimensions": {
                    "height": 669,
                    "width": 640
                  },
                  "url": "https://preview.redd.it/956mpuopt3th1.jpeg?width=640&auto=webp&s=95f796a4ff11d9d7189e0aee423a59bb767733c1"
                },
                "xxlarge": {
                  "__typename": "MediaSource",
                  "dimensions": {
                    "height": 1004,
                    "width": 960
                  },
                  "url": "https://preview.redd.it/956mpuopt3th1.jpeg?width=960&auto=webp&s=3a109c7034ce4e7415c0a320feb14e91e196dfd3"
                },
                "xxxlarge": {
                  "__typename": "MediaSource",
                  "dimensions": {
                    "height": 1129,
                    "width": 1080
                  },
                  "url": "https://preview.redd.it/956mpuopt3th1.jpeg?width=1080&auto=webp&s=b831d3d7c5a23abf2a88901ed88362b098c219b5"
                }
              },
              "streaming": null,
              "typeHint": "IMAGE",
              "video": null
            },
            "moderationInfo": null,
            "outboundLink": {
              "expiresAt": "2026-10-06T17:39:23.716079+0000",
              "url": "https://i.redd.it/956mpuopt3th1.jpeg"
            },
            "permalink": "/r/teenagers/comments/1ww2n4p/whats_a_crazy_rumour_from_your_school_that_turned/",
            "poll": null,
            "postEventInfo": null,
            "postHint": "IMAGE",
            "postStats": {
              "shareAllTotal": 1185,
              "viewCountTotal": null
            },
            "postStatsPrivate": {
              "viewCountTotals": null
            },
            "postTitle": "Whats a crazy rumour from your school that turned out to be true?",
            "reactedFrom": null,
            "removedByCategory": null,
            "score": 389,
            "subreddit": {
              "__typename": "Subreddit",
              "communityStatus": null,
              "id": "t5_2rjli",
              "isNsfw": false,
              "isQuarantined": false,
              "isSubscribed": false,
              "isThumbnailsEnabled": true,
              "isTitleSafe": true,
              "isUserBanned": false,
              "modPermissions": null,
              "name": "teenagers",
              "prefixedName": "r/teenagers",
              "styles": {
                "bannerBackgroundImage": "https://styles.redditmedia.com/t5_2rjli/styles/bannerBackgroundImage_h0y6eq49i4ig1.png?frame=1&auto=webp&s=b37d5f0dd2a9336a8e7e898a849477a572f72373",
                "icon": "https://styles.redditmedia.com/t5_2rjli/styles/communityIcon_woz69bbppdzb1.png?width=64&frame=1&auto=webp&s=40146531e3065a9e6b1c8c46afd563227bf34e44",
                "legacyIcon": {
                  "url": "https://b.thumbs.redditmedia.com/uUYtnr8UF4a5QThBaOLZBs0s__b1o66d8OZz3fOcxrk.png"
                },
                "legacyPrimaryColor": "#7E53C1",
                "primaryColor": "#B8001F"
              },
              "subscribersCount": 3703178,
              "tippingStatus": null,
              "title": "r/teenagers",
              "type": "PUBLIC",
              "whitelistStatus": "NO_ADS"
            },
            "suggestedCommentSort": null,
            "thumbnail": {
              "__typename": "MediaSource",
              "dimensions": {
                "height": 140,
                "width": 140
              },
              "url": "https://preview.redd.it/956mpuopt3th1.jpeg?width=140&height=140&crop=1%3A1%2Csmart&auto=webp&s=05a16220cfc2f0608e50b425bec789b2707ef8f9"
            },
            "translatedLanguage": null,
            "upvoteRatio": 0.97323600973236,
            "url": "https://i.redd.it/956mpuopt3th1.jpeg",
            "viewCount": null,
            "voteState": "NONE"
          },
          {
            "__typename": "SubredditPost",
            "attributionInfo": null,
            "authorCommunityBadge": null,
            "authorFlair": null,
            "authorInfo": {
              "__typename": "Redditor",
              "accountType": "USER",
              "iconSmall": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 256,
                  "width": 256
                },
                "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_3.png"
              },
              "id": "t2_1ce8f1cx7v",
              "isBlocked": false,
              "isCakeDayNow": false,
              "name": "That-Address5328",
              "newIcon": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 256,
                  "width": 256
                },
                "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_3.png"
              },
              "profile": {
                "isNsfw": false
              },
              "snoovatarIcon": null
            },
            "awardings": [],
            "awardingsInfo": {
              "promos": null
            },
            "commentCount": 75,
            "content": {
              "html": "My 6th semester is about to start, and right now I’m learning web development. I’ve learned HTML and CSS and can build pretty good UIs. Currently, I’m learning JavaScript through SuperSimpleDev and freeCodeCamp.\nBut lately, I’ve been questioning whether it’s really worth learning everything from scratch.\nEvery day, I see a new AI tool that can do something incredible, generate websites, write code, debug problems, and even build entire projects. It honestly makes me a little scared that I’m spending so much time learning things that AI can already do.\nI know that I need to learn how to use AI …",
              "markdown": "My 6th semester is about to start, and right now I’m learning web development. I’ve learned HTML and CSS and can build pretty good UIs. Currently, I’m learning JavaScript through SuperSimpleDev and freeCodeCamp.\n\nBut lately, I’ve been questioning whether it’s really worth learning everything from scratch.\n\nEvery day, I see a new AI tool that can do something incredible, generate websites, write code, debug problems, and even build entire projects. It honestly makes me a little scared that I’m spending so much time learning things that AI can already do.\n\nI know that I need to learn how to use …",
              "preview": "My 6th semester is about to start, and right now I’m learning web development. I’ve learned HTML and CSS and can build pretty good UIs. Currently, I’m learning JavaScript through SuperSimpleDev and freeCodeCamp. But lately, I’ve been questioning whether it’s really worth learning everything from scr",
              "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"My 6th semester is about to start, and right now I\\u2019m learning web development. I\\u2019ve learned HTML and CSS and can build pretty good UIs. Currently, I\\u2019m learning JavaScript through SuperSimpleDev and freeCodeCamp.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"But lately, I\\u2019ve been questioning whether it\\u2019s really worth learning everything from scratch.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Every day, I see a new AI tool that can do something incredible, generate websites, write code, debug problems, and even build entire projects. It honestly mak…",
              "richtextMedia": []
            },
            "createdAt": "2026-10-03T10:11:52.370000+0000",
            "crosspostRoot": null,
            "crowdControlLevel": "OFF",
            "devvit": null,
            "distinguishedAs": null,
            "domain": "self.learnprogramming",
            "editedAt": null,
            "flair": null,
            "gallery": null,
            "id": "t3_1wwjoir",
            "isArchived": false,
            "isAuthorBlocked": false,
            "isCommercialCommunication": false,
            "isContestMode": false,
            "isCrosspostable": true,

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Reddit App Home Feed API

Returns a page of posts from the Reddit mobile app home feed. Each post includes author details, comment count, flair, awards, and link domain. All inputs are optional, so an empty request returns a default feed.

Use cases

  • Pull a page of home feed posts and track which subreddits and domains show up most.
  • Page through the feed with the after cursor and store each post by its id.
  • Skip posts you already saved by passing their IDs in filter_posts.
  • Find promoted or app-install posts by checking callToAction and domain.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/home-feed" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
afterstringNoPagination parameter for fetching the next page
filter_postsarrayNoList of post IDs to filter out, used to exclude already fetched posts
need_formatbooleanNoWhether to clean and format the data
sortstringNoSort method, supports HOT, NEW, TOP, BEST, CONTROVERSIAL

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "after": "dDNfMXhrOXRmbA==",
  "homefeed": {
    "postsInfoByIds": [
      {
        "__typename": "SubredditPost",
        "attributionInfo": null,
        "authorCommunityBadge": null,
        "authorFlair": null,
        "authorInfo": {
          "__typename": "Redditor",
          "accountType": "USER",
          "iconSmall": {
            "__typename": "MediaSource",
            "dimensions": {
              "height": 256,
              "width": 256
            },
            "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_7.png"
          },
          "id": "t2_ne49b",
          "isBlocked": false,
          "isCakeDayNow": false,
          "name": "brainland",
          "newIcon": {
            "__typename": "MediaSource",
            "dimensions": {
              "height": 256,
              "width": 256
            },
            "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_7.png"
          }
        },
        "awardings": [
          {
            "__typename": "AwardingTotal",
            "award": {
              "__typename": "Award",
              "id": "award_free_bravo",
              "name": "Bravo",
              "static_icon_16": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 16,
                  "width": 16
                },
                "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/bravo_16.png"
              },
              "static_icon_24": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 24,
                  "width": 24
                },
                "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/bravo_24.png"
              },
              "static_icon_32": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 32,
                  "width": 32
                },
                "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/bravo_32.png"
              },
              "static_icon_48": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 48,
                  "width": 48
                },
                "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/bravo_48.png"
              },
              "static_icon_64": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 64,
                  "width": 64
                },
                "url": "https://i.redd.it/snoovatar/snoo_assets/marketing/bravo_64.png"
              }
            },
            "total": 8
          }
        ],
        "awardingsInfo": {
          "promos": null
        },
        "commentCount": 5447,
        "content": null,
        "createdAt": "2026-10-29T16:30:44.831000+0000",
        "crosspostRoot": null,
        "crowdControlLevel": "OFF"
      }
    ]
  }
}

Response fields

FieldMeaning
afterCursor token for the next page. Pass it back as the after request parameter.
homefeed.postsInfoByIds[]List of posts in the feed. Each item has a __typename such as SubredditPost or ProfilePost.
homefeed.postsInfoByIds[].idPost ID in the form t3_.... Use it with filter_posts or in post lookups.
homefeed.postsInfoByIds[].createdAtTime the post was created, as an ISO 8601 timestamp with a UTC offset.
homefeed.postsInfoByIds[].commentCountNumber of comments on the post.
homefeed.postsInfoByIds[].authorInfo.name / homefeed.postsInfoByIds[].authorInfo.idUsername of the author and the author ID in the form t2_....
homefeed.postsInfoByIds[].domainDomain the post links to, such as v.redd.it for Reddit video or apps.apple.com for an app link.
homefeed.postsInfoByIds[].flair.textText of the post flair, such as Fear Factor. The value is null when the post has no flair.
homefeed.postsInfoByIds[].awardings[].award.name / homefeed.postsInfoByIds[].awardings[].totalName of an award on the post and how many times it was given.
homefeed.postsInfoByIds[].isNsfw / homefeed.postsInfoByIds[].isLocked / homefeed.postsInfoByIds[].isScoreHiddenFlags for adult content, a locked post, and a hidden score.

Notes

  • Set sort to HOT, NEW, TOP, BEST, or CONTROVERSIAL.
  • Copy the top-level after value into the next request to get the following page.
  • To read a post in full, call Reddit Post Details with its ID. To read its comments, call Reddit App Post Comments.
  • For the site-wide popular feed instead of the home feed, use Reddit App Popular Feed.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Reddit$0.001 每次调用JSON
Reddit$0.001 每次调用JSON
Reddit$0.001 每次调用JSON
Reddit$0.001 每次调用JSON
Reddit$0.001 每次调用JSON
Reddit$0.001 每次调用JSON

指南:Best Reddit API in 2026: Pricing Compared

问题

常见问题

如何使用 Reddit App Home Feed API?

向 https://api.sandbase.ai/v1/api/reddit/app/home-feed 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Reddit App Home Feed API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Reddit App Home Feed API 接受哪些参数?

无需参数。 可选:after (string), filter_posts (array), need_format (boolean) 和 sort (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Reddit App Home Feed API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Reddit 开发者账户或 API key 吗?

不需要。Reddit App Home Feed 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Reddit API 访问权限。