Receiving Statistics

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.

  • /v2/stats/day/{yyyy-mm-dd}/{filter}
  • /v2/stats/month/{yyyy-mm}/{filter}
  • /v2/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:

Example Code

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

Getting statistics for the used API key

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

Example Code

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

Getting the statistics for the full activity for an API key

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:

Example Code

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