# Cloudflare Radar

> Track Internet outages and use Cloudflare's traffic measurements in monitoring and reporting workflows.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/cloudflare-radar

## Actions

### Get traffic by device type

Get the share of HTTP traffic from desktop, mobile and other devices for a country or worldwide.

**Inputs**

- Country code (`location`, text): A two-letter country code, such as US. Leave empty to include all countries.
- Date range (`date_range`, text): A reporting window, such as 7d or 30d.

**Outputs**

- `data` (object): The response from Cloudflare Radar.

**Example output**

```json
{
  "data": {
    "result": {
      "meta": {},
      "summary_0": {
        "desktop": "example",
        "mobile": "example",
        "other": "example"
      }
    },
    "success": true
  }
}
```

### List Internet outages

Get recent Internet outages and traffic anomalies, optionally filtered by country.

**Inputs**

- Country code (`location`, text): A two-letter country code, such as US. Leave empty to include all countries.
- Date range (`date_range`, text): A reporting window, such as 7d or 30d.
- Limit (`limit`, number): How many records to return. From 1 to 100.

**Outputs**

- `data` (object): The response from Cloudflare Radar.

**Example output**

```json
{
  "data": {
    "result": {
      "annotations": [
        {
          "description": "example",
          "endDate": "example",
          "id": "example",
          "locations": [
            "example"
          ],
          "outage": {
            "outageCause": "example",
            "outageType": "example"
          },
          "scope": "example",
          "startDate": "example"
        }
      ]
    },
    "success": true
  }
}
```
