# prov.identify.listAssessments

prov.identify.listAssessments in Node SDK. The recorded hosted checks, newest first, filtered and paged by the API.

## Signature

```ts
prov.identify.listAssessments(params?: ListTrafficAssessmentsParams): Promise<{ data: TrafficAssessment[]; hasMore: boolean; nextCursor: string | null }>
```

## Parameters

- `params` (ListTrafficAssessmentsParams, optional)

## Returns

`Promise<{ data: TrafficAssessment[]; hasMore: boolean; nextCursor: string | null }>`

## HTTP operation

[`GET /v1/identify/assessments`](https://provenanceauth.com/docs/api/traffic-checks.md#get-v1-identify-assessments): List traffic assessments

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

## Example

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "request": {
      "method": "GET",
      "url": "https://harborbean.example/products",
      "headers": {
        "user-agent": "curl/8.7.1"
      }
    }
  }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "request": {
        "method": "GET",
        "url": "https://harborbean.example/products",
        "headers": {
            "user-agent": "curl/8.7.1"
        }
    }
}).json()
data = httpx.get(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```
