Server countries

Warning: The API documentation here is for Managed Game Server Hosting (Clanforge). If you’re using Game Server Hosting (Multiplay), refer to the Game Server API documentation.

Return a list of countries relating to servers in the given accountserviceid.

https://api.multiplay.co.uk/cfp/v1/server/countries

METHOD

CONTENT TYPE
GETapplication/x-www-form-urlencoded

Request parameters

VARIABLEDESCRIPTIONOPTIONAL
accountserviceidThe <accountserviceid> parameter accepts an account service ID (ASID) associated with the specified resource. The credentials in the request header must have access to the ASID to perform the request.No

Response fields

FieldTypeDescriptionOptional
countriesarrayList of country objectsNo

Country object

FieldTypeDescriptionOptional
codestringCountry codeNo
countryidintegerID of the countryNo
namestringName of the countryNo

Example request

curl --location --request GET 'https://api.multiplay.co.uk/cfp/v1/server/countries?accountserviceid=<accountserviceid>' \
--header 'Authorization: Basic YOUR_AUTH_CREDENTIALS'

Example response

{
    "countries": [
        {
            "code": <code>,
            "countryid": <countryid>,
            "name": "<name>
        },
        ...
   }
}