---
title: "Facet PitchBook advisors dataset"
method: GET
path: "/datasets/pitchbook-advisors/facets"
tags: ["Datasets"]
---

# Facet PitchBook advisors dataset

`GET /datasets/pitchbook-advisors/facets`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/datasets/pitchbook-advisors/facets`
- Auth: API key in header `x-api-key`

Returns value counts for the PitchBook advisors dataset by the required `facet`: `service_type`, `hq_country`, `hq_state` or `run_id`. The counts honour the search filters, including `q`, `min_year_founded` and `max_year_founded`, and list the top 50 values.

## Query parameters

- `facet` 'service_type' | 'hq_country' | 'hq_state' | 'run_id', required
- `q` string
- `service_type` string
- `hq_country` string
- `hq_state` string
- `run_id` string
- `min_year_founded` integer
- `max_year_founded` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- DatasetsPitchbookAdvisorsFacetResponseDoc
  - `code` integer
  - `data` DatasetsPitchbookAdvisorsFacetResponse
    - `dataset` string
    - `facet` string
    - `items` EsPitchbookFacetItem[]
      - `count` integer: Number of records with this value.
      - `value` string: Facet value being counted.
  - `msg` string

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
