List segments
curl --request GET \
--url https://api.quartr.com/public/v3/companies/{id}/segments \
--header 'x-api-key: <api-key>'import requests
url = "https://api.quartr.com/public/v3/companies/{id}/segments"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.quartr.com/public/v3/companies/{id}/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.quartr.com/public/v3/companies/{id}/segments")
.header("x-api-key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.quartr.com/public/v3/companies/{id}/segments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.quartr.com/public/v3/companies/{id}/segments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"companyId": 4742,
"createdAt": "2025-04-15T15:00:00.000Z",
"updatedAt": "2025-04-15T15:00:00.000Z",
"fiscalYear": 2024,
"reportDate": "2025-03-19T15:00:00.000Z",
"segmentItem": "Revenue",
"segmentCategory": "Business Area",
"total": 187442,
"totalUnit": "MUSD",
"other": "1.0 (0.0%)",
"items": [
{
"name": "Automotive",
"value": 171605
},
{
"name": "GM Financial",
"value": 15875
},
{
"name": "Cruise",
"value": 257
},
{
"name": "Eliminations/reclassifications",
"value": -296
}
],
"itemUnit": "MUSD"
}
],
"pagination": {
"nextCursor": 10
}
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "Forbidden",
"statusCode": 403
}Companies
List segments
GET
/
public
/
v3
/
companies
/
{id}
/
segments
List segments
curl --request GET \
--url https://api.quartr.com/public/v3/companies/{id}/segments \
--header 'x-api-key: <api-key>'import requests
url = "https://api.quartr.com/public/v3/companies/{id}/segments"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.quartr.com/public/v3/companies/{id}/segments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.quartr.com/public/v3/companies/{id}/segments")
.header("x-api-key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.quartr.com/public/v3/companies/{id}/segments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.quartr.com/public/v3/companies/{id}/segments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"companyId": 4742,
"createdAt": "2025-04-15T15:00:00.000Z",
"updatedAt": "2025-04-15T15:00:00.000Z",
"fiscalYear": 2024,
"reportDate": "2025-03-19T15:00:00.000Z",
"segmentItem": "Revenue",
"segmentCategory": "Business Area",
"total": 187442,
"totalUnit": "MUSD",
"other": "1.0 (0.0%)",
"items": [
{
"name": "Automotive",
"value": 171605
},
{
"name": "GM Financial",
"value": 15875
},
{
"name": "Cruise",
"value": 257
},
{
"name": "Eliminations/reclassifications",
"value": -296
}
],
"itemUnit": "MUSD"
}
],
"pagination": {
"nextCursor": 10
}
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "Forbidden",
"statusCode": 403
}Authorizations
apiKeyapiKey
Path Parameters
Query Parameters
The maximum number of items to return in a single request.
Required range:
1 <= x <= 500Example:
10
A unique identifier pointing to the starting position for the next set of results.
Required range:
x >= 0Example:
2432
The direction of the sort order (id field).
Available options:
asc, desc Example:
"asc"
Was this page helpful?
⌘I

