W3GEO - What is it?

W3Geo API will provide you the list of all the states, cities, areas and landmarks of India with Postal codes, STD codes and GEO Points Latitude and Longitude.

Get API Key Free
How to use it?

Get States

Get All the states of India.


Url: http://api.w3hills.com/w3geo/get

HTTP Method: GET

Parameters:

Name Dummy Value
type states (optional)
api_key 632A6072-3E8C-332A-180A-A2DE491D7818

Response: (JSON Format)

{
    "status": true,
    "states": [
    {
        "id": 34,
        "name": "Andaman And Nicobar Islands",
        "lat": "11.74008670",
        "lng": "92.65864010"
    }
    ....
    ....
}

Get Cities

Get All the cities of India using state id.


Url: http://api.w3hills.com/w3geo/get

HTTP Method: GET

Parameters:

Name Dummy Value
state_id 3
type cities
api_key 632A6072-3E8C-332A-180A-A2DE491D7818

Response: (JSON Format)

{
    "status": true,
    "cities": [
        {
            "id": 39,
            "name": "Achhnera",
            "lat": "27.17736950",
            "lng": "77.75379130"
        },
        ....
        ....
}

Get Areas

Get All the areas of India using city id.


Url: http://api.w3hills.com/w3geo/get

HTTP Method: GET

Parameters:

Name Dummy Value
city_id 65
type areas
api_key 632A6072-3E8C-332A-180A-A2DE491D7818

Response: (JSON Format)

{
    "status": true,
    "areas": [
        {
            "id": 1246,
            "name": "Achalpur City",
            "lat": "21.25634341",
            "lng": "77.50885181",
            "postal_code": "444806"
        },
        ....
        ....
}
Copyright © 2014-2019 W3hills.com. All Rights Reserved.

Contact: contact@dsingh.me