Instagram Hashtags

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


GET/v1/instagram/hashtags

Get Instagram hashtags

Returns hashtag statistics for Instagram videos only within a specified date range (maximum 90 days). Aggregates data across Instagram videos within the date range.

Cost per request:

Query parameters

  • Name
    start_date
    Type
    string
    Required
    *
    Description

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

  • Name
    end_date
    Type
    string
    Required
    *
    Description

    End date for filtering (YYYY-MM-DD format, maximum 90 days from start_date). Required.

  • Name
    limit
    Type
    number
    Description

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

  • Name
    order_by
    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
/v1/instagram/hashtags
curl -G https://api.virlo.ai/v1/instagram/hashtags \
  -H "Authorization: Bearer {token}" \
  -d start_date=2025-01-01 \
  -d end_date=2025-03-31 \
  -d limit=50 \
  -d order_by=views \
  -d sort=desc

Response

{
  "data": [
    {
      "hashtag": "#explorepage",
      "count": 4521,
      "total_views": 8923456123
    },
    {
      "hashtag": "#instagood",
      "count": 3892,
      "total_views": 6543210987
    },
    {
      "hashtag": "#viral",
      "count": 3215,
      "total_views": 5123456789
    }
  ]
}

Error responses

The Instagram 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 start_date and end_date are required - Date range exceeds 90 days - Invalid order_by 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?