# Operational Risk API

## Risk Assessment
Assess operational risks including natural disasters and conflicts

Submit API Request [View on RapidAPI](https://rapidapi.com/arounddeal/api/operational-risk-api/playground)

## Primary Use Cases
- Identify geopolitical risks such as war or regional conflict
- Detect potential operational disruptions caused by natural disasters
- Support supply chain risk assessment

## API Function Name
`operational_risk`

## Input Parameters
At least one input parameter is required. If multiple inputs are provided, the system will process them in priority order. If `country` is not provided, the analysis is performed globally.

### Input Parameters
4 fields

| Name          | Type   | Description                   | Example                                       |
|---------------|--------|-------------------------------|-----------------------------------------------|
| linkedin_url  | string | Company LinkedIn URL          | `https://www.linkedin.com/company/microsoft/` |
| website       | string | Company website               | `www.microsoft.com`                           |
| name          | string | Company name                  | `microsoft`                                  |
| country       | string | Country code                  | `US`                                         |

## Output Fields
Returned fields (normalized). Total: 36

### Top-level Data Structure
4 fields

| Field              | Type      | Description                     |
|--------------------|-----------|---------------------------------|
| time               | int       | Data generation timestamp       |
| profile            | object    | Company profile                 |
| recent_disasters   | array of object | Recent disasters             |
| current_wars       | array of object | Current wars                 |

### Company Profile Data Structure
18 fields

| Field                     | Type                  | Description                       |
|---------------------------|-----------------------|-----------------------------------|
| linkedin_id               | string                | LinkedIn numeric ID               |
| linkedin_key              | string                | LinkedIn unique key (company handle) |
| name                      | string                | Company name                      |
| avatar_url                | string (URL)         | Company logo URL                  |
| hq_country_code           | string                | HQ country code (ISO)            |
| hq_country_name           | string                | HQ country name                   |
| employee_range_name       | string                | Employee range label              |
| employee_range_id         | string                | Employee range ID                 |
| founded_year              | string                | Founded year (as a string)       |
| website_home_url          | string (URL)         | Website homepage URL              |
| website_home_host         | string                | Website host                      |
| website_home_root         | string                | Website root domain               |
| count_employee            | int                   | Employee count                    |
| count_follower            | int                   | LinkedIn follower count           |
| description               | string                | Company description                |
| industry_name             | string                | Industry name                     |
| specialties               | array of string       | Specialties/keywords              |
| linkedin_url              | string (URL)         | LinkedIn company page URL         |

### recent_disasters Object Data Structure
10 fields

| Field      | Type   | Description                  |
|------------|--------|------------------------------|
| type       | string | Type                         |
| name       | string | name                         |
| description| string | Description                  |
| level      | string | Severity level               |
| score      | int    | Weight                       |
| countries  | array of string | Affected country codes   |
| lalo       | array of number | Coordinates               |
| time_from  | int    | Start time                   |
| time_to    | int    | End time                     |
| affected    | int    | Affected or not             |

### current_wars Object Data Structure
4 fields

| Field      | Type   | Description                     |
|------------|--------|---------------------------------|
| name       | string | War/event name                 |
| lalos      | array of array (number) | Coordinate points list |
| countries  | array of string | Countries involved (ISO 3166-2) |
| affected   | int    | Affected or not                |
