--- title: "Get-NectarExtCountries" slug: "get-nectarextcountries" updated: 2023-05-15T17:41:30Z published: 2023-05-15T17:41:30Z canonical: "support.nectarcorp.com/get-nectarextcountries" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.nectarcorp.com/llms.txt > Use this file to discover all available pages before exploring further. # Get-NectarExtCountries Returns a list of 2-letter country codes found via IP geolocation ## Description Most call records include the user's external IP address. Nectar DXP does a geo-IP lookup of the external IP address and stores the geographic information for later use. This command will return all the countries where Nectar DXP was able to successfully geolocate an external IP address. ## Syntax ``` Get-NectarExtCountries -SearchQuery -TenantName -ResultSize ``` ## Examples ### Example 1 ``` Get-NectarExtCountries ``` Returns all country codes sorted alphabetically. ### Example 2 ``` Get-NectarExtCountries -SearchQuery US ``` Returns all country codes that contain the letters 'US' ## Parameters **-SearchQuery ** The 2-letter country code to locate. Can be a partial match, and may return more than one entry. | Parameter | Value | | --- | --- | | Required | false | | Position | 1 | | Required | false | | Default Value | None | | Accept pipeline input? | false | | Accept wildcard characters? | false | **-TenantName ** The name of the Nectar DXP tenant. Used in multi-tenant configurations. | Parameter | Value | | --- | --- | | Required | false | | Position | 2 | | Required | false | | Default Value | None | | Accept pipeline input? | true (ByPropertyName) | | Accept wildcard characters? | false | **-ResultSize ** The number of results to return. Defaults to 1000. | Parameter | Value | | --- | --- | | Required | false | | Position | 3 | | Required | false | | Default Value | 1000 | | Accept pipeline input? | false | | Accept wildcard characters? | false |