# Enrich a company — People Data Labs

> The Company Enrichment API provides a one-to-one match, retrieving up-to-date information on a unique company. See the docs here

- Key: `people_data_labs-enrich-company`
- Type: Action (Write)
- Version: 0.0.6
- App: People Data Labs (`people_data_labs`) — https://pipedream.com/apps/people-data-labs.md
- This page (HTML): https://pipedream.com/apps/people-data-labs/actions/enrich-company
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/people_data_labs/actions/enrich-company/enrich-company.mjs

## Description

The Company Enrichment API provides a one-to-one match, retrieving up-to-date information on a unique company. [See the docs here](https://docs.peopledatalabs.com/docs/reference-company-enrichment-api)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | No | The company's name. |
| `profile` | `string` | No | The company's social profile. |
| `ticker` | `string` | No | The company's stock ticker, if publicly traded. |
| `website` | `string` | No | The company's website. |
| `location` | `string` | No | The complete or partial company location. You can input multiple location values. |
| `locality` | `string` | No | The company's locality. You can only input one locality. |
| `region` | `string` | No | The company's region. You can only input one region. |
| `country` | `string` | No | The company's country. You can only input one country. |
| `streetAddress` | `string` | No | The company's street address. You can only input one street address. |
| `postalCode` | `string` | No | The company's postal code. You can only input one postal code. |
| `dataInclude` | `string` | No | A comma-separated string of fields that you want the response to include. For example, full_name,emails.address. Begin the string with a - if you want to exclude the specified fields. If you want to exclude all data from being returned, use data_include="" |
| `pretty` | `boolean` | No | Whether the output should have human-readable indentation. |
| `minLikelihood` | `integer` | No | The minimum likelihood score a response must have to return a 200. |

## 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": "people_data_labs",
      },
    },
  },
)

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: "people_data_labs-enrich-company",
  arguments: {
    name: "Name",
    profile: "Profile",
  },
})
```

**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: "people_data_labs-enrich-company",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    people_data_labs: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    profile: "Profile",
  },
})

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": "people_data_labs-enrich-company",
    "configured_props": {
      "people_data_labs": { "authProvisionId": "apn_xxxxxxx" },
      "name": "Name",
      "profile": "Profile"
    }
  }'
```

---

- App: https://pipedream.com/apps/people-data-labs.md · All apps: https://pipedream.com/apps
