# Domain to LinkedIn URL Resolver Clay-Ready Company URL (`mambalabs/domain-to-linkedin-url-resolver`) Actor

Resolves a company domain to its LinkedIn company URL using pattern matching and Google search fallback. Fixes Clay native enrichment miss rate. Flat output.

- **URL**: https://apify.com/mambalabs/domain-to-linkedin-url-resolver.md
- **Developed by:** [Mamba Labs](https://apify.com/mambalabs) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Domain to LinkedIn URL Resolver

**Version: 0.2.0**

Resolves a company domain or name to its LinkedIn company URL. Fixes the miss rate in Clay native enrichment.

---

### Why not use a free tool?

Free tools return a URL or null. That's it.

You get no signal on how the URL was found, no confidence rating, and no way to gate your downstream enrichment on data quality. In a Clay workflow processing thousands of rows, a wrong LinkedIn URL propagates silently into your sequences.

This actor returns `resolution_method` (pattern_match / google_search / not_found) and `confidence` (high / medium / low) on every row. You can filter in Clay to pass only `confidence = high` rows forward, and review `google_search` results separately before they hit your sender.

The $0.03 price is for the metadata. The URL is the bonus.

---

### How it works

Two-method cascade:

1. **Pattern match.** Derives a slug from the domain and validates it against LinkedIn directly via HTTP. No external API required. Fast and free of search rate limits.
2. **Google search fallback.** If pattern matching fails, runs a Google search for the company name plus LinkedIn and extracts the first matching company URL from results.

If you only have a company name and no domain, the actor skips pattern matching and goes straight to Google search. Both input paths return the same flat output row.

The `resolution_method` field tells you which path succeeded. The `confidence` field tells you how reliable the result is.

---

### Input

At least one of `company_domain` or `company_name` must be provided.

| Field | Type | Required | Notes |
|---|---|---|---|
| `company_domain` | String | No | Bare domain, e.g. stripe.com. Required if company_name is not provided. Enables pattern match resolution before Google search fallback. |
| `company_name` | String | No | Company name. Required if company_domain is not provided. When provided alongside a domain, improves Google search accuracy. |

**Example with domain:**

```json
{
  "company_domain": "stripe.com",
  "company_name": "Stripe"
}
````

**Example with name only:**

```json
{
  "company_name": "Linear"
}
```

***

### Output

One flat row per input. Every field is always present. Null over missing keys.

| Field | Type | Description |
|---|---|---|
| `company_domain` | String | Echoed from input, or null if not provided |
| `company_name` | String | Echoed from input, or derived from domain |
| `linkedin_company_url` | String | Full LinkedIn company URL, e.g. https://www.linkedin.com/company/stripe |
| `linkedin_slug` | String | Slug only, e.g. stripe |
| `resolution_method` | String | pattern\_match / google\_search / not\_found / error |
| `confidence` | String | high / medium / low |
| `facebook_url` | String | Facebook company page URL, or null if not found |
| `instagram_url` | String | Instagram profile URL, or null if not found |
| `run_date` | String | ISO timestamp of run |

***

### Confidence and resolution\_method explained

**resolution\_method** tells you how the URL was found:

- `pattern_match`: slug derived from domain, validated directly against LinkedIn. Fastest, most reliable.
- `google_search`: URL found via Google search results. Accurate but subject to Google result freshness.
- `not_found`: neither method returned a result.
- `error`: no valid input was provided (both company\_domain and company\_name were empty).

**confidence** tells you how much to trust the result:

- `high`: URL confirmed via direct LinkedIn validation or unambiguous Google result.
- `low`: no result found, or error state.

Use `confidence` as a Clay view filter. Pass `high` rows straight to your enrichment pipeline. Review `not_found` rows manually or route them to a secondary enrichment source.

***

### Social URLs

Facebook and Instagram company page URLs are included as bonus fields at no extra charge. After LinkedIn resolution completes, the actor runs a second targeted Google search to find the company's Facebook page and Instagram profile. When found, the URLs are returned in `facebook_url` and `instagram_url`. When not found, both fields return null.

***

### Sample output

**Successful resolution with all fields:**

```json
{
  "company_domain": "stripe.com",
  "company_name": "Stripe",
  "linkedin_company_url": "https://www.linkedin.com/company/stripe",
  "linkedin_slug": "stripe",
  "resolution_method": "pattern_match",
  "confidence": "high",
  "facebook_url": "https://www.facebook.com/StripeHQ",
  "instagram_url": "https://www.instagram.com/stripe",
  "run_date": "2026-04-15T12:00:00.000Z"
}
```

**Google search fallback with null social fields:**

```json
{
  "company_domain": "obscure-startup.io",
  "company_name": "Obscure Startup",
  "linkedin_company_url": "https://www.linkedin.com/company/obscure-startup",
  "linkedin_slug": "obscure-startup",
  "resolution_method": "google_search",
  "confidence": "high",
  "facebook_url": null,
  "instagram_url": null,
  "run_date": "2026-04-15T12:00:00.000Z"
}
```

***

### Clay integration

Use this actor as a fallback enrichment column in any Clay table where `linkedin_company_url` is empty after native enrichment.

1. Add a formula column: `needs_linkedin` = `{{linkedin_company_url}}` is empty.
2. Add an Apify enrichment column. Search for `domain-to-linkedin-url-resolver`.
3. Map `company_domain` to your domain column. Optionally map `company_name` to your company name column for better accuracy.
4. Set run condition: `needs_linkedin` equals `true`.
5. Map output fields to new columns: `resolved_linkedin_url`, `confidence`, `facebook_url`, `instagram_url`.
6. Add a view filter: `confidence` equals `high`.

This runs only on rows where Clay native enrichment failed, keeping credit costs low.

***

### Pricing

$0.03 per domain resolved. Actor start fee: $0.00005. No separate charge for social URL resolution.

1,000 domains costs $30. Run it as a fallback layer only and your average cost per enriched row stays well under $0.01.

***

### Known limitations

- Pattern match works best for companies with straightforward slug patterns. Obscure or rebranded companies fall through to Google search.
- Social URL coverage is best-effort. Not every company has a crawlable Facebook or Instagram page.
- LinkedIn blocks direct scraping. This actor uses slug validation via HTTP, not scraping.
- Google search results vary by region and by query freshness.
- Name-only resolution (no domain) relies entirely on Google search and may return less accurate results for companies with common names.

***

### Related actors

Related actors section to be added in a future README pass across all Mamba Labs actors.

***

Built by [Mamba Labs](https://apify.com/mambalabs).

# Actor input Schema

## `company_domain` (type: `string`):

Company domain (bare, e.g. stripe.com). Required if company\_name is not provided. When provided, enables pattern match resolution before Google search fallback.

## `company_name` (type: `string`):

Company name. Required if company\_domain is not provided. When provided alongside a domain, improves Google search accuracy.

## Actor input object example

```json
{
  "company_domain": "stripe.com"
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing resolved LinkedIn company URLs for each input domain.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "company_domain": "stripe.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mambalabs/domain-to-linkedin-url-resolver").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "company_domain": "stripe.com" }

