# 🌐 Geo Data Lookup API
## Overview
**Geo Data Lookup API** is a powerful and reliable RESTful API that provides extensive geo-data on over 249 countries and territories. It gives developers the ability to retrieve detailed and up-to-date geographic, political, and cultural information for use in applications ranging from logistics to travel, commerce, and education.
---
## 🚀 Features
- 🌍 Country names, capitals, phone codes, flags
- 💱 Currency codes and symbols
- 🏙️ States and cities
- 📍 Zip code and location lookups
- 🌐 Emoji flag support for countries
---
### Supported Countries for Zip Code Data
Algeria, Andorra, Argentina, Armenia, Australia, Austria, Azerbaijan, Bangladesh, Belarus, Belgium, Brazil, Bulgaria, Canada, Chile, Colombia, Czech Republic, France, Germany, Guatemala, Haiti, Hungary, Iceland, India, Italy, Mexico, Moldova, Morocco, Philippines, Poland, Romania, Russia, San Marino, Serbia, Singapore, Slovakia, Slovenia, Spain, Sri Lanka, Sweden, Switzerland, Thailand, United Kingdom, United States, Uruguay.
## 📌 API Endpoints
All endpoints use the **GET** method.
### 1. `CountriesList`
- **Endpoint**: `/CountriesList`
- **Description**: Retrieves a full list of all countries with available data.
---
### 2. `Capital By Country`
- **Endpoint**: `/CapitalByCountry`
- **Query Parameter**:
- `country`: Name of the country (e.g., `France`)
- **Description**: Returns the capital city of the specified country.
---
### 3. `Phone Code By Country`
- **Endpoint**: `/PhoneCodeByCountry`
- **Query Parameter**:
- `country`: Name of the country (e.g., `India`)
- **Description**: Returns the international phone code of the specified country.
---
### 4. `Currency By Country`
- **Endpoint**: `/CurrencyByCountry`
- **Query Parameter**:
- `country`: Name of the country
- **Description**: Returns the currency code and symbol of the specified country.
---
### 5. `emoji Flag By Country`
- **Endpoint**: `/emojiFlagByCountry`
- **Query Parameter**:
- `country`: Name of the country
- **Description**: Returns the emoji representation of the country's flag.
---
### 6. `states By Country`
- **Endpoint**: `/statesByCountry`
- **Query Parameter**:
- `country`: Name of the country
- **Description**: Returns a list of states or provinces in the given country.
---
### 7. `cities By State`
- **Endpoint**: `/citiesByState`
- **Query Parameters**:
- `state`: Name of the state
- **Description**: Returns cities within the given state and country.
---
### 8. `Location By City`
- **Endpoint**: `/LocationByCity`
- **Query Parameters**:
- `city`: Name of the city
- **Description**: Returns location details (like lat/lon) for a given city.
---
### 9. `ZipCode By City`
- **Endpoint**: `/ZipCodeByCity`
- **Query Parameters**:
- `city`: Name of the city
- **Description**: Returns zip/postal codes associated with a given city.
---
List of Countries
[
{
"countryID": "1",
"countryName": "Afghanistan",
"CountryCode": "AF",
"numericCode": "004",
"nativeName": "\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646",
"Region": "Asia",
"SubRegion": "Southern Asia"
},
{
"countryID": "2",
"countryName": "Aland Islands",
"CountryCode": "AX",
"numericCode": "248",
"nativeName": "\u00c5land",
"Region": "Europe",
"SubRegion": "Northern Europe"
},
{
"countryID": "3",
"countryName": "Albania",
"CountryCode": "AL",
"numericCode": "008",
"nativeName": "Shqip\u00ebria",
"Region": "Europe",
"SubRegion": "Southern Europe"
},
{
"countryID": "4",
"countryName": "Algeria",
"CountryCode": "DZ",
"numericCode": "012",
"nativeName": "\u0627\u0644\u062c\u0632\u0627\u0626\u0631",
"Region": "Africa",
"SubRegion": "Northern Africa"
},
{
"countryID": "5",
"countryName": "American Samoa",
"CountryCode": "AS",
"numericCode": "016",
"nativeName": "American Samoa",
"Region": "Oceania",
"SubRegion": "Polynesia"
},
{
"countryID": "6",
"countryName": "Andorra",
"CountryCode": "AD",
"numericCode": "020",
"nativeName": "Andorra",
"Region": "Europe",
"SubRegion": "Southern Europe"
},
{
"countryID": "7",
"countryName": "Angola",
"CountryCode": "AO",
"numericCode": "024",
"nativeName": "Angola",
"Region": "Africa",
"SubRegion": "Middle Africa"
},
{
"countryID": "8",
"countryName": "Anguilla",
"CountryCode": "AI",
"numericCode": "660",
"nativeName": "Anguilla",
"Region": "Americas",
"SubRegion": "Caribbean"
},
{
"countryID": "9",
"countryName": "Antarctica",
"CountryCode": "AQ",
"numericCode": "010",
"nativeName": "Antarctica",
"Region": "Antarctica",
"SubRegion": "Antarctica"
},
{
"countryID": "10",
"countryName": "Antigua And Barbuda",
"CountryCode": "AG",
"numericCode": "028",
"nativeName": "Antigua and Barbuda",
"Region": "Americas",
"SubRegion": "Caribbean"
},
{
"countryID": "11",
"countryName": "Argentina",
"CountryCode": "AR",
"numericCode": "032",
"nativeName": "Argentina",
"Region": "Americas",
"SubRegion": "South America"
},
{
"countryID": "12",
"countryName": "Armenia",
"CountryCode": "AM",
"numericCode": "051",
"nativeName": "\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576",
"Region": "Asia",
"SubRegion": "Western Asia"
},
{
"countryID": "13",
"countryName": "Aruba",
"CountryCode": "AW",
"numericCode": "533",
"nativeName": "Aruba",
"Region": "Americas",
"SubRegion": "Caribbean"
},
{
"countryID": "14",
"countryName": "Australia",
"CountryCode": "AU",
"numericCode": "036",
"nativeName": "Australia",
"Region": "Oceania",
"SubRegion": "Australia and New Zealand"
},
{
"countryID": "15",
"countryName": "Austria",
"CountryCode": "AT",
"numericCode": "040",
"nativeName": "\u00d6sterreich",
"Region": "Europe",
"SubRegion": "Western Europe"
},
{
"countryID": "16",
"countryName": "Azerbaijan",
"CountryCode": "AZ",
"numericCode": "031",
"nativeName": "Az\u0259rbaycan",
"Region": "Asia",
"SubRegion": "Western Asia"
},
{
"countryID": "17",
"countryName": "Bahamas The",
"CountryCode": "BS",
"numericCode": "044",
"nativeName": "Bahamas",
"Region": "Americas",
"SubRegion": "Caribbean"
},
{
"countryID": "18",
"countryName": "Bahrain",
"CountryCode": "BH",
"numericCode": "048",
"nativeName": "\u200f\u0627\u0644\u0628\u062d\u0631\u064a\u0646",
"Region": "Asia",
"SubRegion": "Western Asia"
},
{
"countryID": "19",
"countryName": "Bangladesh",
"CountryCode": "BD",
"numericCode": "050",
"nativeName": "Bangladesh",
"Region": "Asia",
"SubRegion": "Southern Asia"
},
{
"countryID": "20",
"countryName": "Barbados",
"CountryCode": "BB",
"numericCode": "052",
"nativeName": "Barbados",
"Region": "Americas",
"SubRegion": "Caribbean"
},
{
"countryID": "21",
"countryName": "Belarus",
"CountryCode": "BY",
"numericCode": "112",
"nativeName": "\u0411\u0435\u043b\u0430\u0440\u0443\u0301\u0441\u044c",
"Region": "Europe",
"SubRegion": "Eastern Europe"
},
{
"countryID": "22",
"countryName": "Belgium",
"CountryCode": "BE",
"numericCode": "056",
"nativeName": "Belgi\u00eb",
"Region": "Europe",
"SubRegion": "Western Europe"
},
{
"countryID": "23",
"countryName": "Belize",
"CountryCode": "BZ",
"numericCode": "084",
"nativeName": "Belize",
"Region": "Americas",
"SubRegion": "Central America"
},
{
"countryID": "24",
"countryName": "Benin",
"CountryCode": "BJ",
"numericCode": "204",
"nativeName": "B\u00e9nin",
"Region": "Africa",
"SubRegion": "Western Africa"
},
{
"countryID": "25",
"countryName": "Bermuda",
"CountryCode": "BM",
"numericCode": "060",
"nativeName": "Bermuda",
"Region": "Americas",
"SubRegion": "Northern America"
},
{
"countryID": "26",
"countryName": "Bhutan",
"CountryCode": "BT",
"numericCode": "064",
"nativeName": "\u02bcbrug-yul",
"Region": "Asia",
"SubRegion": "Southern Asia"
},
{
"countryID": "27",
"countryName": "Bolivia",
"CountryCode": "BO",
"numericCode": "068",
"nativeName": "Bolivia",
"Region": "Americas",
"SubRegion": "South America"
},
{
"countryID": "28",
"countryName": "Bonaire, Sint Eustatius and Saba",
"CountryCode": "BQ",
"numericCode": "535",
"nativeName": "Caribisch Nederland",
"Region": "Americas",
"SubRegion": "Caribbean"
},
{
"countryID": "29",
"countryName": "Bosnia and Herzegovina",
"CountryCode": "BA",
"numericCode": "070",
"nativeName": "Bosna i Hercegovina",
"Region": "Europe",
"SubRegion": "Southern Europe"
},
{
"countryID": "30",
"countryName": "Botswana",
"CountryCode": "BW",
"numericCode": "072",
"nativeName": "Botswana",
"Region": "Africa",
"SubRegion": "Southern Africa"
},
{
"countryID": "31",
"countryName": "Bouvet Island",
"CountryCode": "BV",
"numericCode": "074",
"nativeName": "Bouvet\u00f8ya",
"Region": "Antarctica",
"SubRegion": "South Atlantic Ocean"
},
{
"countryID": "32",
"countryName": "Brazil",
"CountryCode": "BR",
"numericCode": "076",
"nativeName": "Brasil",
"Region": "Americas",
"SubRegion": "South America"
},
{
"countryID": "33",
"countryName": "British Indian Ocean Territory",
"CountryCode": "IO",
"numericCode": "086",
"nativeName": "British Indian Ocean Territory",
"Region": "Africa",
"SubRegion": "Eastern Africa"
},
{
"countryID": "34",
"countryName": "Brunei",
"CountryCode": "BN",
"numericCode": "096",
"nativeName": "Negara Brunei Darussalam",
"Region": "Asia",
"SubRegion": "South-Eastern Asia"
},
{
"countryID": "35",
"countryName": "Bulgaria",
"CountryCode": "BG",
"numericCode": "100",
"nativeName": "\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",
"Region": "Europe",
"SubRegion": "Eastern Europe"
},
{
"countryID": "36",
"countryName": "Burkina Faso",
"CountryCode": "BF",
"numericCode": "854",
"nativeName": "Burkina Faso",
"Region": "Africa",
"SubRegion": "Western Africa"
},
{
"countryID": "37",
"countryName": "Burundi",
"CountryCode": "BI",
"numericCode": "108",
"nativeName": "Burundi",
"Region": "Africa",
"SubRegion": "Eastern Africa"
},
{
"countryID": "38",
"countryName": "Cambodia",
"CountryCode": "KH",
"numericCode": "116",
"nativeName": "K\u00e2mp\u016dch\u00e9a",
"Region": "Asia",
"SubRegion": "South-Eastern Asia"
},
{
"countryID": "39",
"countryName": "Cameroon",
"CountryCode": "CM",
"numericCode": "120",
"nativeName": "Cameroon",
"Region": "Africa",
"SubRegion": "Middle Africa"
},
{
"countryID": "40",
"countryName": "Canada",
"CountryCode": "CA",
"numericCode": "124",
"nativeName": "Canada",
"Region": "Americas",
"SubRegion": "Northern America"
},
{
"countryID": "41",
"countryName": "Cape Verde",
"CountryCode": "CV",
"numericCode": "132",
"nativeName": "Cabo Verde",
"Region": "Africa"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20413/countries+list' --header 'Authorization: Bearer YOUR_API_KEY'
Get Capital of coutnry .
Capital By Country - Endpoint Features
| Object | Description |
|---|---|
country |
[Required] |
[
{
"countryName": "United States",
"CountryCode": "US",
"Capital": "Washington"
}
]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20414/capital+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
Get Phone Code By Country
Phone Code By Country - Endpoint Features
| Object | Description |
|---|---|
country |
[Required] |
[
{
"CountryName": "United States",
"CountryCode": "US",
"PhoneCode": "+1"
}
]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20415/phone+code+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
Get Currency By Country
Currency By Country - Endpoint Features
| Object | Description |
|---|---|
country |
[Required] |
[
{
"CountryName": "United States",
"CountryCode": "US",
"Currency": "USD",
"CurrencySymbol": "$"
}
]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20416/currency+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
Get Emoji Flag By Country
Emoji Flag By Country - Endpoint Features
| Object | Description |
|---|---|
country |
[Required] |
[
{
"CountryName": "United States",
"CountryCode": "US",
"emojiU": "U+1F1FA U+1F1F8"
}
]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20417/emoji+flag+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
Get States by Country
States By Country - Endpoint Features
| Object | Description |
|---|---|
country |
[Required] |
[
{
"StateName": "Alabama",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.3182314",
"longitude": "-86.902298"
},
{
"StateName": "Alaska",
"StateCode": "AK",
"CountryCode": "US",
"latitude": "64.2008413",
"longitude": "-149.4936733"
},
{
"StateName": "American Samoa",
"StateCode": "AS",
"CountryCode": "US",
"latitude": "-14.270972",
"longitude": "-170.132217"
},
{
"StateName": "Arizona",
"StateCode": "AZ",
"CountryCode": "US",
"latitude": "34.0489281",
"longitude": "-111.0937311"
},
{
"StateName": "Arkansas",
"StateCode": "AR",
"CountryCode": "US",
"latitude": "35.20105",
"longitude": "-91.8318334"
},
{
"StateName": "Baker Island",
"StateCode": "UM-81",
"CountryCode": "US",
"latitude": "0.1936266",
"longitude": "-176.476908"
},
{
"StateName": "California",
"StateCode": "CA",
"CountryCode": "US",
"latitude": "36.778261",
"longitude": "-119.4179324"
},
{
"StateName": "Colorado",
"StateCode": "CO",
"CountryCode": "US",
"latitude": "39.5500507",
"longitude": "-105.7820674"
},
{
"StateName": "Connecticut",
"StateCode": "CT",
"CountryCode": "US",
"latitude": "41.6032207",
"longitude": "-73.087749"
},
{
"StateName": "Delaware",
"StateCode": "DE",
"CountryCode": "US",
"latitude": "38.9108325",
"longitude": "-75.5276699"
},
{
"StateName": "District of Columbia",
"StateCode": "DC",
"CountryCode": "US",
"latitude": "38.9071923",
"longitude": "-77.0368707"
},
{
"StateName": "Florida",
"StateCode": "FL",
"CountryCode": "US",
"latitude": "27.6648274",
"longitude": "-81.5157535"
},
{
"StateName": "Georgia",
"StateCode": "GA",
"CountryCode": "US",
"latitude": "32.1656221",
"longitude": "-82.9000751"
},
{
"StateName": "Guam",
"StateCode": "GU",
"CountryCode": "US",
"latitude": "13.444304",
"longitude": "144.793731"
},
{
"StateName": "Hawaii",
"StateCode": "HI",
"CountryCode": "US",
"latitude": "19.8967662",
"longitude": "-155.5827818"
},
{
"StateName": "Howland Island",
"StateCode": "UM-84",
"CountryCode": "US",
"latitude": "0.8113219",
"longitude": "-176.6182736"
},
{
"StateName": "Idaho",
"StateCode": "ID",
"CountryCode": "US",
"latitude": "44.0682019",
"longitude": "-114.7420408"
},
{
"StateName": "Illinois",
"StateCode": "IL",
"CountryCode": "US",
"latitude": "40.6331249",
"longitude": "-89.3985283"
},
{
"StateName": "Indiana",
"StateCode": "IN",
"CountryCode": "US",
"latitude": "40.2671941",
"longitude": "-86.1349019"
},
{
"StateName": "Iowa",
"StateCode": "IA",
"CountryCode": "US",
"latitude": "41.8780025",
"longitude": "-93.097702"
},
{
"StateName": "Jarvis Island",
"StateCode": "UM-86",
"CountryCode": "US",
"latitude": "-0.3743503",
"longitude": "-159.9967206"
},
{
"StateName": "Johnston Atoll",
"StateCode": "UM-67",
"CountryCode": "US",
"latitude": "16.7295035",
"longitude": "-169.5336477"
},
{
"StateName": "Kansas",
"StateCode": "KS",
"CountryCode": "US",
"latitude": "39.011902",
"longitude": "-98.4842465"
},
{
"StateName": "Kentucky",
"StateCode": "KY",
"CountryCode": "US",
"latitude": "37.8393332",
"longitude": "-84.2700179"
},
{
"StateName": "Kingman Reef",
"StateCode": "UM-89",
"CountryCode": "US",
"latitude": "6.383333",
"longitude": "-162.416667"
},
{
"StateName": "Louisiana",
"StateCode": "LA",
"CountryCode": "US",
"latitude": "30.9842977",
"longitude": "-91.9623327"
},
{
"StateName": "Maine",
"StateCode": "ME",
"CountryCode": "US",
"latitude": "45.253783",
"longitude": "-69.4454689"
},
{
"StateName": "Maryland",
"StateCode": "MD",
"CountryCode": "US",
"latitude": "39.0457549",
"longitude": "-76.6412712"
},
{
"StateName": "Massachusetts",
"StateCode": "MA",
"CountryCode": "US",
"latitude": "42.4072107",
"longitude": "-71.3824374"
},
{
"StateName": "Michigan",
"StateCode": "MI",
"CountryCode": "US",
"latitude": "44.3148443",
"longitude": "-85.6023643"
},
{
"StateName": "Midway Atoll",
"StateCode": "UM-71",
"CountryCode": "US",
"latitude": "28.2072168",
"longitude": "-177.3734926"
},
{
"StateName": "Minnesota",
"StateCode": "MN",
"CountryCode": "US",
"latitude": "46.729553",
"longitude": "-94.6858998"
},
{
"StateName": "Mississippi",
"StateCode": "MS",
"CountryCode": "US",
"latitude": "32.3546679",
"longitude": "-89.3985283"
},
{
"StateName": "Missouri",
"StateCode": "MO",
"CountryCode": "US",
"latitude": "37.9642529",
"longitude": "-91.8318334"
},
{
"StateName": "Montana",
"StateCode": "MT",
"CountryCode": "US",
"latitude": "46.8796822",
"longitude": "-110.3625658"
},
{
"StateName": "Navassa Island",
"StateCode": "UM-76",
"CountryCode": "US",
"latitude": "18.4100689",
"longitude": "-75.0114612"
},
{
"StateName": "Nebraska",
"StateCode": "NE",
"CountryCode": "US",
"latitude": "41.4925374",
"longitude": "-99.9018131"
},
{
"StateName": "Nevada",
"StateCode": "NV",
"CountryCode": "US",
"latitude": "38.8026097",
"longitude": "-116.419389"
},
{
"StateName": "New Hampshire",
"StateCode": "NH",
"CountryCode": "US",
"latitude": "43.1938516",
"longitude": "-71.5723953"
},
{
"StateName": "New Jersey",
"StateCode": "NJ",
"CountryCode": "US",
"latitude": "40.0583238",
"longitude": "-74.4056612"
},
{
"StateName": "New Mexico",
"StateCode": "NM",
"CountryCode": "US",
"latitude": "34.5199402",
"longitude": "-105.8700901"
},
{
"StateName": "New York",
"StateCode": "NY",
"CountryCode": "US",
"latitude": "40.7127753",
"longitude": "-74.0059728"
},
{
"StateName": "North Carolina",
"StateCode": "NC",
"CountryCode": "US",
"latitude": "35.7595731",
"longitude": "-79.0192997"
},
{
"StateName": "North Dakota",
"StateCode": "ND",
"CountryCode": "US",
"latitude": "47.5514926",
"longitude": "-101.0020119"
},
{
"StateName": "Northern Mariana Islands",
"StateCode": "MP",
"CountryCode": "US",
"latitude": "15.0979",
"longitude": "145.6739"
},
{
"StateName": "Ohio",
"StateCode": "OH",
"CountryCode": "US",
"latitude": "40.4172871",
"longitude": "-82.907123"
},
{
"StateName": "Oklahoma",
"StateCode": "OK",
"CountryCode": "US",
"latitude": "35.4675602",
"longitude": "-97.5164276"
},
{
"StateName": "Oregon",
"StateCode": "OR",
"CountryCode": "US",
"latitude": "43.8041334",
"longitude": "-120.5542012"
},
{
"StateName": "Palmyra Atoll",
"StateCode": "UM-95",
"CountryCode": "US",
"latitude": "5.8885026",
"longitude": "-162.0786656"
},
{
"StateName": "Pennsylvania",
"StateCode": "PA",
"CountryCode": "US",
"latitude": "41.2033216",
"longitude": "-77.1945247"
},
{
"StateName": "Puerto Rico",
"StateCode": "PR",
"CountryCode": "US",
"latitude": "18.220833",
"longitude": "-66.590149"
},
{
"StateName": "Rhode Island",
"StateCode": "RI",
"CountryCode": "US",
"latitude": "41.5800945",
"longitude": "-71.4774291"
},
{
"StateName": "South Carolina",
"StateCode": "SC",
"CountryCode": "US",
"latitude": "33.836081",
"longitude": "-81.1637245"
},
{
"StateName": "South Dakota",
"StateCode": "SD",
"CountryCode": "US",
"latitude": "43.9695148",
"longitude": "-99.9018131"
},
{
"StateName": "Tennessee",
"StateCode": "TN",
"CountryCode": "US",
"latitude": "35.5174913",
"longitude": "-86.5804473"
},
{
"StateName": "Texas",
"StateCode": "TX",
"CountryCode": "US",
"latitude": "31.9685988",
"longitude": "-99.9018131"
},
{
"StateName": "United States Minor Outlying Islands",
"StateCode": "UM",
"CountryCode": "US",
"latitude": "19.2823192",
"longitude": "166.647047"
},
{
"StateName": "United States Virgin Islands",
"StateCode": "VI",
"CountryCode": "US"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20418/states+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
Get Cities by State.
Cities By State - Endpoint Features
| Object | Description |
|---|---|
state |
[Required] |
[
{
"CityName": "Abbeville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.57184000",
"longitude": "-85.25049000"
},
{
"CityName": "Adamsville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.60094000",
"longitude": "-86.95611000"
},
{
"CityName": "Alabaster",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.24428000",
"longitude": "-86.81638000"
},
{
"CityName": "Albertville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.26783000",
"longitude": "-86.20878000"
},
{
"CityName": "Alexander City",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.94401000",
"longitude": "-85.95385000"
},
{
"CityName": "Alexandria",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.77399000",
"longitude": "-85.88552000"
},
{
"CityName": "Aliceville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.12957000",
"longitude": "-88.15142000"
},
{
"CityName": "Andalusia",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.30808000",
"longitude": "-86.48243000"
},
{
"CityName": "Anniston",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.65983000",
"longitude": "-85.83163000"
},
{
"CityName": "Arab",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.31815000",
"longitude": "-86.49582000"
},
{
"CityName": "Argo",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.68778000",
"longitude": "-86.50051000"
},
{
"CityName": "Ashford",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.18296000",
"longitude": "-85.23632000"
},
{
"CityName": "Ashland",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.27373000",
"longitude": "-85.83607000"
},
{
"CityName": "Ashville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.83704000",
"longitude": "-86.25442000"
},
{
"CityName": "Athens",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.80243000",
"longitude": "-86.97219000"
},
{
"CityName": "Atmore",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.02379000",
"longitude": "-87.49387000"
},
{
"CityName": "Attalla",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.02176000",
"longitude": "-86.08859000"
},
{
"CityName": "Auburn",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.60986000",
"longitude": "-85.48078000"
},
{
"CityName": "Autauga County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.53492000",
"longitude": "-86.64276000"
},
{
"CityName": "Baldwin County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "30.66097000",
"longitude": "-87.74984000"
},
{
"CityName": "Ballplay",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.05871000",
"longitude": "-85.80802000"
},
{
"CityName": "Barbour County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.86960000",
"longitude": "-85.39320000"
},
{
"CityName": "Bay Minette",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "30.88296000",
"longitude": "-87.77305000"
},
{
"CityName": "Bayou La Batre",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "30.40352000",
"longitude": "-88.24852000"
},
{
"CityName": "Bear Creek",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.27482000",
"longitude": "-87.70058000"
},
{
"CityName": "Berry",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.65983000",
"longitude": "-87.60001000"
},
{
"CityName": "Bessemer",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.40178000",
"longitude": "-86.95444000"
},
{
"CityName": "Bibb County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.99864000",
"longitude": "-87.12644000"
},
{
"CityName": "Birmingham",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.52066000",
"longitude": "-86.80249000"
},
{
"CityName": "Blount County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.98087000",
"longitude": "-86.56737000"
},
{
"CityName": "Blountsville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.08149000",
"longitude": "-86.59110000"
},
{
"CityName": "Blue Ridge",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.49264000",
"longitude": "-86.19052000"
},
{
"CityName": "Boaz",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.20065000",
"longitude": "-86.16637000"
},
{
"CityName": "Brent",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.93735000",
"longitude": "-87.16472000"
},
{
"CityName": "Brewton",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.10518000",
"longitude": "-87.07219000"
},
{
"CityName": "Bridgeport",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.94758000",
"longitude": "-85.71442000"
},
{
"CityName": "Brighton",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.43428000",
"longitude": "-86.94721000"
},
{
"CityName": "Brook Highland",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.43566000",
"longitude": "-86.67388000"
},
{
"CityName": "Brookside",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.63788000",
"longitude": "-86.91666000"
},
{
"CityName": "Brookwood",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.25567000",
"longitude": "-87.32083000"
},
{
"CityName": "Brundidge",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.72016000",
"longitude": "-85.81606000"
},
{
"CityName": "Bullock County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.10055000",
"longitude": "-85.71570000"
},
{
"CityName": "Butler",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.08959000",
"longitude": "-88.22197000"
},
{
"CityName": "Butler County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.75243000",
"longitude": "-86.68029000"
},
{
"CityName": "Bynum",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.61316000",
"longitude": "-85.96108000"
},
{
"CityName": "Cahaba Heights",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.46400000",
"longitude": "-86.73193000"
},
{
"CityName": "Calera",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.10290000",
"longitude": "-86.75360000"
},
{
"CityName": "Calhoun County",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.77143000",
"longitude": "-85.82603000"
},
{
"CityName": "Camden",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.99098000",
"longitude": "-87.29055000"
},
{
"CityName": "Carbon Hill",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.89177000",
"longitude": "-87.52612000"
},
{
"CityName": "Carlisle-Rockledge",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.11445000",
"longitude": "-86.12407000"
},
{
"CityName": "Carrollton",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.26169000",
"longitude": "-88.09503000"
},
{
"CityName": "Cedar Bluff",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.22009000",
"longitude": "-85.60774000"
},
{
"CityName": "Center Point",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.64566000",
"longitude": "-86.68360000"
},
{
"CityName": "Centre",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "34.15204000",
"longitude": "-85.67885000"
},
{
"CityName": "Centreville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "32.94620000",
"longitude": "-87.11669000"
},
{
"CityName": "Chalkville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "33.65316000",
"longitude": "-86.64777000"
},
{
"CityName": "Chambers County",
"StateCode": "AL",
"CountryCode": "US"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20419/cities+by+state?state=alabama' --header 'Authorization: Bearer YOUR_API_KEY'
Get Location (lat & lng ) By City
Location By City - Endpoint Features
| Object | Description |
|---|---|
city |
[Required] |
[
{
"CityName": "Abbeville",
"StateCode": "HDF",
"CountryCode": "FR",
"latitude": "50.10521000",
"longitude": "1.83547000"
},
{
"CityName": "Abbeville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.57184000",
"longitude": "-85.25049000"
},
{
"CityName": "Abbeville",
"StateCode": "GA",
"CountryCode": "US",
"latitude": "31.99212000",
"longitude": "-83.30682000"
},
{
"CityName": "Abbeville",
"StateCode": "LA",
"CountryCode": "US",
"latitude": "29.97465000",
"longitude": "-92.13429000"
},
{
"CityName": "Abbeville",
"StateCode": "SC",
"CountryCode": "US",
"latitude": "34.17817000",
"longitude": "-82.37901000"
},
{
"CityName": "Abbeville County",
"StateCode": "SC",
"CountryCode": "US",
"latitude": "34.22257000",
"longitude": "-82.45871000"
}
]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20420/location+by+city?city=Abbeville' --header 'Authorization: Bearer YOUR_API_KEY'
Get Zip Code By City
Zip Code By City - Endpoint Features
| Object | Description |
|---|---|
city |
[Required] |
[
{
"CityName": "Abbeville",
"StateCode": "HDF",
"CountryCode": "FR",
"latitude": "50.10521000",
"longitude": "1.83547000",
"zip": null
},
{
"CityName": "Abbeville",
"StateCode": "AL",
"CountryCode": "US",
"latitude": "31.57184000",
"longitude": "-85.25049000",
"zip": [
"38601",
"31001",
"36310",
"70510",
"70511",
"29620",
"24382",
"29638",
"29659",
"29628",
"29639"
]
},
{
"CityName": "Abbeville",
"StateCode": "GA",
"CountryCode": "US",
"latitude": "31.99212000",
"longitude": "-83.30682000",
"zip": null
},
{
"CityName": "Abbeville",
"StateCode": "LA",
"CountryCode": "US",
"latitude": "29.97465000",
"longitude": "-92.13429000",
"zip": null
},
{
"CityName": "Abbeville",
"StateCode": "SC",
"CountryCode": "US",
"latitude": "34.17817000",
"longitude": "-82.37901000",
"zip": null
},
{
"CityName": "Abbeville County",
"StateCode": "SC",
"CountryCode": "US",
"latitude": "34.22257000",
"longitude": "-82.45871000",
"zip": null
}
]
curl --location --request GET 'https://zylalabs.com/api/10777/geo+data+lookup+api/20421/zip+code+by+city?city=Abbeville' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
756ms
Service Level:
100%
Response Time:
172ms
Service Level:
100%
Response Time:
570ms
Service Level:
100%
Response Time:
133ms
Service Level:
100%
Response Time:
22ms
Service Level:
100%
Response Time:
314ms
Service Level:
100%
Response Time:
1,541ms
Service Level:
100%
Response Time:
657ms
Service Level:
100%
Response Time:
630ms
Service Level:
100%
Response Time:
97ms
Service Level:
100%
Response Time:
3,111ms
Service Level:
100%
Response Time:
2,583ms
Service Level:
100%
Response Time:
3,131ms
Service Level:
100%
Response Time:
2,366ms
Service Level:
100%
Response Time:
2,904ms
Service Level:
100%
Response Time:
2,500ms
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
3,506ms
Service Level:
100%
Response Time:
2,426ms
Service Level:
100%
Response Time:
3,187ms