Get cohort analytics metadata
curl --request GET \
--url https://api.qonversion.io/v4/analytics/cohorts/meta \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qonversion.io/v4/analytics/cohorts/meta"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qonversion.io/v4/analytics/cohorts/meta', 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.qonversion.io/v4/analytics/cohorts/meta",
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;
}require 'uri'
require 'net/http'
url = URI("https://api.qonversion.io/v4/analytics/cohorts/meta")
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_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qonversion.io/v4/analytics/cohorts/meta"
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.qonversion.io/v4/analytics/cohorts/meta")
.header("Authorization", "Bearer <token>")
.asString();{
"object": "analytics_cohorts_meta",
"url": "/v4/analytics/cohorts/meta",
"modes": [
{
"code": "by_renewals",
"label": "By Renewals"
},
{
"code": "by_days",
"label": "By Days"
}
],
"groupings": [
{
"code": "day",
"label": "Day"
},
{
"code": "week",
"label": "Week"
},
{
"code": "month",
"label": "Month"
},
{
"code": "quarter",
"label": "Quarter"
},
{
"code": "year",
"label": "Year"
}
],
"metrics": [
{
"code": "revenue",
"label": "Revenue"
},
{
"code": "subscriptions",
"label": "Subscriptions"
},
{
"code": "payers",
"label": "Payers"
},
{
"code": "arpu",
"label": "ARPU"
},
{
"code": "arppu",
"label": "ARPPU"
}
],
"definitions": [
{
"code": "new_customers",
"label": "New Customers"
},
{
"code": "initial_conversions",
"label": "Initial Conversions"
},
{
"code": "new_paying",
"label": "New Paying Customers"
}
],
"filter_conditions": [
{
"attribute": "target_platform",
"label": "Store",
"persistent": true,
"type": "list",
"values": [
{
"code": "iOS",
"label": "Apple App Store"
},
{
"code": "Android",
"label": "Google Play"
},
{
"code": "Stripe",
"label": "Stripe"
}
]
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Analytics
Get cohort analytics metadata
Returns the discrete value sets needed to build a cohort query: available
modes, groupings, metrics, cohort_definitions, and filter attributes
with their concrete values (pre-scoped to the project).
GET
/
analytics
/
cohorts
/
meta
Get cohort analytics metadata
curl --request GET \
--url https://api.qonversion.io/v4/analytics/cohorts/meta \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qonversion.io/v4/analytics/cohorts/meta"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qonversion.io/v4/analytics/cohorts/meta', 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.qonversion.io/v4/analytics/cohorts/meta",
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;
}require 'uri'
require 'net/http'
url = URI("https://api.qonversion.io/v4/analytics/cohorts/meta")
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_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qonversion.io/v4/analytics/cohorts/meta"
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.qonversion.io/v4/analytics/cohorts/meta")
.header("Authorization", "Bearer <token>")
.asString();{
"object": "analytics_cohorts_meta",
"url": "/v4/analytics/cohorts/meta",
"modes": [
{
"code": "by_renewals",
"label": "By Renewals"
},
{
"code": "by_days",
"label": "By Days"
}
],
"groupings": [
{
"code": "day",
"label": "Day"
},
{
"code": "week",
"label": "Week"
},
{
"code": "month",
"label": "Month"
},
{
"code": "quarter",
"label": "Quarter"
},
{
"code": "year",
"label": "Year"
}
],
"metrics": [
{
"code": "revenue",
"label": "Revenue"
},
{
"code": "subscriptions",
"label": "Subscriptions"
},
{
"code": "payers",
"label": "Payers"
},
{
"code": "arpu",
"label": "ARPU"
},
{
"code": "arppu",
"label": "ARPPU"
}
],
"definitions": [
{
"code": "new_customers",
"label": "New Customers"
},
{
"code": "initial_conversions",
"label": "Initial Conversions"
},
{
"code": "new_paying",
"label": "New Paying Customers"
}
],
"filter_conditions": [
{
"attribute": "target_platform",
"label": "Store",
"persistent": true,
"type": "list",
"values": [
{
"code": "iOS",
"label": "Apple App Store"
},
{
"code": "Android",
"label": "Google Play"
},
{
"code": "Stripe",
"label": "Stripe"
}
]
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Authorizations
Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.
Query Parameters
Available options:
0, 1 Response
Cohort metadata.
Available options:
analytics_cohorts_meta Show child attributes
Show child attributes
Show child attributes
Show child attributes
Allowed metric values. (Metric selection is chosen client-side — the endpoint returns all five.)
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I