# Cloudflare Radar API

> Cloudflare Radar returns domain rankings and internet outage data as a workflow and API.

Cloudflare Radar, also called CF Radar, uses Get domain rank to return popularity, categories, and weekly history for a website domain or URL. List internet outages returns recent and ongoing outages, filtered optionally by country, lookback days, and maximum results.

- Page: https://fous.com/workflows/cloudflare-radar
- Handle: `@cloudflare-radar`
- Category: [Marketing](https://fous.com/workflows/category/marketing)
- Source website: https://radar.cloudflare.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Cloudflare Radar.

## Methods

### Get domain rank

Operation `get_domain_rank`, version 1. 1 credit per call.

Get a website’s worldwide popularity bucket, exact rank when shown, categories, and recent weekly rank history from Cloudflare Radar. Historical rank points are available only for top-100 domains; other ranked domains have an empty history.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `website` | string | yes | `"https://google.com/search"` | Website domain or URL, for example notion.so or https://notion.so/help. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "website"
  ],
  "properties": {
    "website": {
      "type": "string",
      "description": "Website domain or URL, for example notion.so or https://notion.so/help.",
      "examples": [
        "https://google.com/search",
        "notion.so"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "website": "https://google.com/search"
    },
    {
      "website": "notion.so"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `domain` | string | `"google.com"` |  |
| `categories` | array |  |  |
| `exact_rank` | integer or null | `1` |  |
| `radar_link` | string | `"https://radar.cloudflare.com/domains/domain/google.com"` |  |
| `rank_history` | array |  | Weekly rank points when the domain is in the top 100. |
| `rank_history[].date` | string | `"2026-09-29"` |  |
| `rank_history[].rank` | integer | `1` |  |
| `rank_history[].bucket` | string | `"Top 100"` |  |
| `popularity_rank_bucket` | string | `"Top 100"` |  |

**Example input**

```json
{
  "website": "https://google.com/search"
}
```

**Example output**

```json
{
  "domain": "google.com",
  "categories": [
    "Search Engines"
  ],
  "exact_rank": 1,
  "radar_link": "https://radar.cloudflare.com/domains/domain/google.com",
  "rank_history": [
    {
      "date": "2026-09-29",
      "rank": 1,
      "bucket": "Top 100"
    },
    {
      "date": "2026-09-22",
      "rank": 1,
      "bucket": "Top 100"
    },
    {
      "date": "2026-09-15",
      "rank": 1,
      "bucket": "Top 100"
    }
  ],
  "popularity_rank_bucket": "Top 100"
}
```

### List internet outages

Operation `list_internet_outages`, version 1. 1 credit per call.

List recent and ongoing outages shown in Cloudflare Radar’s Outage Center, optionally for one country. Countries and scope are null when the Outage Center does not identify them.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `days` | integer | no | `7` | Number of days to look back, such as 7. |
| `country` | string | no | `"Iraq"` | Country name or two-letter code, such as Iraq or IQ; omit for all countries. |
| `max_results` | integer | no | `3` | Maximum outages to return, such as 50. |

**Input schema**

```json
{
  "type": "object",
  "properties": {
    "days": {
      "type": "integer",
      "default": 7,
      "maximum": 90,
      "minimum": 1,
      "description": "Number of days to look back, such as 7.",
      "examples": [
        7,
        30,
        1
      ]
    },
    "country": {
      "type": "string",
      "default": "",
      "description": "Country name or two-letter code, such as Iraq or IQ; omit for all countries.",
      "examples": [
        "Iraq",
        "US",
        "Guyana"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 50,
      "maximum": 200,
      "minimum": 1,
      "description": "Maximum outages to return, such as 50.",
      "x-fous-developer": true,
      "examples": [
        3,
        200
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "days": 7
    },
    {
      "days": 30,
      "country": "Iraq",
      "max_results": 3
    },
    {
      "days": 1,
      "country": "US"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `outages` | array |  |  |
| `outages[].end` | string or null | `"2026-09-28T03:45:00+00:00"` | Outage end, or null while ongoing. |
| `outages[].cause` | string or null | `"Government directed"` | Reported cause in words. |
| `outages[].scope` | string or null |  | Reported scope when provided. |
| `outages[].start` | string | `"2026-09-28T03:30:00+00:00"` | Outage start, ISO 8601 with UTC offset. |
| `outages[].country` | string or null | `"Iraq"` | Affected country or countries, if specified. |
| `outages[].ongoing` | string | `"no"` |  |
| `outages[].radar_link` | string | `"https://radar.cloudflare.com/traffic/iq?dateStart=2026-09-28&dateEnd=2026-09-28"` | Cloudflare Radar traffic chart for the outage. |
| `outages[].affected_region_or_network` | string or null | `"AS199739, AS203214, AS51684, AS58322, AS59588"` | Affected networks, if shown. |

**Example input**

```json
{
  "days": 7
}
```

**Example output**

```json
{
  "outages": [
    {
      "end": "2026-09-28T03:45:00+00:00",
      "cause": "Government directed",
      "scope": null,
      "start": "2026-09-28T03:30:00+00:00",
      "country": "Iraq",
      "ongoing": "no",
      "radar_link": "https://radar.cloudflare.com/traffic/iq?dateStart=2026-09-28&dateEnd=2026-09-28",
      "affected_region_or_network": "AS199739, AS203214, AS51684, AS58322, AS59588"
    },
    {
      "end": "2026-09-28T00:45:00+00:00",
      "cause": "Unknown",
      "scope": null,
      "start": "2026-09-27T22:00:00+00:00",
      "country": null,
      "ongoing": "no",
      "radar_link": "https://radar.cloudflare.com/traffic/as206065?dateStart=2026-09-27&dateEnd=2026-09-28",
      "affected_region_or_network": "AS206065"
    },
    {
      "end": "2026-09-26T03:45:00+00:00",
      "cause": "Government directed",
      "scope": null,
      "start": "2026-09-26T03:30:00+00:00",
      "country": "Iraq",
      "ongoing": "no",
      "radar_link": "https://radar.cloudflare.com/traffic/iq?dateStart=2026-09-26&dateEnd=2026-09-26",
      "affected_region_or_network": "AS199739, AS203214, AS51684, AS58322, AS59588"
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@cloudflare-radar",
  "visibility": "public",
  "operation": "get_domain_rank",
  "version": 1,
  "input": {
    "website": "https://google.com/search"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@cloudflare-radar\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_domain_rank\",\n  \"version\": 1,\n  \"input\": {\n    \"website\": \"https://google.com/search\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@cloudflare-radar",
  "visibility": "public",
  "operation": "get_domain_rank",
  "version": 1,
  "input": {
    "website": "https://google.com/search"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@cloudflare-radar","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare a website’s popularity rank and categories.
- Track weekly rank history for top-100 domains.
- Review recent and ongoing outages by country.
- Summarize outage causes, affected areas, and timing.

## FAQ

### Is Fous affiliated with Cloudflare Radar?

No. Fous is not affiliated with Cloudflare Radar. This workflow reads the public radar.cloudflare.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Cloudflare Radar account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from radar.cloudflare.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What is a website’s worldwide rank?

Get domain rank returns its popularity bucket and exact rank when shown.

### How has a website’s rank changed over time?

Get domain rank returns weekly rank history for top-100 domains.

### Which internet outages are recent or ongoing?

List internet outages returns outages for a chosen lookback period, optionally filtered by country.

## Related

- [Similarweb API](https://fous.com/workflows/similarweb.md): Similarweb provides website traffic estimates and digital market intelligence, including monthly traffic, rankings, engagement, top countries, and category and country leaders; anonymous access may limit results.
- [Downdetector API](https://fous.com/workflows/downdetector.md): Real-time user reports of service outages and problems.
- [Google Trends API](https://fous.com/workflows/google-trends.md): Google Trends compares relative search interest over time and by region, shows related searches and current trends, with daily peaks for seven-day views.
- [Google Public DNS API](https://fous.com/workflows/google-public-dns.md): Public DNS lookups and DNS-over-HTTPS from Google.
- [IMF API](https://fous.com/workflows/imf.md): IMF economic data provides country and regional forecasts with actual or forecast labels, and country rankings by World Economic Outlook indicators, excluding groups and missing values.
- [Bilibili API](https://fous.com/workflows/bilibili.md): Bilibili provides public video details and statistics, plus current overall or category rankings; movie rankings omit some video details.
- [Flightradar24 API](https://fous.com/workflows/flightradar24.md): Flightradar24 provides live flight tracking, recent history, flight status and times, plus upcoming airport departures and arrivals; history and schedules are limited to recent and upcoming flights.
- [World Health Organization API](https://fous.com/workflows/world-health-organization.md): The World Health Organization provides public health information, latest outbreak reports, country health statistics with up to 10 years of history when available, and topic fact sheets.
- [All Marketing workflows](https://fous.com/workflows/category/marketing)
