Get details about a particular country and its address format customized for different business scenarios.
Arguments
countryIsoCode
String!Required
The ISO 3166-1 alpha-2 code representing the country (e.g., "IN" for India, "US" for the United States).
Response
currency
CountryCurrencyInfoDetails about the country’s currency, including code, name, and symbol (e.g., {"code": "USD", "name": "United States Dollar", "symbol": "$"}).
display_name
StringUser-friendly version of the geographical data, which may be more descriptive or formatted differently.
fields
CountryFieldsAddress-related information in a country.
hierarchy
[CountryHierarchy]Levels within the country (e.g., states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"}, {"name": "City", "slug": "city"}]).
iso2
StringTwo-letter ISO code representing the country.
iso3
StringThree-letter ISO code representing the country.
name
StringThe name of the packaging.
phone_code
StringInternational dialing code for the country (e.g., "+1").
timezones
[String]List of time zones used in the country (e.g., ["America/New_York", "America/Los_Angeles"]).
id
StringUnique identifier for the country.
latitude
StringGeographical latitude of the country.
longitude
StringGeographical longitude of the country.
type
StringIndicates the type of object.
Query
1query country($countryIsoCode: String!) {2 country(countryIsoCode: $countryIsoCode) {3 currency {4 code5 symbol6 name7 }8 display_name9 fields {10 serviceability_fields11 }12 hierarchy {13 name14 slug15 }16 iso217 iso318 name19 phone_code20 timezones21 id22 latitude23 longitude24 type25 }26}
Try it
Input Variables
1{2 "countryIsoCode": "countryIsoCode"3}
Response
1{2 "country": {3 "currency": {4 "code": "code",5 "symbol": "symbol",6 "name": "A name"7 },8 "display_name": "display_name",9 "fields": {10 "serviceability_fields": [11 "serviceability_fields"12 ]13 },14 "hierarchy": [15 {16 "name": "A name",17 "slug": "slug"18 }19 ],20 "iso2": "iso2",21 "iso3": "iso3",22 "name": "A name",23 "phone_code": "phone_code",24 "timezones": [25 "timezones"26 ],27 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",28 "latitude": "latitude",29 "longitude": "longitude",30 "type": "type"31 }32}
Was this section helpful?