What's your biggest current challenge? Have your say in Community Polls along the right column.

List of countries using Graphql

List of countries using Graphql

wayforward
Shopify Partner
42 4 6

Hi,

 

Is there a way to get a list of countries using graphql without using any external API?

 

Thanks!

Replies 6 (6)

BSSCommerce-TC
Shopify Partner
225 49 51

Hi @wayforward ,

This might be what you are looking for https://shopify.dev/docs/api/storefront/2024-07/queries/localization

 

query AllLocalizations @inContext(language: EN) {
  localization {
    availableCountries {
      isoCode
      name
      availableLanguages {
        isoCode
        endonymName
      }
    }
  }
}

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
wayforward
Shopify Partner
42 4 6

this is for storefront.

 

Looking it for admin - https://shopify.dev/docs/api/admin-graphql/

BSSCommerce-TC
Shopify Partner
225 49 51

Hi @wayforward ,

It's same. Is this what you were looking for? It return a list of available locales.

https://shopify.dev/docs/api/admin-graphql/2024-07/queries/availableLocales

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
wayforward
Shopify Partner
42 4 6

these are languages I guess

wayforward_0-1720586245406.png

 

NeilMaggy
Shopify Partner
40 2 6

I got them from the "Create Order" country drop down:

 

Afghanistan

Åland Islands

Albania

Algeria

Andorra

Angola

Anguilla

Antigua & Barbuda

Argentina

Armenia

Aruba

Ascension Island

Australia

Austria

Azerbaijan

Bahamas

Bahrain

Bangladesh

Barbados

Belarus

Belgium

Belize

Benin

Bermuda

Bhutan

Bolivia

Bosnia & Herzegovina

Botswana

Brazil

British Indian Ocean Territory

British Virgin Islands

Brunei

Bulgaria

Burkina Faso

Burundi

Cambodia

Cameroon

Canada

Cape Verde

Caribbean Netherlands

Cayman Islands

Central African Republic

Chad

Chile

China

Christmas Island

Cocos (Keeling) Islands

Colombia

Comoros

Congo - Brazzaville

Congo - Kinshasa

Cook Islands

Costa Rica

Croatia

Curaçao

Cyprus

Czechia

Côte d’Ivoire

Denmark

Djibouti

Dominica

Dominican Republic

Ecuador

Egypt

El Salvador

Equatorial Guinea

Eritrea

Estonia

Eswatini

Ethiopia

Falkland Islands

Faroe Islands

Fiji

Finland

France

French Guiana

French Polynesia

French Southern Territories

Gabon

Gambia

Georgia

Germany

Ghana

Gibraltar

Greece

Greenland

Grenada

Guadeloupe

Guatemala

Guernsey

Guinea

Guinea-Bissau

Guyana

Haiti

Honduras

Hong Kong SAR

Hungary

Iceland

India

Indonesia

Iraq

Ireland

Isle of Man

Israel

Italy

Jamaica

Japan

Jersey

Jordan

Kazakhstan

Kenya

Kiribati

Kosovo

Kuwait

Kyrgyzstan

Laos

Latvia

Lebanon

Lesotho

Liberia

Libya

Liechtenstein

Lithuania

Luxembourg

Macao SAR

Madagascar

Malawi

Malaysia

Maldives

Mali

Malta

Martinique

Mauritania

Mauritius

Mayotte

Mexico

Moldova

Monaco

Mongolia

Montenegro

Montserrat

Morocco

Mozambique

Myanmar (Burma)

Namibia

Nauru

Nepal

Netherlands

New Caledonia

New Zealand

Nicaragua

Niger

Nigeria

Niue

Norfolk Island

North Macedonia

Norway

Oman

Pakistan

Palestinian Territories

Panama

Papua New Guinea

Paraguay

Peru

Philippines

Pitcairn Islands

Poland

Portugal

Qatar

Réunion

Romania

Russia

Rwanda

Samoa

San Marino

São Tomé Príncipe

Saudi Arabia

Senegal

Serbia

Seychelles

Sierra Leone

Singapore

Sint Maarten

Slovakia

Slovenia

Solomon Islands

Somalia

South Africa

South Georgia & South Sandwich Islands

South Korea

South Sudan

Spain

Sri Lanka

St. Barthélemy

St. Helena

St. Kitts & Nevis

St. Lucia

St. Martin

St. Pierre & Miquelon

St. Vincent & Grenadines

Sudan

Suriname

Svalbard & Jan Mayen

Sweden

Switzerland

Taiwan

Tajikistan

Tanzania

Thailand

Timor-Leste

Togo

Tokelau

Tonga

Trinidad & Tobago

Tristan da Cunha

Tunisia

Türkiye

Turkmenistan

Turks & Caicos Islands

Tuvalu

US Outlying Islands

Uganda

Ukraine

United Arab Emirates

United Kingdom

United States

Uruguay

Uzbekistan

Vanuatu

Vatican City

Venezuela

Vietnam

Wallis & Futuna

Western Sahara

Yemen

Zambia Zimbabwe

 

wayforward
Shopify Partner
42 4 6

can you share the graphiql query?