Get Stores, Countries, and Languages via REST API in Magento 2

apimagento2rest

Is there is a built in rest API to get :

  • Stores Countries.
  • Stores Languages.

Please help.

Best Answer

We should try:

1) Store Countries.

 GET /V1/directory/countries
 GET /V1/directory/countries/:countryId

Take a look: vendor/magento/module-directory/Model/CountryInformationAcquirer.php

2) Store Language.

GET  /V1/store/storeConfigs

Take a look: vendor/magento/module-store/Model/Service/StoreConfigManager.php