HTTP requests
While in Netflows we can inspect bytes and packets reaching Cloudflare’s edge routers, in HTTP requests we are a layer above in the OSI model ↗. HTTP requests examines complete HTTP requests from end users that reach websites served by Cloudflare’s CDN ↗.
Most of the charts in the Adoption and Usage ↗ section on Radar come from this data source.
These endpoints can be broadly split into:
timeseries
: A time series of a group of metrics. For example, when looking at IP version, displays an IPv4 time series and an IPv6 time series.summary
: Displays a summary of a group of metrics over the specified time range. For example, IPv4 traffic percentage out of the total HTTP traffic during that time period.top
: A list of the top locations or Autonomous Systems ↗ (ASes) ranked by adoption of a specific metric. For example, top locations by mobile device traffic (like which locations have a higher percentage of mobile traffic out of the total traffic for that location).
In this example, we will request traffic by device type globally, with and without bot traffic. Parameters for the human
series are name=human&botClass=LIKELY_HUMAN&dateRange=1d
. For the bot
series, the parameters are name=bot&botClass=LIKELY_AUTOMATED&dateRange=1d
:
Here is the abbreviated response:
Mobile devices tend to be considerably more present when examining human generated traffic versus bot generated traffic.
For more information refer to Get device types time series.
We can also look at the same information asking for a summary of the device type breakdown over the entire period, instead of a per hour breakdown like in the example before.
Here is the abbreviated response:
For more information refer to the API reference for this endpoint.
In the following example, we will examine global breakdown of traffic by IP version, with and without bots:
This returns the following:
Bots tend to use more IPv4 addresses.
It is also interesting to know how your ISP fares in IPv6 adoption. If you know your ISP’s autonomous system number (ASN), you can use the asn
parameter to query for this information. Refer to the API reference for other parameters.
If you do not know your ISP’s ASN, you can use Radar ↗ to find what it is.
In the following example, we will find which locations had a higher adoption of IPv6 ↗ in the last 28 days.
According to the returned data, India is leading in IPv6 adoption.
For more information refer to the API reference for this endpoint.
Refer to Application layer attacks to learn more about mitigfated HTTP requests.