Skip to content

Commit

Permalink
refresh times
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed Oct 17, 2023
1 parent 1e0563f commit 4c3b33c
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
# GeoIP-api comparison
Comparison of some different mostly free GeoIP APIs I found around the internet.
## Sites
Comparison of some different mostly free GeoIP APIs I found around the internet.## Sites
| Url | Https | Limit | Clientside | Client lookup delay | Serverside delay |
| --- | --- | --- | --- | --- | --- |
| http://ip-api.com/ | <ul><li>- [ ] </li></ul> | 45/min | <ul><li>- [x] </li></ul> | 114 ms | 32 ms |
| https://ipapi.co/ | <ul><li>- [x] </li></ul> | 1000/day | <ul><li>- [x] </li></ul> | 394 ms | 278 ms |
| https://ipbase.com/ | <ul><li>- [x] </li></ul> | 150/month | <ul><li>- [x] </li></ul> | 120 ms | 76 ms |
| https://ipgeolocation.io/ | <ul><li>- [x] </li></ul> | 1000/day | <ul><li>- [ ] </li></ul> | n/a | 111 ms |
| https://ipstack.com/ | <ul><li>- [x] </li></ul> | 100/month | <ul><li>- [x] </li></ul> | 283 ms | 149 ms |
| https://ipwhois.io/ | <ul><li>- [ ] </li></ul> | 10000/month | <ul><li>- [x] </li></ul> | 85 ms | 26 ms |
| https://getgeoapi.com/ | <ul><li>- [x] </li></ul> | 300/day | <ul><li>- [x] </li></ul> | 144 ms | 34 ms |
| https://geo.ipify.org/ | <ul><li>- [x] </li></ul> | 333/account | <ul><li>- [ ] </li></ul> | n/a | 843 ms |
| https://www.ip2location.io/ | <ul><li>- [x] </li></ul> | 30000/month | <ul><li>- [ ] </li></ul> | n/a | 152 ms |
| http://ip-api.com/ | <ul><li>- [ ] </li></ul> | 45/min | <ul><li>- [x] </li></ul> | 1188 ms | 39 ms |
| https://ipapi.co/ | <ul><li>- [x] </li></ul> | 1000/day | <ul><li>- [x] </li></ul> | 306 ms | 203 ms |
| https://ipbase.com/ | <ul><li>- [x] </li></ul> | 150/month | <ul><li>- [x] </li></ul> | 114 ms | 77 ms |
| https://ipgeolocation.io/ | <ul><li>- [x] </li></ul> | 1000/day | <ul><li>- [ ] </li></ul> | n/a | 65 ms |
| https://ipstack.com/ | <ul><li>- [x] </li></ul> | 100/month | <ul><li>- [x] </li></ul> | 274 ms | 154 ms |
| https://ipwhois.io/ | <ul><li>- [ ] </li></ul> | 10000/month | <ul><li>- [x] </li></ul> | 257 ms | 27 ms |
| https://getgeoapi.com/ | <ul><li>- [x] </li></ul> | 300/day | <ul><li>- [x] </li></ul> | 265 ms | 24 ms |
| https://geo.ipify.org/ | <ul><li>- [x] </li></ul> | 333/account | <ul><li>- [ ] </li></ul> | n/a | 941 ms |
| https://www.ip2location.io/ | <ul><li>- [x] </li></ul> | 30000/month | <ul><li>- [ ] </li></ul> | n/a | 168 ms |
## Example response
| API | Serverside Lookup |
| --- | --- |
| ip-api.com | <pre>{<br> "status": "success",<br> "country": "United States",<br> "countryCode": "US",<br> "region": "VA",<br> "regionName": "Virginia",<br> "city": "Ashburn",<br> "zip": "20149",<br> "lat": 39.03,<br> "lon": -77.5,<br> "timezone": "America/New_York",<br> "isp": "Google LLC",<br> "org": "Google Public DNS",<br> "as": "AS15169 Google LLC",<br> "query": "8.8.8.8"<br>}</pre> |
| ipapi.co | <pre>{<br> "ip": "8.8.8.8",<br> "network": "8.8.8.0/24",<br> "version": "IPv4",<br> "city": "Mountain View",<br> "region": "California",<br> "region_code": "CA",<br> "country": "US",<br> "country_name": "United States",<br> "country_code": "US",<br> "country_code_iso3": "USA",<br> "country_capital": "Washington",<br> "country_tld": ".us",<br> "continent_code": "NA",<br> "in_eu": false,<br> "postal": "94043",<br> "latitude": 37.42301,<br> "longitude": -122.083352,<br> "timezone": "America/Los_Angeles",<br> "utc_offset": "-0700",<br> "country_calling_code": "+1",<br> "currency": "USD",<br> "currency_name": "Dollar",<br> "languages": "en-US,es-US,haw,fr",<br> "country_area": 9629091,<br> "country_population": 327167434,<br> "asn": "AS15169",<br> "org": "GOOGLE"<br>}</pre> |
| ipbase.com | <pre>{<br> "data": {<br> "ip": "8.8.8.8",<br> "hostname": null,<br> "type": "v4",<br> "range_type": {<br> "type": "PUBLIC",<br> "description": "Public address"<br> },<br> "connection": {<br> "asn": 15169,<br> "organization": "Google LLC",<br> "isp": "Google LLC",<br> "range": "8.8.8.0/24"<br> },<br> "location": {<br> "geonames_id": 85922355,<br> "latitude": 37.40599060058594,<br> "longitude": -122.0785140991211,<br> "zip": "94043",<br> "continent": {<br> "code": 6255149,<br> "name": "North America",<br> "name_translated": "North America",<br> "geonames_id": 6255149,<br> "wikidata_id": "Q49"<br> },<br> "country": {<br> "alpha2": "US",<br> "alpha3": "USA",<br> "calling_codes": [<br> "+1"<br> ],<br> "currencies": [<br> {<br> "symbol": "$",<br> "name": "US Dollar",<br> "symbol_native": "$",<br> "decimal_digits": 2,<br> "rounding": 0,<br> "code": "USD",<br> "name_plural": "US dollars"<br> }<br> ],<br> "emoji": "๐Ÿ‡บ๐Ÿ‡ธ",<br> "ioc": "USA",<br> "languages": [<br> {<br> "name": "English",<br> "name_native": "English"<br> }<br> ],<br> "name": "United States",<br> "name_translated": "United States",<br> "timezones": [<br> "America/New_York",<br> "America/Detroit",<br> "America/Kentucky/Louisville",<br> "America/Kentucky/Monticello",<br> "America/Indiana/Indianapolis",<br> "America/Indiana/Vincennes",<br> "America/Indiana/Winamac",<br> "America/Indiana/Marengo",<br> "America/Indiana/Petersburg",<br> "America/Indiana/Vevay",<br> "America/Chicago",<br> "America/Indiana/Tell_City",<br> "America/Indiana/Knox",<br> "America/Menominee",<br> "America/North_Dakota/Center",<br> "America/North_Dakota/New_Salem",<br> "America/North_Dakota/Beulah",<br> "America/Denver",<br> "America/Boise",<br> "America/Phoenix",<br> "America/Los_Angeles",<br> "America/Anchorage",<br> "America/Juneau",<br> "America/Sitka",<br> "America/Metlakatla",<br> "America/Yakutat",<br> "America/Nome",<br> "America/Adak",<br> "Pacific/Honolulu"<br> ],<br> "is_in_european_union": false,<br> "fips": "US",<br> "geonames_id": 85633793,<br> "hasc_id": "US",<br> "wikidata_id": "Q30"<br> },<br> "city": {<br> "fips": "0649670",<br> "alpha2": null,<br> "geonames_id": 85922355,<br> "hasc_id": null,<br> "wikidata_id": "Q486860",<br> "name": "Mountain View",<br> "name_translated": "Mountain View"<br> },<br> "region": {<br> "fips": "US06",<br> "alpha2": "US-CA",<br> "geonames_id": 85688637,<br> "hasc_id": "US.CA",<br> "wikidata_id": "Q99",<br> "name": "California",<br> "name_translated": "California"<br> }<br> },<br> "tlds": [<br> ".us"<br> ],<br> "timezone": {<br> "id": "America/Los_Angeles",<br> "current_time": "2023-10-16T12:22:15-07:00",<br> "code": "PDT",<br> "is_daylight_saving": true,<br> "gmt_offset": -25200<br> },<br> "security": {<br> "is_anonymous": null,<br> "is_datacenter": null,<br> "is_vpn": null,<br> "is_bot": null,<br> "is_abuser": null,<br> "is_known_attacker": null,<br> "is_proxy": null,<br> "is_spam": null,<br> "is_tor": null,<br> "proxy_type": null,<br> "is_icloud_relay": null,<br> "threat_score": null<br> },<br> "domains": {<br> "count": null,<br> "domains": []<br> }<br> }<br>}</pre> |
| ipgeolocation.io | <pre>{<br> "ip": "8.8.8.8",<br> "continent_code": "NA",<br> "continent_name": "North America",<br> "country_code2": "US",<br> "country_code3": "USA",<br> "country_name": "United States",<br> "country_name_official": "United States of America",<br> "country_capital": "Washington, D.C.",<br> "state_prov": "California",<br> "state_code": "US-CA",<br> "district": "",<br> "city": "Mountain View",<br> "zipcode": "94043-1351",<br> "latitude": "37.42240",<br> "longitude": "-122.08421",<br> "is_eu": false,<br> "calling_code": "+1",<br> "country_tld": ".us",<br> "languages": "en-US,es-US,haw,fr",<br> "country_flag": "https://ipgeolocation.io/static/flags/us_64.png",<br> "geoname_id": "6301403",<br> "isp": "Google LLC",<br> "connection_type": "",<br> "organization": "Google LLC",<br> "currency": {<br> "code": "USD",<br> "name": "US Dollar",<br> "symbol": "$"<br> },<br> "time_zone": {<br> "name": "America/Los_Angeles",<br> "offset": -8,<br> "offset_with_dst": -7,<br> "current_time": "2023-10-16 12:22:15.425-0700",<br> "current_time_unix": 1697484135.425,<br> "is_dst": true,<br> "dst_savings": 1<br> }<br>}</pre> |
| ipbase.com | <pre>{<br> "data": {<br> "ip": "8.8.8.8",<br> "hostname": null,<br> "type": "v4",<br> "range_type": {<br> "type": "PUBLIC",<br> "description": "Public address"<br> },<br> "connection": {<br> "asn": 15169,<br> "organization": "Google LLC",<br> "isp": "Google LLC",<br> "range": "8.8.8.0/24"<br> },<br> "location": {<br> "geonames_id": 85922355,<br> "latitude": 37.40599060058594,<br> "longitude": -122.0785140991211,<br> "zip": "94043",<br> "continent": {<br> "code": 6255149,<br> "name": "North America",<br> "name_translated": "North America",<br> "geonames_id": 6255149,<br> "wikidata_id": "Q49"<br> },<br> "country": {<br> "alpha2": "US",<br> "alpha3": "USA",<br> "calling_codes": [<br> "+1"<br> ],<br> "currencies": [<br> {<br> "symbol": "$",<br> "name": "US Dollar",<br> "symbol_native": "$",<br> "decimal_digits": 2,<br> "rounding": 0,<br> "code": "USD",<br> "name_plural": "US dollars"<br> }<br> ],<br> "emoji": "๐Ÿ‡บ๐Ÿ‡ธ",<br> "ioc": "USA",<br> "languages": [<br> {<br> "name": "English",<br> "name_native": "English"<br> }<br> ],<br> "name": "United States",<br> "name_translated": "United States",<br> "timezones": [<br> "America/New_York",<br> "America/Detroit",<br> "America/Kentucky/Louisville",<br> "America/Kentucky/Monticello",<br> "America/Indiana/Indianapolis",<br> "America/Indiana/Vincennes",<br> "America/Indiana/Winamac",<br> "America/Indiana/Marengo",<br> "America/Indiana/Petersburg",<br> "America/Indiana/Vevay",<br> "America/Chicago",<br> "America/Indiana/Tell_City",<br> "America/Indiana/Knox",<br> "America/Menominee",<br> "America/North_Dakota/Center",<br> "America/North_Dakota/New_Salem",<br> "America/North_Dakota/Beulah",<br> "America/Denver",<br> "America/Boise",<br> "America/Phoenix",<br> "America/Los_Angeles",<br> "America/Anchorage",<br> "America/Juneau",<br> "America/Sitka",<br> "America/Metlakatla",<br> "America/Yakutat",<br> "America/Nome",<br> "America/Adak",<br> "Pacific/Honolulu"<br> ],<br> "is_in_european_union": false,<br> "fips": "US",<br> "geonames_id": 85633793,<br> "hasc_id": "US",<br> "wikidata_id": "Q30"<br> },<br> "city": {<br> "fips": "0649670",<br> "alpha2": null,<br> "geonames_id": 85922355,<br> "hasc_id": null,<br> "wikidata_id": "Q486860",<br> "name": "Mountain View",<br> "name_translated": "Mountain View"<br> },<br> "region": {<br> "fips": "US06",<br> "alpha2": "US-CA",<br> "geonames_id": 85688637,<br> "hasc_id": "US.CA",<br> "wikidata_id": "Q99",<br> "name": "California",<br> "name_translated": "California"<br> }<br> },<br> "tlds": [<br> ".us"<br> ],<br> "timezone": {<br> "id": "America/Los_Angeles",<br> "current_time": "2023-10-17T00:36:53-07:00",<br> "code": "PDT",<br> "is_daylight_saving": true,<br> "gmt_offset": -25200<br> },<br> "security": {<br> "is_anonymous": null,<br> "is_datacenter": null,<br> "is_vpn": null,<br> "is_bot": null,<br> "is_abuser": null,<br> "is_known_attacker": null,<br> "is_proxy": null,<br> "is_spam": null,<br> "is_tor": null,<br> "proxy_type": null,<br> "is_icloud_relay": null,<br> "threat_score": null<br> },<br> "domains": {<br> "count": null,<br> "domains": []<br> }<br> }<br>}</pre> |
| ipgeolocation.io | <pre>{<br> "ip": "8.8.8.8",<br> "continent_code": "NA",<br> "continent_name": "North America",<br> "country_code2": "US",<br> "country_code3": "USA",<br> "country_name": "United States",<br> "country_name_official": "United States of America",<br> "country_capital": "Washington, D.C.",<br> "state_prov": "California",<br> "state_code": "US-CA",<br> "district": "",<br> "city": "Mountain View",<br> "zipcode": "94043-1351",<br> "latitude": "37.42240",<br> "longitude": "-122.08421",<br> "is_eu": false,<br> "calling_code": "+1",<br> "country_tld": ".us",<br> "languages": "en-US,es-US,haw,fr",<br> "country_flag": "https://ipgeolocation.io/static/flags/us_64.png",<br> "geoname_id": "6301403",<br> "isp": "Google LLC",<br> "connection_type": "",<br> "organization": "Google LLC",<br> "currency": {<br> "code": "USD",<br> "name": "US Dollar",<br> "symbol": "$"<br> },<br> "time_zone": {<br> "name": "America/Los_Angeles",<br> "offset": -8,<br> "offset_with_dst": -7,<br> "current_time": "2023-10-17 00:36:53.689-0700",<br> "current_time_unix": 1697528213.689,<br> "is_dst": true,<br> "dst_savings": 1<br> }<br>}</pre> |
| ipstack.com | <pre>{<br> "ip": "8.8.8.8",<br> "type": "ipv4",<br> "continent_code": "NA",<br> "continent_name": "North America",<br> "country_code": "US",<br> "country_name": "United States",<br> "region_code": "OH",<br> "region_name": "Ohio",<br> "city": "Glenmont",<br> "zip": "44628",<br> "latitude": 40.5369987487793,<br> "longitude": -82.12859344482422,<br> "location": {<br> "geoname_id": null,<br> "capital": "Washington D.C.",<br> "languages": [<br> {<br> "code": "en",<br> "name": "English",<br> "native": "English"<br> }<br> ],<br> "country_flag": "https://assets.ipstack.com/flags/us.svg",<br> "country_flag_emoji": "๐Ÿ‡บ๐Ÿ‡ธ",<br> "country_flag_emoji_unicode": "U+1F1FA U+1F1F8",<br> "calling_code": "1",<br> "is_eu": false<br> }<br>}</pre> |
| ipwhois.io | <pre>{<br> "ip": "8.8.8.8",<br> "success": true,<br> "type": "IPv4",<br> "continent": "North America",<br> "continent_code": "NA",<br> "country": "United States",<br> "country_code": "US",<br> "region": "California",<br> "region_code": "CA",<br> "city": "Mountain View",<br> "latitude": 37.3860517,<br> "longitude": -122.0838511,<br> "is_eu": false,<br> "postal": "94039",<br> "calling_code": "1",<br> "capital": "Washington D.C.",<br> "borders": "CA,MX",<br> "flag": {<br> "img": "https://cdn.ipwhois.io/flags/us.svg",<br> "emoji": "๐Ÿ‡บ๐Ÿ‡ธ",<br> "emoji_unicode": "U+1F1FA U+1F1F8"<br> },<br> "connection": {<br> "asn": 15169,<br> "org": "Google LLC",<br> "isp": "Google LLC",<br> "domain": "google.com"<br> },<br> "timezone": {<br> "id": "America/Los_Angeles",<br> "abbr": "PDT",<br> "is_dst": true,<br> "offset": -25200,<br> "utc": "-07:00",<br> "current_time": "2023-10-16T12:22:15-07:00"<br> }<br>}</pre> |
| ipwhois.io | <pre>{<br> "ip": "8.8.8.8",<br> "success": true,<br> "type": "IPv4",<br> "continent": "North America",<br> "continent_code": "NA",<br> "country": "United States",<br> "country_code": "US",<br> "region": "California",<br> "region_code": "CA",<br> "city": "Mountain View",<br> "latitude": 37.3860517,<br> "longitude": -122.0838511,<br> "is_eu": false,<br> "postal": "94039",<br> "calling_code": "1",<br> "capital": "Washington D.C.",<br> "borders": "CA,MX",<br> "flag": {<br> "img": "https://cdn.ipwhois.io/flags/us.svg",<br> "emoji": "๐Ÿ‡บ๐Ÿ‡ธ",<br> "emoji_unicode": "U+1F1FA U+1F1F8"<br> },<br> "connection": {<br> "asn": 15169,<br> "org": "Google LLC",<br> "isp": "Google LLC",<br> "domain": "google.com"<br> },<br> "timezone": {<br> "id": "America/Los_Angeles",<br> "abbr": "PDT",<br> "is_dst": true,<br> "offset": -25200,<br> "utc": "-07:00",<br> "current_time": "2023-10-17T00:36:54-07:00"<br> }<br>}</pre> |
| getgeoapi.com | <pre>{<br> "ip": "8.8.8.8",<br> "type": "IPv4",<br> "location": {<br> "latitude": 37.405991,<br> "longitude": -122.078514<br> },<br> "postcode": "94043",<br> "area": {<br> "code": "US-CA",<br> "geonameid": 5332921,<br> "name": "California"<br> },<br> "asn": {<br> "number": 15169,<br> "organisation": "GOOGLE"<br> },<br> "city": {<br> "geonameid": 5375480,<br> "name": "Mountain View",<br> "population": 80435<br> },<br> "continent": {<br> "geonameid": 6255149,<br> "name": "North America",<br> "code": "NA"<br> },<br> "country": {<br> "geonameid": 6252001,<br> "name": "United States of America",<br> "code": "US",<br> "capital": "Washington",<br> "area_size": "9629091.00 sq. km",<br> "population": 327167434,<br> "phone_code": "1",<br> "is_in_eu": false,<br> "languages": {<br> "en": "English language",<br> "es": "Spanish language",<br> "haw": "Hawaiian language",<br> "fr": "French language"<br> },<br> "flag": {<br> "file": "https://commons.wikimedia.org/wiki/Special:FilePath/Flag_of_the_United_States.svg",<br> "emoji": "๐Ÿ‡บ๐Ÿ‡ธ",<br> "unicode": "U+1F1FA U+1F1F8"<br> },<br> "tld": ".us"<br> },<br> "currency": {<br> "code": "USD",<br> "name": "United States dollar"<br> },<br> "security": {<br> "is_tor": false,<br> "is_proxy": false,<br> "is_crawler": true,<br> "is_threat": true,<br> "is_thread": true<br> },<br> "time": {<br> "timezone": "America/Los_Angeles",<br> "gtm_offset": -25200,<br> "gmt_offset": -25200,<br> "is_daylight_saving": true,<br> "code": "PDT"<br> },<br> "status": "success"<br>}</pre> |
| geo.ipify.org | <pre>{<br> "ip": "8.8.8.8",<br> "location": {<br> "country": "US",<br> "region": "California",<br> "city": "Mountain View",<br> "lat": 32.69922,<br> "lng": -117.11281,<br> "postalCode": "",<br> "timezone": "-07:00",<br> "geonameId": 5375481<br> },<br> "domains": [<br> "21vek-dev.by",<br> "520yyds.com",<br> "661ri48a.com",<br> "8888.ar",<br> "9.nz"<br> ],<br> "as": {<br> "asn": 15169,<br> "name": "GOOGLE",<br> "route": "8.8.8.0/24",<br> "domain": "https://about.google/intl/en/",<br> "type": "Content"<br> },<br> "isp": "Google LLC",<br> "proxy": {<br> "proxy": false,<br> "vpn": false,<br> "tor": false<br> }<br>}</pre> |
| geo.ipify.org | <pre>{<br> "ip": "8.8.8.8",<br> "location": {<br> "country": "US",<br> "region": "California",<br> "city": "Mountain View",<br> "lat": 32.69922,<br> "lng": -117.11281,<br> "postalCode": "",<br> "timezone": "-07:00",<br> "geonameId": 5375481<br> },<br> "domains": [<br> "21vek-dev.by",<br> "anleax.xyz",<br> "chagasconsultoria.com",<br> "chamille24.com",<br> "conexuscrm.com"<br> ],<br> "as": {<br> "asn": 15169,<br> "name": "GOOGLE",<br> "route": "8.8.8.0/24",<br> "domain": "https://about.google/intl/en/",<br> "type": "Content"<br> },<br> "isp": "Google LLC",<br> "proxy": {<br> "proxy": false,<br> "vpn": false,<br> "tor": false<br> }<br>}</pre> |
| ip2location.io | <pre>{<br> "ip": "8.8.8.8",<br> "country_code": "US",<br> "country_name": "United States of America",<br> "region_name": "California",<br> "city_name": "Mountain View",<br> "latitude": 37.405992,<br> "longitude": -122.078515,<br> "zip_code": "94043",<br> "time_zone": "-07:00",<br> "asn": "15169",<br> "as": "Google LLC",<br> "is_proxy": false<br>}</pre> |

0 comments on commit 4c3b33c

Please sign in to comment.