Basic Fetching Tutorial
Example to get votes of a given YouTube video ID:
kxOuG8jMIgI
Example Request:
Headers:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9
Pragma: no-cache
Cache-Control: no-cache
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Connection: keep-alive
Response:
{
"id": "kxOuG8jMIgI",
"dateCreated": "2021-12-20T12:25:54.418014Z",
"likes": 27326,
"dislikes": 498153,
"rating": 1.212014408444885,
"viewCount": 3149885,
"deleted": false
}
"id": "kxOuG8jMIgI",
"dateCreated": "2021-12-20T12:25:54.418014Z",
"likes": 27326,
"dislikes": 498153,
"rating": 1.212014408444885,
"viewCount": 3149885,
"deleted": false
}
An invalid YouTube ID will return status code 404 "Not Found"
An incorrectly formatted YouTube ID will return 400 "Bad Request"
An incorrectly formatted YouTube ID will return 400 "Bad Request"