Retrieving metrics


The ability to retrieve metrics is at the heart of Calibre’s API. In this guide we’ll demonstrate how to fetch metrics for your pages efficiently.

Timeseries metrics for a given Site

You can query up to 6 months of reporting data per request. Use from and to parameters to specify date ranges.

Required API Permission: Read Sites
1calibre site metrics --site=calibre --json --metrics=largestContentfulPaint --metrics=lighthousePerformanceScore
1#!/usr/bin/env node
2
3import { TimeSeries } from 'calibre'
4
5const getTimeseries = async ({ site, from, to, pages, profiles, measurements }) => {
6 const results = await TimeSeries.list({
7 site,
8 from,
9 to,
10 pages,
11 profiles,
12 measurements
13 })
14
15 // Output the formatted JSON response
16 console.log(JSON.stringify(results, null, 2))
17}
18
19const siteSlug = 'calibre'
20const to = new Date()
21
22// 7 days of history
23const from = new Date()
24from.setDate(to.getDate() - 7)
25
26// Filter by page and/or test profile (omitting `page` will return all pages, omitting `profile` will return all profiles)
27const pages = ['a48ddb67-0da5-4731-91c4-42239009b463']
28const profiles = ['ddbf3952-4b96-4657-88a1-60abb097f44e']
29
30// Filter the metrics to be returned (omitting `measurements` will return all available measurements)
31const measurements = ['lighthousePerformanceScore', 'totalBlockingTime']
32
33getTimeseries({ site: siteSlug, from, to, pages, profiles, measurements })
ParameterRequiredDescription
siteYesSite slug, found in site settings
fromNoA ISO8601 timestamp or JavaScript date object signifying the start of date range to be fetched
toNoA ISO8601 timestamp or JavaScript date object signifying the end of date range to be fetched
pagesNoAn array of page UUIDs
profilesNoAn array of test profile UUIDs
jsonNoReturns metrics in JSON format
csvNoReturns metrics in CSV format
metricsNoAn array of the metrics to be returned
Example response
1{
2 "times": [
3 {
4 "name": "Snapshot #4005",
5 "snapshot": "4005",
6 "timestamp": "2019-12-08T09:03:02+00:00"
7 },
8 {
9 "name": "Snapshot #4006",
10 "snapshot": "4006",
11 "timestamp": "2019-12-08T13:02:40+00:00"
12 },
13 {
14 "name": "Snapshot #4007",
15 "snapshot": "4007",
16 "timestamp": "2019-12-08T17:02:53+00:00"
17 },
18 {
19 "name": "Snapshot #4008",
20 "snapshot": "4008",
21 "timestamp": "2019-12-08T21:02:05+00:00"
22 },
23 {
24 "name": "Snapshot #4009",
25 "snapshot": "4009",
26 "timestamp": "2019-12-09T01:03:39+00:00"
27 }
28 // shortened for clarity
29 ],
30 "series": [
31 {
32 "name": "iPhone 6, 3G connection",
33 "profile": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
34 "measurement": "largest_contentful_paint",
35 "values": [
36 5341,
37 5577,
38 5358,
39 5648,
40 5307,
41 // shortened for clarity
42 ]
43 },
44 {
45 "name": "iPhone 6, 3G connection",
46 "profile": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
47 "measurement": "lighthouse-performance-score",
48 "values": [
49 56,
50 55,
51 56,
52 53,
53 56,
54 // shortened for clarity
55 ]
56 },
57 {
58 "name": "Chrome Desktop",
59 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
60 "measurement": "lighthouse-performance-score",
61 "values": [
62 100,
63 100,
64 100,
65 100,
66 100
67 // shortened for clarity
68 ]
69 },
70 {
71 "name": "Chrome Desktop",
72 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
73 "measurement": "largest_contentful_paint",
74 "values": [
75 313,
76 340,
77 462,
78 581,
79 336
80 // shortened for clarity
81 ]
82 },
83 {
84 "name": "Emerging",
85 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
86 "measurement": "largest_contentful_paint",
87 "values": [
88 4399,
89 4447,
90 5697,
91 4341,
92 4438,
93 // shortened for clarity
94 ]
95 },
96 {
97 "name": "Emerging",
98 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
99 "measurement": "lighthouse-performance-score",
100 "values": [
101 70,
102 69,
103 66,
104 70,
105 69,
106 // shortened for clarity
107 ]
108 },
109 {
110 "name": "Cable",
111 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
112 "measurement": "lighthouse-performance-score",
113 "values": [
114 97,
115 96,
116 92,
117 94,
118 92
119 // shortened for clarity
120 ]
121 },
122 {
123 "name": "Cable",
124 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
125 "measurement": "largest_contentful_paint",
126 "values": [
127 437,
128 488,
129 768,
130 378,
131 1087
132 // shortened for clarity
133 ]
134 },
135 {
136 "name": "Chrome Desktop (with Third-Party Blocking)",
137 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
138 "measurement": "lighthouse-performance-score",
139 "values": [
140 100,
141 100,
142 100,
143 100,
144 100
145 // shortened for clarity
146 ]
147 },
148 {
149 "name": "Chrome Desktop (with Third-Party Blocking)",
150 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
151 "measurement": "largest_contentful_paint",
152 "values": [
153 411,
154 342,
155 594,
156 357,
157 314
158 // shortened for clarity
159 ]
160 }
161 ],
162 "pages": [
163 {
164 "uuid": "7a40a3cc-84c1-45c0-8125-714d5739779c",
165 "name": "Logged in home",
166 "url": "https://calibreapp.com/home",
167 "canonical": false
168 }
169 ],
170 "testProfiles": [
171 {
172 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
173 "name": "iPhone 6, 3G connection",
174 "jsIsDisabled": false,
175 "adBlockerIsEnabled": false,
176 "hasDeviceEmulation": true,
177 "hasBandwidthEmulation": true,
178 "isMobile": true
179 },
180 {
181 "uuid": "1d9440d7-df1b-4644-8238-26efe4791a48",
182 "name": "Chrome Desktop",
183 "jsIsDisabled": false,
184 "adBlockerIsEnabled": false,
185 "hasDeviceEmulation": false,
186 "hasBandwidthEmulation": false,
187 "isMobile": false
188 },
189 {
190 "uuid": "f6fc907e-b4cc-4568-baea-d6a837edd702",
191 "name": "Emerging",
192 "jsIsDisabled": false,
193 "adBlockerIsEnabled": false,
194 "hasDeviceEmulation": true,
195 "hasBandwidthEmulation": true,
196 "isMobile": true
197 },
198 {
199 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935",
200 "name": "Cable",
201 "jsIsDisabled": false,
202 "adBlockerIsEnabled": false,
203 "hasDeviceEmulation": false,
204 "hasBandwidthEmulation": true,
205 "isMobile": false
206 },
207 {
208 "uuid": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
209 "name": "Chrome Desktop (with Third-Party Blocking)",
210 "jsIsDisabled": false,
211 "adBlockerIsEnabled": false,
212 "hasDeviceEmulation": false,
213 "hasBandwidthEmulation": false,
214 "isMobile": false
215 }
216 ],
217 "measurements": [
218 {
219 "name": "largest_contentful_paint",
220 "label": "Largest Contentful Paint",
221 "formatter": "humanDuration",
222 "docsPath": null
223 },
224 {
225 "name": "lighthouse-performance-score",
226 "label": "Lighthouse Performance Score",
227 "formatter": "gradeScore",
228 "docsPath": null
229 }
230 ]
231}
1{
2 "times": [
3 {
4 "name": "Snapshot #4009",
5 "snapshot": "4009",
6 "timestamp": "2019-12-09T01:03:39+00:00"
7 },
8 {
9 "name": "Snapshot #4010",
10 "snapshot": "4010",
11 "timestamp": "2019-12-09T05:03:41+00:00"
12 },
13 {
14 "name": "Snapshot #4011",
15 "snapshot": "4011",
16 "timestamp": "2019-12-09T09:03:33+00:00"
17 },
18 {
19 "name": "Snapshot #4012",
20 "snapshot": "4012",
21 "timestamp": "2019-12-09T13:04:07+00:00"
22 },
23 {
24 "name": "Snapshot #4013",
25 "snapshot": "4013",
26 "timestamp": "2019-12-09T17:03:33+00:00"
27 }
28 // shortened for clarity
29 ],
30 "series": [
31 {
32 "name": "iPhone 6, 3G connection",
33 "profile": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
34 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
35 "measurement": "lighthouse-performance-score",
36 "values": [
37 56, 55, 54, 55, 55
38 // shortened for clarity
39 ]
40 },
41 {
42 "name": "iPhone 6, 3G connection",
43 "profile": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
44 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
45 "measurement": "consistently-interactive",
46 "values": [
47 8944, 8915, 9086, 8980, 8944
48 // shortened for clarity
49 ]
50 },
51 {
52 "name": "iPhone 6, 3G connection",
53 "profile": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
54 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
55 "measurement": "total-blocking-time",
56 "values": [
57 429, 361, 433, 335, 377
58 // shortened for clarity
59 ]
60 },
61 {
62 "name": "Chrome Desktop",
63 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
64 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
65 "measurement": "total-blocking-time",
66 "values": [
67 139, 144, 117, 165, 122
68 // shortened for clarity
69 ]
70 },
71 {
72 "name": "Chrome Desktop",
73 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
74 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
75 "measurement": "consistently-interactive",
76 "values": [
77 1135, 1068, 900, 1365, 1011
78 // shortened for clarity
79 ]
80 },
81 {
82 "name": "Chrome Desktop",
83 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
84 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
85 "measurement": "lighthouse-performance-score",
86 "values": [
87 100, 100, 100, 100, 100
88 // shortened for clarity
89 ]
90 },
91 {
92 "name": "Emerging",
93 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
94 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
95 "measurement": "consistently-interactive",
96 "values": [
97 7197, 7125, 7310, 7107, 7058
98 // shortened for clarity
99 ]
100 },
101 {
102 "name": "Emerging",
103 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
104 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
105 "measurement": "lighthouse-performance-score",
106 "values": [
107 69, 65, 68, 69, 70
108 // shortened for clarity
109 ]
110 },
111 {
112 "name": "Emerging",
113 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
114 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
115 "measurement": "total-blocking-time",
116 "values": [
117 1620, 1525, 1766, 1509, 1405
118 // shortened for clarity
119 ]
120 },
121 {
122 "name": "Cable",
123 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
124 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
125 "measurement": "lighthouse-performance-score",
126 "values": [
127 92, 96, 95, 97, 95
128 // shortened for clarity
129 ]
130 },
131 {
132 "name": "Cable",
133 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
134 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
135 "measurement": "total-blocking-time",
136 "values": [
137 1130, 1203, 1211, 1360, 1246
138 // shortened for clarity
139 ]
140 },
141 {
142 "name": "Cable",
143 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
144 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
145 "measurement": "consistently-interactive",
146 "values": [
147 4041, 3180, 3572, 3056, 3397
148 // shortened for clarity
149 ]
150 },
151 {
152 "name": "Chrome Desktop (with Third-Party Blocking)",
153 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
154 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
155 "measurement": "consistently-interactive",
156 "values": [
157 792, 1275, 1147, 890, 930
158 // shortened for clarity
159 ]
160 },
161 {
162 "name": "Chrome Desktop (with Third-Party Blocking)",
163 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
164 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
165 "measurement": "total-blocking-time",
166 "values": [
167 133, 144, 139, 127, 124
168 // shortened for clarity
169 ]
170 },
171 {
172 "name": "Chrome Desktop (with Third-Party Blocking)",
173 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
174 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
175 "measurement": "lighthouse-performance-score",
176 "values": [
177 100, 100, 100, 100, 100
178 // shortened for clarity
179 ]
180 }
181 ],
182 "pages": [
183 {
184 "uuid": "7a40a3cc-84c1-45c0-8125-714d5739779c",
185 "name": "Logged in home",
186 "url": "https://calibreapp.com/home",
187 "canonical": false
188 }
189 ],
190 "testProfiles": [
191 {
192 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
193 "name": "iPhone 6, 3G connection",
194 "jsIsDisabled": false,
195 "adBlockerIsEnabled": false,
196 "hasDeviceEmulation": true,
197 "hasBandwidthEmulation": true,
198 "isMobile": true
199 },
200 {
201 "uuid": "1d9440d7-df1b-4644-8238-26efe4791a48",
202 "name": "Chrome Desktop",
203 "jsIsDisabled": false,
204 "adBlockerIsEnabled": false,
205 "hasDeviceEmulation": false,
206 "hasBandwidthEmulation": false,
207 "isMobile": false
208 },
209 {
210 "uuid": "f6fc907e-b4cc-4568-baea-d6a837edd702",
211 "name": "Emerging",
212 "jsIsDisabled": false,
213 "adBlockerIsEnabled": false,
214 "hasDeviceEmulation": true,
215 "hasBandwidthEmulation": true,
216 "isMobile": true
217 },
218 {
219 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935",
220 "name": "Cable",
221 "jsIsDisabled": false,
222 "adBlockerIsEnabled": false,
223 "hasDeviceEmulation": false,
224 "hasBandwidthEmulation": true,
225 "isMobile": false
226 },
227 {
228 "uuid": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
229 "name": "Chrome Desktop (with Third-Party Blocking)",
230 "jsIsDisabled": false,
231 "adBlockerIsEnabled": false,
232 "hasDeviceEmulation": false,
233 "hasBandwidthEmulation": false,
234 "isMobile": false
235 }
236 ],
237 "measurements": [
238 {
239 "name": "lighthouse-performance-score",
240 "label": "Lighthouse Performance Score",
241 "formatter": "gradeScore",
242 "docsPath": null
243 },
244 {
245 "name": "total-blocking-time",
246 "label": "Total Blocking Time",
247 "formatter": "humanDuration",
248 "docsPath": null
249 }
250 ],
251 "csv": "timestamp,\"iPhone 6, 3G connection - Lighthouse Performance Score\",\"iPhone 6, 3G connection - Time to Interactive\",\"iPhone 6, 3G connection - Total Blocking Time\",Chrome Desktop - Total Blocking Time,Chrome Desktop - Time to Interactive,Chrome Desktop - Lighthouse Performance Score,Emerging - Time to Interactive,Emerging - Lighthouse Performance Score,Emerging - Total Blocking Time,Cable - Lighthouse Performance Score,Cable - Total Blocking Time,Cable - Time to Interactive,Chrome Desktop (with Third-Party Blocking) - Time to Interactive,Chrome Desktop (with Third-Party Blocking) - Total Blocking Time,Chrome Desktop (with Third-Party Blocking) - Lighthouse Performance Score\n2019-12-09 01:03:39 +0000,56,8944,429,139,1135,100,7197,69,1620,92,1130,4041,792,133,100\n2019-12-09 05:03:41 +0000,8915,55,361,1068,144,100,65,1525,7125,1203,3180,96,100,1275,144\n2019-12-09 09:03:33 +0000,433,9086,54,100,900,117,1766,7310,68,95,1211,3572,1147,139,100\n2019-12-09 13:04:07 +0000,8980,55,335,1365,165,100,1509,7107,69,3056,1360,97,890,127,100\n2019-12-09 17:03:33 +0000,377,55,8944,122,100,1011,1405,7058,70,3397,95,1246,930,124,100\n2019-12-09 21:02:48 +0000,56,8949,391,911,133,100,68,7271,1714,3968,91,1580,138,850,100\n2019-12-10 01:02:50 +0000,55,360,8943,161,1173,100,70,1432,7081,95,1303,3280,1145,150,100\n2019-12-10 05:04:02 +0000,8935,387,56,1228,147,100,7367,1826,67,3627,1544,93,1050,135,100\n2019-12-10 09:02:45 +0000,416,9154,54,1171,146,100,69,7202,1677,3442,1142,95,763,101,100\n2019-12-10 13:01:43 +0000,56,8961,344,100,1220,153,68,7258,1776,3150,96,1227,173,1456,100\n2019-12-10 17:02:43 +0000,8925,55,359,823,105,100,69,7145,1504,1141,2906,97,760,115,100\n2019-12-10 21:03:03 +0000,53,9157,338,1149,143,100,7055,1459,70,1229,3307,95,99,327,1953\n2019-12-11 00:20:34 +0000,55,8958,340,997,182,100,67,1681,7444,1097,3059,97,1477,100,131\n2019-12-11 00:55:39 +0000,56,9179,327,100,169,1322,8097,2761,63,3225,1002,96,100,128,1255\n2019-12-11 01:03:48 +0000,52,9318,378,1108,131,100,6995,70,1412,1065,3125,96,128,914,100\n2019-12-11 01:45:55 +0000,9163,54,361,881,122,100,7410,1595,66,93,1279,3644,143,1212,100\n2019-12-11 05:04:05 +0000,9002,55,347,107,1095,100,1462,66,7056,1074,96,3152,100,1195,122\n2019-12-11 05:32:38 +0000,9353,340,52,947,120,100,6969,1409,71,3148,1015,96,119,1307,100\n2019-12-11 05:51:47 +0000,8914,367,56,1005,100,107,7066,1398,70,2811,1148,97,977,152,100\n2019-12-11 09:04:13 +0000,8677,347,57,100,956,108,1500,6848,71,1149,96,3407,100,109,1035\n2019-12-11 13:03:29 +0000,55,8963,387,1017,115,100,7211,1532,69,1210,95,3422,936,122,100\n2019-12-11 17:04:07 +0000,405,8228,59,686,104,100,66,7413,1614,3381,1303,95,100,895,141\n2019-12-11 21:03:30 +0000,9157,349,53,111,1153,100,7234,1922,63,1227,3223,95,152,1168,100\n2019-12-12 01:01:56 +0000,369,9005,54,1157,100,108,1424,7072,70,95,1052,3471,821,100,128\n2019-12-12 03:08:29 +0000,351,9103,55,128,853,100,7500,1388,65,3372,1074,95,100,101,962\n2019-12-12 03:55:03 +0000,56,342,9193,1023,138,100,1574,6957,66,70,1271,5886,100,178,966\n2019-12-12 05:02:16 +0000,9018,342,55,100,116,948,1431,7087,69,3062,1090,96,1193,134,100\n2019-12-12 09:03:38 +0000,354,8941,56,120,100,938,1304,6972,71,3241,96,1191,873,127,100\n2019-12-12 13:03:38 +0000,364,54,9312,774,100,114,1542,7166,69,94,1304,3615,1590,100,135\n2019-12-12 17:03:17 +0000,8996,456,54,100,1201,174,7266,1649,68,3216,1251,96,1198,167,100\n2019-12-12 21:02:17 +0000,357,8910,56,1018,121,100,7088,70,1472,2967,973,97,924,100,129\n2019-12-13 00:09:24 +0000,10485,377,50,1218,100,138,7258,1677,68,1034,93,3953,100,859,138\n2019-12-13 01:04:25 +0000,54,380,9085,841,135,100,1401,67,7653,3438,1081,95,924,124,100\n2019-12-13 05:03:42 +0000,9287,1323,48,94,663,4038,45,10180,3317,6183,2542,79,4078,543,93\n2019-12-13 05:52:55 +0000,14665,56,1083,91,4407,580,3285,9149,50,69,2405,7485,85,411,5384\n2019-12-13 09:04:15 +0000,44,9708,1178,95,3799,524,3544,9386,48,6269,2259,79,3598,520,96\n2019-12-13 13:02:37 +0000,44,1174,9825,3675,619,95,3101,8694,53,67,2666,7871,92,511,4298\n2019-12-13 17:04:56 +0000,1084,45,9640,3787,581,95,9237,2942,49,6336,2366,78,4495,644,91\n2019-12-13 21:02:09 +0000,35,11287,1136,4048,93,554,40,11224,3559,7209,2414,72,595,4300,92\n2019-12-14 01:04:23 +0000,9668,1206,45,4015,454,94,8670,3104,53,5753,2497,77,456,4765,89\n2019-12-14 05:03:41 +0000,9148,1356,49,3726,503,95,3476,50,9166,7134,2177,72,3769,95,495\n2019-12-14 09:04:56 +0000,46,9415,1257,85,527,5334,9031,3408,51,6363,2479,78,95,483,3719\n2019-12-14 13:03:14 +0000,1087,10287,42,595,3459,96,46,9765,3010,73,3099,7132,4130,492,93\n2019-12-14 17:03:28 +0000,1123,9319,47,473,5191,86,45,3054,10007,5607,2417,78,548,5515,84\n2019-12-14 21:03:40 +0000,10004,1221,43,4119,598,93,42,3400,10687,7105,2583,72,86,489,5142\n2019-12-15 01:03:11 +0000,48,8977,1334,3606,515,96,9916,4080,46,7136,2665,72,96,500,3604\n2019-12-15 05:03:25 +0000,10190,1314,42,492,92,4289,3480,9115,50,7206,2820,70,682,89,4855\n2019-12-15 09:03:18 +0000,47,1231,9216,548,3734,95,3467,54,8672,78,6280,2328,524,3343,97\n2019-12-15 13:03:17 +0000,1299,9029,50,98,524,3191,9384,3146,48,6150,2397,80,3127,98,484\n2019-12-15 17:04:55 +0000,47,9351,1489,4257,92,591,9135,3490,50,6686,74,2248,3149,573,98\n2019-12-15 21:02:56 +0000,13585,15,2580,4561,484,90,9196,3365,49,4995,9437,50,4956,88,526\n"
252}

