In the API documentation, the viewCountText field is missing from the GET /API/V1/SEARCH Schema.
We can see that the search API returns the viewCountText field for the video object.
Example:
{
"type": "video",
"title": "Tory Lanez - The Color Violet (Official Music Video)",
"videoId": "GfAPEko4rbU",
"author": "Tory Lanez",
"authorId": "UCbfUA3UGxAWL3muD004g0WQ",
"authorUrl": "/channel/UCbfUA3UGxAWL3muD004g0WQ",
"authorVerified": true,
"videoThumbnails": [],
"description": "",
"descriptionHtml": "",
"viewCount": 8403310,
"viewCountText": "8.4M views", --> We can see the `viewCountText` field as returned from the API response
"published": 1700299733,
"publishedText": "7 months ago",
"lengthSeconds": 253,
"liveNow": false,
"premium": false,
"isUpcoming": false
}
In the API documentation, the
viewCountText
field is missing from theGET /API/V1/SEARCH Schema
.We can see that the search API returns the
viewCountText
field for thevideo
object.Example:
Documentation: