YOUTUBE API
Trending Shorts
Retrieve trending shorts from YouTube with a single API request.
GET
/api/data/v1/youtube/shorts/trending1credit base cost
Request parameters
Up to 1 creditThis endpoint takes no parameters.
Try in the consoleLive requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/youtube/shorts/trending' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"shorts": [
{
"id": "ou0nl5ET0HA",
"thumbnail": "https://img.youtube.com/vi/ou0nl5ET0HA/maxresdefault.jpg",
"url": "https://www.youtube.com/watch?v=ou0nl5ET0HA",
"title": "That hooper who says their just shoes",
"description": null,
"commentCountText": "168",
"commentCountInt": 168,
"likeCountText": "151957",
"likeCountInt": 151957,
"viewCountText": "13,798,774",
"viewCountInt": 13798774,
"publishDateText": "Aug 7, 2025",
"publishDate": "2025-08-07T13:00:22-07:00",
"channel": {
"id": "UC3iObCgKLKr9xquQw7fCang",
"url": "https://www.youtube.com/@dameuniverse",
"handle": "dameuniverse",
"title": "Dame Universe"
},
"chapters": [],
"keywords": [
"Kobe"
],
"durationMs": 19000,
"durationFormatted": "00:00:19"
}
],
"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"
},
"shorts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"thumbnail": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"commentCountText": {
"type": "string"
},
"commentCountInt": {
"type": "integer"
},
"likeCountText": {
"type": "string"
},
"likeCountInt": {
"type": "integer"
},
"viewCountText": {
"type": "string"
},
"viewCountInt": {
"type": "integer"
},
"publishDateText": {
"type": "string"
},
"publishDate": {
"type": "string"
},
"channel": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"handle": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"chapters": {
"type": "array"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"durationMs": {
"type": "integer"
},
"durationFormatted": {
"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."
}
}
}