Skip to main content
GET
/
v3
/
ip_address
Check Customer's IP address
curl --request GET \
  --url 'https://api.moonpay.com/v3/ip_address?apiKey='
{
  "alpha2": "GB",
  "alpha3": "GBR",
  "country": "United Kingdom",
  "state": "",
  "ipAddress": "81.152.178.191",
  "isAllowed": true,
  "isBuyAllowed": true,
  "isSellAllowed": true,
  "isNftAllowed": true
}

Documentation Index

Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apiKey
string
query
required

Query Parameters

query
object
required

Response

Successful response — IP Address details

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"

country
string

The IP address country.

Example:

"United Kingdom"

state
string

The IP address state or region or empty if not applicable.

Example:

""

ipAddress
string

The IPv4 or IPv6 address of the caller

Example:

"81.152.178.191"

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

isNftAllowed
boolean

Whether residents of this country can buy NFTs.

Example:

true