Sample Codes


PHP (cURL)

Real-time rates: Find below a simple PHP example for getting exchange rate data via the Coinlayer API's live endpoint.

Convert currencies: Here is how to convert currencies using PHP cURL.

JavaScript (jQuery.ajax)

Real-time rates: Find below a simple jQuery.ajax example for getting exchange rate data via the Coinlayer API's live endpoint.

Convert currencies: Here is how to convert currencies using jQuery.ajax.

 

Questions? Contact Sales .
Need help? Contact Support .
© 2025 APILayer. All rights reserved.