Measurements
Reference for the measurements endpoints of the Surfmeter API.
Surfmeter API – Measurements v1
The Surfmeter API lets you manage clients, users, capabilities, measurements, and organization-wide settings programmatically.
Servers
| Description | URL |
|---|---|
| https://surfmeter-server.{host}/client_admin_api/v1 | https://surfmeter-server.{host}/client_admin_api/v1 |
Measurements
POST /measurements/search
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
Request body
- application/json
{
"body": null,
"source_only": true,
"index_scope": "web",
"size": 0,
"from": 0,
"search_after": [
null
],
"scroll": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the request body
Response 200 OK
- application/json
Schema of the response body
{
"description": "Response for the measurements search action. Shape depends on the request: when `source_only=true` the response is an array of measurement source documents; otherwise it is the raw Elasticsearch search response envelope (hits, aggregations, etc.). When `scroll` is set, results are streamed as NDJSON and this schema does not apply.",
"oneOf": [
{
"description": "Returned when `source_only=true`: a plain array of measurement `_source` documents, without Elasticsearch metadata. Each item is a measurement document; its concrete shape depends on the measurement type (video, web, etc.).",
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"description": "Default response: the Elasticsearch search response envelope. Only the outermost keys are described here; everything inside is passed through unchanged.",
"type": "object",
"additionalProperties": true,
"properties": {
"took": {
"type": "integer",
"description": "Time in milliseconds Elasticsearch spent executing the search."
},
"timed_out": {
"type": "boolean",
"description": "Whether the search timed out before completing."
},
"_shards": {
"type": "object",
"additionalProperties": true,
"description": "Per-shard execution summary reported by Elasticsearch."
},
"hits": {
"type": "object",
"additionalProperties": true,
"description": "Container for matching documents. Includes `total`, `max_score`, and `hits` (an array of hit objects with `_index`, `_id`, `_source`, `sort`, etc.)."
},
"aggregations": {
"type": "object",
"additionalProperties": true,
"description": "Aggregation results, present only when the request `body` contained an `aggs` clause."
},
"_scroll_id": {
"type": "string",
"description": "Scroll cursor, present only when the request used the `scroll` parameter."
}
}
}
]
}
GET /measurements/{id}
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
id |
path | string | No |
Response 200 OK
GET /measurements/{id}/client_reports
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
data_type |
query | string | No | Comma-separated data types to return. For the P.1203 reports of a conferencing measurement these are "target" (encoder target bitrate), "sent" (bitrate actually sent) and "received" (bitrate actually received). | |
id |
path | string | No | ||
type |
query | string | No | Comma-separated client report types to return, e.g. "P1203ClientReport" or "P1203ClientReport,ByteCountClientReport". An unknown type returns 400. Without it, all reports of the measurement are returned, which can be large. |
Response 200 OK
- application/json
{
"client_reports": [
{
"id": 0,
"type": "string",
"data_type": "string",
"client_time": "string",
"data": null
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
GET /measurements/{id}/p1203_client_report
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
id |
path | string | No |
Response 200 OK
GET /measurements/{id}/network_performance_report
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
id |
path | string | No |
Response 200 OK
GET /measurements/{id}/lightweight_video_player_performance_report
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
id |
path | string | No |
Response 200 OK
Schemas
MeasurementClientReportsResponse
| Name | Type |
|---|---|
client_reports |
Array<Properties: id, type, data_type, client_time, data> |
MeasurementSearchData
| Name | Type |
|---|---|
body |
|
from |
integer |
index_scope |
string |
scroll |
string |
search_after |
Array<> |
size |
integer |
source_only |
boolean |
MeasurementSearchResponse
Type:
Security schemes
<tr>
<td>ApiKeyAuth</td>
<td>apiKey</td>
<td></td>
<td>API key used on every request. Create keys in the Surfmeter Dashboard
under Keys → Surfmeter API Keys.
</tbody>
| Name | Type | Scheme | Description |
|---|