# Sanctions & PEP watchlist (US)

Screen a US company against sanctions, debarment and PEP lists.

Returns OpenSanctions entities whose name matches the company's legal name, with datasets, topics (`sanction`, `debarment`, `role.pep`), programs and countries. The match is name-only: treat hits as potential matches for review, not confirmed identities.

## Endpoint

```text
GET /api/v1/companies/:company_id/watchlist
```

Find the `company_id` with [Search](/en/docs/reference) (`POST /api/v1/companies/search` with `"filters": {"jurisdiction": ["us-de"]}`) or resolve a state entity number with `GET /api/v1/companies/get_id/:jurisdiction/:identifier` (e.g. `us-de`, `5600000`).

## Parameters

| Parameter | Type | In | Description |
| --- | --- | --- | --- |
| `company_id` | `integer` | path | Numeric Statsnet id of a US company (from search or `get_id`). |

## Code Examples

**Screen against watchlists**

**cURL**

```bash
curl "https://statsnet.co/api/v1/companies/10000913141092/watchlist" \
  -H "x-api-key: sk_live_YOUR_KEY"
```

**Python**

```python
import requests

url = 'https://statsnet.co/api/v1/companies/10000913141092/watchlist'
headers = {'x-api-key': 'sk_live_YOUR_KEY'}

response = requests.get(url, headers=headers).json()
print(response)
```

**TypeScript**

```typescript
const url = 'https://statsnet.co/api/v1/companies/10000913141092/watchlist';

const response = await fetch(url, {
  headers: { 'x-api-key': 'sk_live_YOUR_KEY' },
});

const data = await response.json();
console.log(data);
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://statsnet.co/api/v1/companies/10000913141092/watchlist", nil)
	req.Header.Set("x-api-key", "sk_live_YOUR_KEY")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()

	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
```

## Response

**Success response**

```json
{
  "records": [],
  "total": 0
}
```

## Error Handling

**Error response**

```json
{
  "status": 403,
  "message": "access denied"
}
```

This endpoint can also return `{"status": 402, "message": "payment required"}` when the subscription is canceled or expired, and `{"status": 429, "message": "quota exhausted"}` when the plan’s report quota for the current period is used up.
