Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhacement] Getting country codes/names of proxy #6

Open
LeMoussel opened this issue Apr 11, 2022 · 0 comments
Open

[enhacement] Getting country codes/names of proxy #6

LeMoussel opened this issue Apr 11, 2022 · 0 comments

Comments

@LeMoussel
Copy link

LeMoussel commented Apr 11, 2022

It would be interesting to resolve IPs proxies to country codes/names.
To do this, we can use a free service such as

Example ip2c:
https://ip2c.org/1.0.205.8
Result:
1;TH;THA;Thailand

Example ipwhois:
https://ipwhois.app/json/1.0.205.8
Result:

{
  "ip": "1.0.205.8",
  "success": true,
  "type": "IPv4",
  "continent": "Asia",
  "continent_code": "AS",
  "country": "Thailand",
  "country_code": "TH",
  "country_flag": "https://cdn.ipwhois.io/flags/th.svg",
  "country_capital": "Bangkok",
  "country_phone": "+66",
  "country_neighbours": "LA,MM,KH,MY",
  "region": "Phuket",
  "city": "Thalang District",
  "latitude": 8.0320027,
  "longitude": 98.3334626,
  "asn": "AS23969",
  "org": "TOT Public Company Limited",
  "isp": "TOT Public Company Limited",
  "timezone": "Asia/Bangkok",
  "timezone_name": "Indochina Time",
  "timezone_dstOffset": 0,
  "timezone_gmtOffset": 25200,
  "timezone_gmt": "GMT +7:00",
  "currency": "Thai Baht",
  "currency_code": "THB",
  "currency_symbol": "฿",
  "currency_rates": 33.562,
  "currency_plural": "Thai baht",
  "completed_requests": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant