Felo API PlatformFelo API Platform
endpoint ทั้งหมดของ Reddit
v0.2.0-beta
OpenAPI 3.1.0

โพสต์ใน Subreddit

เซิร์ฟเวอร์:https://openapi.felo.ai
ไลบรารีไคลเอนต์

Reddit

​

Public communities, posts, comments and search.

Reddit การดำเนินการ

โพสต์ใน Subreddit

​

คืนสตรีมโพสต์ของ subreddit หนึ่งรายการพร้อม after token สำหรับแบ่งหน้า โพสต์มีฟิลด์เดียวกับ get_reddit_search รวมถึง title, author, selftext, score, ups, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink และ subreddit_subscribers sort รับ best, hot, new, top และ rising สำคัญ: timeframe รับเฉพาะเมื่อใช้ร่วมกับ sort=top และชุดค่าผสมอื่นจะคืน 400 แทนที่จะเพิกเฉยต่อพารามิเตอร์ ชื่อ subreddit แยกตัวพิมพ์เล็ก-ใหญ่ หากต้องการค้นหาภายใน subreddit เดียวกันให้ใช้ get_reddit_subreddit_search และใช้ get_reddit_subreddit_details สำหรับข้อมูลเมตา

ข้อมูลอ้างอิงราคา

  • การวัดปริมาณการใช้งาน: จำนวนผลลัพธ์ที่วัดปริมาณ
  • ค่าประมาณคำขออ้างอิง: USD 0.00188
  • ตัวคูณอ้างอิงสำหรับลูกค้า: 1.0 ห้ามนำไปใช้ซ้ำกับยอดที่เรียกเก็บจากลูกค้าแล้ว

เป็นข้อมูลเมตาอ้างอิงเท่านั้น ไม่ใช่ใบเสนอราคาสำหรับบัญชี ไม่ใช่ราคาที่รับประกัน และไม่ใช่เพดานการใช้จ่าย เครดิตของทรัพยากรไม่ใช่เครดิต Felo ยอดเรียกเก็บขั้นสุดท้ายเป็นไปตามบันทึกการเรียกเก็บเงินของ Felo

พารามิเตอร์ในคิวรี
  • after
    ประเภท: string
  • cache_max_age
    ประเภท: string
  • sort
    ประเภท: string
  • subreddit
    ประเภท: string
  • timeframe
    ประเภท: string
  • trim
    ประเภท: string
การตอบกลับ
  • 200
    ประเภท: object · Response799D183Abaf0_RedditPostsResponse

    การตอบกลับสำเร็จ

    • after
      ประเภท: string | null
    • credits_remaining
      ประเภท: integer

      Integer numbers.

    • cursor
      ประเภท: string | null
    • posts
      ประเภท: array object[] · Response799D183Abaf0_RedditPost[]
      • propertyName
        ประเภท: anything
    • success
      ประเภท: boolean
    • propertyName
      ประเภท: anything
    application/json
  • 400

    ไม่สามารถประมวลผลคำขอได้ ตรวจสอบพารามิเตอร์ของคำขอ

  • 401

    จำเป็นต้องใช้คีย์ API ของ Felo ที่ถูกต้อง

  • 402

    ไม่สามารถดำเนินการตามคำขอได้ เนื่องจากไม่เป็นไปตามข้อกำหนดด้านการเรียกเก็บเงิน

  • 403

    บัญชีไม่ได้รับอนุญาตให้ดำเนินการนี้

  • 429

    ถึงขีดจำกัดคำขอหรือการใช้จ่ายแล้ว

  • 502

    บริการไม่สามารถดำเนินการตามคำขอให้เสร็จสิ้นได้

  • 503

    API หรือบริการเรียกเก็บเงินไม่พร้อมใช้งานชั่วคราว

  • 504

    บริการหมดเวลาระหว่างประมวลผลคำขอ

  • default

    การตอบกลับข้อผิดพลาด; การตอบกลับที่ส่งผ่านจากต้นทางอาจใช้รูปแบบของผู้ให้บริการ

    application/json
Request Example for get/v1/beta/reddit/subreddit
curl https://openapi.felo.ai/v1/beta/reddit/subreddit \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "posts": [
    {
      "id": "1lfbo7u",
      "author": "Vetro_Nodulare2",
      "author_fullname": "t2_16syu27ar1",
      "subreddit": "AskReddit",
      "title": "What is a thing you love that lots of people hate?",
      "downs": 0,
      "name": "t3_1lfbo7u",
      "upvote_ratio": 0.9,
      "ups": 45,
      "total_awards_received": 0,
      "score": 45,
      "created": 1750341959,
      "num_comments": 349,
      "url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/",
      "subreddit_subscribers": 56146328,
      "is_video": false,
      "created_utc": 1750341959
    }
  ],
  "after": "t3_1lfogps"
}
Subreddit Posts