# 🌐 Geo Data API
## Overview
**Geo Data 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.
---
[
{
"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/10747/geo+data+api/20343/countries+list' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"countryName": "United States",
"CountryCode": "US",
"Capital": "Washington"
}
]
curl --location --request GET 'https://zylalabs.com/api/10747/geo+data+api/20344/capital+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"CountryName": "United States",
"CountryCode": "US",
"PhoneCode": "+1"
}
]
curl --location --request GET 'https://zylalabs.com/api/10747/geo+data+api/20345/phone+code+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"CountryName": "United States",
"CountryCode": "US",
"Currency": "USD",
"CurrencySymbol": "$"
}
]
curl --location --request GET 'https://zylalabs.com/api/10747/geo+data+api/20346/currency+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"CountryName": "United States",
"CountryCode": "US",
"emojiU": "U+1F1FA U+1F1F8"
}
]
curl --location --request GET 'https://zylalabs.com/api/10747/geo+data+api/20405/emoji+flag+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"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/10747/geo+data+api/20406/states+by+country?country=us' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"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/10747/geo+data+api/20407/cities+by+state?state=alabama' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"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/10747/geo+data+api/20408/location+by+city?city=Abbeville' --header 'Authorization: Bearer YOUR_API_KEY'
[
{
"CityName": "Alabama",
"StateCode": "NY",
"CountryCode": "US",
"latitude": "43.09645000",
"longitude": "-78.39086000",
"zip": [
"35096",
"35630",
"35631",
"36089",
"36319",
"36532",
"36533",
"36545",
"36854",
"35007",
"35048",
"35068",
"35071",
"35616",
"35650",
"36025",
"36049",
"36376",
"36518",
"36530",
"36535",
"36551",
"35049",
"35064",
"35094",
"35470",
"35570",
"35601",
"35602",
"35603",
"35611",
"35612",
"35613",
"35677",
"35758",
"35801",
"35816",
"35983",
"36016",
"36037",
"36079",
"36081",
"36082",
"36251",
"36301",
"36303",
"36460",
"36786",
"36830",
"36831",
"36832",
"35201",
"35202",
"35203",
"35204",
"35205",
"35206",
"35207",
"35208",
"35209",
"35210",
"35211",
"35212",
"35213",
"35214",
"35215",
"35216",
"35217",
"35218",
"35221",
"35222",
"35223",
"35224",
"35226",
"35229",
"35231",
"35232",
"35233",
"35234",
"35235",
"35236",
"35238",
"35242",
"35243",
"35244",
"35253",
"35255",
"35260",
"35291",
"35294",
"35298",
"36265",
"36601",
"36602",
"36603",
"36604",
"36605",
"36606",
"36607",
"36608"
]
}
]
curl --location --request GET 'https://zylalabs.com/api/10747/geo+data+api/20409/zip+code+by+city?city=alabama' --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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
210ms
Service Level:
100%
Response Time:
237ms
Service Level:
100%
Response Time:
152ms
Service Level:
100%
Response Time:
152ms
Service Level:
100%
Response Time:
122ms
Service Level:
100%
Response Time:
812ms
Service Level:
100%
Response Time:
364ms
Service Level:
100%
Response Time:
283ms
Service Level:
100%
Response Time:
261ms
Service Level:
100%
Response Time:
264ms
Service Level:
100%
Response Time:
1,077ms
Service Level:
100%
Response Time:
1,605ms
Service Level:
100%
Response Time:
194ms
Service Level:
100%
Response Time:
6,429ms
Service Level:
100%
Response Time:
109ms
Service Level:
100%
Response Time:
356ms
Service Level:
100%
Response Time:
2,349ms
Service Level:
100%
Response Time:
472ms
Service Level:
100%
Response Time:
458ms
Service Level:
100%
Response Time:
151ms