# DataForB2B — Pipedream Connect

> People & Company Search API

- API slug: `dataforb2b` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://dataforb2b.ai
- This page (HTML): https://pipedream.com/apps/dataforb2b
- Tools: 7 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: dataforb2b`

```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": "dataforb2b",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Agentic Search:
const result = await mcp.callTool({
  name: "dataforb2b-agent-search",
  arguments: {
    query: "Query",
    category: "Category",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a DataForB2B endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.dataforb2b.ai/account

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZGF0YWZvcmIyYi5haS9hY2NvdW50?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```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: "dataforb2b-agent-search",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    dataforb2b: { authProvisionId: "apn_xxxxxxx" },
    query: "Query",
    category: "Category",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (7)

### `dataforb2b-agent-search` — Agentic Search (Read-only)

Use natural language to search people or companies. The AI interprets your query and applies filters automatically. See the documentation

Full schema: https://pipedream.com/apps/dataforb2b/actions/agent-search.md

### `dataforb2b-enrich-company` — Enrich Company (Write)

Get detailed company data including funding, growth signals, headcount, and more from a company identifier. See the documentation

Full schema: https://pipedream.com/apps/dataforb2b/actions/enrich-company.md

### `dataforb2b-enrich-profile` — Enrich Profile (Write)

Enrich a person's profile with verified work email, personal email, phone number, and GitHub data. See the documentation

Full schema: https://pipedream.com/apps/dataforb2b/actions/enrich-profile.md

### `dataforb2b-reasoning-search` — Reasoning Search (Read-only)

Run a live reasoning-based search. Use this when you want the reasoning engine to iteratively interpret a natural-language query and return relevant people or company results. This is distinct from Agentic Search, which performs a one-shot LLM search. Provide a natural-language query and a category…

Full schema: https://pipedream.com/apps/dataforb2b/actions/reasoning-search.md

### `dataforb2b-search-company` — Search Company (Read-only)

Search companies using advanced filters by size, funding stage, industry, investor, and more. See the documentation

Full schema: https://pipedream.com/apps/dataforb2b/actions/search-company.md

### `dataforb2b-search-people` — Search People (Read-only)

Search professional profiles using advanced filters or a lookalike profile. Returns matching people with their details. See the documentation

Full schema: https://pipedream.com/apps/dataforb2b/actions/search-people.md

### `dataforb2b-text-to-filters` — Text to Filters (Write)

Convert a natural language description into a structured filter object that can be used with Search People or Search Company. See the documentation

Full schema: https://pipedream.com/apps/dataforb2b/actions/text-to-filters.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
