Skip to content
Start here

Get top ASes by HTTP requests for an OS

client.Radar.HTTP.Ases.OS.Get(ctx, os, query) (*HTTPAseOSGetResponse, error)
GET/radar/http/top/ases/os/{os}

Retrieves the top autonomous systems, by HTTP requests, of the requested operating system.

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

Operating system.

One of the following:
const HTTPAseOSGetParamsOSWindows HTTPAseOSGetParamsOS = "WINDOWS"
const HTTPAseOSGetParamsOSMacosx HTTPAseOSGetParamsOS = "MACOSX"
const HTTPAseOSGetParamsOSIos HTTPAseOSGetParamsOS = "IOS"
const HTTPAseOSGetParamsOSAndroid HTTPAseOSGetParamsOS = "ANDROID"
const HTTPAseOSGetParamsOSChromeos HTTPAseOSGetParamsOS = "CHROMEOS"
const HTTPAseOSGetParamsOSLinux HTTPAseOSGetParamsOS = "LINUX"
const HTTPAseOSGetParamsOSSmartTv HTTPAseOSGetParamsOS = "SMART_TV"
query HTTPAseOSGetParams
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[[]HTTPAseOSGetParamsBotClass]Optional

Filters results by bot class. Refer to Bot classes.

const HTTPAseOSGetParamsBotClassLikelyAutomated HTTPAseOSGetParamsBotClass = "LIKELY_AUTOMATED"
const HTTPAseOSGetParamsBotClassLikelyHuman HTTPAseOSGetParamsBotClass = "LIKELY_HUMAN"
BrowserFamily param.Field[[]HTTPAseOSGetParamsBrowserFamily]Optional

Filters results by browser family.

const HTTPAseOSGetParamsBrowserFamilyChrome HTTPAseOSGetParamsBrowserFamily = "CHROME"
const HTTPAseOSGetParamsBrowserFamilyEdge HTTPAseOSGetParamsBrowserFamily = "EDGE"
const HTTPAseOSGetParamsBrowserFamilyFirefox HTTPAseOSGetParamsBrowserFamily = "FIREFOX"
const HTTPAseOSGetParamsBrowserFamilySafari HTTPAseOSGetParamsBrowserFamily = "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[[]HTTPAseOSGetParamsDeviceType]Optional

Filters results by device type.

const HTTPAseOSGetParamsDeviceTypeDesktop HTTPAseOSGetParamsDeviceType = "DESKTOP"
const HTTPAseOSGetParamsDeviceTypeMobile HTTPAseOSGetParamsDeviceType = "MOBILE"
const HTTPAseOSGetParamsDeviceTypeOther HTTPAseOSGetParamsDeviceType = "OTHER"
Format param.Field[HTTPAseOSGetParamsFormat]Optional

Format in which results will be returned.

const HTTPAseOSGetParamsFormatJson HTTPAseOSGetParamsFormat = "JSON"
const HTTPAseOSGetParamsFormatCsv HTTPAseOSGetParamsFormat = "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[[]HTTPAseOSGetParamsHTTPProtocol]Optional

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

const HTTPAseOSGetParamsHTTPProtocolHTTP HTTPAseOSGetParamsHTTPProtocol = "HTTP"
const HTTPAseOSGetParamsHTTPProtocolHTTPS HTTPAseOSGetParamsHTTPProtocol = "HTTPS"
HTTPVersion param.Field[[]HTTPAseOSGetParamsHTTPVersion]Optional

Filters results by HTTP version.

const HTTPAseOSGetParamsHTTPVersionHttPv1 HTTPAseOSGetParamsHTTPVersion = "HTTPv1"
const HTTPAseOSGetParamsHTTPVersionHttPv2 HTTPAseOSGetParamsHTTPVersion = "HTTPv2"
const HTTPAseOSGetParamsHTTPVersionHttPv3 HTTPAseOSGetParamsHTTPVersion = "HTTPv3"
IPVersion param.Field[[]HTTPAseOSGetParamsIPVersion]Optional

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

const HTTPAseOSGetParamsIPVersionIPv4 HTTPAseOSGetParamsIPVersion = "IPv4"
const HTTPAseOSGetParamsIPVersionIPv6 HTTPAseOSGetParamsIPVersion = "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.

TLSVersion param.Field[[]HTTPAseOSGetParamsTLSVersion]Optional

Filters results by TLS version.

const HTTPAseOSGetParamsTLSVersionTlSv1_0 HTTPAseOSGetParamsTLSVersion = "TLSv1_0"
const HTTPAseOSGetParamsTLSVersionTlSv1_1 HTTPAseOSGetParamsTLSVersion = "TLSv1_1"
const HTTPAseOSGetParamsTLSVersionTlSv1_2 HTTPAseOSGetParamsTLSVersion = "TLSv1_2"
const HTTPAseOSGetParamsTLSVersionTlSv1_3 HTTPAseOSGetParamsTLSVersion = "TLSv1_3"
const HTTPAseOSGetParamsTLSVersionTlSvQuic HTTPAseOSGetParamsTLSVersion = "TLSvQUIC"
ReturnsExpand Collapse
type HTTPAseOSGetResponse struct{…}
Meta HTTPAseOSGetResponseMeta

Metadata for the results.

ConfidenceInfo HTTPAseOSGetResponseMetaConfidenceInfo
Annotations []HTTPAseOSGetResponseMetaConfidenceInfoAnnotation
DataSource HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceAll HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceAIBots HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceBGP HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceBots HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceCT HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceDNS HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceDos HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceFw HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceFwPg HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTP HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceIQI HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceNet HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceSpeed HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventTypeEvent HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventTypeGeneral HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventTypeOutage HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventTypePipeline HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly HTTPAseOSGetResponseMetaConfidenceInfoAnnotationsEventType = "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 []HTTPAseOSGetResponseMetaDateRange
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 HTTPAseOSGetResponseMetaNormalization

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

One of the following:
const HTTPAseOSGetResponseMetaNormalizationPercentage HTTPAseOSGetResponseMetaNormalization = "PERCENTAGE"
const HTTPAseOSGetResponseMetaNormalizationMin0Max HTTPAseOSGetResponseMetaNormalization = "MIN0_MAX"
const HTTPAseOSGetResponseMetaNormalizationMinMax HTTPAseOSGetResponseMetaNormalization = "MIN_MAX"
const HTTPAseOSGetResponseMetaNormalizationRawValues HTTPAseOSGetResponseMetaNormalization = "RAW_VALUES"
const HTTPAseOSGetResponseMetaNormalizationPercentageChange HTTPAseOSGetResponseMetaNormalization = "PERCENTAGE_CHANGE"
const HTTPAseOSGetResponseMetaNormalizationRollingAverage HTTPAseOSGetResponseMetaNormalization = "ROLLING_AVERAGE"
const HTTPAseOSGetResponseMetaNormalizationOverlappedPercentage HTTPAseOSGetResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const HTTPAseOSGetResponseMetaNormalizationRatio HTTPAseOSGetResponseMetaNormalization = "RATIO"
Units []HTTPAseOSGetResponseMetaUnit

Measurement units for the results.

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

A numeric string.

Get top ASes by HTTP requests for an OS

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"),
  )
  os, err := client.Radar.HTTP.Ases.OS.Get(
    context.TODO(),
    radar.HTTPAseOSGetParamsOSWindows,
    radar.HTTPAseOSGetParams{

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