{"id":21740887,"url":"https://github.com/whois-api-llc/reverse-ns-py","last_synced_at":"2025-10-13T18:23:59.850Z","repository":{"id":57461763,"uuid":"384432451","full_name":"whois-api-llc/reverse-ns-py","owner":"whois-api-llc","description":"Reverse NS API client library for Python","archived":false,"fork":false,"pushed_at":"2023-05-23T01:24:34.000Z","size":11,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T07:37:39.162Z","etag":null,"topics":["nameserver","python","reverse-dns","reverse-ns","whoisxmlapi"],"latest_commit_sha":null,"homepage":"https://reverse-ns.whoisxmlapi.com/api","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/whois-api-llc.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-09T12:36:37.000Z","updated_at":"2022-02-07T09:46:52.000Z","dependencies_parsed_at":"2025-01-25T21:27:59.719Z","dependency_job_id":"97100cec-c7be-4aa4-8f7c-9ca2f7bb7fb3","html_url":"https://github.com/whois-api-llc/reverse-ns-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Freverse-ns-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Freverse-ns-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Freverse-ns-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Freverse-ns-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whois-api-llc","download_url":"https://codeload.github.com/whois-api-llc/reverse-ns-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717339,"owners_count":20498284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["nameserver","python","reverse-dns","reverse-ns","whoisxmlapi"],"created_at":"2024-11-26T06:15:48.326Z","updated_at":"2025-10-13T18:23:54.817Z","avatar_url":"https://github.com/whois-api-llc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://img.shields.io/badge/License-MIT-green.svg\n    :alt: reverse-ns-py license\n    :target: https://opensource.org/licenses/MIT\n\n.. image:: https://img.shields.io/pypi/v/reverse-ns.svg\n    :alt: reverse-ns-py release\n    :target: https://pypi.org/project/reverse-ns\n\n.. image:: https://github.com/whois-api-llc/reverse-ns-py/workflows/Build/badge.svg\n    :alt: reverse-ns-py build\n    :target: https://github.com/whois-api-llc/reverse-ns-py/actions\n\n========\nOverview\n========\n\nThe client library for\n`Reverse NS API \u003chttps://reverse-ns.whoisxmlapi.com/\u003e`_\nin Python language.\n\nThe minimum Python version is 3.6.\n\nInstallation\n============\n\n.. code-block:: shell\n\n    pip install reverse-ns\n\nExamples\n========\n\nFull API documentation available `here \u003chttps://reverse-ns.whoisxmlapi.com/api/documentation/making-requests\u003e`_\n\nCreate a new client\n-------------------\n\n.. code-block:: python\n\n    from reversens import *\n\n    client = Client('Your API key')\n\nMake basic requests\n-------------------\n\n.. code-block:: python\n\n    # Get categories for a domain name.\n    response = client.get('ns.google.com')\n    for row in response.result:\n        print(\"Domain: \" + row.name)\n\nAdvanced usage\n-------------------\n\nExtra request parameters\n\n.. code-block:: python\n\n    # Iterating over all pages\n    # Specify the target name server.\n    client.name_server = \"ns2.google.com\"\n\n    # Now you can use the `Client` instance as an iterable object\n    for page in client:\n        # Precess the data:\n        for row in page.result:\n            print(row.name)\n\n    # You can access the last response object via `last_result` property\n    print(client.last_result.size)\n    # Please note, that `client.get_raw(...)` method doesn't\n    # update value of the `last_result` field.\n    # Also, `iter(client)` will reset the `last_result` value to None\n\n    # Getting raw API response in XML\n    xml = client.get_raw('ns.google.com', output_format=Client.XML_FORMAT)\n\nUsing Response model reference\n------------------------------\n\n.. code-block:: python\n\n    response = client.get('....')\n\n    # Getting list of domains\n    response.result\n    # Checking the size of the domain list\n    response.size\n    # Checking if there is a next page\n    if response.has_next():\n        ....\n\n    # `current_page` shows the `search_from` value\n    ...\n    r = client.get(ns='ns', search_from='last.domain.of.the.previous.page.com')\n    print(r.current_page)\n    # \u003e\u003e'last.domain.of.the.previous.page.com'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhois-api-llc%2Freverse-ns-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhois-api-llc%2Freverse-ns-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhois-api-llc%2Freverse-ns-py/lists"}