Metrics History

HypeAuditor For Instagram

Endpoint

Get metrics history of an Instagram account

GET https://hypeauditor.com/api/method/auditor.instagramHistory/?username={username}&fields={fields}

Query params

ParameterTypeRequiredDescription
usernamestringyesInstagram username from https://www.instagram.com/<username>
fieldsstring | arrayoptionalMetrics to return the history for.
Default: er

Available values for fields: er, followers_count, followings_count, likes_avg, views_avg, comments_avg.

You can pass several values in two ways:

  • as a comma-separated list: fields=likes_avg,comments_avg
  • as an array: fields[]=likes_avg&fields[]=comments_avg

Changelog

❗️

Important:

  • 19/11/2026 - Thefields parameter has been added. It lets you request the history of er, followers_count, followings_count, likes_avg, views_avg and comments_avg. Without fields, the response contains only er, as before.

Disclaimer

📘

Before you start, consider that::

  • By requesting Metrics History, user UNLOCKS report (auditor.report method).
  • Disclaimer: HypeAuditor only provides historical data from the moment when the account to be searched was added to our database.

Response Object

AttributesType
metrics_historyobjectMetrics history data.
Array of objects {value: float, timestamp: int}, time is a Unix timestamp

The metrics_history object contains exactly the keys passed in the fields parameter. If fields is passed without er, the response does not include the er key.

If fields is not passed, the response contains only er, as before.

Metrics History Object

Each requested metric has the same structure: a history array of {value, timestamp} objects.

AttributesType
metrics_history.erobjectEngagement rate history
metrics_history.followers_countobjectFollowers count history
metrics_history.followings_countobjectFollowings count history
metrics_history.likes_avgobjectAverage likes history
metrics_history.comments_avgobjectAverage comments history
metrics_history.views_avgobjectAverage views history

Requests

Set YOUR_ID and YOUR_TOKEN from HypeAuditor.

curl -X GET \
  https://hypeauditor.com/api/method/auditor.instagramHistory?username=<username> \
  -H 'x-auth-id: %YOUR_ID%' \
  -H 'x-auth-token: %YOUR_TOKEN%' \
<?php
$curl = curl_init();
curl_setopt_array($curl, [
   CURLOPT_URL => 'https://hypeauditor.com/api/method/auditor.instagramHistory?username=<username>',
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_HTTPHEADER => [
       'x-auth-id: YOUR_ID',
       'x-auth-token: YOUR_TOKEN'
   ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
   echo 'cURL Error #:' . $err;
} else {
   echo $response;
}

Sample request with fields

GET https://hypeauditor.com/api/method/auditor.instagramHistory/?username=<username>&fields=likes_avg,comments_avg

Sample response with fields

{
    "result": {
        "metrics_history": {
            "likes_avg": {
                "history": [
                    {
                        "value": {
                            value
                        },
                        "timestamp": {
                            timestamp
                        }
                    }
                ]
            },
            "comments_avg": {
                "history": [
                    {
                        "value": {
                            value
                        },
                        "timestamp": {
                            timestamp
                        }
                    }
                ]
            }
        },
        "restTokens": {value
        }
    }
}

Sample request

GET https://hypeauditor.com/api/method/auditor.instagramHistory/?username=nasa&fields=likes_avg,views_avg,comments_avg,er,followers_count,followings_count

Sample response

{
    "result": {
        "metrics_history": {
            "er": {
                "history": [
                    {
                        "value": 1.43,
                        "timestamp": 1795046400
                    },
                    {
                        "value": 1.44,
                        "timestamp": 1795132800
                    }
                ]
            },
            "followers_count": {
                "history": [
                    {
                        "value": 104323858,
                        "timestamp": 1795046400
                    },
                    {
                        "value": 104328648,
                        "timestamp": 1795132800
                    }
                ]
            },
            "followings_count": {
                "history": [
                    {
                        "value": 91,
                        "timestamp": 1795046400
                    },
                    {
                        "value": 91,
                        "timestamp": 1795132800
                    }
                ]
            },
            "likes_avg": {
                "history": [
                    {
                        "value": 44865,
                        "timestamp": 1795046400
                    },
                    {
                        "value": 46355,
                        "timestamp": 1795132800
                    }
                ]
            },
            "comments_avg": {
                "history": [
                    {
                        "value": 658,
                        "timestamp": 1795046400
                    },
                    {
                        "value": 668,
                        "timestamp": 1795132800
                    }
                ]
            },
            "views_avg": {
                "history": [
                    {
                        "value": 2384339,
                        "timestamp": 1795651200
                    },
                    {
                        "value": 2384339,
                        "timestamp": 1795737600
                    }
                ]
            }
        },
        "restTokens": 9999
    }
}

Errors

If fields contains an unknown value (for example, posts_count), the request returns an invalid request error with the text Unknown fields: … and the list of available fields.

Unknown fields: {unknown value}. Available fields: er, followers_count, followings_count, likes_avg, comments_avg, views_avg

The fields parameter is validated before the data is requested, so no credit is charged in this case.