Skip to content
Start here

Get top ASes by HTTP requests for an IP version

client.Radar.HTTP.Ases.IPVersion.Get(ctx, ipVersion, query) (*HTTPAseIPVersionGetResponse, error)
GET/radar/http/top/ases/ip_version/{ip_version}

Retrieves the top autonomous systems, by HTTP requests, of the requested IP version.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

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

Example:X-Auth-Email: user@example.com

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

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
User Details WriteUser Details Read
ParametersExpand Collapse
One of the following:
const HTTPAseIPVersionGetParamsIPVersionIPv4 HTTPAseIPVersionGetParamsIPVersion = "IPv4"
const HTTPAseIPVersionGetParamsIPVersionIPv6 HTTPAseIPVersionGetParamsIPVersion = "IPv6"
query HTTPAseIPVersionGetParams
ASN param.Field[[]string]Optional

Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with - to exclude ASNs from results. For example, -174, 3356 excludes results from AS174, but includes results from AS3356.

BotClass param.Field[[]HTTPAseIPVersionGetParamsBotClass]Optional

Filters results by bot class. Refer to Bot classes.

const HTTPAseIPVersionGetParamsBotClassLikelyAutomated HTTPAseIPVersionGetParamsBotClass = "LIKELY_AUTOMATED"
const HTTPAseIPVersionGetParamsBotClassLikelyHuman HTTPAseIPVersionGetParamsBotClass = "LIKELY_HUMAN"
BrowserFamily param.Field[[]HTTPAseIPVersionGetParamsBrowserFamily]Optional

Filters results by browser family.

const HTTPAseIPVersionGetParamsBrowserFamilyChrome HTTPAseIPVersionGetParamsBrowserFamily = "CHROME"
const HTTPAseIPVersionGetParamsBrowserFamilyEdge HTTPAseIPVersionGetParamsBrowserFamily = "EDGE"
const HTTPAseIPVersionGetParamsBrowserFamilyFirefox HTTPAseIPVersionGetParamsBrowserFamily = "FIREFOX"
const HTTPAseIPVersionGetParamsBrowserFamilySafari HTTPAseIPVersionGetParamsBrowserFamily = "SAFARI"
Continent param.Field[[]string]Optional

Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude continents from results. For example, -EU,NA excludes results from EU, but includes results from NA.

DateEnd param.Field[[]Time]Optional

End of the date range (inclusive).

DateRange param.Field[[]string]Optional

Filters results by date range. For example, use 7d and 7dcontrol to compare this week with the previous week. Use this parameter or set specific start and end dates (dateStart and dateEnd parameters).

DateStart param.Field[[]Time]Optional

Start of the date range.

DeviceType param.Field[[]HTTPAseIPVersionGetParamsDeviceType]Optional

Filters results by device type.

const HTTPAseIPVersionGetParamsDeviceTypeDesktop HTTPAseIPVersionGetParamsDeviceType = "DESKTOP"
const HTTPAseIPVersionGetParamsDeviceTypeMobile HTTPAseIPVersionGetParamsDeviceType = "MOBILE"
const HTTPAseIPVersionGetParamsDeviceTypeOther HTTPAseIPVersionGetParamsDeviceType = "OTHER"
Format param.Field[HTTPAseIPVersionGetParamsFormat]Optional

Format in which results will be returned.

const HTTPAseIPVersionGetParamsFormatJson HTTPAseIPVersionGetParamsFormat = "JSON"
const HTTPAseIPVersionGetParamsFormatCsv HTTPAseIPVersionGetParamsFormat = "CSV"
GeoID param.Field[[]string]Optional

Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with - to exclude geoIds from results. For example, -2267056,360689 excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York).

HTTPProtocol param.Field[[]HTTPAseIPVersionGetParamsHTTPProtocol]Optional

Filters results by HTTP protocol (HTTP vs. HTTPS).

const HTTPAseIPVersionGetParamsHTTPProtocolHTTP HTTPAseIPVersionGetParamsHTTPProtocol = "HTTP"
const HTTPAseIPVersionGetParamsHTTPProtocolHTTPS HTTPAseIPVersionGetParamsHTTPProtocol = "HTTPS"
HTTPVersion param.Field[[]HTTPAseIPVersionGetParamsHTTPVersion]Optional

Filters results by HTTP version.

const HTTPAseIPVersionGetParamsHTTPVersionHttPv1 HTTPAseIPVersionGetParamsHTTPVersion = "HTTPv1"
const HTTPAseIPVersionGetParamsHTTPVersionHttPv2 HTTPAseIPVersionGetParamsHTTPVersion = "HTTPv2"
const HTTPAseIPVersionGetParamsHTTPVersionHttPv3 HTTPAseIPVersionGetParamsHTTPVersion = "HTTPv3"
Limit param.Field[int64]Optional

Limits the number of objects returned in the response.

exclusiveMinimum
minimum0
Location param.Field[[]string]Optional

Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude locations from results. For example, -US,PT excludes results from the US, but includes results from PT.

Name param.Field[[]string]Optional

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

OS param.Field[[]HTTPAseIPVersionGetParamsOS]Optional

Filters results by operating system.