# Run the Actor and wait for it to finish
run = client.actor("mambalabs/domain-to-linkedin-url-resolver").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "company_domain": "stripe.com"
}' |
apify call mambalabs/domain-to-linkedin-url-resolver --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=mambalabs/domain-to-linkedin-url-resolver",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Domain to LinkedIn URL Resolver Clay-Ready Company URL",
        "description": "Resolves a company domain to its LinkedIn company URL using pattern matching and Google search fallback. Fixes Clay native enrichment miss rate. Flat output.",
        "version": "0.2",
        "x-build-id": "QoOX9agf7XugZivvI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mambalabs~domain-to-linkedin-url-resolver/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mambalabs-domain-to-linkedin-url-resolver",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/mambalabs~domain-to-linkedin-url-resolver/runs": {
            "post": {
                "operationId": "runs-sync-mambalabs-domain-to-linkedin-url-resolver",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/mambalabs~domain-to-linkedin-url-resolver/run-sync": {
            "post": {
                "operationId": "run-sync-mambalabs-domain-to-linkedin-url-resolver",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "company_domain": {
                        "title": "Company Domain",
                        "type": "string",
                        "description": "Company domain (bare, e.g. stripe.com). Required if company_name is not provided. When provided, enables pattern match resolution before Google search fallback."
                    },
                    "company_name": {
                        "title": "Company Name",
                        "type": "string",
                        "description": "Company name. Required if company_domain is not provided. When provided alongside a domain, improves Google search accuracy."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