Metrics from a single Snapshot

Required API Permission: Read Sites
1calibre site get-snapshot-metrics --site=calibre --snapshot=2000 --json
1#!/usr/bin/env node
2
3import { SnapshotMetrics } from 'calibre'
4
5const getSnapshotMetrics = async ({ site, snapshotId }) => {
6 const results = await SnapshotMetrics.snapshot({ site, snapshotId })
7
8 // Output the formatted JSON response
9 console.log(JSON.stringify(results, null, 2))
10}
11
12const siteSlug = 'calibre'
13const snapshotId = 1000
14
15getSnapshotMetrics({ site: siteSlug, snapshotId })
1curl -X GET -H "Accept: application/json" \
2https://calibreapp.com/api/sites/<site>/snapshots/<snapshotId>?secret=<secret>
ParameterRequiredDescription
siteYesSite slug, found in site settings
snapshotIdYesNumeric identifier corresponding to a snapshot
jsonNoReturns metrics in JSON format
csvNoReturns metrics in CSV format
Example response
1{
2 "snapshot": {
3 "iid": 4000,
4 "tests": [
5 {
6 "page": {
7 "name": "Viewing a metric",
8 "url": "https://calibreapp.com/teams/calibre/calibre/metrics/firstRender"
9 },
10 "testProfile": {
11 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e"
12 },
13 "measurements": [
14 {
15 "name": "json_body_size_in_bytes",
16 "label": "Total JSON size in bytes",
17 "value": 155718
18 },
19 {
20 "name": "json_size_in_bytes",
21 "label": "Total JSON transferred",
22 "value": 31337
23 },
24 {
25 "name": "image_body_size_in_bytes",
26 "label": "Total Image size in bytes",
27 "value": 151359
28 },
29 {
30 "name": "image_size_in_bytes",
31 "label": "Total Image transferred",
32 "value": 154653
33 },
34 {
35 "name": "js_body_size_in_bytes",
36 "label": "Total JavaScript size in bytes",
37 "value": 2259720
38 },
39 {
40 "name": "js_size_in_bytes",
41 "label": "Total JavaScript transferred",
42 "value": 639251
43 },
44 {
45 "name": "css_body_size_in_bytes",
46 "label": "Total CSS size in bytes",
47 "value": 101746
48 },
49 {
50 "name": "css_size_in_bytes",
51 "label": "Total CSS transferred",
52 "value": 19917
53 },
54 {
55 "name": "html_body_size_in_bytes",
56 "label": "Total HTML size in bytes",
57 "value": 8541
58 },
59 {
60 "name": "html_size_in_bytes",
61 "label": "Total HTML transferred",
62 "value": 3806
63 },
64 {
65 "name": "page_wait_timing",
66 "label": "Response time",
67 "value": 137
68 },
69 {
70 "name": "page_download_timing",
71 "label": "HTML download time",
72 "value": 32
73 },
74 {
75 "name": "page_size_in_bytes",
76 "label": "Total Page transferred",
77 "value": 959186
78 },
79 {
80 "name": "page_body_size_in_bytes",
81 "label": "Total Page size in bytes",
82 "value": 2865592
83 },
84 {
85 "name": "asset_count",
86 "label": "Number of requests",
87 "value": 54
88 },
89 {
90 "name": "onload",
91 "label": "onLoad",
92 "value": 4459
93 },
94 {
95 "name": "oncontentload",
96 "label": "onContentLoad",
97 "value": 2877
98 },
99 {
100 "name": "largest_contentful_paint",
101 "label": "Largest Contentful Paint",
102 "value": 7951
103 },
104 {
105 "name": "lighthouse-seo-score",
106 "label": "Lighthouse SEO Score",
107 "value": 80
108 },
109 {
110 "name": "lighthouse-best-practices-score",
111 "label": "Lighthouse Best Practices Score",
112 "value": 100
113 },
114 {
115 "name": "lighthouse-accessibility-score",
116 "label": "Lighthouse Accessibility Score",
117 "value": 69
118 },
119 {
120 "name": "lighthouse-performance-score",
121 "label": "Lighthouse Performance Score",
122 "value": 42
123 },
124 {
125 "name": "third_party_size_in_bytes",
126 "label": "Total Third Party Code Transferred",
127 "value": 520706
128 },
129 {
130 "name": "third_party_main_thread_duration",
131 "label": "Total Third Party Main Thread Execution Time",
132 "value": 537
133 },
134 {
135 "name": "third_party_count",
136 "label": "Number of Third Party Providers",
137 "value": 6
138 },
139 {
140 "name": "js-parse-compile",
141 "label": "JS Parse & Compile",
142 "value": 1298
143 },
144 {
145 "name": "total-blocking-time",
146 "label": "Total Blocking Time",
147 "value": 882
148 },
149 {
150 "name": "visually_complete_85",
151 "label": "85% Visually Complete",
152 "value": 8058
153 },
154 {
155 "name": "visually_complete",
156 "label": "Visually Complete",
157 "value": 11007
158 },
159 {
160 "name": "consistently-interactive",
161 "label": "Time to Interactive",
162 "value": 10978
163 },
164 {
165 "name": "first-interactive",
166 "label": "First CPU Idle",
167 "value": 10978
168 },
169 {
170 "name": "time-to-first-byte",
171 "label": "Time to First Byte",
172 "value": 101
173 },
174 {
175 "name": "speed_index",
176 "label": "Speed Index",
177 "value": 5835
178 },
179 {
180 "name": "first-meaningful-paint",
181 "label": "First Meaningful Paint",
182 "value": 7950
183 },
184 {
185 "name": "first-contentful-paint",
186 "label": "First Contentful Paint",
187 "value": 985
188 },
189 {
190 "name": "firstRender",
191 "label": "First Paint",
192 "value": 985
193 }
194 ]
195 },
196 {
197 "page": {
198 "name": "Viewing a metric",
199 "url": "https://calibreapp.com/teams/calibre/calibre/metrics/firstRender"
200 },
201 "testProfile": {
202 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935"
203 },
204 "measurements": [
205 {
206 "name": "json_body_size_in_bytes",
207 "label": "Total JSON size in bytes",
208 "value": 155716
209 },
210 {
211 "name": "json_size_in_bytes",
212 "label": "Total JSON transferred",
213 "value": 28527
214 },
215 {
216 "name": "image_body_size_in_bytes",
217 "label": "Total Image size in bytes",
218 "value": 151359
219 },
220 {
221 "name": "image_size_in_bytes",
222 "label": "Total Image transferred",
223 "value": 154651
224 },
225 {
226 "name": "js_body_size_in_bytes",
227 "label": "Total JavaScript size in bytes",
228 "value": 2240814
229 },
230 {
231 "name": "js_size_in_bytes",
232 "label": "Total JavaScript transferred",
233 "value": 636069
234 },
235 {
236 "name": "css_body_size_in_bytes",
237 "label": "Total CSS size in bytes",
238 "value": 101746
239 },
240 {
241 "name": "css_size_in_bytes",
242 "label": "Total CSS transferred",
243 "value": 19918
244 },
245 {
246 "name": "html_body_size_in_bytes",
247 "label": "Total HTML size in bytes",
248 "value": 8541
249 },
250 {
251 "name": "html_size_in_bytes",
252 "label": "Total HTML transferred",
253 "value": 3811
254 },
255 {
256 "name": "page_wait_timing",
257 "label": "Response time",
258 "value": 79
259 },
260 {
261 "name": "page_download_timing",
262 "label": "HTML download time",
263 "value": 2
264 },
265 {
266 "name": "page_size_in_bytes",
267 "label": "Total Page transferred",
268 "value": 953254
269 },
270 {
271 "name": "page_body_size_in_bytes",
272 "label": "Total Page size in bytes",
273 "value": 2846684
274 },
275 {
276 "name": "asset_count",
277 "label": "Number of requests",
278 "value": 52
279 },
280 {
281 "name": "onload",
282 "label": "onLoad",
283 "value": 1476
284 },
285 {
286 "name": "oncontentload",
287 "label": "onContentLoad",
288 "value": 657
289 },
290 {
291 "name": "largest_contentful_paint",
292 "label": "Largest Contentful Paint",
293 "value": 328
294 },
295 {
296 "name": "lighthouse-seo-score",
297 "label": "Lighthouse SEO Score",
298 "value": 80
299 },
300 {
301 "name": "lighthouse-best-practices-score",
302 "label": "Lighthouse Best Practices Score",
303 "value": 100
304 },
305 {
306 "name": "lighthouse-accessibility-score",
307 "label": "Lighthouse Accessibility Score",
308 "value": 69
309 },
310 {
311 "name": "lighthouse-performance-score",
312 "label": "Lighthouse Performance Score",
313 "value": 82
314 },
315 {
316 "name": "third_party_size_in_bytes",
317 "label": "Total Third Party Code Transferred",
318 "value": 517509
319 },
320 {
321 "name": "third_party_main_thread_duration",
322 "label": "Total Third Party Main Thread Execution Time",
323 "value": 1094
324 },
325 {
326 "name": "third_party_count",
327 "label": "Number of Third Party Providers",
328 "value": 6
329 },
330 {
331 "name": "js-parse-compile",
332 "label": "JS Parse & Compile",
333 "value": 3073
334 },
335 {
336 "name": "total-blocking-time",
337 "label": "Total Blocking Time",
338 "value": 2578
339 },
340 {
341 "name": "visually_complete_85",
342 "label": "85% Visually Complete",
343 "value": 5164
344 },
345 {
346 "name": "visually_complete",
347 "label": "Visually Complete",
348 "value": 5281
349 },
350 {
351 "name": "consistently-interactive",
352 "label": "Time to Interactive",
353 "value": 5030
354 },
355 {
356 "name": "first-interactive",
357 "label": "First CPU Idle",
358 "value": 5078
359 },
360 {
361 "name": "time-to-first-byte",
362 "label": "Time to First Byte",
363 "value": 71
364 },
365 {
366 "name": "speed_index",
367 "label": "Speed Index",
368 "value": 2974
369 },
370 {
371 "name": "first-meaningful-paint",
372 "label": "First Meaningful Paint",
373 "value": 5078
374 },
375 {
376 "name": "first-contentful-paint",
377 "label": "First Contentful Paint",
378 "value": 327
379 },
380 {
381 "name": "firstRender",
382 "label": "First Paint",
383 "value": 327
384 }
385 ]
386 }
387 ],
388 "sequenceId": 4000,
389 "htmlUrl": "https://calibreapp.com/teams/calibre/calibre/snapshots/4000",
390 "status": "completed",
391 "createdAt": "2019-12-07T13:02:57Z"
392 },
393 "testProfiles": [
394 {
395 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
396 "name": "iPhone 6, 3G connection",
397 "device": {
398 "title": "iPhone 6"
399 },
400 "bandwidth": {
401 "title": "Regular 3G"
402 },
403 "isMobile": true,
404 "jsIsDisabled": false,
405 "adBlockerIsEnabled": false,
406 "hasDeviceEmulation": true,
407 "hasBandwidthEmulation": true
408 },
409 {
410 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935",
411 "name": "Cable",
412 "device": null,
413 "bandwidth": {
414 "title": "Cable"
415 },
416 "isMobile": false,
417 "jsIsDisabled": false,
418 "adBlockerIsEnabled": false,
419 "hasDeviceEmulation": false,
420 "hasBandwidthEmulation": true
421 }
422 ]
423}
1{
2 "snapshot": {
3 "iid": 4000,
4 "tests": [
5 {
6 "page": {
7 "name": "Viewing a metric",
8 "url": "https://calibreapp.com/teams/calibre/calibre/metrics/firstRender"
9 },
10 "testProfile": {
11 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e"
12 },
13 "measurements": [
14 {
15 "name": "json_body_size_in_bytes",
16 "label": "Total JSON size in bytes",
17 "value": 155718
18 },
19 {
20 "name": "json_size_in_bytes",
21 "label": "Total JSON transferred",
22 "value": 31337
23 },
24 {
25 "name": "image_body_size_in_bytes",
26 "label": "Total Image size in bytes",
27 "value": 151359
28 },
29 {
30 "name": "image_size_in_bytes",
31 "label": "Total Image transferred",
32 "value": 154653
33 },
34 {
35 "name": "js_body_size_in_bytes",
36 "label": "Total JavaScript size in bytes",
37 "value": 2259720
38 },
39 {
40 "name": "js_size_in_bytes",
41 "label": "Total JavaScript transferred",
42 "value": 639251
43 },
44 {
45 "name": "css_body_size_in_bytes",
46 "label": "Total CSS size in bytes",
47 "value": 101746
48 },
49 {
50 "name": "css_size_in_bytes",
51 "label": "Total CSS transferred",
52 "value": 19917
53 },
54 {
55 "name": "html_body_size_in_bytes",
56 "label": "Total HTML size in bytes",
57 "value": 8541
58 },
59 {
60 "name": "html_size_in_bytes",
61 "label": "Total HTML transferred",
62 "value": 3806
63 },
64 {
65 "name": "page_wait_timing",
66 "label": "Response time",
67 "value": 137
68 },
69 {
70 "name": "page_download_timing",
71 "label": "HTML download time",
72 "value": 32
73 },
74 {
75 "name": "page_size_in_bytes",
76 "label": "Total Page transferred",
77 "value": 959186
78 },
79 {
80 "name": "page_body_size_in_bytes",
81 "label": "Total Page size in bytes",
82 "value": 2865592
83 },
84 {
85 "name": "asset_count",
86 "label": "Number of requests",
87 "value": 54
88 },
89 {
90 "name": "onload",
91 "label": "onLoad",
92 "value": 4459
93 },
94 {
95 "name": "oncontentload",
96 "label": "onContentLoad",
97 "value": 2877
98 },
99 {
100 "name": "largest_contentful_paint",
101 "label": "Largest Contentful Paint",
102 "value": 7951
103 },
104 {
105 "name": "lighthouse-seo-score",
106 "label": "Lighthouse SEO Score",
107 "value": 80
108 },
109 {
110 "name": "lighthouse-best-practices-score",
111 "label": "Lighthouse Best Practices Score",
112 "value": 100
113 },
114 {
115 "name": "lighthouse-accessibility-score",
116 "label": "Lighthouse Accessibility Score",
117 "value": 69
118 },
119 {
120 "name": "lighthouse-performance-score",
121 "label": "Lighthouse Performance Score",
122 "value": 42
123 },
124 {
125 "name": "third_party_size_in_bytes",
126 "label": "Total Third Party Code Transferred",
127 "value": 520706
128 },
129 {
130 "name": "third_party_main_thread_duration",
131 "label": "Total Third Party Main Thread Execution Time",
132 "value": 537
133 },
134 {
135 "name": "third_party_count",
136 "label": "Number of Third Party Providers",
137 "value": 6
138 },
139 {
140 "name": "js-parse-compile",
141 "label": "JS Parse & Compile",
142 "value": 1298
143 },
144 {
145 "name": "total-blocking-time",
146 "label": "Total Blocking Time",
147 "value": 882
148 },
149 {
150 "name": "visually_complete_85",
151 "label": "85% Visually Complete",
152 "value": 8058
153 },
154 {
155 "name": "visually_complete",
156 "label": "Visually Complete",
157 "value": 11007
158 },
159 {
160 "name": "consistently-interactive",
161 "label": "Time to Interactive",
162 "value": 10978
163 },
164 {
165 "name": "first-interactive",
166 "label": "First CPU Idle",
167 "value": 10978
168 },
169 {
170 "name": "time-to-first-byte",
171 "label": "Time to First Byte",
172 "value": 101
173 },
174 {
175 "name": "speed_index",
176 "label": "Speed Index",
177 "value": 5835
178 },
179 {
180 "name": "first-meaningful-paint",
181 "label": "First Meaningful Paint",
182 "value": 7950
183 },
184 {
185 "name": "first-contentful-paint",
186 "label": "First Contentful Paint",
187 "value": 985
188 },
189 {
190 "name": "firstRender",
191 "label": "First Paint",
192 "value": 985
193 }
194 ]
195 },
196 {
197 "page": {
198 "name": "Viewing a metric",
199 "url": "https://calibreapp.com/teams/calibre/calibre/metrics/firstRender"
200 },
201 "testProfile": {
202 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935"
203 },
204 "measurements": [
205 {
206 "name": "json_body_size_in_bytes",
207 "label": "Total JSON size in bytes",
208 "value": 155716
209 },
210 {
211 "name": "json_size_in_bytes",
212 "label": "Total JSON transferred",
213 "value": 28527
214 },
215 {
216 "name": "image_body_size_in_bytes",
217 "label": "Total Image size in bytes",
218 "value": 151359
219 },
220 {
221 "name": "image_size_in_bytes",
222 "label": "Total Image transferred",
223 "value": 154651
224 },
225 {
226 "name": "js_body_size_in_bytes",
227 "label": "Total JavaScript size in bytes",
228 "value": 2240814
229 },
230 {
231 "name": "js_size_in_bytes",
232 "label": "Total JavaScript transferred",
233 "value": 636069
234 },
235 {
236 "name": "css_body_size_in_bytes",
237 "label": "Total CSS size in bytes",
238 "value": 101746
239 },
240 {
241 "name": "css_size_in_bytes",
242 "label": "Total CSS transferred",
243 "value": 19918
244 },
245 {
246 "name": "html_body_size_in_bytes",
247 "label": "Total HTML size in bytes",
248 "value": 8541
249 },
250 {
251 "name": "html_size_in_bytes",
252 "label": "Total HTML transferred",
253 "value": 3811
254 },
255 {
256 "name": "page_wait_timing",
257 "label": "Response time",
258 "value": 79
259 },
260 {
261 "name": "page_download_timing",
262 "label": "HTML download time",
263 "value": 2
264 },
265 {
266 "name": "page_size_in_bytes",
267 "label": "Total Page transferred",
268 "value": 953254
269 },
270 {
271 "name": "page_body_size_in_bytes",
272 "label": "Total Page size in bytes",
273 "value": 2846684
274 },
275 {
276 "name": "asset_count",
277 "label": "Number of requests",
278 "value": 52
279 },
280 {
281 "name": "onload",
282 "label": "onLoad",
283 "value": 1476
284 },
285 {
286 "name": "oncontentload",
287 "label": "onContentLoad",
288 "value": 657
289 },
290 {
291 "name": "largest_contentful_paint",
292 "label": "Largest Contentful Paint",
293 "value": 328
294 },
295 {
296 "name": "lighthouse-seo-score",
297 "label": "Lighthouse SEO Score",
298 "value": 80
299 },
300 {
301 "name": "lighthouse-best-practices-score",
302 "label": "Lighthouse Best Practices Score",
303 "value": 100
304 },
305 {
306 "name": "lighthouse-accessibility-score",
307 "label": "Lighthouse Accessibility Score",
308 "value": 69
309 },
310 {
311 "name": "lighthouse-performance-score",
312 "label": "Lighthouse Performance Score",
313 "value": 82
314 },
315 {
316 "name": "third_party_size_in_bytes",
317 "label": "Total Third Party Code Transferred",
318 "value": 517509
319 },
320 {
321 "name": "third_party_main_thread_duration",
322 "label": "Total Third Party Main Thread Execution Time",
323 "value": 1094
324 },
325 {
326 "name": "third_party_count",
327 "label": "Number of Third Party Providers",
328 "value": 6
329 },
330 {
331 "name": "js-parse-compile",
332 "label": "JS Parse & Compile",
333 "value": 3073
334 },
335 {
336 "name": "total-blocking-time",
337 "label": "Total Blocking Time",
338 "value": 2578
339 },
340 {
341 "name": "visually_complete_85",
342 "label": "85% Visually Complete",
343 "value": 5164
344 },
345 {
346 "name": "visually_complete",
347 "label": "Visually Complete",
348 "value": 5281
349 },
350 {
351 "name": "consistently-interactive",
352 "label": "Time to Interactive",
353 "value": 5030
354 },
355 {
356 "name": "first-interactive",
357 "label": "First CPU Idle",
358 "value": 5078
359 },
360 {
361 "name": "time-to-first-byte",
362 "label": "Time to First Byte",
363 "value": 71
364 },
365 {
366 "name": "speed_index",
367 "label": "Speed Index",
368 "value": 2974
369 },
370 {
371 "name": "first-meaningful-paint",
372 "label": "First Meaningful Paint",
373 "value": 5078
374 },
375 {
376 "name": "first-contentful-paint",
377 "label": "First Contentful Paint",
378 "value": 327
379 },
380 {
381 "name": "firstRender",
382 "label": "First Paint",
383 "value": 327
384 }
385 ]
386 }
387 ],
388 "sequenceId": 4000,
389 "htmlUrl": "https://calibreapp.com/teams/calibre/calibre/snapshots/4000",
390 "status": "completed",
391 "createdAt": "2019-12-07T13:02:57Z"
392 },
393 "testProfiles": [
394 {
395 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
396 "name": "iPhone 6, 3G connection",
397 "device": {
398 "title": "iPhone 6"
399 },
400 "bandwidth": {
401 "title": "Regular 3G"
402 },
403 "isMobile": true,
404 "jsIsDisabled": false,
405 "adBlockerIsEnabled": false,
406 "hasDeviceEmulation": true,
407 "hasBandwidthEmulation": true
408 },
409 {
410 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935",
411 "name": "Cable",
412 "device": null,
413 "bandwidth": {
414 "title": "Cable"
415 },
416 "isMobile": false,
417 "jsIsDisabled": false,
418 "adBlockerIsEnabled": false,
419 "hasDeviceEmulation": false,
420 "hasBandwidthEmulation": true
421 }
422 ]
423}
1{
2 "id": 1300,
3 "generated_at": "2020-04-23T05:20:15Z",
4 "organisation_id": "calibre",
5 "site_id": "perf-email",
6 "primary_region_id": "us-east-1",
7 "ref": null,
8 "client": "scheduler",
9 "status": "completed",
10 "html_url": "https://calibreapp.com/teams/calibre/perf-email/snapshots/1300",
11 "url": "https://calibreapp.com/api/sites/perf-email/snapshots/1300.json",
12 "created_at": "2020-01-25T12:02:40.025Z",
13 "pages": [
14 {
15 "id": "home",
16 "uuid": "2ccfb633-df59-43a5-937a-29065eaacaed",
17 "name": "Home",
18 "status": "completed",
19 "endpoint": "https://perf.email",
20 "canonical": true,
21 "profile": "iPhone 6, 3G connection",
22 "profile_uuid": "9f6851a0-9148-430e-89b2-1d5b78004dbb",
23 "metrics": [
24 {
25 "name": "image_body_size_in_bytes",
26 "value": 42
27 },
28 {
29 "name": "image_size_in_bytes",
30 "value": 478
31 },
32 {
33 "name": "font_body_size_in_bytes",
34 "value": 40517
35 },
36 {
37 "name": "font_size_in_bytes",
38 "value": 40670
39 },
40 {
41 "name": "js_body_size_in_bytes",
42 "value": 54285
43 },
44 {
45 "name": "js_size_in_bytes",
46 "value": 22593
47 },
48 {
49 "name": "css_body_size_in_bytes",
50 "value": 3813
51 },
52 {
53 "name": "css_size_in_bytes",
54 "value": 1669
55 },
56 {
57 "name": "html_body_size_in_bytes",
58 "value": 17451
59 },
60 {
61 "name": "html_size_in_bytes",
62 "value": 5913
63 },
64 {
65 "name": "page_wait_timing",
66 "value": 183
67 },
68 {
69 "name": "page_download_timing",
70 "value": 31
71 },
72 {
73 "name": "page_ssl_timing",
74 "value": 12
75 },
76 {
77 "name": "page_tcp_timing",
78 "value": 20
79 },
80 {
81 "name": "page_dns_timing",
82 "value": 0
83 },
84 {
85 "name": "page_size_in_bytes",
86 "value": 71323
87 },
88 {
89 "name": "page_body_size_in_bytes",
90 "value": 116108
91 },
92 {
93 "name": "asset_count",
94 "value": 8
95 },
96 {
97 "name": "onload",
98 "value": 1206
99 },
100 {
101 "name": "oncontentload",
102 "value": 380
103 },
104 {
105 "name": "lighthouse-seo-score",
106 "value": 100
107 },
108 {
109 "name": "lighthouse-best-practices-score",
110 "value": 100
111 },
112 {
113 "name": "lighthouse-accessibility-score",
114 "value": 78
115 },
116 {
117 "name": "third_party_size_in_bytes",
118 "value": 20227
119 },
120 {
121 "name": "third_party_main_thread_duration",
122 "value": 29
123 },
124 {
125 "name": "third_party_count",
126 "value": 3
127 },
128 {
129 "name": "js-parse-compile",
130 "value": 4
131 },
132 {
133 "name": "total-blocking-time",
134 "value": 0
135 },
136 {
137 "name": "dom-size",
138 "value": 197
139 },
140 {
141 "name": "visually_complete_85",
142 "value": 368
143 },
144 {
145 "name": "visually_complete",
146 "value": 1118
147 },
148 {
149 "name": "consistently-interactive",
150 "value": 380
151 },
152 {
153 "name": "time-to-first-byte",
154 "value": 117
155 },
156 {
157 "name": "speed_index",
158 "value": 474
159 },
160 {
161 "name": "first-contentful-paint",
162 "value": 380
163 },
164 {
165 "name": "firstRender",
166 "value": 380
167 },
168 {
169 "name": "test-duration",
170 "value": 21320
171 },
172 {
173 "name": "benchmark-index",
174 "value": 620
175 }
176 ],
177 "budget_alerts": null,
178 "artifacts": {
179 "screenshot": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot.jpg",
180 "filmstrip": {
181 "thumbs": [
182 {
183 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1403642119.jpg",
184 "timing": 300,
185 "timestamp": 1403642119
186 },
187 {
188 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1403942119.jpg",
189 "timing": 600,
190 "timestamp": 1403942119
191 },
192 {
193 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1404242119.jpg",
194 "timing": 900,
195 "timestamp": 1404242119
196 },
197 {
198 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1404542119.jpg",
199 "timing": 1200,
200 "timestamp": 1404542119
201 },
202 {
203 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1404842119.jpg",
204 "timing": 1500,
205 "timestamp": 1404842119
206 },
207 {
208 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1405142119.jpg",
209 "timing": 1800,
210 "timestamp": 1405142119
211 },
212 {
213 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1405442119.jpg",
214 "timing": 2100,
215 "timestamp": 1405442119
216 },
217 {
218 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1405742119.jpg",
219 "timing": 2400,
220 "timestamp": 1405742119
221 },
222 {
223 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1406042119.jpg",
224 "timing": 2700,
225 "timestamp": 1406042119
226 },
227 {
228 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/screenshot/screenshot-1406342119.jpg",
229 "timing": 3000,
230 "timestamp": 1406342119
231 }
232 ],
233 "video": "https://calibre-screenshots-prod.s3.amazonaws.com/f784e757-2262-4e9a-ab11-2df2dc98c2b9/video-timeline/screencast.mp4"
234 },
235 "har": "https://calibre-screenshots-prod.s3.amazonaws.com/4b4e6a2ca654668abff6fcde0ab22812/63f505041975b5ab3627f9798849dac6.json.gz",
236 "lighthouse": "https://calibre-screenshots-prod.s3.amazonaws.com/4b4e6a2ca654668abff6fcde0ab22812/deab9c735a049d83a3c1ce2caa2d47ce.json.gz"
237 }
238 },
239 {
240 "id": "home",
241 "uuid": "2ccfb633-df59-43a5-937a-29065eaacaed",
242 "name": "Home",
243 "status": "completed",
244 "endpoint": "https://perf.email",
245 "canonical": true,
246 "profile": "Chrome Desktop",
247 "profile_uuid": "65642d1e-4b9a-4d15-b7b4-0a9c928b8f4c",
248 "metrics": [
249 {
250 "name": "image_body_size_in_bytes",
251 "value": 42
252 },
253 {
254 "name": "image_size_in_bytes",
255 "value": 478
256 },
257 {
258 "name": "font_body_size_in_bytes",
259 "value": 40517
260 },
261 {
262 "name": "font_size_in_bytes",
263 "value": 40670
264 },
265 {
266 "name": "js_body_size_in_bytes",
267 "value": 54285
268 },
269 {
270 "name": "js_size_in_bytes",
271 "value": 22598
272 },
273 {
274 "name": "css_body_size_in_bytes",
275 "value": 3813
276 },
277 {
278 "name": "css_size_in_bytes",
279 "value": 1636
280 },
281 {
282 "name": "html_body_size_in_bytes",
283 "value": 20236
284 },
285 {
286 "name": "html_size_in_bytes",
287 "value": 7994
288 },
289 {
290 "name": "page_wait_timing",
291 "value": 73
292 },
293 {
294 "name": "page_download_timing",
295 "value": 3
296 },
297 {
298 "name": "page_ssl_timing",
299 "value": 18
300 },
301 {
302 "name": "page_tcp_timing",
303 "value": 27
304 },
305 {
306 "name": "page_dns_timing",
307 "value": 6
308 },
309 {
310 "name": "page_size_in_bytes",
311 "value": 73376
312 },
313 {
314 "name": "page_body_size_in_bytes",
315 "value": 118893
316 },
317 {
318 "name": "asset_count",
319 "value": 9
320 },
321 {
322 "name": "onload",
323 "value": 305
324 },
325 {
326 "name": "oncontentload",
327 "value": 104
328 },
329 {
330 "name": "largest_contentful_paint",
331 "value": 272
332 },
333 {
334 "name": "lighthouse-seo-score",
335 "value": 100
336 },
337 {
338 "name": "lighthouse-best-practices-score",
339 "value": 93
340 },
341 {
342 "name": "lighthouse-accessibility-score",
343 "value": 78
344 },
345 {
346 "name": "lighthouse-performance-score",
347 "value": 100
348 },
349 {
350 "name": "third_party_size_in_bytes",
351 "value": 19407
352 },
353 {
354 "name": "third_party_main_thread_duration",
355 "value": 30
356 },
357 {
358 "name": "third_party_count",
359 "value": 3
360 },
361 {
362 "name": "js-parse-compile",
363 "value": 2
364 },
365 {
366 "name": "total-blocking-time",
367 "value": 0
368 },
369 {
370 "name": "dom-size",
371 "value": 197
372 },
373 {
374 "name": "visually_complete_85",
375 "value": 168
376 },
377 {
378 "name": "visually_complete",
379 "value": 251
380 },
381 {
382 "name": "consistently-interactive",
383 "value": 199
384 },
385 {
386 "name": "first-interactive",
387 "value": 272
388 },
389 {
390 "name": "time-to-first-byte",
391 "value": 15
392 },
393 {
394 "name": "estimated-input-latency",
395 "value": 16
396 },
397 {
398 "name": "speed_index",
399 "value": 176
400 },
401 {
402 "name": "first-meaningful-paint",
403 "value": 272
404 },
405 {
406 "name": "first-contentful-paint",
407 "value": 199
408 },
409 {
410 "name": "firstRender",
411 "value": 199
412 },
413 {
414 "name": "test-duration",
415 "value": 8419
416 },
417 {
418 "name": "benchmark-index",
419 "value": 816
420 }
421 ],
422 "budget_alerts": null,
423 "artifacts": {
424 "screenshot": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot.jpg",
425 "filmstrip": {
426 "thumbs": [
427 {
428 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-263588039.99999997.jpg",
429 "timing": 300,
430 "timestamp": 263588039.99999997
431 },
432 {
433 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-263888039.99999997.jpg",
434 "timing": 600,
435 "timestamp": 263888039.99999997
436 },
437 {
438 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-264188039.99999997.jpg",
439 "timing": 900,
440 "timestamp": 264188039.99999997
441 },
442 {
443 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-264488039.99999997.jpg",
444 "timing": 1200,
445 "timestamp": 264488039.99999997
446 },
447 {
448 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-264788039.99999997.jpg",
449 "timing": 1500,
450 "timestamp": 264788039.99999997
451 },
452 {
453 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265088039.99999997.jpg",
454 "timing": 1800,
455 "timestamp": 265088039.99999997
456 },
457 {
458 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265388039.99999997.jpg",
459 "timing": 2100,
460 "timestamp": 265388039.99999997
461 },
462 {
463 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265688039.99999997.jpg",
464 "timing": 2400,
465 "timestamp": 265688039.99999997
466 },
467 {
468 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265988039.99999997.jpg",
469 "timing": 2700,
470 "timestamp": 265988039.99999997
471 },
472 {
473 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-266288039.99999997.jpg",
474 "timing": 3000,
475 "timestamp": 266288039.99999997
476 }
477 ],
478 "video": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/video-timeline/screencast.mp4"
479 },
480 "har": "https://calibre-screenshots-prod.s3.amazonaws.com/5a67d1a6aba58a1141e33748b6a14b6c/8099e0e316088d55f71c866a0c01942c.json.gz",
481 "lighthouse": "https://calibre-screenshots-prod.s3.amazonaws.com/5a67d1a6aba58a1141e33748b6a14b6c/fa256ad3dcdc8e92471ab348cd12358d.json.gz"
482 }
483 }
484 ]
485}