TTFB API results/score

In the TTFB API results, it looks like the First Byte Time is being returned, but the Target First Byte Time is not included which makes calculating the letter grade impossible.

TTFB states:

The target time is the time needed for the DNS, socket and SSL negotiations + 100ms. A single letter grade will be deducted for every 100ms beyond the target.

But none of those values are included in the API payload either. So it appears that at the moment the TTFB only returns the First Byte Time and no other related information, which makes it impossible to perform calculations or figure out what the letter grade should be.

The other API values return percentages, eg:

score_cache => 63
score_cdn => 6
score_gzip => 100
score_keep-alive => 100

Can we get either:

  1. a score_ttfb value returned in the API request so we don’t have to perform the calculations on our end.
  2. a Target First Byte Time value to go alongside the First Byte Time.

This would make using the TTFB value much easier.

The DNS, TCP and TLS times are in the results data e.g.

"dns_start": 0,
"dns_end": 295,
"connect_start": 295,
"connect_end": 327,
"ssl_start": 327,
"ssl_end": 377,