YouTube Videos

The YouTube videos endpoint provides access to the top-performing YouTube videos published in the last 48 hours.


GET/v1/youtube/videos/digest

Get YouTube videos digest

Returns the top YouTube videos published in the last 48 hours, ordered by view count (highest first).

Cost per request:

Query parameters

  • Name
    limit
    Type
    number
    Description

    Number of top videos to return (1-100). Default is 50.

Request

GET
/v1/youtube/videos/digest
curl -G https://api.virlo.ai/v1/youtube/videos/digest \
  -H "Authorization: Bearer {token}" \
  -d limit=50

Response

{
  "data": [
    {
      "id": "e30b40b1-15fa-4d00-8db3-3eb83e94546d",
      "url": "https://www.youtube.com/watch?v=dkCFBauD2F4",
      "publish_date": "2025-10-22T04:00:51",
      "views": 11166267,
      "number_of_likes": 36859,
      "number_of_comments": 23,
      "description": "Battlefield 6 leaked gameplay footage has everyone talking! Insane graphics and new mechanics revealed #battlefield6 #gaming #leak #ea",
      "thumbnail_url": "https://auth.virlo.ai/storage/v1/object/public/thumbnails/6c72771e-a3af-43c0-8951-605474eab5ec.jpg",
      "hashtags": ["#battlefield6", "#gaming", "#leak", "#ea"],
      "type": "youtube",
      "niche": "gaming",
      "author_id": "b466d69a-cb59-44db-a59f-0f60039a18e8",
      "bookmarks": 0,
      "external_id": "dkCFBauD2F4",
      "region": null,
      "duration": 8,
      "transcript_raw": null
    },
    {
      "id": "3e697300-be24-4ef5-9b6c-b1a9cce56e52",
      "url": "https://www.youtube.com/watch?v=JO57an06NLQ",
      "publish_date": "2025-10-22T12:00:40",
      "views": 8522543,
      "number_of_likes": 23676,
      "number_of_comments": 7,
      "description": "Gold market experiences unexpected crash as investors panic sell. What this means for your portfolio #goldmarketcrash #investing #finance #stockmarket",
      "thumbnail_url": "https://auth.virlo.ai/storage/v1/object/public/thumbnails/851ec552-d2eb-4fa2-bdf6-17ff836ac93e.jpg",
      "hashtags": null,
      "type": "youtube",
      "niche": "finance",
      "author_id": "bf8db3f1-ae8e-4203-8a05-3c0645faff19",
      "bookmarks": 0,
      "external_id": "JO57an06NLQ",
      "region": null,
      "duration": 6,
      "transcript_raw": "This is the video transcript..."
    }
  ]
}

Error responses

The YouTube videos digest endpoint may return the following error codes:

  • Name
    400 Bad Request
    Description

    Invalid parameters provided. Common causes include: - Invalid limit value (must be 1-100)

  • Name
    401 Unauthorized
    Description

    Missing or invalid API key. Ensure you're including your API key in the Authorization header.

  • Name
    429 Too Many Requests
    Description

    Rate limit exceeded. Your plan has specific rate limits per endpoint. Wait before making additional requests.

Was this page helpful?