‘1’,
‘limit’ => ‘5000’,
‘convert’ => ‘USD’
];

$headers = [
‘Accepts: application/json’,
‘X-CMC_PRO_API_KEY: 2219a0ef-af5c-45d0-aeb3-3ad1b246f82a’
];
$qs = http_build_query($parameters); // query string encode the parameters
$request = “{$url}?{$qs}”; // create the request URL

$curl = curl_init(); // Get cURL resource
// Set cURL options
curl_setopt_array($curl, array(
CURLOPT_URL => $request, // set the request URL
CURLOPT_HTTPHEADER => $headers, // set the headers
CURLOPT_RETURNTRANSFER => 1 // ask for raw response instead of bool
));

$response = curl_exec($curl); // Send the request, save the response
print_r(json_decode($response)); // print json decoded response
curl_close($curl); // Close request
?>