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

# The Swarm: Theswarm Fetch Companies V3

> Get full company records, with their tags, from company IDs or LinkedIn names or IDs. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Get full company records, with their tags, from company IDs or LinkedIn names or IDs.

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

## Run this action

This action has conditional or dynamic inputs. A static example cannot describe these inputs reliably.

Read the live contract before you execute this action:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe theswarm_fetch_companies_v3 --json
```

## 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": {
    "results": [
      {
        "id": "123e4567-e89b-42d3-a456-426614174000"
      }
    ]
  }
}
```

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

## Input reference

Fetch companies with corresponding data (e.g. tags)

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.ids` | `array` | No | — | The Swarm company IDs Maximum items: 1000. |
| `payload.linkedin_names` | `array` | No | — | LinkedIn company URL slugs Maximum items: 1000. |
| `payload.linkedin_ids` | `array` | No | — | LinkedIn numeric company IDs Maximum items: 1000. |
| `payload.fields` | `array` | No | `["company_info"]` | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Fetch companies with corresponding data (e.g. tags)",
    "properties": {
      "ids": {
        "type": "array",
        "description": "The Swarm company IDs",
        "maxItems": 1000,
        "items": {
          "type": "string",
          "format": "uuid"
        }
      },
      "linkedin_names": {
        "type": "array",
        "description": "LinkedIn company URL slugs",
        "maxItems": 1000,
        "items": {
          "type": "string"
        }
      },
      "linkedin_ids": {
        "type": "array",
        "description": "LinkedIn numeric company IDs",
        "maxItems": 1000,
        "items": {
          "type": "integer"
        }
      },
      "fields": {
        "type": "array",
        "default": [
          "company_info"
        ],
        "items": {
          "type": "string",
          "enum": [
            "company_info",
            "tags"
          ]
        }
      }
    },
    "required": [],
    "anyOf": [
      {
        "type": "object",
        "properties": {},
        "required": [
          "ids"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {},
        "required": [
          "linkedin_names"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {},
        "required": [
          "linkedin_ids"
        ],
        "additionalProperties": false
      }
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.results` | `array` | Yes | — | List of companies with corresponding data |
| `result.data.results[].id` | `string` | Yes | — | The unique identifier of the company Format: `uuid`. |
| `result.data.results[].company_info` | `object` | No | — | — |
| `result.data.results[].company_info.id` | `string` | No | — | — |
| `result.data.results[].company_info.linkedin_slugs` | `array` | No | — | — |
| `result.data.results[].company_info.name` | `string` | Yes | — | — |
| `result.data.results[].company_info.alternative_names` | `array` | No | — | — |
| `result.data.results[].company_info.description` | `string` | No | — | — |
| `result.data.results[].company_info.summary` | `string` | No | — | — |
| `result.data.results[].company_info.contact_info` | `object` | No | — | — |
| `result.data.results[].company_info.contact_info.email` | `string` | No | — | — |
| `result.data.results[].company_info.contact_info.phone` | `string` | No | — | — |
| `result.data.results[].company_info.contact_info.url` | `string` | No | — | — |
| `result.data.results[].company_info.canonical_name` | `string` | No | — | — |
| `result.data.results[].company_info.founded` | `string` | No | — | Format: `date-time`. |
| `result.data.results[].company_info.workforce` | `object` | No | — | — |
| `result.data.results[].company_info.workforce.headcount` | `integer` | No | — | — |
| `result.data.results[].company_info.workforce.historical_headcount` | `array` | No | — | — |
| `result.data.results[].company_info.workforce.historical_headcount[].timestamp` | `integer` | No | — | — |
| `result.data.results[].company_info.workforce.historical_headcount[].count` | `integer` | No | — | — |
| `result.data.results[].company_info.workforce.size_class` | `string` | No | — | — |
| `result.data.results[].company_info.tech_stack` | `object` | No | — | — |
| `result.data.results[].company_info.tech_stack.products` | `array` | No | — | — |
| `result.data.results[].company_info.business_data` | `object` | No | — | — |
| `result.data.results[].company_info.business_data.identifiers` | `object` | No | — | — |
| `result.data.results[].company_info.business_data.identifiers.stock_ticker` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.identifiers.duns_code` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.identifiers.cage_code` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.identifiers.naics_code` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.customer_types` | `array` | No | — | — |
| `result.data.results[].company_info.business_data.stock_exchange` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.is_acquired` | `boolean` | No | — | — |
| `result.data.results[].company_info.business_data.is_exited` | `boolean` | No | — | — |
| `result.data.results[].company_info.business_data.is_government` | `boolean` | No | — | — |
| `result.data.results[].company_info.business_data.is_non_profit` | `boolean` | No | — | — |
| `result.data.results[].company_info.business_data.is_shut_down` | `boolean` | No | — | — |
| `result.data.results[].company_info.business_data.is_startup` | `boolean` | No | — | — |
| `result.data.results[].company_info.business_data.is_stealth` | `boolean` | No | — | — |
| `result.data.results[].company_info.business_data.ownership_status` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.ownership_status_detailed` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.patent_count` | `integer` | No | — | — |
| `result.data.results[].company_info.business_data.financing_profile` | `object` | No | — | — |
| `result.data.results[].company_info.business_data.financing_profile.status` | `string` | No | — | — |
| `result.data.results[].company_info.business_data.financing_profile.ipo_date` | `string` | No | — | Format: `date-time`. |
| `result.data.results[].company_info.business_data.financing_profile.outstanding_shares` | `number` | No | — | — |
| `result.data.results[].company_info.business_data.financing_profile.market_cap` | `number` | No | — | — |
| `result.data.results[].company_info.social_media` | `array` | No | — | The networks of the company |
| `result.data.results[].company_info.social_media[].network` | `string` | No | — | Social media network name |
| `result.data.results[].company_info.social_media[].id` | `string` | No | — | Identifier on the social network |

The table shows the first 50 fields. Expand the raw schema below for every field.

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe theswarm_fetch_companies_v3 --json`.

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [The Swarm provider guide](https://deepline.com/docs/providers/theswarm/guide.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.