YOUTUBE API
Comments
Retrieve comments from YouTube with a single API request.
GET
/api/data/v1/youtube/video/comments1credit base cost
Request parameters
Up to 1 creditYouTube video URL
Continuation token to get more comments. Get 'continuationToken' from previous response.
Order of comments
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/youtube/video/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"comments": [
{
"id": "UgwVfRopfS2F-WB3aF14AaABAg",
"content": "I love how in the middle he said \"I've been able to work with 2 great coaches... Pete and Coach Tomlin\"... Side shade to Coach Sean Payton, love it :)",
"publishedTimeText": "9 days ago",
"publishedTime": "2025-01-23T23:14:02.948Z",
"replyLevel": 0,
"author": {
"name": "@SimonT80",
"channelId": "UC8JC3uSUmmXTCTKl-bgr1DA",
"isVerified": false,
"isCreator": false,
"avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_lQ_2v9lDqwRrmdvEBfDNyFOvgQICl68X6WFkwZ5KI=s88-c-k-c0x00ffffff-no-rj",
"channelUrl": "https://youtube.com/@SimonT80"
},
"engagement": {
"likes": 110,
"replies": 5
},
"repliesContinuationToken": "Eg0SC2RRdzR3OVdnWGNRGAYy1AEK..."
}
],
"continuationToken": "Eg0SCzVFV2F4bVd....",
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"comments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"content": {
"type": "string"
},
"publishedTimeText": {
"type": "string"
},
"publishedTime": {
"type": "string"
},
"replyLevel": {
"type": "integer"
},
"author": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"channelId": {
"type": "string"
},
"isVerified": {
"type": "boolean"
},
"isCreator": {
"type": "boolean"
},
"avatarUrl": {
"type": "string"
},
"channelUrl": {
"type": "string"
}
}
},
"engagement": {
"type": "object",
"properties": {
"likes": {
"type": "integer"
},
"replies": {
"type": "integer"
}
}
},
"repliesContinuationToken": {
"type": "string"
}
}
}
},
"continuationToken": {
"type": "string"
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}