> ## Documentation Index
> Fetch the complete documentation index at: https://geonode.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Perform Country Targeting

> Execute a geo-targeting request using proxy credentials.

### How to Specify Country
If you need to geo-target requests at the country level, simply append
`-country-<country_code>` after the `<geonode_username>`.




## OpenAPI

````yaml api-reference/ref/country-targeting.yaml get /
openapi: 3.0.3
info:
  title: Geonode Proxy Geo-Targeting API
  description: API for configuring geo-targeting in Geonode's proxy service.
  version: 1.0.0
servers: []
security: []
paths:
  /:
    get:
      summary: Perform Country Targeting
      description: |
        Execute a geo-targeting request using proxy credentials.

        ### How to Specify Country
        If you need to geo-target requests at the country level, simply append
        `-country-<country_code>` after the `<geonode_username>`.
      responses:
        '200':
          description: Successful response from Geo-Targeting API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Indicates the status of the request.
                    example: success
                  continent:
                    type: string
                    description: The name of the continent.
                    example: North America
                  continentCode:
                    type: string
                    description: The two-letter continent code.
                    example: NA
                  country:
                    type: string
                    description: The full name of the country.
                    example: Canada
                  countryCode:
                    type: string
                    description: The two-letter country code.
                    example: CA
                  region:
                    type: string
                    description: The region code.
                    example: QC
                  regionName:
                    type: string
                    description: The full name of the region.
                    example: Quebec
                  city:
                    type: string
                    description: The name of the city.
                    example: Montreal
                  district:
                    type: string
                    description: The district name, if available.
                    example: ''
                  zip:
                    type: string
                    description: The postal code associated with the IP.
                    example: H2Y
                  lat:
                    type: number
                    description: The latitude coordinate.
                    example: 45.5088
                  lon:
                    type: number
                    description: The longitude coordinate.
                    example: -73.5878
                  timezone:
                    type: string
                    description: The timezone of the IP location.
                    example: America/Toronto
                  offset:
                    type: integer
                    description: The time offset in seconds from UTC.
                    example: -18000
                  currency:
                    type: string
                    description: The currency code of the country.
                    example: CAD
                  isp:
                    type: string
                    description: The name of the Internet Service Provider.
                    example: Bell Canada
                  org:
                    type: string
                    description: The organization that owns the IP address, if available.
                    example: Bell Canada
                  as:
                    type: string
                    description: The Autonomous System (AS) number.
                    example: AS577 Bell Canada
                  query:
                    type: string
                    description: The queried IP address.
                    example: 207.134.47.124
        '403':
          description: Bad request due to invalid parameters.
        '407':
          description: Unauthorized access due to invalid credentials.
        '500':
          description: Internal server error.
      x-codeSamples:
        - lang: bash
          label: Example curl request
          source: |
            curl --request GET \
                 -x "http://proxy.geonode.io:<port>" \
                 --user "<geonode_username>-country-<country_code>:<geonode_password>" \
                 --url "http://ip-api.com/json"

````