Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Reddit Trending Posts

Docs API
https://api.sandbase.ai/v1/api/reddit/trending-posts

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

Prix
À partir de $0.0003USD / appel
Méthode
POST
Réponse
JSON
Paramètres
0 obligatoires · 2 facultatifs

Bac à sable

Entrée
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). Plage : de 1 à 100.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
RedditÀ partir de $0.0003 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON

Guides :Best Reddit API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Reddit Trending Posts ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/reddit/trending-posts avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Reddit Trending Posts ?

À partir de $0.0003 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Reddit Trending Posts accepte-t-elle ?

Aucun paramètre n’est requis. Facultatif : after (string) et limit (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Reddit Trending Posts ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Reddit ?

Non. Reddit Trending Posts fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Reddit séparément.