curl --request GET \
--url https://api.cloud.corbado.io/v1/observe/timeSeries/totals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloud.corbado.io/v1/observe/timeSeries/totals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloud.corbado.io/v1/observe/timeSeries/totals', 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://api.cloud.corbado.io/v1/observe/timeSeries/totals",
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://api.cloud.corbado.io/v1/observe/timeSeries/totals"
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://api.cloud.corbado.io/v1/observe/timeSeries/totals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/timeSeries/totals")
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{
"savedFilter": {
"status": "none",
"savedFilterID": "<string>",
"version": 123,
"name": "<string>",
"source": "default",
"missing": [
{
"dimension": "<string>",
"tag": "<string>"
}
],
"reads": [
"visitorType",
"tag:region"
]
},
"rows": [
{
"dimensions": {},
"value": 123
}
],
"queryPlan": {
"segments": [
{
"source": "stored",
"fromMs": 123,
"toMs": 123,
"interval": "hourly",
"narrowed": true,
"reason": "<string>",
"groupBy": [
"<string>"
],
"removedFields": [
"<string>"
],
"removedJoins": [
"<string>"
],
"keptJoins": [
"<string>"
]
}
]
}
}{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}Get time series totals
Sums a time series over an arbitrary range, one row per combination of the groupBy dimensions
and without time buckets. Every dimension not listed in groupBy is summed away, so omitting
groupBy returns a single row with the total.
The range does not have to align with any hour or day. Recent data that is not yet precalculated is computed on demand; that part of the range must not exceed 8 hours, otherwise the request is rejected with a validation error.
Only meaningful for series whose values are counts, because values are added up across buckets.
Required API key permission: observe:timeSeries:read.
curl --request GET \
--url https://api.cloud.corbado.io/v1/observe/timeSeries/totals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloud.corbado.io/v1/observe/timeSeries/totals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloud.corbado.io/v1/observe/timeSeries/totals', 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://api.cloud.corbado.io/v1/observe/timeSeries/totals",
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://api.cloud.corbado.io/v1/observe/timeSeries/totals"
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://api.cloud.corbado.io/v1/observe/timeSeries/totals")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/timeSeries/totals")
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{
"savedFilter": {
"status": "none",
"savedFilterID": "<string>",
"version": 123,
"name": "<string>",
"source": "default",
"missing": [
{
"dimension": "<string>",
"tag": "<string>"
}
],
"reads": [
"visitorType",
"tag:region"
]
},
"rows": [
{
"dimensions": {},
"value": 123
}
],
"queryPlan": {
"segments": [
{
"source": "stored",
"fromMs": 123,
"toMs": 123,
"interval": "hourly",
"narrowed": true,
"reason": "<string>",
"groupBy": [
"<string>"
],
"removedFields": [
"<string>"
],
"removedJoins": [
"<string>"
],
"keptJoins": [
"<string>"
]
}
]
}
}{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}Authorizations
Query Parameters
Saved filter to apply (format svf-<number>), or none for unfiltered data. Omitted: the
project's default saved filter (unfiltered when none is set). A saved filter given here replaces the
default; it is never combined with it. The response's savedFilter says which filter was applied, or
that it was not applicable to the series (then the data is unfiltered).
"svf-123456"
Response
Totals per dimension combination
Was this page helpful?