Get Speed Tests Histogram

Get an histogram from the previous 90 days of Cloudflare Speed Test data, split into fixed bandwidth (Mbps), latency (ms) or jitter (ms) buckets.

/radar/quality/speed/histogram

get

Radar Quality

radar-get-quality-speed-histogram

Debug "planAvailability"

{
  "business": true,
  "enterprise": true,
  "free": true,
  "pro": true
}

Debug "tokenPermissions"

{
  "enum": [
    "com.cloudflare.api.user.read"
  ]
}

Debug "parameters"

[
  {
    "in": "query",
    "name": "name",
    "schema": {
      "description": "Array of names that will be used to name the series in responses.",
      "example": "main_series",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  {
    "in": "query",
    "name": "dateEnd",
    "schema": {
      "description": "End of the date range (inclusive).",
      "example": "2023-09-01T11:41:33.782Z",
      "items": {
        "format": "date-time",
        "type": "string"
      },
      "type": "array"
    }
  },
  {
    "in": "query",
    "name": "asn",
    "schema": {
      "description": "Array of comma separated list of ASNs, start with `-` to exclude from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356.",
      "example": "15169",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  {
    "in": "query",
    "name": "location",
    "schema": {
      "description": "Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT.",
      "example": "US,CA",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  {
    "in": "query",
    "name": "bucketSize",
    "schema": {
      "description": "The width for every bucket in the histogram.",
      "type": "integer"
    }
  },
  {
    "in": "query",
    "name": "metricGroup",
    "schema": {
      "default": "bandwidth",
      "description": "Metrics to be returned.",
      "enum": [
        "BANDWIDTH",
        "LATENCY",
        "JITTER"
      ],
      "example": "bandwidth",
      "type": "string"
    }
  },
  {
    "in": "query",
    "name": "format",
    "schema": {
      "description": "Format results are returned in.",
      "enum": [
        "JSON",
        "CSV"
      ],
      "example": "json",
      "type": "string"
    }
  }
]

Debug "requestBody"

null

Debug "responses"

{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "result": {
              "properties": {
                "histogram_0": {
                  "properties": {
                    "bandwidthDownload": {
                      "items": {
                        "example": "83681",
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "bandwidthUpload": {
                      "items": {
                        "example": "181079",
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "bucketMin": {
                      "items": {
                        "example": "0",
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "bandwidthUpload",
                    "bandwidthDownload",
                    "bucketMin"
                  ],
                  "type": "object"
                },
                "meta": {
                  "type": "object"
                }
              },
              "required": [
                "meta",
                "histogram_0"
              ],
              "type": "object"
            },
            "success": {
              "example": true,
              "type": "boolean"
            }
          },
          "required": [
            "result",
            "success"
          ],
          "type": "object"
        }
      }
    },
    "description": "Successful Response"
  },
  "400": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "errors": {
              "items": {
                "properties": {
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "message"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "result": {
              "type": "object"
            },
            "success": {
              "example": false,
              "type": "boolean"
            }
          },
          "required": [
            "result",
            "success",
            "errors"
          ],
          "type": "object"
        }
      }
    },
    "description": "Bad Request"
  }
}

Debug "security"

[
  {
    "api_email": [],
    "api_key": []
  }
]