Purchasing Power Parity

FREEMIUM
By ntacey | Updated il y a un mois | Payments
Popularity

7.2 / 10

Latency

282ms

Service Level

100%

Health Check

N/A

README

=== Expected paramters ===

usd_price: The value in USD you wish to convert from. This should be either a numeric or string value, with no dollar sign ie. 30, 19.99, 1.2345. Note that you can use a decimal more precise than two places.

country: The name or ISO 3166-1 alpha-2 code representing the country. If using the code, you must specifcy “code” as method. For country name, you can include spaces or undescores when needed.

method (optional): Represents how you want to lookup the country to convert to. This value should be either “name” or “code”. When not passed in, this will default to the value “name”. See below for valid country names and codes.

=== Values returned in the body of response as a json ===

country_name: A string representing the name of country as listed below.

country_code: A string representing the ISO 3166-1 alpha-2 code of the country as listed below.

price_in_local_currency: A numeric (decimal) value which returns the new price in the desired country’s origin, the decimal precision is variable.

price_in_local_usd: A numeric (decimal) value which returns the new price in USD, the decimal precision is variable.

rounded_price_in_local_currency: A string value which returns the rounded price_in_local_currency, rounding to the precision specified the currency. The precision is usually x,2 like USD, but can also be 0, 3 or 4.

rounded_price_in_usd: A string value which returns the rounded price_in_usd, will always be in x,2 precision.

currency: A string representing the ISO 4217 code of the country’s currency.

currency_symbol: A string that returns the unicode character of the country’s currency.

defaulted_to_us: A boolean value that denotes whether the country was found or not, if true the country and currency will be returned as US/USD.

Note - Status Code 406 will be returned when invalid parameters are passed in. An acceptable request will return with a 200 status code.

Names:
albania
argentina
australia
austria
belgium
brazil
bulgaria
cameroon
canada
chile
china
colombia
costa rica
croatia
cyprus
czech republic
denmark
estonia
finland
france
georiga
germany
greece
hong kong
hungary
iceland
india
indonesia
ireland
israel
italy
japan
korea
latvia
lithuania
luxembourg
madagascar
malta
mexico
morocco
netherlands
new zealand
north macedonia
norway
poland
portugal
romania
russia
saudi arabia
senegal
serbia
singapore
slovak republic
slovenia
south africa
spain
sweden
switzerland
turkey
united kingdom
united states
zambia

Codes (using “code” as method):
al
ar
au
at
be
br
bg
cm
ca
cl
cn
co
cr
hr
cy
cz
dk
ee
fi
fr
ge
de
gr
hk
hu
is
in
id
ie
il
it
jp
kr
lv
lt
lu
mg
mt
mx
ma
nl
nz
mk
no
pl
pt
ro
ru
sa
sn
rs
sg
sk
si
za
es
se
ch
tr
gb
us
zm

Followers: 0
API Creator:
N
ntacey
ntacey
Log In to Rate API
Rating: 5 - Votes: 2