Get statistics on your API activity

To receive statistics on your API activity, you have to send a request to the API to one of the following endpoints, depending on the needed period.

  • /stats/day/{yyyy-mm-dd}/{filter}
  • /stats/month/{yyyy-mm}/{filter}
  • /stats/year/{yyyy}/{filter}


The mandatory {filter} let you specify if you want the statistics just for the API key used for the statistics requests or for all of your API keys. The allowed values are the following:

  • single (to receive the activity of the used API key only)
  • all (to receive the activity of ALL of your API keys)

For example, if you want to receive the statistics for the used API key for the specific day 02/10/2017, send the following HTTP request:

GET /stats/day/2017-10-02/single HTTP/1.1
Host: https://api2.online-convert.com
X-Oc-Api-Key: <your API key here>
Content-Type: application/json

If you want to receive the statistics for the used API key for the month of April, 2017, send the following HTTP request:

GET /stats/month/2017-04/single HTTP/1.1
Host: https://api2.online-convert.com
X-Oc-Api-Key: <your API key here>
Content-Type: application/json

If you want to receive the statistics for the full activity you had in 2016 with ALL of your API keys, just send the following HTTP request with any of your API keys:

GET /stats/month/2016/all HTTP/1.1
Host: https://api2.online-convert.com
X-Oc-Api-Key: <one of your API keys here>
Content-Type: application/json

results matching ""

    No results matching ""