Social Media
YouTube Comments
List comments on a YouTube video — comment id, text, like count, reply count, author, and a reply cursor — with pagination, as JSON.
POST/api/v1/youtube/comments
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/jsonvideo_idstringrequiredThe YouTube video id (11 characters).
Example: n61ULEU7CO0
cursorstringPagination cursor from a previous response (next_cursor). Keep passing it while has_more is true.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.comments(video_id="n61ULEU7CO0")
print(results)Response
"next_cursor": "Eg0SC242MVVMRVU3Q08wGAYyZQ",
"has_more": true
},
"response_time": 986,
"credits_used": 1,
"credits_remaining": 4754
}