Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
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.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Reddit Trending Posts API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/reddit/trending-posts โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Reddit Trending Posts API ราคาเท่าไร?

เริ่มต้นที่ $0.0003 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Reddit Trending Posts API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: after (string) และ limit (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Reddit Trending Posts API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Reddit ไหม?

ไม่จำเป็น Reddit Trending Posts ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Reddit API แยกต่างหาก