> ## 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.

# Check Customer's IP address

> Returns information about an IP address. If the `isAllowed` flag is set to <span class="value">false</span>, it means that MoonPay accepts citizens of this country but not residents.



## OpenAPI

````yaml GET /v3/ip_address
openapi: 3.0.0
info:
  title: Ramps & Swaps
  version: 1.0.0
servers:
  - url: https://api.moonpay.com
security: []
tags:
  - name: Account details
    description: >-
      Get your account details, including the verification status and the
      current fees.
  - name: On-ramp
    description: Get quotes and transaction details for buying cryptocurrencies.
  - name: Off-ramp
    description: Get quotes and transaction details for selling cryptocurrencies.
  - name: Swaps
    description: Get quotes and transaction details for swapping cryptocurrencies.
  - name: Data
    description: >-
      Get currently supported countries, currencies, and payment methods. Also
      check the customers's IP address restrictions.
  - name: DefiToken
    description: Retrieve token data and token lists for DeFi assets.
paths:
  /v3/ip_address:
    get:
      tags:
        - Data
      summary: Check Customer's IP address
      description: >-
        Returns information about an IP address. If the `isAllowed` flag is set
        to <span class="value">false</span>, it means that MoonPay accepts
        citizens of this country but not residents.
      operationId: getIpAddress
      parameters:
        - name: query
          in: query
          style: form
          explode: true
          required: true
          schema:
            type: object
            properties:
              ipAddress:
                type: string
                example: 71.183.124.141
                description: The IP address to be checked.
      responses:
        '200':
          description: Successful response — IP Address details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpAddress'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    IpAddress:
      type: object
      properties:
        alpha2:
          type: string
          example: GB
          description: The country's ISO 3166-1 alpha-2 code.
        alpha3:
          type: string
          example: GBR
          description: The country's ISO 3166-1 alpha-3 code.
        country:
          type: string
          example: United Kingdom
          description: The IP address country.
        state:
          type: string
          example: ''
          description: The IP address state or region or empty if not applicable.
        ipAddress:
          type: string
          example: 81.152.178.191
          description: The IPv4 or IPv6 address of the caller
        isAllowed:
          type: boolean
          example: true
          description: Whether residents of this country can use the service.
        isBuyAllowed:
          type: boolean
          example: true
          description: Whether residents of this country can buy cryptocurrencies.
        isSellAllowed:
          type: boolean
          example: true
          description: Whether residents of this country can sell cryptocurrencies.
        isNftAllowed:
          type: boolean
          example: true
          description: Whether residents of this country can buy NFTs.
    Error:
      type: object
      properties:
        message:
          type: string
          description: A descriptive error message.
        type:
          type: string
          description: An error type.
  securitySchemes:
    apiKey:
      type: apiKey
      name: apiKey
      in: query

````