Skip to content
Start here

Get HTTP requests by TLS version summary

client.Radar.HTTP.Summary.TLSVersion(ctx, query) (*HTTPSummaryTLSVersionResponse, error)
GET/radar/http/summary/tls_version

Retrieves the distribution of HTTP requests by TLS 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
query HTTPSummaryTLSVersionParams
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[[]HTTPSummaryTLSVersionParamsBotClass]Optional

Filters results by bot class. Refer to Bot classes.

const HTTPSummaryTLSVersionParamsBotClassLikelyAutomated HTTPSummaryTLSVersionParamsBotClass = "LIKELY_AUTOMATED"
const HTTPSummaryTLSVersionParamsBotClassLikelyHuman HTTPSummaryTLSVersionParamsBotClass = "LIKELY_HUMAN"
BrowserFamily param.Field[[]HTTPSummaryTLSVersionParamsBrowserFamily]Optional

Filters results by browser family.

const HTTPSummaryTLSVersionParamsBrowserFamilyChrome HTTPSummaryTLSVersionParamsBrowserFamily = "CHROME"
const HTTPSummaryTLSVersionParamsBrowserFamilyEdge HTTPSummaryTLSVersionParamsBrowserFamily = "EDGE"
const HTTPSummaryTLSVersionParamsBrowserFamilyFirefox HTTPSummaryTLSVersionParamsBrowserFamily = "FIREFOX"
const HTTPSummaryTLSVersionParamsBrowserFamilySafari HTTPSummaryTLSVersionParamsBrowserFamily = "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[[]HTTPSummaryTLSVersionParamsDeviceType]Optional

Filters results by device type.

const HTTPSummaryTLSVersionParamsDeviceTypeDesktop HTTPSummaryTLSVersionParamsDeviceType = "DESKTOP"
const HTTPSummaryTLSVersionParamsDeviceTypeMobile HTTPSummaryTLSVersionParamsDeviceType = "MOBILE"
const HTTPSummaryTLSVersionParamsDeviceTypeOther HTTPSummaryTLSVersionParamsDeviceType = "OTHER"
Format param.Field[HTTPSummaryTLSVersionParamsFormat]Optional

Format in which results will be returned.

const HTTPSummaryTLSVersionParamsFormatJson HTTPSummaryTLSVersionParamsFormat = "JSON"
const HTTPSummaryTLSVersionParamsFormatCsv HTTPSummaryTLSVersionParamsFormat = "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[[]HTTPSummaryTLSVersionParamsHTTPProtocol]Optional

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

const HTTPSummaryTLSVersionParamsHTTPProtocolHTTP HTTPSummaryTLSVersionParamsHTTPProtocol = "HTTP"
const HTTPSummaryTLSVersionParamsHTTPProtocolHTTPS HTTPSummaryTLSVersionParamsHTTPProtocol = "HTTPS"
HTTPVersion param.Field[[]HTTPSummaryTLSVersionParamsHTTPVersion]Optional

Filters results by HTTP version.

const HTTPSummaryTLSVersionParamsHTTPVersionHttPv1 HTTPSummaryTLSVersionParamsHTTPVersion = "HTTPv1"
const HTTPSummaryTLSVersionParamsHTTPVersionHttPv2 HTTPSummaryTLSVersionParamsHTTPVersion = "HTTPv2"
const HTTPSummaryTLSVersionParamsHTTPVersionHttPv3 HTTPSummaryTLSVersionParamsHTTPVersion = "HTTPv3"
IPVersion param.Field[[]HTTPSummaryTLSVersionParamsIPVersion]Optional

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

const HTTPSummaryTLSVersionParamsIPVersionIPv4 HTTPSummaryTLSVersionParamsIPVersion = "IPv4"
const HTTPSummaryTLSVersionParamsIPVersionIPv6 HTTPSummaryTLSVersionParamsIPVersion = "IPv6"
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[[]HTTPSummaryTLSVersionParamsOS]Optional

Filters results by operating system.

