How to Get Store VAT number Magento 2?

You can get the Store VAT number from the Store configuration section in Magento Admin Panel.

You can retrieve the store Vat number from the admin panel wit below steps,
1. Stores -> Configuration -> General -> General
2. Store Information -> VAT NUMBER.

Get Default Country code from the current website Magento 2.

Get Default Country Value from the Current Website Using Programmatic way in Magento 2.

You can get the value of default country from the admin panel,
1. Stores -> Configuration -> General -> General
2. Country Options Tab -> Default Country.
Check the Selected Country value for the current website by set Store view as website scope.

Retrieve Store data by code programmatically Magento 2.

You can retrieve the store details by store code using Magento 2.

You required only store code to fetch data of the store. If store code is not valid throws the error,

The store that was requested wasn’t found. Verify the store and try again2.