# getEcosystemTimeseries

**Identifier:** `dealroom_getEcosystemTimeseries`

**Provider:** [Dealroom](https://kirha.com/providers/dealroom.md)

Yearly ecosystem metrics from Dealroom for a location and/or tags: venture funding raised per year, plus year-end stock of unicorns, combined valuation and VC-backed companies. Applies Dealroom analysts' defaults so figures match Dealroom publications: VC funding = venture rounds only (no debt, grants), Mature and Outside Tech excluded, attributed by HQ; valuation / unicorn metrics exclude Mature, Outside Tech and pre-1990 companies and attribute by HQ or founding location. Resolve IDs with resolveDealroomFilterValues. The current year is partial.

## Run it with the CLI

```bash
kirha tools run dealroom_getEcosystemTimeseries \
  --input '{
    "metric": "vc_funding"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "dealroom_getEcosystemTimeseries",
  "input": {
    "metric": "vc_funding"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "locationId": {
      "description": "Country / city / region ID from resolveDealroomFilterValues",
      "type": "string"
    },
    "metric": {
      "enum": [
        "vc_funding",
        "unicorn_count",
        "combined_valuation",
        "vc_backed_companies"
      ],
      "type": "string"
    },
    "taxonomyIds": {
      "description": "Tag IDs from resolveDealroomFilterValues, combined with AND (e.g. Fintech industry AND AI)",
      "items": {
        "type": "string"
      },
      "maxItems": 4,
      "type": "array"
    },
    "yearMax": {
      "description": "Defaults to the current year",
      "maximum": 2100,
      "minimum": 2000,
      "type": "number"
    },
    "yearMin": {
      "default": 2018,
      "maximum": 2100,
      "minimum": 2000,
      "type": "number"
    }
  },
  "required": [
    "metric"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "metric": {
      "type": "string"
    },
    "points": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "isPartialYear": {
            "type": "boolean"
          },
          "value": {
            "type": "number"
          },
          "year": {
            "type": "number"
          }
        },
        "required": [
          "year",
          "value"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "unit": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "metric",
    "unit",
    "points"
  ],
  "type": "object"
}
```

## Related tools

Other Dealroom tools that this tool refers to, or that refer to it.

- [`resolveDealroomFilterValues`](https://kirha.com/providers/dealroom/resolveDealroomFilterValues.md)

-----

[All Dealroom tools](https://kirha.com/providers/dealroom.md) · [< Back to tools list](https://kirha.com/tools.md)