Datasets API endpoint
Returns value counts for the PitchBook funds dataset by the required `facet`: `fund_strategy`, `fund_status` or `run_id`. The search filters `q`, `fund_strategy`, `fund_status`, `min_vintage_year` and `max_vintage_year` apply to the counts, which list the top 50 values.
/datasets/pitchbook-funds/facetsReturns terms-aggregation counts for one field over the PitchBook funds dataset, honoring the same filters as search.
Query parameters:
facet (required) — one of fund_strategy, fund_status, run_id.q, fund_strategy, fund_status, run_id, min_vintage_year, max_vintage_year) apply.Returns {dataset, facet, items:[{value, count}]} (top 50 buckets).
| Field | Filled in, of 23 checked | Values in the sample |
|---|---|---|
| value | 23 | |
| count | 23 | 5 to 60,248, median 765 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| facet | string | Yes | Facet enum: fund_strategy, fund_status, run_id Allowed values: fund_strategy, fund_status, run_id. | fund_strategy | |
| q | string | No | Full-text query over name and description, max 256 characters | ||
| fund_strategy | string | No | Exact fund strategy filter, max 128 characters | ||
| fund_status | string | No | Exact fund status filter, max 128 characters | ||
| run_id | string | No | Exact crawl run-id filter, max 128 characters | ||
| min_vintage_year | integer | No | Minimum vintage year | ||
| max_vintage_year | integer | No | Maximum vintage year | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/datasets/pitchbook-funds/facets?facet=fund_strategy&q=coffee" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"dataset": "pitchbook-funds",
"facet": "fund_strategy",
"items": [
{
"value": "Early Stage VC",
"count": 2318
},
{
"value": "Buyout",
"count": 941
}
]
}
}Request schema
No body schema
Response schema
#/definitions/datasets.pitchbookFundsFacetResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | datasets.PitchbookFundsFacetResponse | No | ||||
| data.dataset | string | No | ||||
| data.facet | string | No | ||||
| data.items | array | No | ||||
| data.items[].count | integer | No | Number of records with this value. | |||
| data.items[].value | string | No | Facet value being counted. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/datasets/pitchbook-funds/facets?facet=fund_strategy&q=coffee" \
-H "x-api-key: $CRAWLORA_API_KEY"