GET api/categories/local/{countryCode}/{languageCode} Authentication required

Use this method to fetch all the Local categories available for a specified country. Note that some Local categories might not have a description in some languages

Request

URI Parameters

NameDescriptionTypeAdditional information
countryCode

Country represented by its ISO 3166-1 alpha-2 Code (2 chars long)

string

Required

languageCode

Language represented by its ISO 639-1 Code (2 chars long)

string

Required

Response

Returns all the Local categories in a specific language for a specific country

Output : array of objects (See Model)

Ouput Sample

  • application/json, text/json :
  • [ { "code": "017116", "name": "Restaurants", "type": "Infobel", "level": 0 }, { "code": "017116", "name": "Restaurants", "type": "Infobel", "level": 0 } ]
  • application/xml, text/xml :
  • <ArrayOfCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Category> <Code>017116</Code> <CountryCode i:nil="true" /> <Level>0</Level> <Name>Restaurants</Name> <ParentCode i:nil="true" /> <Type>Infobel</Type> </Category> <Category> <Code>017116</Code> <CountryCode i:nil="true" /> <Level>0</Level> <Name>Restaurants</Name> <ParentCode i:nil="true" /> <Type>Infobel</Type> </Category> </ArrayOfCategory>