Skip to content
Start here

Get top ASes by HTTP requests for a TLS version

client.Radar.HTTP.Ases.TLSVersion.Get(ctx, tlsVersion, query) (*HTTPAseTLSVersionGetResponse, error)
GET/radar/http/top/ases/tls_version/{tls_version}

Retrieves the top autonomous systems, by HTTP requests, of the requested TLS protocol 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 HTTPAseTLSVersionGetParamsTLSVersionTlSv1_0 HTTPAseTLSVersionGetParamsTLSVersion = "TLSv1_0"
const HTTPAseTLSVersionGetParamsTLSVersionTlSv1_1 HTTPAseTLSVersionGetParamsTLSVersion = "TLSv1_1"
const HTTPAseTLSVersionGetParamsTLSVersionTlSv1_2 HTTPAseTLSVersionGetParamsTLSVersion = "TLSv1_2"
const HTTPAseTLSVersionGetParamsTLSVersionTlSv1_3 HTTPAseTLSVersionGetParamsTLSVersion = "TLSv1_3"
const HTTPAseTLSVersionGetParamsTLSVersionTlSvQuic HTTPAseTLSVersionGetParamsTLSVersion = "TLSvQUIC"
query HTTPAseTLSVersionGetParams
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[[]HTTPAseTLSVersionGetParamsBotClass]Optional

Filters results by bot class. Refer to Bot classes.

const HTTPAseTLSVersionGetParamsBotClassLikelyAutomated HTTPAseTLSVersionGetParamsBotClass = "LIKELY_AUTOMATED"
const HTTPAseTLSVersionGetParamsBotClassLikelyHuman HTTPAseTLSVersionGetParamsBotClass = "LIKELY_HUMAN"
BrowserFamily param.Field[[]HTTPAseTLSVersionGetParamsBrowserFamily]Optional

Filters results by browser family.

const HTTPAseTLSVersionGetParamsBrowserFamilyChrome HTTPAseTLSVersionGetParamsBrowserFamily = "CHROME"
const HTTPAseTLSVersionGetParamsBrowserFamilyEdge HTTPAseTLSVersionGetParamsBrowserFamily = "EDGE"
const HTTPAseTLSVersionGetParamsBrowserFamilyFirefox HTTPAseTLSVersionGetParamsBrowserFamily = "FIREFOX"
const HTTPAseTLSVersionGetParamsBrowserFamilySafari HTTPAseTLSVersionGetParamsBrowserFamily = "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[[]HTTPAseTLSVersionGetParamsDeviceType]Optional

Filters results by device type.

const HTTPAseTLSVersionGetParamsDeviceTypeDesktop HTTPAseTLSVersionGetParamsDeviceType = "DESKTOP"
const HTTPAseTLSVersionGetParamsDeviceTypeMobile HTTPAseTLSVersionGetParamsDeviceType = "MOBILE"
const HTTPAseTLSVersionGetParamsDeviceTypeOther HTTPAseTLSVersionGetParamsDeviceType = "OTHER"
Format param.Field[HTTPAseTLSVersionGetParamsFormat]Optional

Format in which results will be returned.

const HTTPAseTLSVersionGetParamsFormatJson HTTPAseTLSVersionGetParamsFormat = "JSON"
const HTTPAseTLSVersionGetParamsFormatCsv HTTPAseTLSVersionGetParamsFormat = "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[[]HTTPAseTLSVersionGetParamsHTTPProtocol]Optional

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

const HTTPAseTLSVersionGetParamsHTTPProtocolHTTP HTTPAseTLSVersionGetParamsHTTPProtocol = "HTTP"
const HTTPAseTLSVersionGetParamsHTTPProtocolHTTPS HTTPAseTLSVersionGetParamsHTTPProtocol = "HTTPS"
HTTPVersion param.Field[[]HTTPAseTLSVersionGetParamsHTTPVersion]Optional

Filters results by HTTP version.

const HTTPAseTLSVersionGetParamsHTTPVersionHttPv1 HTTPAseTLSVersionGetParamsHTTPVersion = "HTTPv1"
const HTTPAseTLSVersionGetParamsHTTPVersionHttPv2 HTTPAseTLSVersionGetParamsHTTPVersion = "HTTPv2"
const HTTPAseTLSVersionGetParamsHTTPVersionHttPv3 HTTPAseTLSVersionGetParamsHTTPVersion = "HTTPv3"
IPVersion param.Field[[]HTTPAseTLSVersionGetParamsIPVersion]Optional

