⚠️ Deprecated
This endpoint is deprecated and will be removed in the future. Use its API v1 equivalent for new integrations.
Deprecated
Get Counties
GET
/county/all
Lists counties/districts by city ID. No token required.
Parameters
Header Parameters
Accept-Language
Response language: tr or en. Sets error messages and language-dependent names; tr is used when no recognized language is given.
Typestring
Examples
"tr""en"Query Parameters
cityId*
City ID See for details
Typeinteger
RequiredExample
98273Minimum
1search
Counties whose ID equals this value or whose name contains it
Typestring
Example
"CEY"sortBy
Sort field
Typestring
Valid values
"id""name"Default
"name"sortOrder
Sort order: ASC / DESC or asc / desc
Typestring
Valid values
"ASC""DESC"Default
"ASC"Responses
Counties retrieved successfully
application/json
JSON
[
{
"id": 43,
"name": "ALADAG"
}
]
