> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Happenstance

> Research a person from a description, and search for people across your network, groups and friends' connections.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/happenstance.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=be1c3ac2ca584053dfee85cebee3bbf0)

[Web Catalog · Enrichment](https://docs.webrouter.net/data-apis.md?category=enrichment)

Needs&#x20;

`HAPPENSTANCE_API_KEY`

Endpoints

9

Auth

Key in header

[Vendor docs](https://developer.happenstance.ai/api-reference/introduction)

## Setup

| Variable | | What it is |
| - | - | - |
| `HAPPENSTANCE_API_KEY` | required | A Happenstance API key (happenstance.ai/integrations/keys). Sent as a Bearer token. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Credits: search 2 per request, research 1 per completed research; 402 Payment Required when the balance is short.
* Search and research are asynchronous: start, then poll the GET by id.
* Search covers the user's own network (connections, groups, friends' connections), so results depend on whose key it is.
* Errors use RFC 7807 problem details (type, title, status, detail). The Chat endpoints are not in this entry.

## Endpoints

GET

Get credit balance and usage

Credit balance, purchase and usage history, and Auto Reload settings.

[Open](#happenstance-usage-get)

POST

Start a person research

Detailed profile of one person from a free-text description; answers with an id to poll.

[Open](#happenstance-research-start)

GET

Get a person research

Status and, when completed, the profile of a research request.

[Open](#happenstance-research-get)

POST

Search people in your network

People matching a query within your groups, your connections or your friends' connections.

[Open](#happenstance-search-start)

GET

Get search results

Status and results of a search, one page at a time.

[Open](#happenstance-search-get)

POST

Find more results for a search

A new search excluding everyone already returned in the chain, with the same query and settings.

[Open](#happenstance-search-find-more)

GET

List your groups

Groups you can search within.

[Open](#happenstance-groups-list)

GET

Get a group

A group's details and members; member names work as @mentions in searches.

[Open](#happenstance-groups-get)

GET

Get your profile

The authenticated user's profile.

[Open](#happenstance-users-me)

### Get credit balance and usage

GET

`/v1/usage`

`happenstance.usage.get`

Credit balance, purchase and usage history, and Auto Reload settings.

Input

No inputs.

[Vendor docs](https://developer.happenstance.ai/api-reference/get-usage)

```python Python theme={null}
router.call_data_api("happenstance.usage.get")
```

```text MCP theme={null}
call_data_api(endpoint="happenstance.usage.get")
```

### Start a person research

POST

`/v1/research`

`happenstance.research.start`

Detailed profile of one person from a free-text description; answers with an id to poll.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`description` required</td><td>string</td><td>body</td><td>Everything known about the person: full name, company, title, location, social handles. Example `Jane Smith, VP Engineering at Acme, San Francisco`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developer.happenstance.ai/api-reference/create-research) · Same job: [Clado](https://docs.webrouter.net/data-apis/clado.md#clado-deep-research-start), [Extruct AI](https://docs.webrouter.net/data-apis/extruct.md#extruct-research-create), [Seltz](https://docs.webrouter.net/data-apis/seltz.md#seltz-agent-start), [Tako](https://docs.webrouter.net/data-apis/tako.md#tako-agent-answer-start), [TinyFish](https://docs.webrouter.net/data-apis/tinyfish.md#tinyfish-research-start)

```python Python theme={null}
router.call_data_api("happenstance.research.start", {'description': 'Jane Smith, VP Engineering at Acme, San Francisco'})
```

```text MCP theme={null}
call_data_api(endpoint="happenstance.research.start", params={"description": "Jane Smith, VP Engineering at Acme, San Francisco"})
```

> [!NOTE]
>
> * Starts a billed job: it only produces data and changes nothing else in your account.
> * A read over POST. 1 credit per successful, completed research; 402 when credits run out.
> * At most 10 research requests running at once (429 beyond).
> * Asynchronous: poll happenstance.research.get until status is COMPLETED, FAILED or FAILED\_AMBIGUOUS.

### Get a person research

GET

`/v1/research/{research_id}`

`happenstance.research.get`

Status and, when completed, the profile of a research request.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `research_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The id from happenstance.research.start.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.happenstance.ai/api-reference/get-research) · Same job: [Seltz](https://docs.webrouter.net/data-apis/seltz.md#seltz-agent-get), [Tako](https://docs.webrouter.net/data-apis/tako.md#tako-agent-answer-get)

### Search people in your network

POST

`/v1/search`

`happenstance.search.start`

People matching a query within your groups, your connections or your friends' connections.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`text` required</td><td>string</td><td>body</td><td>Search query; @mentions narrow to one person's connections, e.g. 'engineers @Jane Smith knows'. Example `founders in fintech`</td></tr>

    <tr>
      <td>
        `group_ids`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Group ids to search within (happenstance.groups.list).
      </td>
    </tr>

    <tr>
      <td>
        `include_my_connections`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Search your own connections.
      </td>
    </tr>

    <tr>
      <td>
        `include_friends_connections`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Search your friends' connections.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.happenstance.ai/api-reference/create-search) · Same job: [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-people-search), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-people-search), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-linkedin-search-people), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-people-search), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-person-search), [BetterContact](https://docs.webrouter.net/data-apis/bettercontact.md#bettercontact-leads-search)

```python Python theme={null}
router.call_data_api("happenstance.search.start", {'text': 'founders in fintech'})
```

```text MCP theme={null}
call_data_api(endpoint="happenstance.search.start", params={"text": "founders in fintech"})
```

> [!NOTE]
>
> * Starts a billed job: it only produces data and changes nothing else in your account.
> * A read over POST. 2 credits per search, charged when it completes; at most 10 searches running at once.
> * Asynchronous: poll happenstance.search.get with the returned id.

### Get search results

GET

`/v1/search/{search_id}`

`happenstance.search.get`

Status and results of a search, one page at a time.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The id from happenstance.search.start.
      </td>
    </tr>

    <tr>
      <td>
        `page_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A specific page of results.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.happenstance.ai/api-reference/get-search) · Same job: [BetterContact](https://docs.webrouter.net/data-apis/bettercontact.md#bettercontact-contacts-enrich-result), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-snapshot-download), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-routines-results), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-task-results), [Dune](https://docs.webrouter.net/data-apis/dune.md#dune-execution-results), [Forager](https://docs.webrouter.net/data-apis/forager.md#forager-person-work-email-result)

### Find more results for a search

POST

`/v1/search/{search_id}/find-more`

`happenstance.search.find_more`

A new search excluding everyone already returned in the chain, with the same query and settings.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The parent search (one without a parent\_search\_id).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.happenstance.ai/api-reference/find-more-search) · Same job: [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-people-search), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-people-search), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-linkedin-search-people), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-people-search), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-person-search), [BetterContact](https://docs.webrouter.net/data-apis/bettercontact.md#bettercontact-leads-search)

> [!NOTE]
>
> * Costs credits like a new search.

### List your groups

GET

`/v1/groups`

`happenstance.groups.list`

Groups you can search within.

Input

No inputs.

[Vendor docs](https://developer.happenstance.ai/api-reference/get-groups) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-lists-list), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-lists-list), [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-list), [Mention](https://docs.webrouter.net/data-apis/mention.md#mention-tags-list), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-lists-list), [Sprout Social](https://docs.webrouter.net/data-apis/sprout-social.md#sprout-social-metadata-groups)

```python Python theme={null}
router.call_data_api("happenstance.groups.list")
```

```text MCP theme={null}
call_data_api(endpoint="happenstance.groups.list")
```

### Get a group

GET

`/v1/groups/{group_id}`

`happenstance.groups.get`

A group's details and members; member names work as @mentions in searches.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `group_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.happenstance.ai/api-reference/get-group) · Same job: [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-get), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-searches-get)

### Get your profile

GET

`/v1/users/me`

`happenstance.users.me`

The authenticated user's profile.

Input

No inputs.

[Vendor docs](https://developer.happenstance.ai/api-reference/get-current-user-profile)

```python Python theme={null}
router.call_data_api("happenstance.users.me")
```

```text MCP theme={null}
call_data_api(endpoint="happenstance.users.me")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.