Skip to content
OSINTtools.io

Cloudflare Radar API

Cloudflare's public dashboard of internet traffic, attacks, outages and technology trends, with a URL scanner and a free API.

Base URL
https://api.cloudflare.com/client/v4
Sign-in
Bearer token
Format
REST
Endpoints
3

Compiled by OSINTtools.io editors from developers.cloudflare.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Cloudflare's API includes Radar, with internet traffic and attack data, and a URL Scanner that loads a page and reports its requests, IPs, domains, certificates, technologies and verdicts. An investigator can use the scanner to see what a suspicious URL contacts and whether it is flagged.

Requests go to https://api.cloudflare.com/client/v4 with Authorization: Bearer <API_TOKEN>. For Radar, create a custom token with Account, Radar, Read. For the URL Scanner the token needs Account, URL Scanner, Edit, and paths include your account ID. The docs say Radar's API is free and its data is licensed CC BY-NC 4.0. Rate limits are not stated on the pages read.

Only a few endpoints are described here; the full Radar reference is at https://developers.cloudflare.com/api/resources/radar/. Scan results are kept for 12 months. Bulk scans (up to 100 URLs) and the screenshot and HAR endpoints exist but are not described. The scan search endpoint is not described because the docs read do not show its response.

Quick start

  1. Get a key

    Create an account with Cloudflare Radar and copy your bearer token. Where to get it

  2. Make your first request

    Get the report of a finished scan.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.cloudflare.com/client/v4/accounts/YOUR_ACCOUNT_ID/urlscanner/v2/result/00000000-0000-4000-8000-000000000000' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "task": {
        "uuid": "00000000-0000-4000-8000-000000000000",
        "url": "https://example.com/",
        "success": true,
        "status": "Finished"
      },
      "page": {
        "url": "https://example.com/",
        "country": "US"
      },
      "lists": {
        "ips": [
          "192.0.2.10"
        ],
        "domains": [
          "example.com"
        ]
      },
      "verdicts": {
        "overall": {
          "malicious": false
        }
      }
    …

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Get a key from Cloudflare Radar

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

URL Scanner

Submit a URL for scanning.

POST/accounts/{account_id}/urlscanner/v2/scan

Queues a scan and returns its uuid. Poll the result endpoint every 10 to 30 seconds. Public scans appear in recent scans and search; unlisted ones are reachable only by scan ID.

Path parameters

account_idstringrequired

Your Cloudflare account ID

Example: YOUR_ACCOUNT_ID
Request body (JSON) · 6Show

urlstringalways present

URL to scan

screenshotsResolutions[]string

desktop, mobile or tablet

customagentstring

Custom User-Agent

refererstring

Referer to send

customHeadersobject

Any HTTP headers, including Authorization

visibilitystring

Public (default) or Unlisted

Response fields · 1Show

uuidstring

ID of the scan

curl -X POST 'https://api.cloudflare.com/client/v4/accounts/YOUR_ACCOUNT_ID/urlscanner/v2/scan' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com/","visibility":"Unlisted"}'
Replace YOUR_API_KEY with your key
Response
{
  "uuid": "00000000-0000-4000-8000-000000000000"
}

Get the report of a finished scan.

GET/accounts/{account_id}/urlscanner/v2/result/{scan_id}

  • Passive: the target is not contacted

Returns 404 while the scan is in progress and 200 when it has finished.

Path parameters

account_idstringrequired

Your Cloudflare account ID

Example: YOUR_ACCOUNT_ID
scan_idstringrequired

The uuid returned when the scan was submitted

Example: 00000000-0000-4000-8000-000000000000
Response fields · 11Show

uuidstring

Scan ID

urlstring

Submitted URL

successboolean

Whether the scan worked

statusstring

For example Queued, InProgress, Finished

urlstring

Final URL after redirects

countrystring

Country of the page

requestsarray

Requests the page made

processorsobject

Domain categories, phishing, Radar rank and detected technologies

ipsarray

IPs contacted

domainsarray

Domains contacted, with DNS records

maliciousboolean

Overall verdict

curl 'https://api.cloudflare.com/client/v4/accounts/YOUR_ACCOUNT_ID/urlscanner/v2/result/00000000-0000-4000-8000-000000000000' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "task": {
    "uuid": "00000000-0000-4000-8000-000000000000",
    "url": "https://example.com/",
    "success": true,
    "status": "Finished"
  },
  "page": {
    "url": "https://example.com/",
    "country": "US"
  },
  "lists": {
    "ips": [
      "192.0.2.10"
    ],
    "domains": [
      "example.com"
    ]
  },
  "verdicts": {
    "overall": {
      "malicious": false
    }
  }
}

Radar

Share of HTTP traffic by device type.

GET/radar/http/summary/device_type

  • Passive: the target is not contacted

The docs use this as the first-request example. Radar has many other summary and time-series endpoints in its reference.

Query parameters

dateRangestring

Period to cover

Example: 7d
formatstring

Output format

Example: json
Response fields · 7Show

successboolean

Whether the call worked

errorsarray

Errors, if any

desktopstring

Percent of desktop traffic

mobilestring

Percent of mobile traffic

otherstring

Percent of other traffic

dateRangeobject

Start and end time of the data

normalizationstring

Normalization method, such as PERCENTAGE

curl 'https://api.cloudflare.com/client/v4/radar/http/summary/device_type' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "success": true,
  "errors": [],
  "result": {
    "summary_0": {
      "desktop": "50.000000",
      "mobile": "49.900000",
      "other": "0.100000"
    },
    "meta": {
      "dateRange": {
        "startTime": "2026-01-01T00:00:00Z",
        "endTime": "2026-01-08T00:00:00Z"
      },
      "normalization": "PERCENTAGE"
    }
  }
}