---
title: Get latest Internet traffic anomalies
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Radar](https://developers.cloudflare.com/api/python/resources/radar)

[Traffic Anomalies](https://developers.cloudflare.com/api/python/resources/radar/subresources/traffic_anomalies)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get latest Internet traffic anomalies

radar.traffic\_anomalies.get(TrafficAnomalyGetParams\*\*kwargs) -> [TrafficAnomalyGetResponse](<https://developers.cloudflare.com/api/python/resources/radar#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)>)

GET/radar/traffic\_anomalies

Retrieves the latest Internet traffic anomalies, which are signals that might indicate an outage. These alerts are automatically detected by Radar and manually verified by our team.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`User Details Write``User Details Read`

##### ParametersExpand Collapse

asn: Optional\[int]

Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20asn%20%3E%20(schema)>)

<details>

<summary>

data\_source: Optional\[Literal\["ALL", "AI\_BOTS", "AI\_GATEWAY", 22 more]]

Filters results by data source.

</summary>

One of the following:

"ALL"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"AI\_BOTS"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"AI\_GATEWAY"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"BGP"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"BOTS"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"CONNECTION\_ANOMALY"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"CT"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"DNS"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"DNS\_MAGNITUDE"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"DNS\_AS112"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"DOS"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"EMAIL\_ROUTING"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"EMAIL\_SECURITY"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"FW"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"FW\_PG"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"HTTP"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"HTTP\_CONTROL"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"HTTP\_CRAWLER\_REFERER"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"HTTP\_ORIGINS"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"IQI"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"LEAKED\_CREDENTIALS"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

"NET"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2021">Link to this property</a>

"ROBOTS\_TXT"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2022">Link to this property</a>

"SPEED"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

"WORKERS\_AI"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)%20%3E%20(member)%2024">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dataSource%20%3E%20(schema)>)

date\_end: Optional\[Union\[str, datetime]]

End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`.

formatdate-time

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dateEnd%20%3E%20(schema)>)

date\_range: Optional\[str]

Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window’s length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`.

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dateRange%20%3E%20(schema)>)

date\_start: Optional\[Union\[str, datetime]]

Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`.

formatdate-time

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20dateStart%20%3E%20(schema)>)

<details>

<summary>

format: Optional\[Literal\["JSON", "CSV"]]

Format in which results will be returned.

</summary>

One of the following:

"JSON"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"CSV"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)>)

limit: Optional\[int]

Limits the number of objects returned in the response.

exclusiveMinimum

minimum0

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20limit%20%3E%20(schema)>)

location: Optional\[str]

Filters results by location. Specify an alpha-2 location code.

maxLength2

minLength2

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20location%20%3E%20(schema)>)

offset: Optional\[int]

Skips the specified number of objects before fetching the results.

minimum0

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20offset%20%3E%20(schema)>)

origin: Optional\[str]

Filters results by origin.

maxLength100

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20origin%20%3E%20(schema)>)

<details>

<summary>

status: Optional\[Literal\["VERIFIED", "UNVERIFIED"]]

</summary>

One of the following:

"VERIFIED"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"UNVERIFIED"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)>)

<details>

<summary>

type: Optional\[List\[Literal\["LOCATION", "AS", "ORIGIN"]]]

Filters results by entity type (LOCATION, AS, or ORIGIN).

</summary>

One of the following:

"LOCATION"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"AS"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"ORIGIN"

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20type%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class TrafficAnomalyGetResponse: …

</summary>

<details>

<summary>

traffic\_anomalies: List\[TrafficAnomaly]

</summary>

<details>

<summary>

asn\_details: Optional\[TrafficAnomalyASNDetails]

</summary>

asn: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20asnDetails%20%3E%20(property)%20asn">Link to this property</a>

<details>

<summary>

location: Optional\[TrafficAnomalyASNDetailsLocation]

</summary>

code: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20asnDetails%20%3E%20(property)%20location%20%3E%20(property)%20code">Link to this property</a>

name: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20asnDetails%20%3E%20(property)%20location%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20asnDetails%20%3E%20(property)%20location">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20asnDetails%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20asnDetails">Link to this property</a>

end\_date: Optional\[datetime]

formatdate-time

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20endDate">Link to this property</a>

<details>

<summary>

location\_details: Optional\[TrafficAnomalyLocationDetails]

</summary>

code: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20locationDetails%20%3E%20(property)%20code">Link to this property</a>

name: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20locationDetails%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20locationDetails">Link to this property</a>

<details>

<summary>

origin\_details: Optional\[TrafficAnomalyOriginDetails]

</summary>

name: Optional\[str]

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20originDetails%20%3E%20(property)%20name">Link to this property</a>

origin: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20originDetails%20%3E%20(property)%20origin">Link to this property</a>

</details>

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20originDetails">Link to this property</a>

start\_date: datetime

formatdate-time

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20startDate">Link to this property</a>

status: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20status">Link to this property</a>

type: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20type">Link to this property</a>

uuid: str

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20uuid">Link to this property</a>

visible\_in\_data\_sources: Optional\[List\[str]]

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies%20%3E%20(items)%20%3E%20(property)%20visibleInDataSources">Link to this property</a>

</details>

<a href="#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)%20%3E%20(property)%20trafficAnomalies">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.traffic_anomalies%20%3E%20(model)%20traffic_anomaly_get_response%20%3E%20(schema)>)

### Get latest Internet traffic anomalies

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
traffic_anomaly = client.radar.traffic_anomalies.get()
print(traffic_anomaly.traffic_anomalies)
```

200 example

```
{
  "result": {
    "trafficAnomalies": [
      {
        "asnDetails": {
          "asn": "189",
          "location": {
            "code": "US",
            "name": "United States"
          },
          "name": "LUMEN-LEGACY-L3-PARTITION"
        },
        "endDate": "2019-12-27T18:11:19.117Z",
        "locationDetails": {
          "code": "US",
          "name": "United States"
        },
        "originDetails": {
          "name": "us-east-1 Amazon Web Services",
          "origin": "amazon-us-east-1"
        },
        "startDate": "2023-08-02T23:15:00Z",
        "status": "UNVERIFIED",
        "type": "LOCATION",
        "uuid": "55a57f33-8bc0-4984-b4df-fdaff72df39d",
        "visibleInDataSources": [
          "string"
        ]
      }
    ]
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "result": {
    "trafficAnomalies": [
      {
        "asnDetails": {
          "asn": "189",
          "location": {
            "code": "US",
            "name": "United States"
          },
          "name": "LUMEN-LEGACY-L3-PARTITION"
        },
        "endDate": "2019-12-27T18:11:19.117Z",
        "locationDetails": {
          "code": "US",
          "name": "United States"
        },
        "originDetails": {
          "name": "us-east-1 Amazon Web Services",
          "origin": "amazon-us-east-1"
        },
        "startDate": "2023-08-02T23:15:00Z",
        "status": "UNVERIFIED",
        "type": "LOCATION",
        "uuid": "55a57f33-8bc0-4984-b4df-fdaff72df39d",
        "visibleInDataSources": [
          "string"
        ]
      }
    ]
  },
  "success": true
}
```