# People Search — ContactOut

> Search for people based on various criteria like name, company, title, location, skills, and more. See the documentation.

- Key: `contactout-people-search`
- Type: Action (Read-only)
- Version: 0.0.2
- App: ContactOut (`contactout`) — https://pipedream.com/apps/contactout.md
- This page (HTML): https://pipedream.com/apps/contactout/actions/people-search
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/contactout/actions/people-search/people-search.mjs

## Description

Search for people based on various criteria like name, company, title, location, skills, and more. [See the documentation](https://api.contactout.com/#people-search-api).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | No | Name of the profile to search for |
| `jobTitle` | `string[]` | No | Array of job titles to search for (max 50) |
| `currentTitlesOnly` | `boolean` | No | Returns profiles matching the current job title only |
| `includeRelatedJobTitles` | `boolean` | No | Returns profiles with related job titles |
| `matchExperience` | `string` | No | Ensures Job Title and Company match in the same experience. If set, Current Titles Only and Company Filter should not be used. API will return an error in that case. |
| `skills` | `string[]` | No | Array of skills to search for (max 50). Supports boolean equations |
| `education` | `string[]` | No | Array of schools/degrees to search for (max 50). Supports boolean equations |
| `location` | `string[]` | No | Array of locations to search for (max 50) |
| `company` | `string[]` | No | Array of company names to search for (max 50) |
| `companyFilter` | `string` | No | Filter by current or past company experience |
| `currentCompanyOnly` | `boolean` | No | Returns profiles matching the current company name only |
| `domain` | `string[]` | No | Array of company domains to search for (max 50) |
| `industry` | `string[]` | No | Array of industries to search for (max 50). Supports boolean equations |
| `keyword` | `string` | No | Returns profiles that contain the mentioned keyword anywhere in their profile |
| `companySize` | `string[]` | No | Array of company size ranges |
| `yearsOfExperience` | `string[]` | No | Array representing ranges of years of experience |
| `yearsInCurrentRole` | `string[]` | No | Array representing ranges of years in current role |
| `page` | `integer` | No | Page number for pagination |
| `dataTypes` | `string[]` | No | Returns profiles containing at least one of the specified data types |
| `revealInfo` | `boolean` | No | If set to true, contact_info will contain emails and phone numbers (credits will be charged) |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "contactout",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "contactout-people-search",
  arguments: {
    name: "Name",
    jobTitle: ["Job Titles"],
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "contactout-people-search",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    contactout: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    jobTitle: ["Job Titles"],
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "contactout-people-search",
    "configured_props": {
      "contactout": { "authProvisionId": "apn_xxxxxxx" },
      "name": "Name",
      "jobTitle": ["Job Titles"]
    }
  }'
```

---

- App: https://pipedream.com/apps/contactout.md · All apps: https://pipedream.com/apps
