API Documentation

API endpoint that allows details of a Territory to be viewed.

Test the API

Make a GET request (json)

Make a GET request (api)

Request

GET /tools/api/v1.0/localisation/territory/014/?format=api

Response

HTTP 200 OK
      Allow: GET, HEAD, OPTIONS
      Content-Type: application/json
      Vary: Accept
      {
    "url": "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/014/?format=api",
    "code": "014",
    "name": "Eastern Africa",
    "super_territories": [
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/002/?format=api"
    ],
    "sub_territories": [
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/ZW/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/ZM/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/YT/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/UG/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/TZ/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/SO/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/SC/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/RW/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/RE/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/MZ/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/MW/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/MU/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/MG/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/KM/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/KE/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/ET/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/ER/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/DJ/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/BI/?format=api"
    ],
    "territorywritingsystem_set": [],
    "territory_type": "Sub-Continent",
    "gdp": 0,
    "population": 0,
    "literacyPercent": 0.0
}