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/145/?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/145/?format=api",
    "code": "145",
    "name": "Western Asia",
    "super_territories": [
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/142/?format=api"
    ],
    "sub_territories": [
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/YE/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/TR/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/SY/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/SA/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/QA/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/PS/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/OM/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/LB/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/KW/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/JO/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/IQ/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/IL/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/GE/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/CY/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/BH/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/AZ/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/AM/?format=api",
        "https://www.alphabet-type.com/tools/api/v1.0/localisation/territory/AE/?format=api"
    ],
    "territorywritingsystem_set": [],
    "territory_type": "Sub-Continent",
    "gdp": 0,
    "population": 0,
    "literacyPercent": 0.0
}