# Adverse Media

## Get adverse media

<mark style="color:green;">`POST`</mark> `https://www.pepdata.com/api/get_adverse_media`

Endpoint to get adverse media.

#### Headers

| Name                                            | Type   | Description     |
| ----------------------------------------------- | ------ | --------------- |
| Authorization<mark style="color:red;">\*</mark> | string | key \[API\_KEY] |

#### Request Body

| Name                                           | Type   | Description                         |
| ---------------------------------------------- | ------ | ----------------------------------- |
| search\_term<mark style="color:red;">\*</mark> | string | Name of the entity/person to search |

{% tabs %}
{% tab title="200 Information about adverse media obtained successfully." %}
```
{
    "version": 0.1,
    "timestamp": 1683734308978,
    "data": {
        "icij_adverse_media": {
            "items": [
                {
                    "entity": "Lisa Fidalgo Corte-Real",
                    "source": "Panama Papers"
                }
            ],
        },
        "google_adverse_media": {
            "items": [
                {
                    "title": "Lisa Fidalgo Corte-Real is going to be judged by...",
                    "description": "Lisa Fidalgo Corte-Real is going to be judged by corruption... will also be convicted of money laundering and tax fraud.",
                    "source": "https://test-link.pt",
                    "date": "2023-04-14"
                }
            ],
        },
        "judicial_processes": {
            "items": [
                {
                    "entry_number": 12345678,
                    "entry_date": "2022-04-13",
                    "distribution_date": "2022-04-13",
                    "end_date": "2023-04-13",
                    "organ": "London Execution Court",
                    "process_code": "000/00.0A0AGD",
                    "process_value": "12460.27",
                    "observations": "Ordinary Execution (Ag.Execution) Electronic Delivery - Ref 12345678"
                }
            ],
        }
    }
}
```
{% endtab %}

{% tab title="400: Bad Request The field search_term is mandatory." %}
```
{
    "message": {
        "version": 0.1,
        "timestamp": 1683734150315,
        "message": "The field 'search_term' is mandatory."
    }
}
```
{% endtab %}
{% endtabs %}

{% hint style="info" %}
The query includes: **search engine searches** (associated with the AML theme), **judicial processes** and **leak lists** (Pandora Papers, Paradise Papers, Bahamas Leaks, Panama Papers and Offshore Leaks).

The labels will refer to the fields available in each of the different sources.
{% endhint %}



### Label of ICIJ (International Consortium of Investigative Journalists)

* **entity**: name of the entity.
* **source**: list where entity information was found.

### Label of search engines (Google)

* **title**: title of a news.
* **description**: degree of similarity.
* **source**: link to the source of the news.
* **date**: date of the news.

### Label of judicial processes

* **entry\_number**: process entry number.
* **entry\_date**: entry date.
* **distribution\_date**: distribution date.
* **end\_date**: end date.
* **organ**: organic unit.
* **process\_code**: process code.
* **process\_value**: process value (in euros).
* **observations**: species and observations.

{% hint style="info" %}
This endpoint performs a search on organizations on the following international sanctions lists:

* United Nations Security Council Consolidated List
* EU Financial Sanctions Database
* OFAC Specially Designated Nationals and Blocked Persons List
* HM Treasury Financial Sanctions Targets

**Important:** at the moment, the name of the organization must match the name on the sanctions list in order for results to be returned.
{% endhint %}