Filters results by IP version (Ipv4 vs. IPv6).

const HTTPAseTLSVersionGetParamsIPVersionIPv4 HTTPAseTLSVersionGetParamsIPVersion = "IPv4"
const HTTPAseTLSVersionGetParamsIPVersionIPv6 HTTPAseTLSVersionGetParamsIPVersion = "IPv6"
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[[]HTTPAseTLSVersionGetParamsOS]Optional

Filters results by operating system.

const HTTPAseTLSVersionGetParamsOSWindows HTTPAseTLSVersionGetParamsOS = "WINDOWS"
const HTTPAseTLSVersionGetParamsOSMacosx HTTPAseTLSVersionGetParamsOS = "MACOSX"
const HTTPAseTLSVersionGetParamsOSIos HTTPAseTLSVersionGetParamsOS = "IOS"
const HTTPAseTLSVersionGetParamsOSAndroid HTTPAseTLSVersionGetParamsOS = "ANDROID"
const HTTPAseTLSVersionGetParamsOSChromeos HTTPAseTLSVersionGetParamsOS = "CHROMEOS"
const HTTPAseTLSVersionGetParamsOSLinux HTTPAseTLSVersionGetParamsOS = "LINUX"
const HTTPAseTLSVersionGetParamsOSSmartTv HTTPAseTLSVersionGetParamsOS = "SMART_TV"
ReturnsExpand Collapse
type HTTPAseTLSVersionGetResponse struct{…}
Meta HTTPAseTLSVersionGetResponseMeta

Metadata for the results.

ConfidenceInfo HTTPAseTLSVersionGetResponseMetaConfidenceInfo
Annotations []HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotation
DataSource HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceAll HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceAIBots HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceBGP HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceBots HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceCT HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDNS HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceDos HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceFw HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceFwPg HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTP HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceIQI HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceNet HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceSpeed HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeEvent HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeGeneral HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeOutage HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventTypePipeline HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly HTTPAseTLSVersionGetResponseMetaConfidenceInfoAnnotationsEventType = "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 []HTTPAseTLSVersionGetResponseMetaDateRange
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 HTTPAseTLSVersionGetResponseMetaNormalization

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

One of the following:
const HTTPAseTLSVersionGetResponseMetaNormalizationPercentage HTTPAseTLSVersionGetResponseMetaNormalization = "PERCENTAGE"
const HTTPAseTLSVersionGetResponseMetaNormalizationMin0Max HTTPAseTLSVersionGetResponseMetaNormalization = "MIN0_MAX"
const HTTPAseTLSVersionGetResponseMetaNormalizationMinMax HTTPAseTLSVersionGetResponseMetaNormalization = "MIN_MAX"
const HTTPAseTLSVersionGetResponseMetaNormalizationRawValues HTTPAseTLSVersionGetResponseMetaNormalization = "RAW_VALUES"
const HTTPAseTLSVersionGetResponseMetaNormalizationPercentageChange HTTPAseTLSVersionGetResponseMetaNormalization = "PERCENTAGE_CHANGE"
const HTTPAseTLSVersionGetResponseMetaNormalizationRollingAverage HTTPAseTLSVersionGetResponseMetaNormalization = "ROLLING_AVERAGE"
const HTTPAseTLSVersionGetResponseMetaNormalizationOverlappedPercentage HTTPAseTLSVersionGetResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const HTTPAseTLSVersionGetResponseMetaNormalizationRatio HTTPAseTLSVersionGetResponseMetaNormalization = "RATIO"
Units []HTTPAseTLSVersionGetResponseMetaUnit

Measurement units for the results.

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

A numeric string.

Get top ASes by HTTP requests for a TLS 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"),
  )
  tlsVersion, err := client.Radar.HTTP.Ases.TLSVersion.Get(
    context.TODO(),
    radar.HTTPAseTLSVersionGetParamsTLSVersionTlSv1_0,
    radar.HTTPAseTLSVersionGetParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", tlsVersion.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
}