# Timeseries (/docs/recipes/timeseries)



Use this recipe when you need line charts over time.

## A) Graph indicator time series (GET) [#a-graph-indicator-time-series-get]

Investment time series:

```json
{
  "topicIds": ["b9d6d468-cd34-40d7-8f43-3fd4e1ed15d4"],
  "resolution": "month",
  "start": "2020-01-01",
  "end": "2025-12-31",
  "loadChildren": true
}
```

```bash
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) [#b-indexed-indicator-time-series-post]

Patents time series:

```bash
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"]
    }
  }'
```
