Geographic Data
Countries, cities, townships, districts (public)
Get all available countries.
Page number (starts from 1)
1Example: 1Number of records per page
10Example: 10Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: List of countries
GET /address/country/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
List of countries
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"pk": 1,
"name": "Türkiye",
"code": "TR",
"is_active": true,
"translations": {}
},
{
"pk": 2,
"name": "United States",
"code": "US",
"is_active": true,
"translations": {}
}
]
}Get cities, optionally filtered by country.
Country ID
Page number (starts from 1)
1Example: 1Number of records per page
10Example: 10Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: List of cities
GET /address/city/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
List of cities
{
"count": 1,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"pk": 1,
"is_active": true,
"name": "text",
"country": 1,
"translations": {},
"priority": 1,
"postcode": "text"
}
]
}View details of a specific city.
Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: City details
City not found
GET /address/city/{pk}/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"pk": 1,
"is_active": true,
"name": "text",
"country": 1,
"translations": {},
"priority": 1,
"postcode": "text"
}Search cities by name (minimum 2 characters).
Note: Query parameter q is mapped internally to name.
City name to search (minimum 2 characters)
Filter by country ID
Page number (starts from 1)
1Example: 1Number of records per page
10Example: 10Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: Matching cities
Query too short (minimum 2 characters)
GET /address/city/search/?q=text HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"count": 1,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"pk": 1,
"is_active": true,
"name": "text",
"country": 1,
"translations": {},
"priority": 1,
"postcode": "text"
}
]
}Get townships (districts of cities), optionally filtered by city.
City ID
Page number (starts from 1)
1Example: 1Number of records per page
10Example: 10Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: List of townships
GET /address/township/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
List of townships
{
"count": 1,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"pk": 1,
"is_active": true,
"name": "text",
"city": 1,
"postcode": "text",
"translations": {}
}
]
}Get districts (neighborhoods), optionally filtered by township.
Township ID
Page number (starts from 1)
1Example: 1Number of records per page
10Example: 10Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: List of districts
GET /address/district/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
List of districts
{
"count": 1,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"pk": 1,
"is_active": true,
"name": "text",
"city": 1,
"township": 1,
"postcode": "text",
"translations": {}
}
]
}Last updated
Was this helpful?

