Enrich Layer ACTION
Search Companies
Search for companies that meet a set of criteria. Returns up to 10,000,000 results. Cost: 3 credits per company URL returned. See the documentation.
- Action
- Read only
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Enrich Layer account once, then configure and run Search Companies from your backend or agent.
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: "enrich_layer-search-companies",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
enrich_layer: { authProvisionId: "apn_xxxxxxx" },
country: "Country",
region: "Region",
},
})
console.log(result)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": "enrich_layer-search-companies",
"configured_props": {
"enrich_layer": { "authProvisionId": "apn_xxxxxxx" },
"country": "Country",
"region": "Region"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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": "enrich_layer",
},
},
},
)
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: "enrich_layer-search-companies",
arguments: {
country: "Country",
region: "Region",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
country Country | string | Filter companies with an office in this country (Alpha-2 ISO 3166 code). Optional |
region Region | string | Filter by region/state/province. Wrap names with spaces in double quotes (e.g., Maryland OR "New York"). Optional |
city City | string | Filter by city. Wrap names with spaces in double quotes. Optional |
name Company Name | string | Filter companies by name using boolean search expression. Optional |
industry Industry | string | Filter by industry (includes inferred industries). Uses boolean search. Optional |
primaryIndustry Primary Industry | string | Filter by primary industry only. Uses boolean search. Optional |
specialities Specialities | string | Filter by company specialities using boolean search. Optional |
description Description | string | Filter by company description using boolean search. Optional |
type Company Type | string | Filter by company type. Optional |
employeeCountCategory Employee Count Category | string | Filter by employee count category. Takes precedence over min/max params. Optional |
employeeCountMin Employee Count Min | integer | Filter companies with at least this many employees. Optional |
employeeCountMax Employee Count Max | integer | Filter companies with at most this many employees. Optional |
followerCountMin Follower Count Min | integer | Filter companies with more than this many followers. Optional |
followerCountMax Follower Count Max | integer | Filter companies with fewer than this many followers. Optional |
foundedAfterYear Founded After Year | integer | Filter companies founded after this year. Optional |
foundedBeforeYear Founded Before Year | integer | Filter companies founded before this year. Optional |
fundingAmountMin Funding Amount Min (USD) | integer | Filter companies that have raised at least this much funding. Optional |
fundingAmountMax Funding Amount Max (USD) | integer | Filter companies that have raised at most this much funding. Optional |
fundingRaisedAfter Funding Raised After | string | Filter companies that raised funding after this date (ISO 8601). Optional |
fundingRaisedBefore Funding Raised Before | string | Filter companies that raised funding before this date (ISO 8601). Optional |
publicIdentifierInList Public Identifier In List | string | Comma-separated list of company public identifiers to include. Optional |
publicIdentifierNotInList Public Identifier Not In List | string | Comma-separated list of company public identifiers to exclude. Optional |
domainName Domain Name | string | Filter by company domain name. Optional |
enrichProfiles Enrich Profiles | string | Get the full profile data instead of only profile URLs. enrich adds 1 credit per result. Optional |
pageSize Page Size | integer | Max results per API call. Default is 10 (max 100). When enriching, max is 10. Optional |
useCache Cache Strategy | string | if-present returns cached data regardless of age. if-recent returns fresh data (max 29 days old) for 1 extra credit. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- enrich_layer-search-companies
- Version
- 0.0.2
- App
- Enrich Layer
- Authentication
- API key
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