Найдите время отклика сервера с помощью curl в терминале с помощью API PageSpeed Insights v5

#terminal #lighthouse #google-pagespeed #google-pagespeed-insights-api

Вопрос:

Найдите время отклика сервера с помощью curl в терминале с помощью API PageSpeed Insights v5

Например, если я введу это в терминал

 curl 'https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed?url=https://google.com/ amp;category=performanceamp;strategy=mobileamp;fields=lighthouseResult.categories.*.scoreamp;prettyPrint=false amp;key=lt;MY-KEYgt;'  

будет возвращать

 {"lighthouseResult":{"categories":{"performance":{"score":0.68}}}}%  

Вместо оценки я хотел бы, чтобы это возвращало ТОЛЬКО время отклика сервера в форме, аналогичной:

{"lighthouseResult":{"categories":{"performance":{"responseTime":0.68}}}}%

Я попробовал следующее:

  1. fields=lighthouseResult.categories.*.server-response-time
  2. fields=lighthouseResult.categories.*.server-response-time.responseTime
  3. fields=lighthouseResult.categories.audits.server-response-time
  4. fields=lighthouseResult.categories.audits.server-response-time.responseTime
  5. amp;only-audits=server-response-time