---
updatedAt: 2024-12-30T16:13:53.000Z
agentTools:
  projectIndex: https://developer.windward.ai/llms.txt
---

# searchCompaniesByTerm

This API provides detailed company information based on a search term, including:

Ownership Details: Company fleet, Ultimate Beneficial Owners (UBOs), WC1 ID, and DUNS number.
Sanctions: Data on company and fleet-related sanctions.
Risk Analysis: Risk profiles for associated vessels.

# Arguments

| Name              | Type                                                       | Description                                                                               |
| :---------------- | :--------------------------------------------------------- | :---------------------------------------------------------------------------------------- |
| searchTerm        | [String!](https://developer.windward.ai/reference/scalars)                                     | The query returns companies with matching names.                                          |
| roles             | [CompanyRole](https://developer.windward.ai/reference/companyrole)                             | Company roles list the query will retrieve.                                               |
| includeHistorical | [Boolean](https://developer.windward.ai/reference/scalars) | The query determines whether to return historical ownership or only active relationships. |

# Returns

| Name                         | Description                                                      |
| :--------------------------- | :--------------------------------------------------------------- |
| [Company!](https://developer.windward.ai/reference/company)      | The company-related attributes.                                  |
| [Ownerships](https://developer.windward.ai/reference/ownerships) | company's fleet as a list of vessel-role-start date combinations |

## Company fields

| Name                      | Type                                                | Description                                                            |
| :------------------------ | :-------------------------------------------------- | :--------------------------------------------------------------------- |
| complianceRisk            | [CompanyComplianceRisk!](https://developer.windward.ai/reference/companycompliancerisk) | The compliance risk level of a company (sanctioned/high/moderate/low). |
| countryEnum               | [String](https://developer.windward.ai/reference/scalars)                               | A country identifier set by Windward.                                  |
| duns                      | [String](https://developer.windward.ai/reference/scalars)                               | The company Dun & Bradstreet ID.                                       |
| id                        | [ObjectId](https://developer.windward.ai/reference/scalars)                             | The company Unique Windward assigned ID.                               |
| name                      | [String](https://developer.windward.ai/reference/scalars)                               | The company name.                                                      |
| nationalityOfRegistration | [String](https://developer.windward.ai/reference/scalars)                               | The country in which the company is registered.                        |
| roles                     | [String](https://developer.windward.ai/reference/scalars)                               | The role types the company has in relation to vessels.                 |
| sanctions                 | [CompanySanction](https://developer.windward.ai/reference/companysanction)              | The sanction program the company is associated with.                   |
| worldCheckOneIds          | [String](https://developer.windward.ai/reference/scalars)                               | The company World-Check One ID.                                        |

# Example Code

## Sample Query

```graphql
query SearchCompaniesByName($searchTerm: String, $limit: PositiveInt, $includeHistorical: Boolean, $roles: [CompanyRole!]) {
  searchCompaniesByName(searchTerm: $searchTerm, limit: $limit) {
    id
    name
    countryEnum
    roles
        complianceRisk {
      level
      program
      riskySince
      buildingBlocks {
        name
        count
        level
        program
      }
    }
        sanctions {
      source
      comment
      insertDate
      removalDate
      listType
      program
      
    } 
    ownerships(includeHistorical: $includeHistorical, roles: $roles) {
      vessel {
        name
        imo
        }
        role
        startDate
        endDate
      }
  }
}
```

## Variables

```json
{
{
  "searchTerm": "Marine Trans Shipping",
  "limit": 1,
  "roles":[
          "MANAGEMENT",
          "TECHNICAL_MANAGER",
          "OPERATOR",
          "OWNER",
          "ISM_MANAGER"],
  "includeHistorical": false
}}
```

## Response

```json
{
  "data": {
    "searchCompaniesByName": [
      {
        "id": "60a33f318c64fe19d01ce17e",
        "name": "Marine Trans Shipping",
        "countryEnum": "Russia",
        "roles": [
          "OPERATOR",
          "OWNER",
          "ISM_MANAGER",
          "MANAGEMENT",
          "TECHNICAL_MANAGER"
        ],
        "complianceRisk": {
          "level": "Sanctioned",
          "program": [
            "RUSSIA_GENERAL"
          ],
          "riskySince": "2022-05-01T00:00:00.000Z",
          "buildingBlocks": [
            {
              "name": "SANCTIONED_COMPANY",
              "count": 3,
              "level": "Sanctioned",
              "program": null
            },
            {
              "name": "SANCTIONED_VESSEL",
              "count": 12,
              "level": "High",
              "program": null
            },
            {
              "name": "SANCTIONED_COUNTRY",
              "count": 1,
              "level": "Medium",
              "program": null
            },
            {
              "name": "SANCTIONED_COUNTRY_VESSEL",
              "count": 5,
              "level": "Medium",
              "program": null
            }
          ]
        },
        "sanctions": [
          {
            "source": "OFAC",
            "comment": "USA - OFAC-RUSSIA-EO - OFAC SDN list - Harmful Foreign Activities of the Government of the Russian Federation",
            "insertDate": "2022-05-01T00:00:00.000Z",
            "removalDate": null,
            "listType": "OFAC-RUSSIA-EO",
            "program": "RUSSIA_GENERAL"
          },
          {
            "source": "UN",
            "comment": "INTERNATIONAL - UNSCPE-WC - United Nations Security Council Panel of Experts - World-Check Data",
            "insertDate": "2024-03-01T00:00:00.000Z",
            "removalDate": null,
            "listType": "UNSCPE-WC",
            "program": null
          },
          {
            "source": "EU",
            "comment": "EU - EU-UKR2 - Asset Freeze and Travel Ban - Ukraine - 2014/145/CFSP, EU 269/2014",
            "insertDate": "2024-02-01T00:00:00.000Z",
            "removalDate": null,
            "listType": "EU-UKR2",
            "program": "RUSSIA_GENERAL"
          },
          {
            "source": "CANADA",
            "comment": "CANADA - CANSEMRUS - Special Economic Measures - Russia",
            "insertDate": "2024-05-01T00:00:00.000Z",
            "removalDate": null,
            "listType": "CANSEMRUS",
            "program": "RUSSIA_GENERAL"
          }
        ],
        "ownerships": [
          {
            "vessel": {
              "name": "ASCALON",
              "imo": 9198226
            },
            "role": "OPERATOR",
            "startDate": "2021-09-11",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ANGARA",
              "imo": 9179842
            },
            "role": "ISM_MANAGER",
            "startDate": "2021-08-13",
            "endDate": null
          },
          {
            "vessel": {
              "name": "POLAR ROCK",
              "imo": 9116632
            },
            "role": "OWNER",
            "startDate": "2021-12-27",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ADLER",
              "imo": 9179854
            },
            "role": "ISM_MANAGER",
            "startDate": "2021-08-13",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ASCALON",
              "imo": 9198226
            },
            "role": "MANAGEMENT",
            "startDate": "2021-09-02",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ADLER",
              "imo": 9179854
            },
            "role": "OPERATOR",
            "startDate": "2021-08-28",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ASCALON",
              "imo": 9198226
            },
            "role": "TECHNICAL_MANAGER",
            "startDate": "2021-09-02",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ANGARA",
              "imo": 9179842
            },
            "role": "MANAGEMENT",
            "startDate": "2021-10-10",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ADLER",
              "imo": 9179854
            },
            "role": "TECHNICAL_MANAGER",
            "startDate": "2021-08-13",
            "endDate": null
          },
          {
            "vessel": {
              "name": "INDA",
              "imo": 9256858
            },
            "role": "MANAGEMENT",
            "startDate": "2020-12-23",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ASCALON",
              "imo": 9198226
            },
            "role": "ISM_MANAGER",
            "startDate": "2021-09-02",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ANGARA",
              "imo": 9179842
            },
            "role": "TECHNICAL_MANAGER",
            "startDate": "2021-08-13",
            "endDate": null
          },
          {
            "vessel": {
              "name": "ADLER",
              "imo": 9179854
            },
            "role": "MANAGEMENT",
            "startDate": "2021-08-13",
            "endDate": null
          }
        ]
      }
    ]
  }
}
```