# OPSWAT MetaDefender

> Read MetaDefender scan history, IP reputation, and remaining API allowances.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/opswat-metadefender

## Actions

### Get remaining API limits

Read the remaining allowance for each MetaDefender API family.

**Inputs**: None.

**Outputs**

- `data` (object): The response from OPSWAT MetaDefender.

**Example output**

```json
{
  "data": {
    "feed_api": 100,
    "prevention_api": 100,
    "reputation_api": 100,
    "sandbox_api": 10,
    "threat_intel_search_api": 10,
    "throttling_limit": 8
  }
}
```

### List scan history

Read one page of files previously uploaded by this API-key account.

**Inputs**

- Limit (`limit`, number): Maximum number of records in this page. At least 1.
- Cursor (`cursor`, text): Continuation cursor from the preceding response; omitted for the first page.
- Search (`search`, text): Optional file name or hash search, with vendor wildcard support.

**Outputs**

- `data` (object): The response from OPSWAT MetaDefender.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "data_id": "analysis-1",
        "file_info": {
          "display_name": "example.txt",
          "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
        },
        "scan_results": {
          "scan_all_result_i": 0,
          "total_avs": 30,
          "total_detected_avs": 0
        }
      }
    ]
  }
}
```

### Look up IP reputation

Read aggregate IP reputation from MetaDefender reputation sources.

**Inputs**

- IP (`ip`, text, required): IPv4 address to look up; this reads existing intelligence.

**Outputs**

- `data` (object): The response from OPSWAT MetaDefender.

**Example output**

```json
{
  "data": {
    "address": "8.8.8.8",
    "lookup_results": {
      "detected_by": 0,
      "sources": [
        {
          "assessment": "",
          "provider": "Example reputation source",
          "status": 0
        }
      ]
    }
  }
}
```
