Your go-to IP-to-Geo cloud service — fast, accurate, and built for developers. Start free with 1,000 monthly stored conversions.
Website • Dashboard • Documentation • Services Status
Intro to the Python SDK
This package provides a lightweight way to integrate Ip2Geo into your Python applications.
Installing
pip install ip2geo-sdk
Initializing
import ip2geo
ip2geo.init('your-api-key')
Using
converted_ip = ip2geo.convert_ip(ip='8.8.8.8')
converted_ips = ip2geo.convert_ips(
ips=[
'8.8.8.8',
'1.1.1.1',
'9.9.9.9',
'64.6.64.6',
]
)
# {
# 'success': True,
# 'code': 200,
# 'message': 'Success',
# 'data': { ... },
# '_req': {
# 'reqId': 'string',
# 'resTime': 123
# }
# }
# {
# 'success': True,
# 'code': 200,
# 'message': 'Success',
# 'data': [
# {
# 'ip': '8.8.8.8',
# 'conversion': { ... }
# }
# ],
# '_req': {
# 'reqId': 'string',
# 'resTime': 123
# }
# }
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ip2geo_sdk-0.0.1.tar.gz.
File metadata
- Download URL: ip2geo_sdk-0.0.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19fe260a8c096704b075fd8d2ccde2751a9c2d6241d41225df85d9cf88ae7337
|
|
| MD5 |
b6699bb6264430837b2dae4c029edd29
|
|
| BLAKE2b-256 |
2cd6a54ceee0badef60056eaf17eabc69f201e76d41db996318a0ee7d267cf4e
|
File details
Details for the file ip2geo_sdk-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ip2geo_sdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61bdb285a2c1194c37e802a1c3782c8329a2ef5b4d11aaead473cd1d47052982
|
|
| MD5 |
6631a4e2cf9e9db8218bb47b16fe88a5
|
|
| BLAKE2b-256 |
1b80a4b2669f0e6cd099c30a23b0033c51239709c3a513c6b949e721b717cdcc
|