Check Customer's IP address
Returns information about an IP address. If the isAllowed flag is set to false, it means that MoonPay accepts citizens of this country but not residents.
Authorizations
Your publishable API key, passed as the apiKey query parameter. Publishable keys are prefixed with pk_test_ (sandbox) or pk_live_ (production) and are safe to use in client-side code. Find your keys on the API keys page of the dashboard. See Authentication.
Query Parameters
Response
Successful response. IP Address details
The country's ISO 3166-1 alpha-2 code.
"GB"
The country's ISO 3166-1 alpha-3 code.
"GBR"
The IP address country.
"United Kingdom"
The IP address state or region or empty if not applicable.
""
The IPv4 or IPv6 address of the caller
"81.152.178.191"
Whether residents of this country can use the service.
true
Whether residents of this country can buy cryptocurrencies.
true
Whether residents of this country can sell cryptocurrencies.
true
Whether residents of this country can buy NFTs.
true