GET /v3/education/usages/history

This endpoint allows you to export your usage history between two dates.

The output results will be exported to a csv file and it will be attached to the response.

Request

URI Parameters

Name Description

start Required

The start date to collect usage history from.

String (date)

Date Format: dd-MM-yyyy
Example: 01-01-2020

end Required

The end date to collect usage history from.

String (date)

Date Format: dd-MM-yyyy
Example: 31-01-2020

Request Example

curl -XGET -H 'Authorization: Bearer YOUR-LOGIN-TOKEN' 'https://api.copyleaks.com/v3/education/usages/history?start=01-01-2020&end=31-01-2020'
GET https://api.copyleaks.com/v3/education/usages/history?start=01-01-2020&end=31-01-2020

Authorization: Bearer YOUR-LOGIN-TOKEN;
import requests

headers = {
    'Authorization': 'Bearer YOUR-LOGIN-TOKEN'
}

response = requests.get('https://api.copyleaks.com/v3/education/usages/history?start=01-01-2020&end=31-01-2020', headers=headers)
using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.copyleaks.com/v3/education/usages/history?start=01-01-2020&end=31-01-2020"))
    {
        request.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR-LOGIN-TOKEN"); 

        var response = await httpClient.SendAsync(request);
    }
}
var request = require('request');

var headers = {
    'Authorization': 'Bearer YOUR-LOGIN-TOKEN'
};

var options = {
    url: 'https://api.copyleaks.com/v3/education/usages/history?start=01-01-2020&end=31-01-2020',
    headers: headers
};

function callback(error, response, body) {
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
}

request(options, callback);
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'Authorization' => 'Bearer YOUR-LOGIN-TOKEN'
);
$response = Requests::get('https://api.copyleaks.com/v3/education/usages/history?start=01-01-2020&end=31-01-2020', $headers);

Responses

Status Code Description Example
200

The data was exported.

csv file will be attached to the response.
400

Bad request. Wrong input parameters were provided.

401

Authorization has been denied for this request