Timeseries
Build trend curves for topics with graph and document indicators.
Use this recipe when you need line charts over time.
A) Graph indicator time series (GET)
Investment time series:
{
"topicIds": ["b9d6d468-cd34-40d7-8f43-3fd4e1ed15d4"],
"resolution": "month",
"start": "2020-01-01",
"end": "2025-12-31",
"loadChildren": true
}TOPIC_ID="b9d6d468-cd34-40d7-8f43-3fd4e1ed15d4"
curl -s "https://connect-api.trendtracker.ai/indicators/investments/time-series?topicIds=${TOPIC_ID}&resolution=month&start=2020-01-01&end=2025-12-31&loadChildren=true" \
-H "x-api-key: $TT_API_KEY"B) Indexed indicator time series (POST)
Patents time series:
curl -s "https://connect-api.trendtracker.ai/indicators/patents/time-series" \
-H "content-type: application/json" \
-H "x-api-key: $TT_API_KEY" \
-d '{
"resolution": "month",
"query": {
"type": "topics",
"ids": ["b9d6d468-cd34-40d7-8f43-3fd4e1ed15d4"]
}
}'