https://github.com/whois-api-llc/reverse-ip-py
Reverse IP/DNS API client library for Python
https://github.com/whois-api-llc/reverse-ip-py
python reverse-dns reverse-dns-lookup reverse-ip reverse-ip-lookup whoisxmlapi
Last synced: about 1 month ago
JSON representation
Reverse IP/DNS API client library for Python
- Host: GitHub
- URL: https://github.com/whois-api-llc/reverse-ip-py
- Owner: whois-api-llc
- License: mit
- Created: 2021-04-21T12:23:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T01:10:53.000Z (over 2 years ago)
- Last Synced: 2025-08-21T11:56:35.434Z (about 2 months ago)
- Topics: python, reverse-dns, reverse-dns-lookup, reverse-ip, reverse-ip-lookup, whoisxmlapi
- Language: Python
- Homepage: https://reverse-ip.whoisxmlapi.com/api
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
.. image:: https://img.shields.io/badge/License-MIT-green.svg
:alt: reverse-ip-py license
:target: https://opensource.org/licenses/MIT.. image:: https://img.shields.io/pypi/v/reverse-ip.svg
:alt: reverse-ip-py release
:target: https://pypi.org/project/reverse-ip.. image:: https://github.com/whois-api-llc/reverse-ip-py/workflows/Build/badge.svg
:alt: reverse-ip-py build
:target: https://github.com/whois-api-llc/reverse-ip-py/actions========
Overview
========The client library for
`Reverse IP/DNS API `_
in Python language.The minimum Python version is 3.6.
Installation
============
::pip install reverse-ip
Examples
========Full API documentation available `here `_
Create a new client
-------------------::
from reverseip import *
client = Client('Your API key')
Make basic requests
-------------------::
# Get parsed records as a model instance.
result = client.data('8.8.8.8')
print(result.size)
for record in result.result:
print("Domain: {}, visited: {}".format(
record.name, record.last_visit))# Get raw API response
resp_str = client.raw_data('1.1.1.1')Advanced usage
-------------------
Pagination::
for response in client.iterate_over('1.1.1.1'):
# Working with the current page
print(response.size)
for record in response.result:
print(record.name)# Alternative way
try:
response = client.data('1.1.1.1')
# processing
# ...
while response.has_next:
response = client.next_page('1.1.1.1', response)
# processing
# ...
except ReverseIpApiError as error:
print(error.message)Get raw data in XML
::
raw = client.raw_data('1.1.1.1', output_format='xml')
print(raw)