Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

YouTube Shorts Search (V2)

API dokümanları
https://api.sandbase.ai/v1/api/youtube/web-v2/shorts-search-v2

Searches for YouTube Shorts matching a query keyword. Results can be filtered by upload date and sorted by relevance, upload date, view count, or rating.

Fiyat
$0.002USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
0 gerekli · 4 isteğe bağlı
Günde 100 ücretsiz çağrıHer gün ilk 100 çağrı ücretsizdir (kurum genelinde paylaşılır) · UTC 00:00'da sıfırlanır. Sonrasında çağrı başına ücretlendirilir.

Oynatma Alanı

Girdi
Pagination token (from previous response)
Search keyword (required for first request)
Sort by - relevance/upload_date/view_count/rating
Upload date filter - last_hour/today/this_week/this_month/this_year
ÇıktıÖrnek
Yanıtoutputs · 3.0 KB · 69 satır
[
  {
    "data": {
      "continuation_token": "Eq0DEgZPcGVuQUkaogNTQlNDQVJoVlExaGFRMHBNWkVKRE1EbDRlRWRhTm1kalpISmpOa0dDQVFzM1ZFZGhiV3BSWVdoWGE0SUJDMkpmTkRSU1lUaHRjMnh6Z2dFTFMweDNNRUZaTFdKelZuT0NBUXM0V0ZOeFpVVjJNMTlPYTRJQkN6WldkMGxZYWtacU5sbFJnZ0VMVnkxSWFFMVZaVGxvVDJlQ0FRdFBaMEppT1dsNU9HOHhaNElCQzJGV1psWmZTMjloUmt4RmdnRUxSMmhKU25NMGVtSklNRy1DQVF0NlJIUjJjbTFsTFV3dE1JSUJDMDh4U2sxYWRtZEdlRXRGZ2dFTFYzRTBOWEoyVUVkT1NIT0NBUXRWWVdWWFNrdGZkbll0V1lJQkMxaDFjVTlyVVhKMFlsOUpnZ0VMTFV4dVNHd3hUR1I1VmppQ0FRczFUVmRVWDJSdmJ6WTRhNElCQzFJMFpIWTNVMjV3T0VaVmdnRUxTbEU1TjBkcFJIZFFlR09DQVF0T1RsYzJabmcxYjB4RWI3SUJCZ29FQ0JnUUF1b0JCQWdDRUJrJTNEGIHg6BgiC3NlYXJjaC1mZWVk",
      "keyword": "OpenAI",
      "shorts": [
        {
          "author": "",
          "channel_id": "",
          "published_time": "",
          "thumbnails": [
            {
              "height": 720,
              "url": "https://i.ytimg.com/vi/mtK1nsXUqLs/oar2.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4qpAxMIARUAAAAAJQAAyEI9AICiQ3gB&rs=AOn4CLC-I2335wZotWaMq28SDrfkx5YTHA&usqp=CCk",
              "width": 405
            },
            {
              "height": 608,
              "url": "https://i.ytimg.com/vi/mtK1nsXUqLs/oar2.jpg?sqp=-oaymwEnCJUDEOAESFqQAgHyq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gByAEB&rs=AOn4CLDj_dqXFpD1JDRe36rRBodpXcnrUw&usqp=CCk",
              "width": 405
            }
          ],
          "title": "OpenAI and Anthropic's revenue race: Here's what to know",
          "url": "https://www.youtube.com/shorts/mtK1nsXUqLs",
          "video_id": "mtK1nsXUqLs",
          "view_count": "2.7K views"
        },
        {
          "author": "",
          "channel_id": "",
          "published_time": "",
          "thumbnails": [
            {
              "height": 720,
              "url": "https://i.ytimg.com/vi/OK0YhF3NMpQ/hq720.jpg?sqp=-oaymwEkCJUDENAFSFryq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gB0AEB&rs=AOn4CLBtpyfp-E7K9Wq4RBygYTeqQpFV5Q",
              "width": 405
            }
          ],
          "title": "OpenAI's CEO on What Kids Should Be Studying",
          "url": "https://www.youtube.com/shorts/OK0YhF3NMpQ",
          "video_id": "OK0YhF3NMpQ",
          "view_count": "5.7M views"
        },
        {
          "author": "",
          "channel_id": "",
          "published_time": "",
          "thumbnails": [
            {
              "height": 720,
              "url": "https://i.ytimg.com/vi/8t3XY7ED6NY/oar2.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4qpAxMIARUAAAAAJQAAyEI9AICiQ3gB&rs=AOn4CLA6ZoqyNK8LCOLyQziAiFEnGS5Yjw&usqp=CCk",
              "width": 405
            },
            {
              "height": 608,
              "url": "https://i.ytimg.com/vi/8t3XY7ED6NY/oar2.jpg?sqp=-oaymwEnCJUDEOAESFqQAgHyq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gByAEB&rs=AOn4CLCj8XiphYEmjCGwZxTAzjBhx9KooQ&usqp=CCk",
              "width": 405
            }
          ],
          "title": "The OpenAI Model That Stunned This Researcher",
          "url": "https://www.youtube.com/shorts/8t3XY7ED6NY",
          "video_id": "8t3XY7ED6NY",
          "view_count": "357 views"
        },
        "… 22 more items in the full response"
      ]
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

YouTube Shorts Search (V2) API

Returns a list of YouTube Shorts that match a search keyword. Each result has a title, video ID, Shorts URL, view count text, and thumbnails. You can filter by upload date and sort the results.

Use cases

  • Find popular Shorts about a topic such as coding tips.
  • List recently uploaded Shorts on a keyword with the upload_date filter.
  • Rank Shorts for a keyword by view_count or rating to see which ones perform best.
  • Collect Shorts URLs and thumbnails to build a content review list.

Request

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

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

Parameters

NameTypeRequiredDescription
continuation_tokenstringNoPagination token (from previous response)
keywordstringNoSearch keyword (required for first request)
sort_bystringNoSort by - relevance/upload_date/view_count/rating
upload_datestringNoUpload date filter - last_hour/today/this_week/this_month/this_year

Example response

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

{
  "continuation_token": "Eo4DEgtj…",
  "keyword": "coding tips",
  "shorts": [
    {
      "author": "",
      "channel_id": "",
      "published_time": "",
      "thumbnails": [
        {
          "height": 720,
          "url": "https://i.ytimg.com/vi/NGlX-1jhYJE/oardefault.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4…",
          "width": 405
        }
      ],
      "title": "How to Learn to Code",
      "url": "https://www.youtube.com/shorts/NGlX-1jhYJE",
      "video_id": "NGlX-1jhYJE",
      "view_count": "9.3M views"
    }
  ]
}

Response fields

FieldMeaning
shorts[]List of Shorts that match the keyword.
shorts[].video_idID of the Short. It is also the last part of the url value.
shorts[].titleTitle of the Short. It can include hashtags.
shorts[].urlLink to the Short on YouTube.
shorts[].view_countView count as display text, for example 9.3M views. It is a string, not a number.
shorts[].thumbnails[]Thumbnail images. Each one has a url, width, and height.
shorts[].author / shorts[].channel_id / shorts[].published_timeChannel name, channel ID, and publish time. These were empty strings in this response.
continuation_tokenToken for the next page of results.
keywordThe search keyword that the response was run for.

Notes

  • Send keyword on the first request. For the next page, send the continuation_token from the previous response.
  • sort_by accepts relevance, upload_date, view_count, or rating. upload_date accepts last_hour, today, this_week, this_month, or this_year.
  • author, channel_id, and published_time can come back empty. Call YouTube Video Information (V2) with the video_id to get more details about a Short.

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Search one page of Shorts for a topic

Send keyword on the first request. The schema accepts optional sort_by choices relevance, upload_date, view_count or rating, and upload_date filters last_hour, today, this_week, this_month or this_year. Choose filters deliberately and omit continuation_token initially. There is no numeric page-size field. An empty filtered page is a result to record, not permission to silently broaden the query.

Read shorts as a list. Search references use video_id, url, title and view_count. The selected saved reference includes empty author, channel_id and published_time values, so a hit may not support channel attribution or a publication date. Preserve those unknown values instead of inferring a channel from a title, guessing age or launching detail requests for every hit.

View counts such as 9.3M views are display strings, not exact numbers. Preserve raw text and any explicitly labeled approximation. Sorting by displayed views finds high-view observations; it does not establish current growth, velocity, causation or a trend. Without comparable observation times and publication context, do not calculate an invented views-per-day score.

Keep keyword and filters with the returned continuation_token. The tutorial's October 25 historical test found that a token-only second request failed while keyword plus token succeeded. That dated observation is not a fresh test of today's route, but it is a reason to retain query context rather than discard it. Never copy the truncated README token or reuse a channel-Shorts token here. This first task stops after one page and does not enrich, score or summarize through another model automatically.

Already know the creator? Use Channel Shorts independently for a channel-scoped sample.

Give your agent one Shorts sample task

Choose one keyword or one known channel before running. A connected agent needs that input, the selected endpoint and the result you want. For a new project, share the setup Skill, Markdown quickstart and your task. Keep SANDBASE_API_KEY locally and use POST /v1/api/ with Bearer authentication. Review one response before starting more pages, enrichment or scheduled comparisons.

Check completed SandBase status and an object at outputs[0].data, then require a shorts list for the selected simplified reference. A present empty list is a valid observation; missing or malformed data is an error. Do not silently turn provider failure into an empty result or retry the same business request automatically. Search and channel responses use different field names, so keep the source route with each saved record.

Pricing checked on 2026-11-08: Shorts Search lists $0.002 per call and Channel Shorts $0.001 per call. Both show eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility does not measure remaining allowance. Check current pricing before execution. No new business call was made for this revision. The YouTube Shorts Python guide retains its dated October experiment separately from current reference checks.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
YouTube$0.002 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON

Kılavuzlar:Best YouTube API in 2026: Pricing Compared

Sorular

SSS

YouTube Shorts Search (V2) API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/youtube/web-v2/shorts-search-v2 adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

YouTube Shorts Search (V2) API'sinin fiyatı nedir?

çağrı başına $0.002. Her kuruluş, UTC günü başına 100 ücretsiz çağrı alır; bu hak, bu API dahil uygun SandBase API'leri arasında ortaktır. Sonrasında her çağrı, SandBase bakiyenizden bu fiyat üzerinden ücretlendirilir. Abonelik yoktur.

YouTube Shorts Search (V2) API'si hangi parametreleri kabul eder?

İlk Shorts arama isteğinde keyword gönderin; deliberately seçtiğiniz sort_by ve upload_date filtrelerini de ekleyin. İsteğe bağlı şema, daha sonraki continuation_token isteklerini de kapsar; boş bir ilk gövde arama akışı değildir. Ayrı olarak seçilen herhangi bir continuation için keyword ve filtreleri koruyun.

YouTube Shorts Search (V2) API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir YouTube geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. YouTube Shorts Search (V2), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. YouTube API erişimi için ayrıca başvuru yapmanız gerekmez.

İlk Shorts araması için ne gereklidir?

keyword ve kasıtlı olarak seçilmiş herhangi bir sort_by veya upload_date filtresini gönderin; continuation_token'ı atlayın. Şema devam isteklerini de tanımlar, bu nedenle opsiyonel alanlar ilk boş isteği kullanışlı hale getirmez. Seçilen şemada sayısal bir page-size alanı yoktur.

Yüksek görüntüleme sayısına sahip bir sonucu güncel trend olarak değerlendirebilir miyim?

Hayır. Referanslar yuvarlanmış görüntüleme dizeleri içerir ve yazarı, kanal kimliğini ve yayınlanma zamanını atlayabilir. Bilinmeyenleri ve ham sayımları koruyun. Tek bir yüksek görüntülemeli örnek, güncel büyümeyi, hızı ya da platform genelindeki bir eğilimi ölçmez.

Sonraki bir aramada orijinal anahtar kelime korunmalı mı?

Evet, döndürülen token ile birlikte anahtar kelimeyi ve filtreleri koruyun. Eğitim notunda 25 Ekim’de token-only başarısızlık ve keyword-plus-token başarı kaydedilmiştir; bu revizyonda o iş testi tekrar edilmedi. Kısaltılmış örnek token’ları veya Channel Shorts’tan gelen token’ları yeniden kullanmayın.