MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - How to get Custom Metrics using WPT API

WebPagetest Forums

Full Version: How to get Custom Metrics using WPT API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to programatically get the value for RUM First Paint or other customer metrics you display in detail via an API.

For example if you look at and say I want the values for primaryStart and primaryEnd, whats the best way?
Custom metrics are included in the API response. For example:

You could get primaryStart one of two ways: data.runs[1].firstView['userTime.primaryStart'] or data.runs[1].firstView.userTimes.primaryStart
Reference URL's