I am looking to get the % change of the cryptocurrency Bitcoin vs USD.
Something similar to the way Coinbase works it out on their website (the red -10% for example):

I attempted to find this via the Coinbase API but wasn't able to.
Closest I got was this public endpoint:
https://api.coinbase.com/v2/prices/BTC-USD/spot
But the response looks like this:
{
"data": {
"base": "BTC",
"currency": "USD",
"amount": "31208.85"
}
}
Does not have any metrics for the last 24 hours.
Perhaps I am looking in the wrong section but is this possible? Or do I have to calculate this % myself?