curl --request GET \
--url https://api.beta.dealroom.app/analytics/aggregate/{source} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.beta.dealroom.app/analytics/aggregate/{source}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.beta.dealroom.app/analytics/aggregate/{source}', 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.beta.dealroom.app/analytics/aggregate/{source}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.beta.dealroom.app/analytics/aggregate/{source}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.beta.dealroom.app/analytics/aggregate/{source}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.dealroom.app/analytics/aggregate/{source}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"query_info": {
"source": "<string>",
"group_by": "<string>",
"metric": "<string>",
"total_groups": 123
},
"currency": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required — provide a valid bearer token."
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}
}{
"error": {
"code": "FILTER_PARSE_ERROR",
"message": "The request could not be processed — check the filter syntax and any identifiers."
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — retry after the delay in the `Retry-After` header."
}
}Aggregate by source
Query a specific source (founders, investors, companies, funding-rounds, valuations, entities, fundings) with structured filter syntax.
Filter syntax (filter param):
- Single filter:
filter=key[op]:value - AND:
filter=and(key1[op]:val1,key2[op]:val2) - OR:
filter=or(key1[op]:val1,key2[op]:val2) - Nested:
filter=and(tag_id[eq]:42,or(hq_location[eq]:81,hq_location[eq]:74))
Available operators: eq, neq, gt, gte, lt, lte, in_any, nin_any, in_all, nin_all
in_all / nin_all are only exposed on repeated related-record filters.
Filter types:
- Direct:
launch_year[gte]:2020,total_funding[gt]:1000000,is_unicorn[eq]:true - Location:
hq_location[eq]:81,hq_location[in_any]:1234|5678(alsofounding_location,office_location,founding_or_hq_location) - Tag:
tag_id[eq]:42,tag_id[nin_any]:99 - Region:
region[eq]:123
Examples:
- Count by country with tag:
?metric=count&group_by=hq_country&filter=tag_id[eq]:42 - Funded startups by year:
?metric=count&group_by=launch_year&filter=and(is_funded[eq]:true,launch_year[gte]:2015) - Multi-dim:
?metric=sum:amount&group_by=year,hq_country
curl --request GET \
--url https://api.beta.dealroom.app/analytics/aggregate/{source} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.beta.dealroom.app/analytics/aggregate/{source}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.beta.dealroom.app/analytics/aggregate/{source}', 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.beta.dealroom.app/analytics/aggregate/{source}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.beta.dealroom.app/analytics/aggregate/{source}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.beta.dealroom.app/analytics/aggregate/{source}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.dealroom.app/analytics/aggregate/{source}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"query_info": {
"source": "<string>",
"group_by": "<string>",
"metric": "<string>",
"total_groups": 123
},
"currency": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required — provide a valid bearer token."
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}
}{
"error": {
"code": "FILTER_PARSE_ERROR",
"message": "The request could not be processed — check the filter syntax and any identifiers."
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — retry after the delay in the `Retry-After` header."
}
}Authorizations
OAuth2 client-credentials flow against the Dealroom Auth0 tenant. Use the client_id / client_secret from a Programmatic API key. Tokens are valid for 24h — Swagger UI will reuse the same token across operations. Revoking or deactivating a key rejects it on the next request (within a ≤5-minute server-side cache window), not at token expiry.
Headers
Pin a Stripe-style date-based API version (YYYY-MM-DD). Omit to use the latest version (2026-09-01). A pinned version is supported for 30 days after it is superseded, after which it returns 400.
"2026-09-01"
Path Parameters
The source to aggregate (founders, investors, companies, funding-rounds, valuations, entities, fundings)
founders, investors, companies, funding-rounds, valuations, entities, fundings "founders"
Query Parameters
ISO 4217 currency code for monetary field conversion. Defaults to USD.
"EUR"
Metric to compute: count, count_distinct:field, sum:field, avg:field, median:field, p25:field, p75:field
1"count"
Dimension(s) to group by. Location dims: hq_country, hq_city, hq_state, hq_continent, macro_region, region. Ecosystem map areas: map_area — the startup-map choropleth dimension (counts per polygon; requires an active ecosystem, else a validation error). Pair it with the per-entity map dots at GET /data/{companies|investors|universities}/geo. Relationship fields: university.name, employer.city. Multi-dim: year,hq_country
1^[a-z][a-z0-9_.]*(?:,[a-z][a-z0-9_.]*)*$"hq_country"
Filter expression using structured syntax: and(key[op]:value,...), or(...). Example: and(tag_id[eq]:42,hq_location[eq]:81)
"and(tag_id[eq]:42,launch_year[gte]:2020)"
Sort by metric key or 'dimension'. Prefix with - for descending
^-?[a-z][a-z0-9_]*$"-count"
Number of results to return (1-500, default 25)
"25"