Welcome to our Python Client Library for interacting with our API!
This library streamlines the process of integrating and utilising our services within your Python applications. Whether you're working on a web app, a data analysis project, or any other software that requires interaction with our API, this guide will help you get started quickly and efficiently.
View source and usage instructions >
import bigdatacloudapi
apiKey = 'XXX' # XXX being your api key found at: https://www.bigdatacloud.com/account
client = bigdatacloudapi.Client(apiKey)
resultObject,httpResponseCode = client.getIpGeolocationFull({"ip":"8.8.8.8"})
print('HTTP Response Code: ',httpResponseCode)
print('Lookup IP: ',resultObject['ip'])
print('Result: ',resultObject)
Please note that you can obtain the function name for each API by prefixing the capitalized API endpoint with 'get'. For example: 'ip-geolocation-with-confidence' can be called using getIpGeolocationWithConfidence().
If you have any further queries, feel free to contact our email support on our contact us page .
Topics