API key stats

Get quantitative request statistics for a given api key and time period

Returns quantitative request statistics.

Sample request

https://api.thespectre.io/apikey_stats
   ?apikey=YourApiKeyToken
   &timerange=day

Request query parameters

ParameterDescription

apikey*

the string representing the api key

timerange*

the string pre-defined time period parameter, either hour, day, week or fortnight

Sample response

{
    "status": "1",
    "message": "OK",
    "result": [
        {
            "calls": 252,
            "timestamp": 1670410800
        },
        {
            "calls": 256,
            "timestamp": 1670414400
        }
    ] 
}

Get last api calls for a given api key

Returns 20 last calls.

Sample request

https://api.thespectre.io/apikey_lastcalls
   ?apikey=YourApiKeyToken

Request query parameters

ParameterDescription

apikey*

the string representing the api key

Sample response

{
    "status": "1",
    "message": "OK",
    "result": [
        {
            "action": "avgblocktime",
            "from": "10.190.6.130",
            "module": "stats",
            "timestamp": 1670492713,
            "data": null
        },
        {
            "action": "gettotalwalletcount",
            "from": "10.190.6.130",
            "module": "account",
            "timestamp": 1670492713,
            "data": null
        }
    ] 
}

Last updated