const HTTPAseIPVersionGetParamsOSWindows HTTPAseIPVersionGetParamsOS = "WINDOWS"
const HTTPAseIPVersionGetParamsOSMacosx HTTPAseIPVersionGetParamsOS = "MACOSX"
const HTTPAseIPVersionGetParamsOSIos HTTPAseIPVersionGetParamsOS = "IOS"
const HTTPAseIPVersionGetParamsOSAndroid HTTPAseIPVersionGetParamsOS = "ANDROID"
const HTTPAseIPVersionGetParamsOSChromeos HTTPAseIPVersionGetParamsOS = "CHROMEOS"
const HTTPAseIPVersionGetParamsOSLinux HTTPAseIPVersionGetParamsOS = "LINUX"
const HTTPAseIPVersionGetParamsOSSmartTv HTTPAseIPVersionGetParamsOS = "SMART_TV"
TLSVersion param.Field[[]HTTPAseIPVersionGetParamsTLSVersion]Optional

Filters results by TLS version.

const HTTPAseIPVersionGetParamsTLSVersionTlSv1_0 HTTPAseIPVersionGetParamsTLSVersion = "TLSv1_0"
const HTTPAseIPVersionGetParamsTLSVersionTlSv1_1 HTTPAseIPVersionGetParamsTLSVersion = "TLSv1_1"
const HTTPAseIPVersionGetParamsTLSVersionTlSv1_2 HTTPAseIPVersionGetParamsTLSVersion = "TLSv1_2"
const HTTPAseIPVersionGetParamsTLSVersionTlSv1_3 HTTPAseIPVersionGetParamsTLSVersion = "TLSv1_3"
const HTTPAseIPVersionGetParamsTLSVersionTlSvQuic HTTPAseIPVersionGetParamsTLSVersion = "TLSvQUIC"
ReturnsExpand Collapse
type HTTPAseIPVersionGetResponse struct{…}
Meta HTTPAseIPVersionGetResponseMeta

Metadata for the results.

ConfidenceInfo HTTPAseIPVersionGetResponseMetaConfidenceInfo
Annotations []HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotation
DataSource HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceAll HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceAIBots HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceBGP HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceBots HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceCT HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDNS HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDos HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceFw HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceFwPg HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTP HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceIQI HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceNet HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceSpeed HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeEvent HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeGeneral HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeOutage HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventTypePipeline HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly HTTPAseIPVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"
IsInstantaneous bool

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

LinkedURL string
formaturi
StartDate Time
formatdate-time
Tags []stringOptional
Level int64

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

DateRange []HTTPAseIPVersionGetResponseMetaDateRange
EndTime Time

Adjusted end of date range.

formatdate-time
StartTime Time

Adjusted start of date range.

formatdate-time
LastUpdated Time

Timestamp of the last dataset update.

formatdate-time
Normalization HTTPAseIPVersionGetResponseMetaNormalization

Normalization method applied to the results. Refer to Normalization methods.

One of the following:
const HTTPAseIPVersionGetResponseMetaNormalizationPercentage HTTPAseIPVersionGetResponseMetaNormalization = "PERCENTAGE"
const HTTPAseIPVersionGetResponseMetaNormalizationMin0Max HTTPAseIPVersionGetResponseMetaNormalization = "MIN0_MAX"
const HTTPAseIPVersionGetResponseMetaNormalizationMinMax HTTPAseIPVersionGetResponseMetaNormalization = "MIN_MAX"
const HTTPAseIPVersionGetResponseMetaNormalizationRawValues HTTPAseIPVersionGetResponseMetaNormalization = "RAW_VALUES"
const HTTPAseIPVersionGetResponseMetaNormalizationPercentageChange HTTPAseIPVersionGetResponseMetaNormalization = "PERCENTAGE_CHANGE"
const HTTPAseIPVersionGetResponseMetaNormalizationRollingAverage HTTPAseIPVersionGetResponseMetaNormalization = "ROLLING_AVERAGE"
const HTTPAseIPVersionGetResponseMetaNormalizationOverlappedPercentage HTTPAseIPVersionGetResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const HTTPAseIPVersionGetResponseMetaNormalizationRatio HTTPAseIPVersionGetResponseMetaNormalization = "RATIO"
Units []HTTPAseIPVersionGetResponseMetaUnit

Measurement units for the results.

Name string
Value string
Top0 []HTTPAseIPVersionGetResponseTop0
ClientASN int64
ClientAsName string
Value string

A numeric string.

Get top ASes by HTTP requests for an IP version

package main

import (
  "context"
  "fmt"

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

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  ipVersion, err := client.Radar.HTTP.Ases.IPVersion.Get(
    context.TODO(),
    radar.HTTPAseIPVersionGetParamsIPVersionIPv4,
    radar.HTTPAseIPVersionGetParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", ipVersion.Meta)
}
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "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",
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "top_0": [
      {
        "clientASN": 3243,
        "clientASName": "MEO",
        "value": "10"
      }
    ]
  },
  "success": true
}
Returns Examples
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "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",
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "top_0": [
      {
        "clientASN": 3243,
        "clientASName": "MEO",
        "value": "10"
      }
    ]
  },
  "success": true
}