Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Reddit App Popular Feed

API 文件
https://api.sandbase.ai/v1/api/reddit/app/popular-feed

Returns trending and popular posts across Reddit with engagement metrics, subreddit details, and media metadata. Supports sorting and time filters.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 5 個選填

Playground

輸入
Pagination parameter for fetching next page
List of post IDs to filter out, used to avoid duplicate fetches
Whether to clean and format the data
Sort method, options: BEST, HOT, NEW, TOP, CONTROVERSIAL, RISING
Time range, options: ALL, HOUR, DAY, WEEK, MONTH, YEAR
輸出範例
回應outputs · 37.7 KB · 867 行
[
  {
    "data": {
      "after": "dDNfMXZoZ2h3bQ==",
      "popularfeed": {
        "postsInfoByIds": [
          {
            "__typename": "SubredditPost",
            "attributionInfo": null,
            "authorCommunityBadge": null,
            "authorFlair": null,
            "authorInfo": {
              "__typename": "Redditor",
              "accountType": "USER",
              "iconSmall": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 50,
                  "width": 50
                },
                "url": "https://preview.redd.it/snoovatar/avatars/640171c2-fadc-4e28-9c91-15a108410e67-headshot.png?width=50&height=50&auto=webp&s=5b24cc67643052f056562651e79a118d12459177"
              },
              "id": "t2_7auo71fl",
              "isBlocked": false,
              "isCakeDayNow": false,
              "name": "Flaky-Ad-6922",
              "newIcon": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 256,
                  "width": 256
                },
                "url": "https://preview.redd.it/snoovatar/avatars/640171c2-fadc-4e28-9c91-15a108410e67-headshot.png?auto=webp&s=e4b67c847b6ea8ad2b54c55442b23d2c8da3d1a9"
              },
              "profile": {
                "isNsfw": false
              },
              "snoovatarIcon": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 600,
                  "width": 380
                },
                "url": "https://i.redd.it/snoovatar/avatars/640171c2-fadc-4e28-9c91-15a108410e67.png"
              }
            },
            "awardings": [],
            "awardingsInfo": {
              "promos": null
            },
            "commentCount": 1409,
            "content": {
              "html": "My fiance and I just moved into a new apartment. When we took a shower this evening, this stuff appeared on the walls. We were told by management that they painted before we moved in.\nEditing to add context:\nWe upgraded to a larger apartment within the same complex. We lived in our previous one for >6 years and never had this issue.\nManagement assured us the apartment had been cleaned and painted before we moved in. Cleaning was not to my standards, so I deep cleaned the entire place top to bottom before we moved our stuff in. This included wiping down walls and other surfaces multiple times.\n…",
              "markdown": "My fiance and I just moved into a new apartment. When we took a shower this evening, this stuff appeared on the walls. We were told by management that they painted before we moved in.\n\nEditing to add context:\n\n- We upgraded to a larger apartment within the same complex. We lived in our previous one for >6 years and never had this issue.\n\n- Management assured us the apartment had been cleaned and painted before we moved in. Cleaning was not to my standards, so I deep cleaned the entire place top to bottom before we moved our stuff in. This included wiping down walls and other surfaces multiple …",
              "preview": "My fiance and I just moved into a new apartment. When we took a shower this evening, this stuff appeared on the walls. We were told by management that they painted before we moved in. Editing to add context: We upgraded to a larger apartment within the same complex. We lived in our previous one for ",
              "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"My fiance and I just moved into a new apartment. When we took a shower this evening, this stuff appeared on the walls. We were told by management that they painted before we moved in.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Editing to add context:\"}],\"e\":\"par\"},{\"c\":[{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"We upgraded to a larger apartment within the same complex. We lived in our previous one for \\u003e6 years and never had this issue.\"}],\"e\":\"par\"}],\"e\":\"li\"},{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"Management assured us the apartment had been cleaned and painted before we moved in.…",
              "richtextMedia": []
            },
            "createdAt": "2026-08-07T01:07:00.229000+0000",
            "crosspostRoot": null,
            "crowdControlLevel": "OFF",
            "devvit": null,
            "distinguishedAs": null,
            "domain": "reddit.com",
            "editedAt": "2026-08-07T01:47:28.153000+0000",
            "flair": {
              "__typename": "PostFlair",
              "richtext": null,
              "template": {
                "backgroundColor": "#3AD22D",
                "id": "39d42978-fa66-11e8-ab53-0e9e21eb3a00",
                "isEditable": false
              },
              "text": "Solved!",
              "textColor": "DARK",
              "type": "text"
            },
            "gallery": {
              "items": [
                {
                  "__typename": "PostGalleryItem",
                  "adEvents": null,
                  "adUrl": null,
                  "callToAction": null,
                  "caption": "",
                  "displayAddress": null,
                  "id": "1011220566",
                  "media": {
                    "__typename": "ImageAsset",
                    "height": 4000,
                    "id": "cw49pg7pruhh1",
                    "large": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 426,
                        "width": 320
                      },
                      "url": "https://preview.redd.it/cw49pg7pruhh1.jpg?width=320&auto=webp&s=a09ffa11cf8f958c101ee256baf8c2d559cac0d5"
                    },
                    "medium": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 288,
                        "width": 216
                      },
                      "url": "https://preview.redd.it/cw49pg7pruhh1.jpg?width=216&auto=webp&s=16e930bfadb74b658d627b16cd915fd12d3001c2"
                    },
                    "mimetype": "image/jpg",
                    "obfuscated_large": null,
                    "obfuscated_medium": null,
                    "obfuscated_small": null,
                    "obfuscated_xlarge": null,
                    "obfuscated_xxlarge": null,
                    "obfuscated_xxxlarge": null,
                    "small": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 144,
                        "width": 108
                      },
                      "url": "https://preview.redd.it/cw49pg7pruhh1.jpg?width=108&auto=webp&s=b2f70332049d67b8ee9b696c7424e77bee9c2221"
                    },
                    "status": "VALID",
                    "url": "https://i.redd.it/cw49pg7pruhh1.jpg",
                    "userId": "t2_7auo71fl",
                    "width": 3000,
                    "xlarge": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 853,
                        "width": 640
                      },
                      "url": "https://preview.redd.it/cw49pg7pruhh1.jpg?width=640&auto=webp&s=1bbf93ee62f6b04433e7ff4f84f9705d3613b336"
                    },
                    "xxlarge": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 1280,
                        "width": 960
                      },
                      "url": "https://preview.redd.it/cw49pg7pruhh1.jpg?width=960&auto=webp&s=1f65355ca27b1a8b3acd71264b4274b1c3a03a88"
                    },
                    "xxxlarge": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 1440,
                        "width": 1080
                      },
                      "url": "https://preview.redd.it/cw49pg7pruhh1.jpg?width=1080&auto=webp&s=f1f8a17c240d68a773cb94d93c424c15b690ef35"
                    }
                  },
                  "outboundUrl": null,
                  "overlayData": null,
                  "subcaptionStrikethrough": null
                },
                {
                  "__typename": "PostGalleryItem",
                  "adEvents": null,
                  "adUrl": null,
                  "callToAction": null,
                  "caption": "",
                  "displayAddress": null,
                  "id": "1011220567",
                  "media": {
                    "__typename": "ImageAsset",
                    "height": 3000,
                    "id": "clldnqapruhh1",
                    "large": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 240,
                        "width": 320
                      },
                      "url": "https://preview.redd.it/clldnqapruhh1.jpg?width=320&auto=webp&s=729f69b9021afcc6398c70f3794723d623a514a1"
                    },
                    "medium": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 162,
                        "width": 216
                      },
                      "url": "https://preview.redd.it/clldnqapruhh1.jpg?width=216&auto=webp&s=d20367119cd28bf4f43f2bf53448d57249a92ea3"
                    },
                    "mimetype": "image/jpg",
                    "obfuscated_large": null,
                    "obfuscated_medium": null,
                    "obfuscated_small": null,
                    "obfuscated_xlarge": null,
                    "obfuscated_xxlarge": null,
                    "obfuscated_xxxlarge": null,
                    "small": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 81,
                        "width": 108
                      },
                      "url": "https://preview.redd.it/clldnqapruhh1.jpg?width=108&auto=webp&s=99ef3d7c10e38f33ccee197bd291920414cc9e7f"
                    },
                    "status": "VALID",
                    "url": "https://i.redd.it/clldnqapruhh1.jpg",
                    "userId": "t2_7auo71fl",
                    "width": 4000,
                    "xlarge": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 480,
                        "width": 640
                      },
                      "url": "https://preview.redd.it/clldnqapruhh1.jpg?width=640&auto=webp&s=db777898ff01f25dc70687bc2a4fe0e772ee172b"
                    },
                    "xxlarge": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 720,
                        "width": 960
                      },
                      "url": "https://preview.redd.it/clldnqapruhh1.jpg?width=960&auto=webp&s=0ccf979310f5523be6d463f923ef888294442f4c"
                    },
                    "xxxlarge": {
                      "__typename": "MediaSource",
                      "dimensions": {
                        "height": 810,
                        "width": 1080
                      },
                      "url": "https://preview.redd.it/clldnqapruhh1.jpg?width=1080&auto=webp&s=6f5bc21c193200ab144a28a516a03aaa02a9f7e5"
                    }
                  },
                  "outboundUrl": null,
                  "overlayData": null,
                  "subcaptionStrikethrough": null
                }
              ]
            },
            "id": "t3_1vhmf8q",
            "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": true,
            "isTranslated": false,
            "languageCode": "en",
            "media": null,
            "moderationInfo": null,
            "outboundLink": {
              "expiresAt": "2026-08-07T13:22:55.522325+0000",
              "url": "https://www.reddit.com/gallery/1vhmf8q"
            },
            "permalink": "/r/whatisit/comments/1vhmf8q/what_is_this_brownambercolored_stuff_running_down/",
            "poll": null,
            "postEventInfo": null,
            "postHint": null,
            "postStats": {
              "shareAllTotal": 5118,
              "viewCountTotal": null
            },
            "postStatsPrivate": {
              "viewCountTotals": null
            },
            "postTitle": "What is this brown/amber-colored stuff running down our walls?",
            "reactedFrom": null,
            "removedByCategory": null,
            "score": 5391,
            "subreddit": {
              "__typename": "Subreddit",
              "communityStatus": {
                "description": {
                  "markdown": "",
                  "richtext": null
                },
                "emoji": {
                  "name": "snoo_thoughtful",
                  "url": "https://emoji.redditmedia.com/7jhvwsc5aezz_t5_3nqvj/snoo_thoughtful"
                }
              },
              "id": "t5_2r397",
              "isNsfw": false,
              "isQuarantined": false,
              "isSubscribed": false,
              "isThumbnailsEnabled": true,
              "isTitleSafe": true,
              "isUserBanned": false,
              "modPermissions": null,
              "name": "whatisit",
              "prefixedName": "r/whatisit",
              "styles": {

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Reddit App Popular Feed API

Returns a page of posts from the Reddit popular feed, with author details, post content, and flags such as locked or NSFW. It needs no input. You can set sort, time, and after to change the order, the time window, and the page.

Use cases

  • Pull the current popular posts to see which topics are trending on Reddit.
  • Track commentCount on popular posts to find the threads with the most discussion.
  • Collect the posts that carry ads or app download links by checking __typename and callToAction.
  • Page through the feed with after and skip known posts with filter_posts to build a deduplicated list.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/popular-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 next page
filter_postsarrayNoList of post IDs to filter out, used to avoid duplicate fetches
need_formatbooleanNoWhether to clean and format the data
sortstringNoSort method, options: BEST, HOT, NEW, TOP, CONTROVERSIAL, RISING
timestringNoTime range, options: ALL, HOUR, DAY, WEEK, MONTH, YEAR

Example response

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

{
  "after": "dDNfMXhseWMwcg==",
  "popularfeed": {
    "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_1.png"
          },
          "id": "t2_2pw0aoobrt",
          "isBlocked": false,
          "isCakeDayNow": false,
          "name": "TrainingThink9747",
          "newIcon": {
            "__typename": "MediaSource",
            "dimensions": {
              "height": 256,
              "width": 256
            },
            "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_1.png"
          }
        },
        "awardings": [],
        "awardingsInfo": {
          "promos": null
        },
        "commentCount": 405,
        "content": {
          "html": "I 26M recently started hooking up with an older coworker 56F \nWe work for a real…",
          "markdown": "I 26M recently started hooking up with an older coworker 56F \n\nWe work for a rea…",
          "preview": "I 26M recently started hooking up with an older coworker 56F We work for a reall…",
          "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"I 26M recently started hooking up with an ol…",
          "richtextMedia": []
        },
        "createdAt": "2026-11-02T18:57:40.939000+0000",
        "crosspostRoot": null,
        "crowdControlLevel": "OFF"
      }
    ]
  }
}

