Endpoints
All endpoints follow the same pattern: POST https://api.fetchlayer.dev/youtube/{endpoint} with a JSON body and Bearer auth header.
TypeScript / JavaScript? Use the open-source SDK: @fetchlayer/youtube on npm · Source on GitHub
Comments
Extract comments and nested replies from YouTube videos.
/commentsCommentshttps://api.fetchlayer.dev/youtube/commentsExtract YouTube comments
Collects top-level comments and nested replies from a YouTube video. Supports sorting by top or newest, configurable reply depth, and pagination through the comment section.
Parameters
stringstringnumbernumberExample Request
Example Response
Response Fields
comments
Extract YouTube comments
stringstringnumberbooleanstringobject[]