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 get-pulse-metrics --site=calibre --json --metrics=largestContentfulPaint --metrics=lighthousePerformanceScore
1#!/usr/bin/env node
2
3const { TimeSeries } = require('calibre')
4
5const getTimeseries = async ({ site, from, to, pages, profiles, measurements }) => {
6 const results = await TimeSeries.list({ site, from, to, pages, profiles, measurements })
7
8 // Output the formatted JSON response
9 console.log(JSON.stringify(results, null, 2))
10}
11
12const siteSlug = 'calibre'
13const to = new Date()
14
15// 7 days of history
16const from = new Date()
17from.setDate(to.getDate() - 7)
18
19// Filter by page and/or test profile (omitting `page` will only return the first page, omitting `profile` will return all profiles)
20const pages = ['a48ddb67-0da5-4731-91c4-42239009b463']
21const profiles = ['ddbf3952-4b96-4657-88a1-60abb097f44e']
22
23// Filter the metrics to be returned (omitting `measurements` will return all available measurements)
24const measurements = [
25 'lighthousePerformanceScore',
26 'consistentlyInteractive',
27 'totalBlockingTime'
28]
29
30getTimeseries({ 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
pageNoA page UUID
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,
38 55,
39 54,
40 55,
41 55
42 // shortened for clarity
43 ]
44 },
45 {
46 "name": "iPhone 6, 3G connection",
47 "profile": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
48 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
49 "measurement": "consistently-interactive",
50 "values": [
51 8944,
52 8915,
53 9086,
54 8980,
55 8944
56 // shortened for clarity
57 ]
58 },
59 {
60 "name": "iPhone 6, 3G connection",
61 "profile": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
62 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
63 "measurement": "total-blocking-time",
64 "values": [
65 429,
66 361,
67 433,
68 335,
69 377
70 // shortened for clarity
71 ]
72 },
73 {
74 "name": "Chrome Desktop",
75 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
76 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
77 "measurement": "total-blocking-time",
78 "values": [
79 139,
80 144,
81 117,
82 165,
83 122
84 // shortened for clarity
85 ]
86 },
87 {
88 "name": "Chrome Desktop",
89 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
90 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
91 "measurement": "consistently-interactive",
92 "values": [
93 1135,
94 1068,
95 900,
96 1365,
97 1011
98 // shortened for clarity
99 ]
100 },
101 {
102 "name": "Chrome Desktop",
103 "profile": "1d9440d7-df1b-4644-8238-26efe4791a48",
104 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
105 "measurement": "lighthouse-performance-score",
106 "values": [
107 100,
108 100,
109 100,
110 100,
111 100
112 // shortened for clarity
113 ]
114 },
115 {
116 "name": "Emerging",
117 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
118 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
119 "measurement": "consistently-interactive",
120 "values": [
121 7197,
122 7125,
123 7310,
124 7107,
125 7058
126 // shortened for clarity
127 ]
128 },
129 {
130 "name": "Emerging",
131 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
132 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
133 "measurement": "lighthouse-performance-score",
134 "values": [
135 69,
136 65,
137 68,
138 69,
139 70
140 // shortened for clarity
141 ]
142 },
143 {
144 "name": "Emerging",
145 "profile": "f6fc907e-b4cc-4568-baea-d6a837edd702",
146 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
147 "measurement": "total-blocking-time",
148 "values": [
149 1620,
150 1525,
151 1766,
152 1509,
153 1405
154 // shortened for clarity
155 ]
156 },
157 {
158 "name": "Cable",
159 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
160 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
161 "measurement": "lighthouse-performance-score",
162 "values": [
163 92,
164 96,
165 95,
166 97,
167 95
168 // shortened for clarity
169 ]
170 },
171 {
172 "name": "Cable",
173 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
174 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
175 "measurement": "total-blocking-time",
176 "values": [
177 1130,
178 1203,
179 1211,
180 1360,
181 1246
182 // shortened for clarity
183 ]
184 },
185 {
186 "name": "Cable",
187 "profile": "cef93436-f442-41ce-b0e2-036422f2c935",
188 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
189 "measurement": "consistently-interactive",
190 "values": [
191 4041,
192 3180,
193 3572,
194 3056,
195 3397
196 // shortened for clarity
197 ]
198 },
199 {
200 "name": "Chrome Desktop (with Third-Party Blocking)",
201 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
202 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
203 "measurement": "consistently-interactive",
204 "values": [
205 792,
206 1275,
207 1147,
208 890,
209 930
210 // shortened for clarity
211 ]
212 },
213 {
214 "name": "Chrome Desktop (with Third-Party Blocking)",
215 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
216 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
217 "measurement": "total-blocking-time",
218 "values": [
219 133,
220 144,
221 139,
222 127,
223 124
224 // shortened for clarity
225 ]
226 },
227 {
228 "name": "Chrome Desktop (with Third-Party Blocking)",
229 "profile": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
230 "page": "a48ddb67-0da5-4731-91c4-42239009b463",
231 "measurement": "lighthouse-performance-score",
232 "values": [
233 100,
234 100,
235 100,
236 100,
237 100
238 // shortened for clarity
239 ]
240 }
241 ],
242 "pages": [
243 {
244 "uuid": "7a40a3cc-84c1-45c0-8125-714d5739779c",
245 "name": "Logged in home",
246 "url": "https://calibreapp.com/home",
247 "canonical": false
248 }
249 ],
250 "testProfiles": [
251 {
252 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
253 "name": "iPhone 6, 3G connection",
254 "jsIsDisabled": false,
255 "adBlockerIsEnabled": false,
256 "hasDeviceEmulation": true,
257 "hasBandwidthEmulation": true,
258 "isMobile": true
259 },
260 {
261 "uuid": "1d9440d7-df1b-4644-8238-26efe4791a48",
262 "name": "Chrome Desktop",
263 "jsIsDisabled": false,
264 "adBlockerIsEnabled": false,
265 "hasDeviceEmulation": false,
266 "hasBandwidthEmulation": false,
267 "isMobile": false
268 },
269 {
270 "uuid": "f6fc907e-b4cc-4568-baea-d6a837edd702",
271 "name": "Emerging",
272 "jsIsDisabled": false,
273 "adBlockerIsEnabled": false,
274 "hasDeviceEmulation": true,
275 "hasBandwidthEmulation": true,
276 "isMobile": true
277 },
278 {
279 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935",
280 "name": "Cable",
281 "jsIsDisabled": false,
282 "adBlockerIsEnabled": false,
283 "hasDeviceEmulation": false,
284 "hasBandwidthEmulation": true,
285 "isMobile": false
286 },
287 {
288 "uuid": "5c8a3467-b92e-4612-9917-fbc464c2cff2",
289 "name": "Chrome Desktop (with Third-Party Blocking)",
290 "jsIsDisabled": false,
291 "adBlockerIsEnabled": false,
292 "hasDeviceEmulation": false,
293 "hasBandwidthEmulation": false,
294 "isMobile": false
295 }
296 ],
297 "measurements": [
298 {
299 "name": "lighthouse-performance-score",
300 "label": "Lighthouse Performance Score",
301 "formatter": "gradeScore",
302 "docsPath": null
303 },
304 {
305 "name": "consistently-interactive",
306 "label": "Time to Interactive",
307 "formatter": "humanDuration",
308 "docsPath": "/docs/metrics/time-to-interactive"
309 },
310 {
311 "name": "total-blocking-time",
312 "label": "Total Blocking Time",
313 "formatter": "humanDuration",
314 "docsPath": null
315 }
316 ],
317 "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"
318}

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
3const { SnapshotMetrics } = require('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
snapshotIdYesThe numeric identifer 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-pwa-score",
121 "label": "Lighthouse Progressive Web App Score",
122 "value": 31
123 },
124 {
125 "name": "lighthouse-performance-score",
126 "label": "Lighthouse Performance Score",
127 "value": 42
128 },
129 {
130 "name": "third_party_size_in_bytes",
131 "label": "Total Third Party Code Transferred",
132 "value": 520706
133 },
134 {
135 "name": "third_party_main_thread_duration",
136 "label": "Total Third Party Main Thread Execution Time",
137 "value": 537
138 },
139 {
140 "name": "third_party_count",
141 "label": "Number of Third Party Providers",
142 "value": 6
143 },
144 {
145 "name": "js-parse-compile",
146 "label": "JS Parse & Compile",
147 "value": 1298
148 },
149 {
150 "name": "total-blocking-time",
151 "label": "Total Blocking Time",
152 "value": 882
153 },
154 {
155 "name": "visually_complete_85",
156 "label": "85% Visually Complete",
157 "value": 8058
158 },
159 {
160 "name": "visually_complete",
161 "label": "Visually Complete",
162 "value": 11007
163 },
164 {
165 "name": "consistently-interactive",
166 "label": "Time to Interactive",
167 "value": 10978
168 },
169 {
170 "name": "first-interactive",
171 "label": "First CPU Idle",
172 "value": 10978
173 },
174 {
175 "name": "time-to-first-byte",
176 "label": "Time to First Byte",
177 "value": 101
178 },
179 {
180 "name": "speed_index",
181 "label": "Speed Index",
182 "value": 5835
183 },
184 {
185 "name": "first-meaningful-paint",
186 "label": "First Meaningful Paint",
187 "value": 7950
188 },
189 {
190 "name": "first-contentful-paint",
191 "label": "First Contentful Paint",
192 "value": 985
193 },
194 {
195 "name": "firstRender",
196 "label": "First Paint",
197 "value": 985
198 }
199 ]
200 },
201 {
202 "page": {
203 "name": "Viewing a metric",
204 "url": "https://calibreapp.com/teams/calibre/calibre/metrics/firstRender"
205 },
206 "testProfile": {
207 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935"
208 },
209 "measurements": [
210 {
211 "name": "json_body_size_in_bytes",
212 "label": "Total JSON size in bytes",
213 "value": 155716
214 },
215 {
216 "name": "json_size_in_bytes",
217 "label": "Total JSON transferred",
218 "value": 28527
219 },
220 {
221 "name": "image_body_size_in_bytes",
222 "label": "Total Image size in bytes",
223 "value": 151359
224 },
225 {
226 "name": "image_size_in_bytes",
227 "label": "Total Image transferred",
228 "value": 154651
229 },
230 {
231 "name": "js_body_size_in_bytes",
232 "label": "Total JavaScript size in bytes",
233 "value": 2240814
234 },
235 {
236 "name": "js_size_in_bytes",
237 "label": "Total JavaScript transferred",
238 "value": 636069
239 },
240 {
241 "name": "css_body_size_in_bytes",
242 "label": "Total CSS size in bytes",
243 "value": 101746
244 },
245 {
246 "name": "css_size_in_bytes",
247 "label": "Total CSS transferred",
248 "value": 19918
249 },
250 {
251 "name": "html_body_size_in_bytes",
252 "label": "Total HTML size in bytes",
253 "value": 8541
254 },
255 {
256 "name": "html_size_in_bytes",
257 "label": "Total HTML transferred",
258 "value": 3811
259 },
260 {
261 "name": "page_wait_timing",
262 "label": "Response time",
263 "value": 79
264 },
265 {
266 "name": "page_download_timing",
267 "label": "HTML download time",
268 "value": 2
269 },
270 {
271 "name": "page_size_in_bytes",
272 "label": "Total Page transferred",
273 "value": 953254
274 },
275 {
276 "name": "page_body_size_in_bytes",
277 "label": "Total Page size in bytes",
278 "value": 2846684
279 },
280 {
281 "name": "asset_count",
282 "label": "Number of requests",
283 "value": 52
284 },
285 {
286 "name": "onload",
287 "label": "onLoad",
288 "value": 1476
289 },
290 {
291 "name": "oncontentload",
292 "label": "onContentLoad",
293 "value": 657
294 },
295 {
296 "name": "largest_contentful_paint",
297 "label": "Largest Contentful Paint",
298 "value": 328
299 },
300 {
301 "name": "lighthouse-seo-score",
302 "label": "Lighthouse SEO Score",
303 "value": 80
304 },
305 {
306 "name": "lighthouse-best-practices-score",
307 "label": "Lighthouse Best Practices Score",
308 "value": 100
309 },
310 {
311 "name": "lighthouse-accessibility-score",
312 "label": "Lighthouse Accessibility Score",
313 "value": 69
314 },
315 {
316 "name": "lighthouse-pwa-score",
317 "label": "Lighthouse Progressive Web App Score",
318 "value": 31
319 },
320 {
321 "name": "lighthouse-performance-score",
322 "label": "Lighthouse Performance Score",
323 "value": 82
324 },
325 {
326 "name": "third_party_size_in_bytes",
327 "label": "Total Third Party Code Transferred",
328 "value": 517509
329 },
330 {
331 "name": "third_party_main_thread_duration",
332 "label": "Total Third Party Main Thread Execution Time",
333 "value": 1094
334 },
335 {
336 "name": "third_party_count",
337 "label": "Number of Third Party Providers",
338 "value": 6
339 },
340 {
341 "name": "js-parse-compile",
342 "label": "JS Parse & Compile",
343 "value": 3073
344 },
345 {
346 "name": "total-blocking-time",
347 "label": "Total Blocking Time",
348 "value": 2578
349 },
350 {
351 "name": "visually_complete_85",
352 "label": "85% Visually Complete",
353 "value": 5164
354 },
355 {
356 "name": "visually_complete",
357 "label": "Visually Complete",
358 "value": 5281
359 },
360 {
361 "name": "consistently-interactive",
362 "label": "Time to Interactive",
363 "value": 5030
364 },
365 {
366 "name": "first-interactive",
367 "label": "First CPU Idle",
368 "value": 5078
369 },
370 {
371 "name": "time-to-first-byte",
372 "label": "Time to First Byte",
373 "value": 71
374 },
375 {
376 "name": "speed_index",
377 "label": "Speed Index",
378 "value": 2974
379 },
380 {
381 "name": "first-meaningful-paint",
382 "label": "First Meaningful Paint",
383 "value": 5078
384 },
385 {
386 "name": "first-contentful-paint",
387 "label": "First Contentful Paint",
388 "value": 327
389 },
390 {
391 "name": "firstRender",
392 "label": "First Paint",
393 "value": 327
394 }
395 ]
396 }
397 ],
398 "sequenceId": 4000,
399 "htmlUrl": "https://calibreapp.com/teams/calibre/calibre/snapshots/4000",
400 "status": "completed",
401 "createdAt": "2019-12-07T13:02:57Z"
402 },
403 "testProfiles": [
404 {
405 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
406 "name": "iPhone 6, 3G connection",
407 "device": {
408 "title": "iPhone 6"
409 },
410 "bandwidth": {
411 "title": "Regular 3G"
412 },
413 "isMobile": true,
414 "jsIsDisabled": false,
415 "adBlockerIsEnabled": false,
416 "hasDeviceEmulation": true,
417 "hasBandwidthEmulation": true
418 },
419 {
420 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935",
421 "name": "Cable",
422 "device": null,
423 "bandwidth": {
424 "title": "Cable"
425 },
426 "isMobile": false,
427 "jsIsDisabled": false,
428 "adBlockerIsEnabled": false,
429 "hasDeviceEmulation": false,
430 "hasBandwidthEmulation": true
431 }
432 ]
433}
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-pwa-score",
121 "label": "Lighthouse Progressive Web App Score",
122 "value": 31
123 },
124 {
125 "name": "lighthouse-performance-score",
126 "label": "Lighthouse Performance Score",
127 "value": 42
128 },
129 {
130 "name": "third_party_size_in_bytes",
131 "label": "Total Third Party Code Transferred",
132 "value": 520706
133 },
134 {
135 "name": "third_party_main_thread_duration",
136 "label": "Total Third Party Main Thread Execution Time",
137 "value": 537
138 },
139 {
140 "name": "third_party_count",
141 "label": "Number of Third Party Providers",
142 "value": 6
143 },
144 {
145 "name": "js-parse-compile",
146 "label": "JS Parse & Compile",
147 "value": 1298
148 },
149 {
150 "name": "total-blocking-time",
151 "label": "Total Blocking Time",
152 "value": 882
153 },
154 {
155 "name": "visually_complete_85",
156 "label": "85% Visually Complete",
157 "value": 8058
158 },
159 {
160 "name": "visually_complete",
161 "label": "Visually Complete",
162 "value": 11007
163 },
164 {
165 "name": "consistently-interactive",
166 "label": "Time to Interactive",
167 "value": 10978
168 },
169 {
170 "name": "first-interactive",
171 "label": "First CPU Idle",
172 "value": 10978
173 },
174 {
175 "name": "time-to-first-byte",
176 "label": "Time to First Byte",
177 "value": 101
178 },
179 {
180 "name": "speed_index",
181 "label": "Speed Index",
182 "value": 5835
183 },
184 {
185 "name": "first-meaningful-paint",
186 "label": "First Meaningful Paint",
187 "value": 7950
188 },
189 {
190 "name": "first-contentful-paint",
191 "label": "First Contentful Paint",
192 "value": 985
193 },
194 {
195 "name": "firstRender",
196 "label": "First Paint",
197 "value": 985
198 }
199 ]
200 },
201 {
202 "page": {
203 "name": "Viewing a metric",
204 "url": "https://calibreapp.com/teams/calibre/calibre/metrics/firstRender"
205 },
206 "testProfile": {
207 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935"
208 },
209 "measurements": [
210 {
211 "name": "json_body_size_in_bytes",
212 "label": "Total JSON size in bytes",
213 "value": 155716
214 },
215 {
216 "name": "json_size_in_bytes",
217 "label": "Total JSON transferred",
218 "value": 28527
219 },
220 {
221 "name": "image_body_size_in_bytes",
222 "label": "Total Image size in bytes",
223 "value": 151359
224 },
225 {
226 "name": "image_size_in_bytes",
227 "label": "Total Image transferred",
228 "value": 154651
229 },
230 {
231 "name": "js_body_size_in_bytes",
232 "label": "Total JavaScript size in bytes",
233 "value": 2240814
234 },
235 {
236 "name": "js_size_in_bytes",
237 "label": "Total JavaScript transferred",
238 "value": 636069
239 },
240 {
241 "name": "css_body_size_in_bytes",
242 "label": "Total CSS size in bytes",
243 "value": 101746
244 },
245 {
246 "name": "css_size_in_bytes",
247 "label": "Total CSS transferred",
248 "value": 19918
249 },
250 {
251 "name": "html_body_size_in_bytes",
252 "label": "Total HTML size in bytes",
253 "value": 8541
254 },
255 {
256 "name": "html_size_in_bytes",
257 "label": "Total HTML transferred",
258 "value": 3811
259 },
260 {
261 "name": "page_wait_timing",
262 "label": "Response time",
263 "value": 79
264 },
265 {
266 "name": "page_download_timing",
267 "label": "HTML download time",
268 "value": 2
269 },
270 {
271 "name": "page_size_in_bytes",
272 "label": "Total Page transferred",
273 "value": 953254
274 },
275 {
276 "name": "page_body_size_in_bytes",
277 "label": "Total Page size in bytes",
278 "value": 2846684
279 },
280 {
281 "name": "asset_count",
282 "label": "Number of requests",
283 "value": 52
284 },
285 {
286 "name": "onload",
287 "label": "onLoad",
288 "value": 1476
289 },
290 {
291 "name": "oncontentload",
292 "label": "onContentLoad",
293 "value": 657
294 },
295 {
296 "name": "largest_contentful_paint",
297 "label": "Largest Contentful Paint",
298 "value": 328
299 },
300 {
301 "name": "lighthouse-seo-score",
302 "label": "Lighthouse SEO Score",
303 "value": 80
304 },
305 {
306 "name": "lighthouse-best-practices-score",
307 "label": "Lighthouse Best Practices Score",
308 "value": 100
309 },
310 {
311 "name": "lighthouse-accessibility-score",
312 "label": "Lighthouse Accessibility Score",
313 "value": 69
314 },
315 {
316 "name": "lighthouse-pwa-score",
317 "label": "Lighthouse Progressive Web App Score",
318 "value": 31
319 },
320 {
321 "name": "lighthouse-performance-score",
322 "label": "Lighthouse Performance Score",
323 "value": 82
324 },
325 {
326 "name": "third_party_size_in_bytes",
327 "label": "Total Third Party Code Transferred",
328 "value": 517509
329 },
330 {
331 "name": "third_party_main_thread_duration",
332 "label": "Total Third Party Main Thread Execution Time",
333 "value": 1094
334 },
335 {
336 "name": "third_party_count",
337 "label": "Number of Third Party Providers",
338 "value": 6
339 },
340 {
341 "name": "js-parse-compile",
342 "label": "JS Parse & Compile",
343 "value": 3073
344 },
345 {
346 "name": "total-blocking-time",
347 "label": "Total Blocking Time",
348 "value": 2578
349 },
350 {
351 "name": "visually_complete_85",
352 "label": "85% Visually Complete",
353 "value": 5164
354 },
355 {
356 "name": "visually_complete",
357 "label": "Visually Complete",
358 "value": 5281
359 },
360 {
361 "name": "consistently-interactive",
362 "label": "Time to Interactive",
363 "value": 5030
364 },
365 {
366 "name": "first-interactive",
367 "label": "First CPU Idle",
368 "value": 5078
369 },
370 {
371 "name": "time-to-first-byte",
372 "label": "Time to First Byte",
373 "value": 71
374 },
375 {
376 "name": "speed_index",
377 "label": "Speed Index",
378 "value": 2974
379 },
380 {
381 "name": "first-meaningful-paint",
382 "label": "First Meaningful Paint",
383 "value": 5078
384 },
385 {
386 "name": "first-contentful-paint",
387 "label": "First Contentful Paint",
388 "value": 327
389 },
390 {
391 "name": "firstRender",
392 "label": "First Paint",
393 "value": 327
394 }
395 ]
396 }
397 ],
398 "sequenceId": 4000,
399 "htmlUrl": "https://calibreapp.com/teams/calibre/calibre/snapshots/4000",
400 "status": "completed",
401 "createdAt": "2019-12-07T13:02:57Z"
402 },
403 "testProfiles": [
404 {
405 "uuid": "d6d73d41-51f1-4aff-b0b7-0ff671f0b83e",
406 "name": "iPhone 6, 3G connection",
407 "device": {
408 "title": "iPhone 6"
409 },
410 "bandwidth": {
411 "title": "Regular 3G"
412 },
413 "isMobile": true,
414 "jsIsDisabled": false,
415 "adBlockerIsEnabled": false,
416 "hasDeviceEmulation": true,
417 "hasBandwidthEmulation": true
418 },
419 {
420 "uuid": "cef93436-f442-41ce-b0e2-036422f2c935",
421 "name": "Cable",
422 "device": null,
423 "bandwidth": {
424 "title": "Cable"
425 },
426 "isMobile": false,
427 "jsIsDisabled": false,
428 "adBlockerIsEnabled": false,
429 "hasDeviceEmulation": false,
430 "hasBandwidthEmulation": true
431 }
432 ]
433}
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-pwa-score",
347 "value": 54
348 },
349 {
350 "name": "lighthouse-performance-score",
351 "value": 100
352 },
353 {
354 "name": "third_party_size_in_bytes",
355 "value": 19407
356 },
357 {
358 "name": "third_party_main_thread_duration",
359 "value": 30
360 },
361 {
362 "name": "third_party_count",
363 "value": 3
364 },
365 {
366 "name": "js-parse-compile",
367 "value": 2
368 },
369 {
370 "name": "total-blocking-time",
371 "value": 0
372 },
373 {
374 "name": "dom-size",
375 "value": 197
376 },
377 {
378 "name": "visually_complete_85",
379 "value": 168
380 },
381 {
382 "name": "visually_complete",
383 "value": 251
384 },
385 {
386 "name": "consistently-interactive",
387 "value": 199
388 },
389 {
390 "name": "first-interactive",
391 "value": 272
392 },
393 {
394 "name": "time-to-first-byte",
395 "value": 15
396 },
397 {
398 "name": "estimated-input-latency",
399 "value": 16
400 },
401 {
402 "name": "speed_index",
403 "value": 176
404 },
405 {
406 "name": "first-meaningful-paint",
407 "value": 272
408 },
409 {
410 "name": "first-contentful-paint",
411 "value": 199
412 },
413 {
414 "name": "firstRender",
415 "value": 199
416 },
417 {
418 "name": "test-duration",
419 "value": 8419
420 },
421 {
422 "name": "benchmark-index",
423 "value": 816
424 }
425 ],
426 "budget_alerts": null,
427 "artifacts": {
428 "screenshot": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot.jpg",
429 "filmstrip": {
430 "thumbs": [
431 {
432 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-263588039.99999997.jpg",
433 "timing": 300,
434 "timestamp": 263588039.99999997
435 },
436 {
437 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-263888039.99999997.jpg",
438 "timing": 600,
439 "timestamp": 263888039.99999997
440 },
441 {
442 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-264188039.99999997.jpg",
443 "timing": 900,
444 "timestamp": 264188039.99999997
445 },
446 {
447 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-264488039.99999997.jpg",
448 "timing": 1200,
449 "timestamp": 264488039.99999997
450 },
451 {
452 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-264788039.99999997.jpg",
453 "timing": 1500,
454 "timestamp": 264788039.99999997
455 },
456 {
457 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265088039.99999997.jpg",
458 "timing": 1800,
459 "timestamp": 265088039.99999997
460 },
461 {
462 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265388039.99999997.jpg",
463 "timing": 2100,
464 "timestamp": 265388039.99999997
465 },
466 {
467 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265688039.99999997.jpg",
468 "timing": 2400,
469 "timestamp": 265688039.99999997
470 },
471 {
472 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-265988039.99999997.jpg",
473 "timing": 2700,
474 "timestamp": 265988039.99999997
475 },
476 {
477 "url": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/screenshot/screenshot-266288039.99999997.jpg",
478 "timing": 3000,
479 "timestamp": 266288039.99999997
480 }
481 ],
482 "video": "https://calibre-screenshots-prod.s3.amazonaws.com/c06b48ab-eb3f-435c-b0d6-4a94c42a94d3/video-timeline/screencast.mp4"
483 },
484 "har": "https://calibre-screenshots-prod.s3.amazonaws.com/5a67d1a6aba58a1141e33748b6a14b6c/8099e0e316088d55f71c866a0c01942c.json.gz",
485 "lighthouse": "https://calibre-screenshots-prod.s3.amazonaws.com/5a67d1a6aba58a1141e33748b6a14b6c/fa256ad3dcdc8e92471ab348cd12358d.json.gz"
486 }
487 }
488 ]
489}