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.
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:
- a score_ttfb value returned in the API request so we don’t have to perform the calculations on our end.
- a Target First Byte Time value to go alongside the First Byte Time.
This would make using the TTFB value much easier.