Filter inputs

NameTypeDescriptionMandatoryAvailable from versionAdditional information
BrickIdsGuid[]Filter by array of BrickIds.
2.30 
IsoCodesstring[]Filter by IsoCodes (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
2.30Example of IsoCode: "SE", "NO", "FI".

Response rows (Array) inherits from EntityBase

NameTypeDescriptionAvailable from version
BrickIdGuidThe BrickId (unique id).2.30 
IsoCodestringThe IsoCode of the country2.30
FullNameSwedishstringThe full name of the country in Swedish.2.30
FullNameEnglishstringThe full name of the country in English2.30

Code examples

var request = new GetCountryRequest();
 
request.Credentials = CorrectCredentials();
request.identify = CorrectIdentify();
request.Fields = new GetCountryFields();
request.Args = new GetCountryArgs
{
	IsoCodes = new[] { "SE" }
};
 
var countriesResponse = client.GetCountries(request);

foreach (var country in countriesResponse.Result)
{
    Console.WriteLine($"BrickId: {country.BrickId}");
    Console.WriteLine($"IsoCode: {country.IsoCode}");
    Console.WriteLine($"FullNameSwedish: {country.FullNameSwedish}");
    Console.WriteLine($"FullNameEnglish: {country.FullNameEnglish}");
}