{"id":34911549,"url":"https://github.com/vijaykrpp/ip2geo-python","last_synced_at":"2026-01-13T20:57:25.584Z","repository":{"id":330281393,"uuid":"1121495883","full_name":"vijaykrpp/ip2geo-python","owner":"vijaykrpp","description":"Official Python SDK for the Ip2Geo API","archived":false,"fork":false,"pushed_at":"2025-12-26T08:49:46.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-27T21:25:28.436Z","etag":null,"topics":["fraud-detection","ip","ip-geolocation","ip-intelligence","ip-lookup","ipapi","iplocation","proxy-detection","python-sdk","tor-detection","vpn-detection"],"latest_commit_sha":null,"homepage":"https://ip2geoapi.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vijaykrpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-23T04:58:29.000Z","updated_at":"2025-12-26T08:48:25.000Z","dependencies_parsed_at":"2025-12-26T01:08:30.422Z","dependency_job_id":null,"html_url":"https://github.com/vijaykrpp/ip2geo-python","commit_stats":null,"previous_names":["vijaykrpp/ip2geo-python"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vijaykrpp/ip2geo-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijaykrpp%2Fip2geo-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijaykrpp%2Fip2geo-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijaykrpp%2Fip2geo-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijaykrpp%2Fip2geo-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vijaykrpp","download_url":"https://codeload.github.com/vijaykrpp/ip2geo-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijaykrpp%2Fip2geo-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fraud-detection","ip","ip-geolocation","ip-intelligence","ip-lookup","ipapi","iplocation","proxy-detection","python-sdk","tor-detection","vpn-detection"],"created_at":"2025-12-26T11:23:16.107Z","updated_at":"2026-01-13T20:57:25.579Z","avatar_url":"https://github.com/vijaykrpp.png","language":"Python","readme":"# ip2geo — Python SDK\n\n[![PyPI version](https://img.shields.io/pypi/v/ip2geoapi.svg)](https://pypi.org/project/ip2geoapi/)\n[![License](https://img.shields.io/pypi/l/ip2geoapi.svg)](https://pypi.org/project/ip2geoapi/)\n\nOfficial Python SDK for the **Ip2Geo API** — fast IP geolocation, network intelligence, and security risk detection.\n\n---\n\n## 🚀 Get an API Key (Free)\n\nYou need an API key to use Ip2Geo.\n\n👉 **Get your free API key here:**  \nhttps://ip2geoapi.com/\n\n### Free plan includes\n- ✅ **100,000 requests / month**\n- ✅ **No credit card required**\n- ✅ Full access to **security intelligence data**\n- ✅ Instant activation\n\n---\n\n## 🧠 Why Ip2Geo?\n\n- Most IP data providers:\n\t- Charge extra for security fields\n\t- Require credit cards upfront\n\t- Hide important data behind higher tiers\n\t- Ip2Geo provides security intelligence by default, even on the free plan.\n\n## ✨ Features\n\n- 🌍 Accurate IP geolocation (country, city, timezone, ISP)\n- 🛡️ **Security intelligence included**:\n  - VPN detection\n  - Proxy detection\n  - TOR detection\n  - Hosting / ASN classification\n  - Trust score \u0026 risk level\n- ⚡ Fast global API\n- 📦 Simple, lightweight Python SDK\n- 🔓 No hidden paid-only fields (others charge extra for security data)\n\n---\n\n## 📦 Installation\n\n```bash\npip install ip2geoapi\n```\n\n## Quick Start\n\n```python\nfrom ip2geo import Ip2Geo\n\nclient = Ip2Geo(\"YOUR_API_KEY\")\n\ndata = client.lookup(\"8.8.8.8\")\n\nprint(data)\n\n```\n\n### Lookup your IP\n\n```python\nfrom ip2geo import Ip2Geo\n\nclient = Ip2Geo(\"YOUR_API_KEY\")\n\ndata = client.lookup(\"check\")\n\nprint(data)\n```\n\n\n## API Response\n\n```json\n{\n  \"success\": true,\n  \"ip\": \"8.8.8.8\",\n  \"version\": \"ipv4\",\n  \"geo\": {\n    \"city\": \"Chicago\",\n    \"country\": \"United States\",\n    \"countryCode\": \"US\",\n    \"region\": null,\n    \"regionCode\": null,\n    \"latitude\": 37.751,\n    \"longitude\": -97.822,\n    \"postalCode\": null,\n    \"geonameId\": 6252001,\n    \"accuracyRadius\": 1000,\n    \"metroCode\": null,\n    \"continentName\": \"North America\",\n    \"continentCode\": \"NA\",\n    \"isEuMember\": false\n  },\n  \"countryInfo\": {\n    \"name\": \"United States of America\",\n    \"alpha2Code\": \"US\",\n    \"alpha3Code\": \"USA\",\n    \"flag\": \"https://api.ip2geoapi.com/assets/flags/us.svg\",\n    \"callingCodes\": [\n      \"1\"\n    ],\n    \"currencies\": [\n      {\n        \"code\": \"USD\",\n        \"name\": \"United States dollar\",\n        \"symbol\": \"$\"\n      }\n    ],\n    \"languages\": [\n      {\n        \"iso639_1\": \"en\",\n        \"iso639_2\": \"eng\",\n        \"name\": \"English\",\n        \"nativeName\": \"English\"\n      }\n    ]\n  },\n  \"timezoneInfo\": {\n    \"timezone\": \"America/Chicago\",\n    \"utcOffsetSeconds\": -21600,\n    \"utcOffsetText\": \"-06:00\",\n    \"utcOffsetHours\": -6,\n    \"isDst\": false,\n    \"abbreviation\": \"CST\",\n    \"localTime\": \"2025-12-22T21:46:07-06:00\"\n  },\n  \"network\": {\n    \"cidr\": \"8.8.8.8/32\",\n    \"prefixLen\": 32,\n    \"asn\": 15169,\n    \"asFormatted\": \"AS15169\",\n    \"asName\": \"GOOGLE\",\n    \"isp\": \"Google\",\n    \"organization\": \"Google\",\n    \"connectionType\": \"Corporate\",\n    \"mobile\": {\n      \"mcc\": null,\n      \"mnc\": null\n    }\n  },\n  \"asDetails\": {\n    \"asn\": 15169,\n    \"abuser_score\": \"0.001 (Low)\",\n    \"descr\": \"GOOGLE, US\",\n    \"country\": \"us\",\n    \"active\": true,\n    \"org\": \"Google LLC\",\n    \"domain\": \"google.com\",\n    \"abuse\": \"network-abuse@google.com\",\n    \"type\": \"hosting\",\n    \"created\": \"2000-03-30\",\n    \"updated\": \"2012-02-24\",\n    \"rir\": \"ARIN\"\n  },\n  \"security\": {\n    \"isHosting\": true,\n    \"isProxy\": false,\n    \"proxyType\": null,\n    \"isVpn\": false,\n    \"vpnProvider\": null,\n    \"vpnProviderUrl\": null,\n    \"isTor\": false,\n    \"isAnonymous\": true,\n    \"trustScore\": 65,\n    \"riskLevel\": \"medium\"\n  }\n}\n```\n\n## 📄 Response Formats\n\n### JSON (default)\n\n```python\nclient.lookup(\"8.8.8.8\")\n```\n\n### YAML\n\n```python\nclient.lookup(\"8.8.8.8\", format=\"yml\")\n```\n\n### XML\n\n```python\nclient.lookup(\"8.8.8.8\", format=\"xml\")\n```\n\n### JSONP Callbacks\n\n```python\nclient.lookup(\"8.8.8.8\", format=\"jsonp\", callback=\"cbFunction\")\n```\n\n## Parameter Reference\n\n| Parameter  | Type  | Required | Accepted Values                         | Description                                                                  |\n| ---------- | ----- | -------- | --------------------------------------- | ---------------------------------------------------------------------------- |\n| `ip`       | `str` | Yes*     | IPv4 / IPv6                             | IP address to lookup. If ```check```, your **own IP** is detected automatically. |\n| `format`   | `str` | Optional | `json` (default), `xml`, `yml`, `jsonp` | Response format. Defaults to JSON.                                           |\n| `callback` | `str` | Optional | Alphanumeric + `_` (max 64 chars)       | JSONP callback function name. **Only valid when `format=\"jsonp\"`**.          |\n\n## 📘 Documentation\n\nFull API documentation and field reference:\n[https://ip2geoapi.com/documentation/](https://ip2geoapi.com/documentation/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijaykrpp%2Fip2geo-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvijaykrpp%2Fip2geo-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijaykrpp%2Fip2geo-python/lists"}