Performance
Get Performance Time Series
Returns performance metrics over time, broken down by configurable time buckets. Useful for charting performance trends.
GET /api/sites/:site/performance/time-seriesReturns performance metrics over time, broken down by configurable time buckets. Useful for charting performance trends.
Path Parameters
Prop
Type
Query Parameters
Accepts all Common Parameters plus the following:
Prop
Type
Response
Prop
Type
PerformancePoint Object
Each point includes all percentiles for each metric plus:
Prop
Type
curl -X GET "https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC" \
-H "Authorization: Bearer your_api_key_here"const response = await fetch(
'https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC',
{
headers: {
'Authorization': 'Bearer your_api_key_here'
}
}
);
const data = await response.json();import requests
response = requests.get(
'https://app.rybbit.io/api/sites/1/performance/time-series',
params={
'bucket': 'day',
'start_date': '2024-01-01',
'end_date': '2024-01-07',
'time_zone': 'UTC'
},
headers={
'Authorization': 'Bearer your_api_key_here'
}
)
data = response.json()$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer your_api_key_here'
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);require 'net/http'
require 'json'
uri = URI('https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC')
req = Net::HTTP::Get.new(uri)
req['Authorization'] = 'Bearer your_api_key_here'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC", nil)
req.Header.Set("Authorization", "Bearer your_api_key_here")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
var data map[string]interface{}
json.NewDecoder(resp.Body).Decode(&data)let client = reqwest::Client::new();
let res = client
.get("https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC")
.header("Authorization", "Bearer your_api_key_here")
.send()
.await?;
let data: serde_json::Value = res.json().await?;HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC"))
.header("Authorization", "Bearer your_api_key_here")
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer your_api_key_here");
var response = await client.GetAsync("https://app.rybbit.io/api/sites/1/performance/time-series?bucket=day&start_date=2024-01-01&end_date=2024-01-07&time_zone=UTC");
var data = await response.Content.ReadAsStringAsync();{
"data": [
{
"time": "2024-01-01T00:00:00.000Z",
"lcp_p50": 1820,
"lcp_p75": 2350,
"lcp_p90": 3100,
"lcp_p99": 4900,
"cls_p50": 0.04,
"cls_p75": 0.09,
"inp_p50": 115,
"inp_p75": 175,
"fcp_p50": 1180,
"fcp_p75": 1580,
"ttfb_p50": 440,
"ttfb_p75": 640,
"event_count": 6892
},
{
"time": "2024-01-02T00:00:00.000Z",
"lcp_p50": 1900,
"lcp_p75": 2450,
"lcp_p90": 3250,
"lcp_p99": 5200,
"cls_p50": 0.05,
"cls_p75": 0.11,
"inp_p50": 125,
"inp_p75": 185,
"fcp_p50": 1220,
"fcp_p75": 1620,
"ttfb_p50": 460,
"ttfb_p75": 660,
"event_count": 7234
}
]
}Get Performance OverviewGET
Returns aggregate performance metrics with percentile breakdowns for all Core Web Vitals.
Get Performance by DimensionGET
Returns performance metrics broken down by a specific dimension (page, country, browser, etc.). Useful for identifying performance issues on specific pages or for specific user segments.