I am using an API that returns JSON from a `GET` request

Eg.

```
https://api.domain.com/v1/Account/{auth_id}/Call/{call_uuid}

```

Returns

```
 {
    "call_duration": 4,
    "total_amount": "0.00400"
  }

```

How can I call this page from within a script and save `call_duation` and `total_amount` as separate variables?

Something like the following?:

```
$call_duration =
$_GET[https://api.domain.com/v1/Account/{auth_id}/Call/{call_uuid}, 'call_duration'];

```