---
title: Get top or trending domains
---

[Skip to content](#_top)

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

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

[Ranking](https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking)

Copy Markdown

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

---

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

# Get top or trending domains

client.Radar.Ranking.Top(ctx, query) (\*[RankingTopResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)>), error)

GET/radar/ranking/top

Retrieves the top or trending domains based on their rank. Popular domains are domains of broad appeal based on how people use the Internet. Trending domains are domains that are generating a surge in interest. For more information on top domains, see https://blog.cloudflare.com/radar-domain-rankings/.

##### 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

<details>

<summary>

query RankingTopParams

</summary>

Date param.Field\[\[]Time]Optional

Filters results by the specified array of dates.

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20date">Link to this property</a>

DomainCategory param.Field\[\[]string]Optional

Filters results by domain category.

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20domainCategory">Link to this property</a>

<details>

<summary>

Format param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking/methods/top#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)">RankingTopParamsFormat</a>]Optional

Format in which results will be returned.

</summary>

const RankingTopParamsFormatJson <a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking/methods/top#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)">RankingTopParamsFormat</a> = "JSON"

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

const RankingTopParamsFormatCsv <a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking/methods/top#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)">RankingTopParamsFormat</a> = "CSV"

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%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>

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20format">Link to this property</a>

Limit param.Field\[int64]Optional

Limits the number of objects returned in the response.

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20limit">Link to this property</a>

Location param.Field\[\[]string]Optional

Filters results by location. Specify a comma-separated list of alpha-2 location codes.

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20location">Link to this property</a>

Name param.Field\[\[]string]Optional

Array of names used to label the series in the response.

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20name">Link to this property</a>

<details>

<summary>

RankingType param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking/methods/top#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20rankingType%20%3E%20(schema)">RankingTopParamsRankingType</a>]Optional

The ranking type.

</summary>

const RankingTopParamsRankingTypePopular <a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking/methods/top#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20rankingType%20%3E%20(schema)">RankingTopParamsRankingType</a> = "POPULAR"

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

const RankingTopParamsRankingTypeTrendingRise <a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking/methods/top#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20rankingType%20%3E%20(schema)">RankingTopParamsRankingType</a> = "TRENDING\_RISE"

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

const RankingTopParamsRankingTypeTrendingSteady <a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/ranking/methods/top#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20rankingType%20%3E%20(schema)">RankingTopParamsRankingType</a> = "TRENDING\_STEADY"

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

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default%20%3E%20(param)%20rankingType">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.ranking%20%3E%20(method)%20top%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type RankingTopResponse struct{…}

</summary>

<details>

<summary>

Meta RankingTopResponseMeta

</summary>

<details>

<summary>

ConfidenceInfo RankingTopResponseMetaConfidenceInfo

</summary>

<details>

<summary>

Annotations \[]RankingTopResponseMetaConfidenceInfoAnnotation

</summary>

<details>

<summary>

DataSource RankingTopResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

</summary>

One of the following:

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceAll RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%200">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceAIBots RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "AI\_BOTS"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%201">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "AI\_GATEWAY"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%202">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceBGP RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%203">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceBots RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%204">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION\_ANOMALY"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%205">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceCT RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "CT"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%206">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceDNS RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%207">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "DNS\_MAGNITUDE"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%208">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "DNS\_AS112"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%209">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceDos RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2010">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL\_ROUTING"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2011">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL\_SECURITY"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2012">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceFw RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "FW"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2013">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceFwPg RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "FW\_PG"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2014">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceHTTP RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2015">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP\_CONTROL"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2016">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP\_CRAWLER\_REFERER"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2017">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP\_ORIGINS"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2018">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceIQI RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2019">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED\_CREDENTIALS"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2020">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceNet RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "NET"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2021">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS\_TXT"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2022">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceSpeed RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2023">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI RankingTopResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS\_AI"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource%20%3E%20(member)%2024">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20dataSource">Link to this property</a>

Description string

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20description">Link to this property</a>

EndDate Time

formatdate-time

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20endDate">Link to this property</a>

<details>

<summary>

EventType RankingTopResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

</summary>

One of the following:

const RankingTopResponseMetaConfidenceInfoAnnotationsEventTypeGeneral RankingTopResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20eventType%20%3E%20(member)%200">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsEventTypeOutage RankingTopResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20eventType%20%3E%20(member)%201">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection RankingTopResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL\_PROJECTION"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20eventType%20%3E%20(member)%202">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsEventTypePipeline RankingTopResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20eventType%20%3E%20(member)%203">Link to this property</a>

const RankingTopResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly RankingTopResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC\_ANOMALY"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20eventType%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20eventType">Link to this property</a>

IsInstantaneous bool

Whether event is a single point in time or a time range.

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20isInstantaneous">Link to this property</a>

LinkedURL string

formaturi

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20linkedUrl">Link to this property</a>

StartDate Time

formatdate-time

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20startDate">Link to this property</a>

Tags \[]stringOptional

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations%20%3E%20(items)%20%3E%20(property)%20tags">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20annotations">Link to this property</a>

Level int64

