# Website to Legal Entity Resolver (US Company Legal Name) (`dennydevelops/legal-entity-resolver`) Actor

Turn a website into the company's legal name: reads the footer, terms and privacy pages for the legal entity (e.g. Acme Holdings, Inc.), its state of organization and entity type, and matches public companies to their SEC CIK and ticker.

- **URL**: https://apify.com/dennydevelops/legal-entity-resolver.md
- **Developed by:** [Musedenny](https://apify.com/dennydevelops) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website to Legal Entity Resolver (US Company Legal Name)

Turn a list of websites into **legal company names**. Invoicing, KYB, vendor onboarding, contracts, CRM enrichment and registry lookups all need the legal entity ("The Rocket Science Group LLC"), not the brand ("Mailchimp"). This Actor reads each site the way a paralegal would: the footer, the terms of service, the privacy policy and the imprint. It returns the legal name, plus the state of organization and entity type when the site states them ("Acme, Inc., a Delaware corporation"). Public companies are matched to their **SEC CIK and ticker**.

### How it works

1. Loads the homepage and finds its legal links (terms, privacy, imprint, legal). Falls back to `/terms`, `/legal`, `/privacy`.
2. Reads up to 4 legal pages and scores every legal-entity mention. Defined terms (`Acme, Inc. ("Acme")`), "between you and …", state-of-incorporation phrases and copyright lines score highest. Plain mentions count once per page, so a privacy policy naming Google LLC twenty times doesn't win. Names carrying the site's brand get a bonus.
3. Returns the best match, a confidence level, the evidence quotes, and the other entities found (often subsidiaries by region).

### Input

| Field | Default | Meaning |
|---|---|---|
| `domains` | – | Domains or website URLs |
| `onlyFound` | false | Skip websites with no legal entity found |
| `maxDomains` | 5000 | Cap per run |

### Output

```json
{
  "domain": "mailchimp.com", "legalName": "Rocket Science Group LLC", "stateOfOrganization": null, "entityType": null,
  "confidence": "high", "secCik": null, "secTicker": null,
  "evidence": ["terms: \"…\""], "otherCandidates": [{"name": "Intuit Inc.", "score": 2.1, "state": null}],
  "pagesRead": ["https://mailchimp.com/", "https://mailchimp.com/legal/terms/", "…"], "reachable": true
}
```

Tested on real sites: Stripe → Stripe, LLC; HubSpot → HubSpot, Inc. (HUBS); Shopify → Shopify Inc. (SHOP); Notion → Notion Labs, Inc.; Basecamp → 37signals LLC; Apify → Apify Technologies s.r.o.

Company data only: names without a company suffix (Inc., LLC, Ltd…) are never returned, so individuals' names aren't output.

### Pricing (pay per event)

$0.002 per run and **$0.002 per website**: 1,000 websites for $2.

# Actor input Schema

## `domains` (type: `array`):

Domains or website URLs.

## `onlyFound` (type: `boolean`):

Skip websites where no legal entity was found. Every website read is still billed.

## `maxDomains` (type: `integer`):

Caps work and cost per run.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "apify.com",
    "zapier.com"
  ],
  "onlyFound": false,
  "maxDomains": 5000
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

# 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 = {
    "domains": [
        "stripe.com",
        "apify.com",
        "zapier.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dennydevelops/legal-entity-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 = { "domains": [
        "stripe.com",
        "apify.com",
        "zapier.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dennydevelops/legal-entity-resolver").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "domains": [
    "stripe.com",
    "apify.com",
    "zapier.com"
  ]
}' |
apify call dennydevelops/legal-entity-resolver --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dennydevelops/legal-entity-resolver"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/40P1W9UPeexsQajc4/builds/0jgme7KRfGLQXKDmW/openapi.json
