Get Analytics Timeseries
curl --request GET \
--url https://api.example.com/api/v1/projects/{project_slug}/analytics/timeseries \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/projects/{project_slug}/analytics/timeseries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/projects/{project_slug}/analytics/timeseries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"bucket": "2023-11-07T05:31:56Z",
"total_requests": 123,
"error_count": 123,
"error_rate": 123,
"avg_response_time_ms": 123,
"p95_response_time_ms": 123,
"total_request_bytes": 123,
"total_response_bytes": 123
}
]Projects
Get Analytics Timeseries
Get time-series analytics for a project. Optionally filter by a specific app within the project.
GET
/
api
/
v1
/
projects
/
{project_slug}
/
analytics
/
timeseries
Get Analytics Timeseries
curl --request GET \
--url https://api.example.com/api/v1/projects/{project_slug}/analytics/timeseries \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/projects/{project_slug}/analytics/timeseries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/projects/{project_slug}/analytics/timeseries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"bucket": "2023-11-07T05:31:56Z",
"total_requests": 123,
"error_count": 123,
"error_rate": 123,
"avg_response_time_ms": 123,
"p95_response_time_ms": 123,
"total_request_bytes": 123,
"total_response_bytes": 123
}
]Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.