urlstringzorunlu
URL of the YouTube community post.
https://api.sandbase.ai/v1/api/youtube/community-postFetch a single YouTube community post by URL (text, images, channel, publish time).
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Returns one YouTube community post: its text, image URLs, like count, publish time and the channel that posted it. It needs the full URL of the post in the url parameter.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/community-post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.youtube.com/post/Ugkx1LonSRBBUqASv-J8j9_FesxwlMAhT3_e"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL of the YouTube community post. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"channelHandle": "MrBeast",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"channelTitle": "MrBeast",
"content": "All the YouTube Play Buttons",
"createdUtc": 1783064892,
"id": "Ugkx1LonSRBBUqASv-J8j9_FesxwlMAhT3_e",
"image": "https://yt3.ggpht.com/GuMi512thU6CHTFw1kYlRISWYQmCyn90qa9JmrV2p6oj0K8v05z-omlruh…",
"images": [
"https://yt3.ggpht.com/GuMi512thU6CHTFw1kYlRISWYQmCyn90qa9JmrV2p6oj0K8v05z-omlruh…"
],
"likeCount": 2000000,
"publishedTime": "4 months ago"
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the post exists. A lookup that finds nothing returns false. |
data.id | ID of the community post. It is the last part of the post URL. |
data.content | Text of the post. |
data.image / images[] | URL of the post image, and the list of all image URLs attached to the post. |
data.likeCount | Number of likes on the post. |
data.createdUtc | Creation time of the post as a Unix timestamp. Compare it with publishedTime before you rely on it. |
data.publishedTime | Relative publish time as YouTube shows it, for example 4 months ago. |
data.channelId / channelHandle / channelTitle | ID, handle and display name of the channel that posted. |
https://www.youtube.com/post/<id>. The id in the response matches the last part of this URL.channelId with YouTube Channel to get details about the posting channel.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/community-post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.youtube.com/post/Ugkx1LonSRBBUqASv-J8j9_FesxwlMAhT3_e"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
urlstringzorunluURL of the YouTube community post.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
YouTube Community PostBu API YouTube | Kullanım başına $0.0012'den itibaren | JSON |
YouTube | Kullanım başına $0.00045'den itibaren | JSON |
YouTube | Kullanım başına $0.0012'den itibaren | JSON |
YouTube | Kullanım başına $0.0012'den itibaren | JSON |
YouTube | Kullanım başına $0.0012'den itibaren | JSON |
YouTube | $0.014286 çağrı başına | JSON |
Kılavuzlar:Best YouTube API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/youtube/community-post adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.0012'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. YouTube Community Post, 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.