Free Currency API

Currency API

You can easily integrate the latest currency exchange rates and currency conversions for over 150 currencies into your personal and commercial website and application by using our free currency API.

Our currency API is available in JSON format and easily accessible through a simple API request over a secure HTTPS connection.

Free Sign up!

Currency API Request

The base URL for our currency API is

https://www.amdoren.com/api/currency.php

Request Parameters

ParameterDescription
api_keyYour assigned API key. This parameter is required.
fromThe currency you would like to convert from. This parameter is required.
toThe currency you would like to convert to. This parameter is required.
amountThe amount to convert from. This parameter is optional. Default is a value of 1.

You can find the list of over 150 supported currencies here.

Example:
To get the latest exchange rate in EUR for 1 USD:

https://www.amdoren.com/api/currency.php?api_key=IBZzdLmM2yCYaXjgTZ6x&from=USD&to=EUR

Example:
To convert 50 EUR to GBP:

https://www.amdoren.com/api/currency.php?api_key=IBZzdLmM2yCYaXjgTZ6x&from=EUR&to=GBP&amount=50

Get your FREE currency API key now!

Sample PHP snippet on how to use our currency API

Currency API Response

ElementDescription
errorError code. Value greater than zero indicates an error. See list below.
error_messageShort decription of the error. See list below.
amountThe exchange rate or amount converted.

Example:
JSON data returned from our currency API request:

{ "error" : 0, "error_message" : "-", "amount" : 0.90168 }

Sign up for your free developer account!

List of Error Codes & Error Messages

Error CodeDescription
0No error.
100API key not provided.
110Invalid API key.
200From currency not provided.
210Invalid from currency.
250To currency not provided.
260Invalid to currency.
300Amount must be numeric.
310Invalid amount.
320Amount cannot be zero.
400API limit reached for the month.

Get our free currency API for your website and application!

Our free currency API is highly stable & reliable. See our uptime

amdoren.com is verified safe by Google Safe Browsing

amdoren.com is verified safe by McAfee SiteAdvisor

amdoren.com is verified safe by AVG Threat Labs

Go to top of page