GET
https://api.cryptohopper.com/v1/platform/country_allow_exchange
Returns, per two-letter country code, the exchanges allowed for users by residence and by nationality, plus the country detected for the request.
Needs a valid access token; no scope is checked. ip_country comes from the CF-IPCountry request header and is null when that header is missing.
Example request
curl "https://api.cryptohopper.com/v1/platform/country_allow_exchange" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/platform/country_allow_exchange', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/platform/country_allow_exchange",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/platform/country_allow_exchange');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Response
{
"data": {
"country_settings": {
"NL": {
"residence": [
"binance",
"bitvavo"
],
"nationality": [
"binance",
"bitvavo"
]
}
},
"ip_country": "NL"
}
}