> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DiscoLike: Subsidiaries

> Map a company's corporate hierarchy: its parent company and subsidiaries by domain. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Map a company's corporate hierarchy: its parent company and subsidiaries by domain.

> [!NOTE]
>
> Tool ID: `discolike_subsidiaries`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'discolike_subsidiaries',
  {
    "domain": "example.com"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run discolike_subsidiaries --input '{
  "domain": "example.com"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": [
    {
      "source_domain": "example.com",
      "source_fqdn": "example",
      "source_score": 123,
      "linked_domain": "example.com",
      "linked_fqdn": "example",
      "linked_score": 123,
      "record_date": "2026-01-15T12:00:00Z",
      "parent_domain": "example.com",
      "child_domain": "example.com"
    }
  ]
}
```

Use `deepline describe discolike_subsidiaries --json` for the latest machine-readable contract.

## Input reference

Returns parent company or subsidiary relationships for a domain, at most 10,000 rows.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.domain` | `string` | Yes | — | — |
| `payload.match` | `"parent" \| "child" \| "source" \| "linked" \| "recursive"` | No | `"parent"` | Allowed: `parent`, `child`, `source`, `linked`, `recursive`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns parent company or subsidiary relationships for a domain, at most 10,000 rows.",
    "properties": {
      "domain": {
        "type": "string"
      },
      "match": {
        "type": "string",
        "default": "parent",
        "enum": [
          "parent",
          "child",
          "source",
          "linked",
          "recursive"
        ]
      }
    },
    "required": [
      "domain"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `array` | Yes | — | Provider response payload. |
| `result.data[].source_domain` | `string` | Yes | — | Normalized domain name (excluding any subdomain) |
| `result.data[].source_fqdn` | `string` | Yes | — | The source FQDN used to establish domain linkages |
| `result.data[].source_score` | `integer` | Yes | — | Domain score computed from certificates history (1-800) |
| `result.data[].linked_domain` | `string` | Yes | — | Normalized linked domain name (excluding any subdomain) |
| `result.data[].linked_fqdn` | `string` | Yes | — | The linked FQDN used to establish domain linkages |
| `result.data[].linked_score` | `integer` | Yes | — | Linked domain score computed from certificates history (1-800) |
| `result.data[].record_date` | `string` | Yes | — | Date the record was compiled (YYYY-MM-DD) |
| `result.data[].parent_domain` | `string` | Yes | — | Domain with the highest score among all source-linked pairs |
| `result.data[].child_domain` | `string` | Yes | — | Remaining domains with scores lower than the parent domain's score |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "array",
        "description": "Provider response payload.",
        "items": {
          "type": "object",
          "description": "Single result from the /subsidiaries endpoint.",
          "properties": {
            "source_domain": {
              "type": "string",
              "description": "Normalized domain name (excluding any subdomain)"
            },
            "source_fqdn": {
              "type": "string",
              "description": "The source FQDN used to establish domain linkages"
            },
            "source_score": {
              "type": "integer",
              "description": "Domain score computed from certificates history (1-800)"
            },
            "linked_domain": {
              "type": "string",
              "description": "Normalized linked domain name (excluding any subdomain)"
            },
            "linked_fqdn": {
              "type": "string",
              "description": "The linked FQDN used to establish domain linkages"
            },
            "linked_score": {
              "type": "integer",
              "description": "Linked domain score computed from certificates history (1-800)"
            },
            "record_date": {
              "type": "string",
              "description": "Date the record was compiled (YYYY-MM-DD)"
            },
            "parent_domain": {
              "type": "string",
              "description": "Domain with the highest score among all source-linked pairs"
            },
            "child_domain": {
              "type": "string",
              "description": "Remaining domains with scores lower than the parent domain's score"
            }
          },
          "required": [
            "source_domain",
            "source_fqdn",
            "source_score",
            "linked_domain",
            "linked_fqdn",
            "linked_score",
            "record_date",
            "parent_domain",
            "child_domain"
          ],
          "additionalProperties": false
        }
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.05` per pricing unit.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.