Historical Revenue Breakdown
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/segments/history \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/segments/history"
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.tickdb.ai/v1/fundamentals/segments/history', 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.tickdb.ai/v1/fundamentals/segments/history",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tickdb.ai/v1/fundamentals/segments/history"
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))
}HttpResponse<String> response = Unirest.get("https://api.tickdb.ai/v1/fundamentals/segments/history")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/segments/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 0,
"data": {
"symbol": "<string>",
"segments": [
{
"report": "<string>",
"category": "<string>",
"segment_name": "<string>",
"period_start": "2023-12-25",
"period_end": "2023-12-25",
"value": "<string>",
"total_revenue": "<string>",
"currency": "<string>",
"percent": "<string>"
}
],
"report": "<string>"
}
}
Company Overview
Historical Revenue Breakdown
Show historical revenue amounts and percentages by business or region.
GET
/
v1
/
fundamentals
/
segments
/
history
Historical Revenue Breakdown
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/segments/history \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/segments/history"
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.tickdb.ai/v1/fundamentals/segments/history', 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.tickdb.ai/v1/fundamentals/segments/history",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tickdb.ai/v1/fundamentals/segments/history"
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))
}HttpResponse<String> response = Unirest.get("https://api.tickdb.ai/v1/fundamentals/segments/history")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/segments/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 0,
"data": {
"symbol": "<string>",
"segments": [
{
"report": "<string>",
"category": "<string>",
"segment_name": "<string>",
"period_start": "2023-12-25",
"period_end": "2023-12-25",
"value": "<string>",
"total_revenue": "<string>",
"currency": "<string>",
"percent": "<string>"
}
],
"report": "<string>"
}
}
Plan Access
| Plan | Available |
|---|---|
| Free | ❌ |
| Starter | ❌ |
| Professional | ✅ |
| Full-Market Plans (A-Shares, HK Stocks, US Stocks) | ✅ |
| Enterprise | ✅ |
Notes
- Available historical reporting periods vary by company. A structured
404may be returned when no records match.
Supported Markets
| Market | Examples |
|---|---|
| US Stocks | AAPL.US |
| HK Stocks | 700.HK |
| A-Shares | 600519.SH |
Request Parameters
| Parameter | Required | Description |
|---|---|---|
symbol | Yes | Stock symbol |
type | No | Product type; currently supports stock |
category | No | Breakdown dimension: business for business segments or regional for geographic segments. Omit to return all available dimensions. |
report | No | Reporting period: qf quarterly, saf semiannual, or af annual |
limit | No | Number of records; default 200, range 1–1000 |
Request Example
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/fundamentals/segments/history?symbol=AAPL&type=stock&category=business&limit=200"
Response Fields
The table below lists fields indata; an outer code=0 indicates success.
| Field | Description |
|---|---|
| symbol | Stock symbol. |
| report | Requested reporting period: qf quarterly, saf semiannual, or af annual; may be null when not specified. |
| segments | Revenue breakdowns for historical reporting periods. |
| └─ segment_name | Business segment or region name. |
| └─ category | Breakdown dimension: business by business or regional by region. |
| └─ value | Revenue amount for the business segment or region. |
| └─ total_revenue | Total revenue for the reporting period. |
| └─ percent | Percentage of total period revenue, for example 79.74 means 79.74%. |
| └─ currency | Amount currency. |
| └─ report | Row reporting period: qf quarterly, saf semiannual, or af annual. |
| └─ period_start | Period start date in YYYY-MM-DD format. |
| └─ period_end | Period end date in YYYY-MM-DD format. |
404 may be returned when no data matches the filters.Authorizations
Query Parameters
Stock symbol
Examples:
"AAPL"
"700"
"600519"
"AAPL.US"
"700.HK"
"600519.SH"
Product type; currently supports stock
Available options:
stock Breakdown dimension: business for business segments or regional for geographic segments. Omit to return all available dimensions.
Available options:
business, regional Reporting period: qf quarterly, saf semiannual, or af annual
Examples:
"qf"
"saf"
"af"
Number of records; default 200, range 1–1000
Required range:
1 <= x <= 1000