# Reddit App Home Feed API

> 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.

Source: https://www.sandbase.ai/model/reddit/app/home-feed
API reference: https://www.sandbase.ai/model/reddit/app/home-feed/docs

## Facts

- Provider: Reddit
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/reddit/app/home-feed`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, reddit
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/reddit/app/home-feed` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `after` | string | no |  |
| `filter_posts` | array | no |  |
| `need_format` | boolean | no |  |
| `sort` | string | no |  |

## FAQ

### How do I use the Reddit App Home Feed API?

Send a POST request to https://api.sandbase.ai/v1/api/reddit/app/home-feed with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Reddit App Home Feed API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Reddit App Home Feed API accept?

No parameters are required. Optional: after (string), filter_posts (array), need_format (boolean) and sort (string). The Parameters table and the Playground on this page list every field.

### What does the Reddit App Home Feed API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Reddit developer account or API key?

No. Reddit App Home Feed runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Reddit API access separately.

## README

### Reddit App Home Feed API

Retrieves the Reddit app home feed using optional parameters such as `sort`, `after`, and `filter_posts` to paginate and filter content.

#### Use cases

- Display trending or top posts from the Reddit home feed.
- Paginate through mobile feed posts using cursor tokens.
- Exclude previously viewed post IDs from feed responses.

#### Request

```bash
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 '{}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `sort` | string | No | Sort method, supports HOT, NEW, TOP, BEST, CONTROVERSIAL |
| `after` | string | No | Pagination parameter for fetching the next page |
| `need_format` | boolean | No | Whether to clean and format the data |
| `filter_posts` | array | No | List of post IDs to filter out, used to exclude already fetched posts |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "homefeed": {
    "postsInfoByIds": [
      {
        "__typename": "SubredditPost",
        "commentCount": 489,
        "id": "t3_1ww2n4p",
        "isAuthorBlocked": false,
        "isScoreHidden": false,
        "permalink": "/r/teenagers/comments/1ww2n4p/whats_a_crazy_rumour_from_your_school_that_turned/",
        "postTitle": "Whats a crazy rumour from your school that turned out to be true?",
        "score": 389,
        "url": "https://i.redd.it/956mpuopt3th1.jpeg",
        "authorFlair": {
          "__typename": "AuthorFlair",
          "richtext": "[{\"e\":\"text\",\"t\":\"Teenager\"}]",
          "text": "Teenager"
        },
        "authorInfo": {
          "__typename": "Redditor",
          "accountType": "USER",
          "id": "t2_25tl8ckdgd",
          "name": "Crimsonrainflower33"
        },
        "flair": {
          "__typename": "PostFlair",
          "richtext": "[{\"e\":\"text\",\"t\":\"Discussion\"}]",
          "text": "Discussion",
          "type": "richtext"
        },
        "media": {
          "__typename": "Media",
          "typeHint": "IMAGE"
        },
        "outboundLink": {
          "url": "https://i.redd.it/956mpuopt3th1.jpeg"
        }
      }
    ]
  }
}
```

#### Notes

- `sort` supports HOT, NEW, TOP, BEST, and CONTROVERSIAL.
- Use `after` to fetch the next page of feed items.
- Pass an array of post IDs into `filter_posts` to exclude already viewed items.

#### Related APIs

- [Reddit Subreddit Mute Status](/model/reddit/app/check-subreddit-muted): Checks whether a specified Reddit subreddit is muted by the current account using its ID.
- [Reddit App Comment Replies](/model/reddit/app/comment-replies): Returns replies and nested sub-comments under a Reddit post comment using a continuation cursor.
- [Reddit Community Highlights](/model/reddit/app/community-highlights): Returns featured highlight content for a designated Reddit community, such as popular posts and announcements, by subreddit ID.