Response fields

FieldMeaning
afterCursor for the next page. Send it back as the after parameter.
popularfeed.postsInfoByIds[]List of posts in the feed. Each item is one post object.
popularfeed.postsInfoByIds[].__typenamePost type. The response shows SubredditPost for normal posts and ProfilePost for posts made from a user profile.
popularfeed.postsInfoByIds[].idPost ID with the t3_ prefix, for example t3_1xm61yj.
popularfeed.postsInfoByIds[].commentCountNumber of comments on the post.
popularfeed.postsInfoByIds[].createdAtCreation time of the post as an ISO 8601 timestamp with a +0000 offset.
popularfeed.postsInfoByIds[].authorInfo.name / authorInfo.idUsername of the author and their ID with the t2_ prefix.
popularfeed.postsInfoByIds[].content.markdown / content.previewPost body as markdown and as a short plain-text preview. content is null for link posts such as ads.
popularfeed.postsInfoByIds[].domainDomain the post points to. Self posts show values like self.confession, and image posts show i.redd.it.
popularfeed.postsInfoByIds[].isLocked / isNsfw / isSelfPostFlags that show if the post is locked, marked NSFW, or a text post.

Notes

  • Send an empty body {} to get the default feed, which uses sort of BEST and time of ALL.
  • For the next page, pass the top-level after value as the after parameter.
  • Pass IDs you have already seen in filter_posts to leave them out of the results.
  • To read the comments of a post, call Reddit App Post Comments. For full post data, call Reddit Post Details.

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.001JSON
Reddit每次呼叫 $0.001JSON
Reddit每次呼叫 $0.001JSON
Reddit每次呼叫 $0.001JSON
Reddit每次呼叫 $0.001JSON
Reddit每次呼叫 $0.001JSON

指南:Best Reddit API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Reddit App Popular Feed API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/reddit/app/popular-feed。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Reddit App Popular Feed API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Reddit App Popular Feed API 接受哪些參數?

不需要任何參數。 選填:after (string), filter_posts (array), need_format (boolean), sort (string) 和 time (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Reddit App Popular Feed API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Reddit 開發者帳號或 API 金鑰嗎?

不需要。Reddit App Popular Feed 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Reddit API 存取權。