const HTTPSummaryTLSVersionParamsOSWindows HTTPSummaryTLSVersionParamsOS = "WINDOWS"
const HTTPSummaryTLSVersionParamsOSMacosx HTTPSummaryTLSVersionParamsOS = "MACOSX"
const HTTPSummaryTLSVersionParamsOSIos HTTPSummaryTLSVersionParamsOS = "IOS"
const HTTPSummaryTLSVersionParamsOSAndroid HTTPSummaryTLSVersionParamsOS = "ANDROID"
const HTTPSummaryTLSVersionParamsOSChromeos HTTPSummaryTLSVersionParamsOS = "CHROMEOS"
const HTTPSummaryTLSVersionParamsOSLinux HTTPSummaryTLSVersionParamsOS = "LINUX"
const HTTPSummaryTLSVersionParamsOSSmartTv HTTPSummaryTLSVersionParamsOS = "SMART_TV"
ReturnsExpand Collapse
type HTTPSummaryTLSVersionResponse struct{…}
Meta HTTPSummaryTLSVersionResponseMeta

Metadata for the results.

ConfidenceInfo HTTPSummaryTLSVersionResponseMetaConfidenceInfo
Annotations []HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotation
DataSource HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceAll HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIBots HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceBGP HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceBots HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceCT HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNS HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceDos HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceFw HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceFwPg HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTP HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceIQI HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceNet HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceSpeed HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventTypeEvent HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventTypeGeneral HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventTypeOutage HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventTypePipeline HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly HTTPSummaryTLSVersionResponseMetaConfidenceInfoAnnotationsEventType = "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 []HTTPSummaryTLSVersionResponseMetaDateRange
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 HTTPSummaryTLSVersionResponseMetaNormalization

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

One of the following:
const HTTPSummaryTLSVersionResponseMetaNormalizationPercentage HTTPSummaryTLSVersionResponseMetaNormalization = "PERCENTAGE"
const HTTPSummaryTLSVersionResponseMetaNormalizationMin0Max HTTPSummaryTLSVersionResponseMetaNormalization = "MIN0_MAX"
const HTTPSummaryTLSVersionResponseMetaNormalizationMinMax HTTPSummaryTLSVersionResponseMetaNormalization = "MIN_MAX"
const HTTPSummaryTLSVersionResponseMetaNormalizationRawValues HTTPSummaryTLSVersionResponseMetaNormalization = "RAW_VALUES"
const HTTPSummaryTLSVersionResponseMetaNormalizationPercentageChange HTTPSummaryTLSVersionResponseMetaNormalization = "PERCENTAGE_CHANGE"
const HTTPSummaryTLSVersionResponseMetaNormalizationRollingAverage HTTPSummaryTLSVersionResponseMetaNormalization = "ROLLING_AVERAGE"
const HTTPSummaryTLSVersionResponseMetaNormalizationOverlappedPercentage HTTPSummaryTLSVersionResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const HTTPSummaryTLSVersionResponseMetaNormalizationRatio HTTPSummaryTLSVersionResponseMetaNormalization = "RATIO"
Units []HTTPSummaryTLSVersionResponseMetaUnit

Measurement units for the results.

Name string
Value string
Summary0 HTTPSummaryTLSVersionResponseSummary0
TLS1_0 string

A numeric string.

TLS1_1 string

A numeric string.

TLS1_2 string

A numeric string.

TLS1_3 string

A numeric string.

TLSQuic string

A numeric string.

Get HTTP requests by TLS version summary

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"),
  )
  response, err := client.Radar.HTTP.Summary.TLSVersion(context.TODO(), radar.HTTPSummaryTLSVersionParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.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"
        }
      ]
    },
    "summary_0": {
      "TLS 1.0": "10",
      "TLS 1.1": "10",
      "TLS 1.2": "10",
      "TLS 1.3": "10",
      "TLS QUIC": "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"
        }
      ]
    },
    "summary_0": {
      "TLS 1.0": "10",
      "TLS 1.1": "10",
      "TLS 1.2": "10",
      "TLS 1.3": "10",
      "TLS QUIC": "10"
    }
  },
  "success": true
}