YouTube
YouTube Community Post
Get one YouTube community post by id or URL - text, author and channel, publish time, likes, comment count, attached images and a cursor for its comments - as JSON.
POST/api/v1/youtube/community/post
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonpost_idstringrequiredA community post id (post_id from Channel Community) or a post URL.
Example: Ugkx_PqHZYEoCCP7e8WIOrh-1HCvtKoFMzVp
Notes
Pass comments_cursor, or just the same post_id, to Community Post Comments. vote_count is the like count; comment_count can be null when YouTube hides it.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.community_post(post_id="Ugkx_PqHZYEoCCP7e8WIOrh-1HCvtKoFMzVp")
print(results)Response
"post_id": "Ugkx_PqHZYEoCCP7e8WIOrh-1HCvtKoFMzVp",
"url": "https://www.youtube.com/post/Ugkx_PqHZYEoCCP7e8WIOrh-1HCvtKoFMzVp",
"text": "Before you sign up for Hustler's University, save 40% on a Fireship PRO membership at https://fireship.io/courses using the code BLACKFIRE.
You'll get access to my new Deno and Linux courses, recently updated Next.js and SvelteKit courses and have fun learning to code with full hands-on projects. Plus Lifetime subscribers get a next level T-shirt, shipped worldwide.
There's tons of free content there, so try it out before you upgrade.",
"author_name": "Fireship",
"author_channel_id": "UCsBjURrPoezykLs9EqgamOA",
"author_url": "https://www.youtube.com/@Fireship",
"author_avatar": "https://yt3.googleusercontent.com/3fPNbkf_xPyCleq77ZhcxyeorY97NtMHVNUbaAON_RBDH9ydL4hJkjxC8x_4mpuopkB8oI7Ct6Y=s76-c-k-c0x00ffffff-no-rj-mo",
"published_time": "1 year ago",
"vote_count": 1300,
"comment_count": null,
"attachment_type": "image",
"comments_cursor": "4qmFsgKzAhIoRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3RvcF9sZXZlbBqGAkVnVndiM04wYzZvRFd5SkhNQURZQVFIcUFTUlZaMnQ0WDFCeFNGcFpSVzlEUTFBM1pUaFhTVTl5YUMweFNFTjJkRXR2UmsxNlZuRHlBUmhWUTNOQ2FsVlNjbEJ2WlhwNWEweHpPVVZ4WjJGdFQwRkNFR052YlcxbGJuUnpMWE5sWTNScGIyN0NBMW9TR0ZWRGMwSnFWVkp5VUc5bGVubHJUSE01UlhGbllXMVBRUm9rVldkcmVGOVFjVWhhV1VWdlEwTlFOMlU0VjBsUGNtZ3RNVWhEZG5STGIwWk5lbFp3V2hoVlEzTkNhbFZTY2xCdlpYcDVhMHh6T1VWeFoyRnRUMEUlM0Q%3D"
},
"response_time": 1257
}