Get Team Statistics
curl --request GET \
--url https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"overview": {
"totalLicenses": 150,
"totalCustomers": 45,
"totalProducts": 8,
"activeLicenses": 32,
"totalRequests": 12450
},
"requests": {
"total": 12450,
"successful": 11200,
"failed": 1250,
"successRate": 89.96,
"byType": {
"VERIFY": 8500,
"HEARTBEAT": 3200,
"DOWNLOAD": 750
}
},
"topCountries": [
{
"country": "United States of America",
"alpha3": "USA",
"alpha2": "US",
"requests": 5200
},
{
"country": "Germany",
"alpha3": "DEU",
"alpha2": "DE",
"requests": 2100
}
],
"topProducts": [
{
"id": "789e0123-e89b-12d3-a456-426614174222",
"name": "My Product",
"licenses": 50
}
],
"recentActivity": {
"last24h": 850,
"last7d": 4200,
"last30d": 12450
}
},
"result": {
"timestamp": "2023-09-15T14:30:00Z",
"valid": true,
"details": "Statistics retrieved"
}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}Dev - Statistics
Get Team Statistics
Returns combined usage statistics for a team, including license counts, request metrics, top countries, top products, and recent activity.
Results are cached for 15 minutes per team.
GET
/
api
/
v1
/
dev
/
teams
/
{teamId}
/
statistics
Get Team Statistics
curl --request GET \
--url https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.lukittu.com/api/v1/dev/teams/{teamId}/statistics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"overview": {
"totalLicenses": 150,
"totalCustomers": 45,
"totalProducts": 8,
"activeLicenses": 32,
"totalRequests": 12450
},
"requests": {
"total": 12450,
"successful": 11200,
"failed": 1250,
"successRate": 89.96,
"byType": {
"VERIFY": 8500,
"HEARTBEAT": 3200,
"DOWNLOAD": 750
}
},
"topCountries": [
{
"country": "United States of America",
"alpha3": "USA",
"alpha2": "US",
"requests": 5200
},
{
"country": "Germany",
"alpha3": "DEU",
"alpha2": "DE",
"requests": 2100
}
],
"topProducts": [
{
"id": "789e0123-e89b-12d3-a456-426614174222",
"name": "My Product",
"licenses": 50
}
],
"recentActivity": {
"last24h": 850,
"last7d": 4200,
"last30d": 12450
}
},
"result": {
"timestamp": "2023-09-15T14:30:00Z",
"valid": true,
"details": "Statistics retrieved"
}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}Authorizations
API key authentication for development endpoints.
You can create API keys in your team's settings on the Lukittu dashboard.
Include the API key in the Authorization header as: Bearer YOUR_API_KEY
Example:
Authorization: Bearer lukittu_api_key_abc123def456...
Path Parameters
Your team's UUID. You can find this value in your team's settings on the Lukittu dashboard. UUID v4 identifier
⌘I