YouTube Hashtags

The YouTube hashtags endpoint allows you to retrieve analytics for hashtags across YouTube videos only. Get insights into hashtag popularity, usage counts, and total view metrics specific to the YouTube platform.


GET/youtube/hashtags

Get YouTube hashtags

Returns hashtag statistics for YouTube videos only within a specified date range (maximum 3 months). Aggregates data across YouTube videos within the date range.

Query parameters

  • Name
    startDate
    Type
    string
    Description

    Start date for filtering (YYYY-MM-DD format). Required.

  • Name
    endDate
    Type
    string
    Description

    End date for filtering (YYYY-MM-DD format, maximum 3 months from startDate). Required.

  • Name
    limit
    Type
    number
    Description

    Maximum number of results (1-200). Default is 50.

  • Name
    orderBy
    Type
    string
    Description

    Field to sort by: count or views. Default is count.

  • Name
    sort
    Type
    string
    Description

    Sort direction: asc or desc. Default is desc.

Request

GET
/youtube/hashtags
curl -G https://api.virlo.ai/youtube/hashtags \
  -H "Authorization: Bearer {token}" \
  -d startDate=2025-01-01 \
  -d endDate=2025-03-31 \
  -d limit=50 \
  -d orderBy=views \
  -d sort=desc

Response

{
  "results": 3,
  "data": [
    {
      "hashtag": "#shorts",
      "count": 2266,
      "total_views": 5190515902
    },
    {
      "hashtag": "#viral",
      "count": 399,
      "total_views": 589150203
    },
    {
      "hashtag": "#food",
      "count": 339,
      "total_views": 1450516025
    }
  ]
}

Error responses

The YouTube hashtags endpoint may return the following error codes:

  • Name
    400 Bad Request
    Description

    Invalid parameters provided. Common causes include: - Invalid date format (must be YYYY-MM-DD) - Both startDate and endDate are required - Date range exceeds 3 months - Invalid orderBy value (must be 'count' or 'views') - Invalid sort value (must be 'asc' or 'desc')

  • 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?