Skip to main content
GET
/
v3
/
countries
List supported countries
curl --request GET \
  --url https://api.moonpay.com/v3/countries
import requests

url = "https://api.moonpay.com/v3/countries"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.moonpay.com/v3/countries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.moonpay.com/v3/countries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.moonpay.com/v3/countries"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.moonpay.com/v3/countries")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.moonpay.com/v3/countries")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
[
  {
    "alpha2": "GB",
    "alpha3": "GBR",
    "isAllowed": true,
    "isBuyAllowed": true,
    "isSellAllowed": true,
    "name": "United Kingdom",
    "supportedDocuments": [
      "additional_proof_of_income",
      "driving_licence",
      "national_identity_card",
      "passport",
      "proof_of_address",
      "proof_of_income",
      "residence_permit",
      "selfie"
    ]
  }
]
{
"message": "<string>",
"type": "<string>"
}

Response

Successful response — List of Countries

alpha2
string

The country's ISO 3166-1 alpha-2 code.

Example:

"GB"

alpha3
string

The country's ISO 3166-1 alpha-3 code.

Example:

"GBR"

isAllowed
boolean

Whether residents of this country can use the service.

Example:

true

isBuyAllowed
boolean

Whether residents of this country can buy cryptocurrencies.

Example:

true

isSellAllowed
boolean

Whether residents of this country can sell cryptocurrencies.

Example:

true

name
string

The country's name.

Example:

"United Kingdom"

supportedDocuments
enum<string>[]

A list of supported identity documents for the country.

Possible values are: additional_proof_of_income, driving_licence, national_identity_card, passport, proof_of_address, proof_of_income, residence_permit, selfie

Available options:
additional_proof_of_income,
driving_licence,
national_identity_card,
passport,
proof_of_address,
proof_of_income,
residence_permit,
selfie
Example:
[
"additional_proof_of_income",
"driving_licence",
"national_identity_card",
"passport",
"proof_of_address",
"proof_of_income",
"residence_permit",
"selfie"
]