Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

YouTube Trending Shorts

เอกสาร API
https://api.sandbase.ai/v1/api/youtube/trending-shorts

List currently trending YouTube Shorts (title, channel, views, likes, duration).

ราคา
เริ่มต้นที่ $0.0012USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
ไม่มี schema ของอินพุต
เอาต์พุตพร้อมใช้งาน

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

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

API README

YouTube Trending Shorts API

Returns a list of YouTube Shorts that are currently trending. It needs no input: send an empty JSON object {}. Each item has the title, channel, view, like and comment counts, duration, and links.

Use cases

  • Spot which Shorts are gaining views right now to find topics for your own content.
  • Track the channels and categories that appear most often in the trending list.
  • Build a dashboard or feed that shows trending Shorts with thumbnails and links.
  • Collect channel IDs from trending Shorts and pass them to a channel lookup for deeper research.

Request

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

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

Example response

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

{
  "data": {
    "shorts": [
      {
        "authorHandle": "globalmindapparel",
        "authorId": "UC2pn4FHmt3Td-A2kkhcYAqg",
        "authorUrl": "https://www.youtube.com/@globalmindapparel",
        "category": "People & Blogs",
        "channelTitle": "Global Mind Apparel",
        "comments": 16000,
        "createdUtc": 1790109026,
        "duration": "00:02:24",
        "durationMs": 144000,
        "id": "jm-1NeOounQ",
        "image": "https://img.youtube.com/vi/jm-1NeOounQ/maxresdefault.jpg",
        "likes": 321806
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.shorts[].idThe YouTube video ID of the Short.
data.shorts[].titleThe title of the Short.
data.shorts[].urlLink to the Short on YouTube.
data.shorts[].imageThumbnail image URL for the Short.
data.shorts[].views / likes / commentsCounts of views, likes and comments on the Short.
data.shorts[].duration / durationMsLength of the Short as an HH:MM:SS string and in milliseconds.
data.shorts[].channelTitle / authorHandleDisplay name and @ handle of the channel that posted the Short.
data.shorts[].authorId / authorUrlThe channel ID (starts with UC) and the channel page URL.
data.shorts[].categoryThe YouTube category of the Short, for example Entertainment.
data.shorts[].createdUtcCreation time of the Short as a Unix timestamp in seconds.

Notes

  • The endpoint takes no parameters. Send {} as the body.
  • Use authorId with YouTube Channel or YouTube Channel Shorts to look at the channel behind a Short.
  • Pass id to YouTube Video Details to get more data about a single Short.
  • duration can be longer than one minute, so check durationMs if you need to filter by length.

Pricing

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

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
YouTubeเริ่มต้นที่ $0.0012 ต่อครั้งJSON
YouTubeเริ่มต้นที่ $0.00045 ต่อครั้งJSON
YouTubeเริ่มต้นที่ $0.0012 ต่อครั้งJSON
YouTubeเริ่มต้นที่ $0.0012 ต่อครั้งJSON
YouTubeเริ่มต้นที่ $0.0012 ต่อครั้งJSON
YouTube$0.014286 ต่อการเรียกJSON

คู่มือ:Best YouTube API in 2026: Pricing Compared

คำถาม

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

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

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

YouTube Trending Shorts API ราคาเท่าไร?

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

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

YouTube Trending Shorts ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า

YouTube Trending Shorts API ส่งคืนอะไร?

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

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

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