We are using cookies in our website in order to offer better service to you. You allow us to use cookies by continuing to use our internet website. You can reach the detailed information on cookies from our Privacy Policy and Cookies Policy.
X
Home > Api Products > Regions

Regions

Description

This API returns details of the provinces and districts.​

How it Works​

Province List Request

GET {API_HOST}/api/v1/provinces/

Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET} 
Content-Type: application/json

Province Request

GET {API_HOST}/api/v1/provinces/34

Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET} 
Content-Type: application/json

District Request

GET {API_HOST}/api/v1/provinces/34/districts

Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET} 
Content-Type: application/json​


Sample Response

Province List Response

{
    "data": [
        .
        .
        . 
        {
            "code": "35",
            "name": "İZMİR",
            "calling_code": ["232"]
        }, {
            "code": "34",
            "name": "İSTANBUL",
            "calling_code": ["216", "212"]
        }, {
            "code": "33",
            "name": "MERSİN",
            "calling_code": ["324"]
        }, {
            "code": "32",
            "name": "ISPARTA",
            "calling_code": ["246"]
        }
        .
        .
        .
    ]
}

Province Response

{
    "data": {
        "code": "34",
        "name": "İSTANBUL",
        "calling_code": ["216", "212"]
    }
}

District Response

{

    "data": [

        .

        .

        .

        {

            "code": "1237",

            "name": "ÇATALCA"

        }, {

            "code": "1708",

            "name": "ÜSKÜDAR"

        }, {

            "code": "1835",

            "name": "PENDİK"

        }, {

            "code": "1103",

            "name": "ADALAR "

        }, {

            "code": "1183",

            "name": "BEŞİKTAŞ"

        }

        .

        .

        .

    ]

}​​