GET
/
api
/
activity
/
keys
/
{keyHash}
/
{startDay}
/
{startMonth}
/
{startYear}
/
{EndDay}
/
{EndMonth}
/
{EndYear}
Analytics of API Key.
curl --request GET \
  --url https://{tenant}/api/activity/keys/{keyHash}/{startDay}/{startMonth}/{startYear}/{EndDay}/{EndMonth}/{EndYear} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "error": 4,
      "hits": 31,
      "id": {
        "alias": "",
        "api_id": "41351a6a94094da05f75146a695a16f6",
        "api_name": "Keyless",
        "code": 404,
        "day": 0,
        "hour": 0,
        "iso_country": "",
        "key": "",
        "month": 0,
        "path": "/anything",
        "url": "",
        "year": 0
      },
      "last_hit": "2024-06-19T07:11:39Z",
      "latency": 0,
      "max_latency": 0,
      "max_upstream_latency": 0,
      "min_latency": 0,
      "min_upstream_latency": 0,
      "request_time": 174.5,
      "success": 27,
      "upstream_latency": 0
    }
  ],
  "pages": 1
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Path Parameters

startDay
string
required

Day to start querying the analytics from.

startMonth
string
required

Month to start querying the analytics from.

startYear
string
required

Year to start querying the analytics from.

EndDay
string
required

End date of analytics to query.

EndMonth
string
required

End month of analytics to query.

EndYear
string
required

End year of analytics to query.

keyHash
string
required

Hash of your API key.

Response

Returns analytics of all endpoints called using the given key between the given time range.

data
object[] | null
pages
integer