Provides an indication of how much confidence Cloudflare has in the data.

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo%20%3E%20(property)%20level">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20confidenceInfo">Link to this property</a>

<details>

<summary>

DateRange \[]RankingTopResponseMetaDateRange

</summary>

EndTime Time

Adjusted end of date range.

formatdate-time

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20dateRange%20%3E%20(items)%20%3E%20(property)%20endTime">Link to this property</a>

StartTime Time

Adjusted start of date range.

formatdate-time

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20dateRange%20%3E%20(items)%20%3E%20(property)%20startTime">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20dateRange">Link to this property</a>

LastUpdated Time

Timestamp of the last dataset update.

formatdate-time

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20lastUpdated">Link to this property</a>

<details>

<summary>

Normalization RankingTopResponseMetaNormalization

Normalization method applied to the results. Refer to <a href="https://developers.cloudflare.com/radar/concepts/normalization/">Normalization methods</a>.

</summary>

One of the following:

const RankingTopResponseMetaNormalizationPercentage RankingTopResponseMetaNormalization = "PERCENTAGE"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%200">Link to this property</a>

const RankingTopResponseMetaNormalizationMin0Max RankingTopResponseMetaNormalization = "MIN0\_MAX"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%201">Link to this property</a>

const RankingTopResponseMetaNormalizationMinMax RankingTopResponseMetaNormalization = "MIN\_MAX"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%202">Link to this property</a>

const RankingTopResponseMetaNormalizationRawValues RankingTopResponseMetaNormalization = "RAW\_VALUES"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%203">Link to this property</a>

const RankingTopResponseMetaNormalizationPercentageChange RankingTopResponseMetaNormalization = "PERCENTAGE\_CHANGE"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%204">Link to this property</a>

const RankingTopResponseMetaNormalizationRollingAverage RankingTopResponseMetaNormalization = "ROLLING\_AVERAGE"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%205">Link to this property</a>

const RankingTopResponseMetaNormalizationOverlappedPercentage RankingTopResponseMetaNormalization = "OVERLAPPED\_PERCENTAGE"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%206">Link to this property</a>

const RankingTopResponseMetaNormalizationRatio RankingTopResponseMetaNormalization = "RATIO"

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20normalization">Link to this property</a>

<details>

<summary>

Top0 RankingTopResponseMetaTop0

</summary>

Date Time

formatdate

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20top_0%20%3E%20(property)%20date">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20top_0">Link to this property</a>

<details>

<summary>

Units \[]RankingTopResponseMetaUnit

Measurement units for the results.

</summary>

Name string

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20units%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Value string

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20units%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20units">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

<details>

<summary>

Top0 \[]RankingTopResponseTop0

</summary>

<details>

<summary>

Categories \[]RankingTopResponseTop0Category

</summary>

ID int64

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0%20%3E%20(items)%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

Name string

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0%20%3E%20(items)%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

SuperCategoryID int64

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0%20%3E%20(items)%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20superCategoryId">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0%20%3E%20(items)%20%3E%20(property)%20categories">Link to this property</a>

Domain string

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0%20%3E%20(items)%20%3E%20(property)%20domain">Link to this property</a>

Rank int64

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0%20%3E%20(items)%20%3E%20(property)%20rank">Link to this property</a>

PctRankChange float64Optional

Only available in TRENDING rankings.

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0%20%3E%20(items)%20%3E%20(property)%20pctRankChange">Link to this property</a>

</details>

<a href="#(resource)%20radar.ranking%20%3E%20(model)%20RankingTopResponse%20%3E%20(schema)%20%3E%20(property)%20top_0">Link to this property</a>

</details>

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

### Get top or trending domains

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/radar"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.Radar.Ranking.Top(context.TODO(), radar.RankingTopParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Meta)
}
```

200 example

```
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "GENERAL",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "tags": [
              "BOT_CLASS"
            ]
          }
        ],
        "level": 0
      },
      "dateRange": [
        {
          "endTime": "2022-09-17T10:22:57.555Z",
          "startTime": "2022-09-16T10:22:57.555Z"
        }
      ],
      "lastUpdated": "2019-12-27T18:11:19.117Z",
      "normalization": "PERCENTAGE",
      "top_0": {
        "date": "2019-12-27"
      },
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "top_0": [
      {
        "categories": [
          {
            "id": 81,
            "name": "Content Servers",
            "superCategoryId": 26
          }
        ],
        "domain": "google.com",
        "rank": 1,
        "pctRankChange": 10.8
      }
    ]
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "GENERAL",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "tags": [
              "BOT_CLASS"
            ]
          }
        ],
        "level": 0
      },
      "dateRange": [
        {
          "endTime": "2022-09-17T10:22:57.555Z",
          "startTime": "2022-09-16T10:22:57.555Z"
        }
      ],
      "lastUpdated": "2019-12-27T18:11:19.117Z",
      "normalization": "PERCENTAGE",
      "top_0": {
        "date": "2019-12-27"
      },
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "top_0": [
      {
        "categories": [
          {
            "id": 81,
            "name": "Content Servers",
            "superCategoryId": 26
          }
        ],
        "domain": "google.com",
        "rank": 1,
        "pctRankChange": 10.8
      }
    ]
  },
  "success": true
}
```