Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Reddit Trending Posts

Документация API
https://api.sandbase.ai/v1/api/reddit/trending-posts

Get currently trending Reddit posts across all subreddits with stable cursor pagination.

Цена
От $0.0003USD / вызов
Метод
POST
Ответ
JSON
Параметры
0 обязательных · 2 необязательных

Песочница

Ввод
Pagination cursor from a previous response's nextCursor. Omit for the first page.
1100
Maximum number of trending posts to return (1-100, default 25). Диапазон: от 1 до 100.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Reddit Trending Posts API

Returns a list of Reddit posts that are currently trending across all subreddits. Each post includes its title, subreddit, author, score, comment count, and link. The only inputs are an optional page size (limit) and an optional cursor (after).

Use cases

  • Track which topics are trending on Reddit right now and in which subreddits.
  • Build a feed or dashboard that shows the top trending posts with their scores and comment counts.
  • Spot fast-growing posts by comparing score and numComments across calls.
  • Collect trending post links and domain values to see which sites and image hosts get shared most.

Request

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

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

Parameters

NameTypeRequiredDescription
afterstringNoPagination cursor from a previous response's nextCursor. Omit for the first page.
limitintegerNoMaximum number of trending posts to return (1-100, default 25).

Example response

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

{
  "data": {
    "nextCursor": "t3_1xmlmgw",
    "posts": [
      {
        "author": "Negative_1by12_aura",
        "authorId": "2eyayz4qcy",
        "createdUtc": 1793676776,
        "domain": "i.redd.it",
        "id": "1xmids8",
        "isArchived": false,
        "isLocked": false,
        "nsfw": false,
        "numComments": 801,
        "permalink": "/r/interesting/comments/1xmids8/hiv_is_no_longer_a_terminal_disease/",
        "score": 21475,
        "selftext": ""
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.posts[].idPost ID without a prefix. Use it to look up the post in other APIs.
data.posts[].titleTitle of the post.
data.posts[].subredditName of the subreddit where the post was made.
data.posts[].author / data.posts[].authorIdUsername and ID of the post author.
data.posts[].score / data.posts[].numCommentsPost score and number of comments.
data.posts[].upvoteRatioShare of votes that are upvotes, as a decimal between 0 and 1 (for example 0.94).
data.posts[].createdUtcCreation time of the post as a Unix timestamp in seconds.
data.posts[].permalink / data.posts[].urlpermalink is the Reddit path of the post. url is the link the post points to, such as an image.
data.posts[].isArchived / data.posts[].isLocked / data.posts[].nsfwBoolean flags for archived posts, locked posts, and posts marked NSFW.
data.nextCursorCursor for the next page. Pass it as after in the next request.

Notes

  • For the first page, omit after. For the next page, send the value of data.nextCursor as after.
  • limit accepts 1 to 100 and defaults to 25.
  • selftext is empty for link and image posts, so text only appears for text posts.
  • To read a post in full, call Reddit Post Details. To list comments, use Reddit Post Comments.

Pricing

Billed at the actual cost of each call, about $0.0003 for the request above. Failed calls are not charged.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
RedditОт $0.0003 за запрос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

Вопросы

FAQ

Как использовать API Reddit Trending Posts?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/reddit/trending-posts, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Reddit Trending Posts?

От $0.0003 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Reddit Trending Posts?

Параметры не требуются. Необязательные: after (string) и limit (integer). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Reddit Trending Posts?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Reddit или API key?

Нет. Reddit Trending Posts работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Reddit.