{"id":21740889,"url":"https://github.com/whois-api-llc/ip-netblocks-py","last_synced_at":"2026-05-14T12:37:25.820Z","repository":{"id":62571540,"uuid":"424120067","full_name":"whois-api-llc/ip-netblocks-py","owner":"whois-api-llc","description":"IP Netblocks API client library for Python","archived":false,"fork":false,"pushed_at":"2023-05-23T01:32:11.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T14:06:18.622Z","etag":null,"topics":["ip","netblocks","python","whoisxmlapi"],"latest_commit_sha":null,"homepage":"https://ip-netblocks.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-11-03T06:53:05.000Z","updated_at":"2022-02-07T09:41:33.000Z","dependencies_parsed_at":"2025-01-25T21:27:54.723Z","dependency_job_id":"9cf829bc-ed91-4d10-ad2f-e7c46b7d7351","html_url":"https://github.com/whois-api-llc/ip-netblocks-py","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Fip-netblocks-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Fip-netblocks-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Fip-netblocks-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whois-api-llc%2Fip-netblocks-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/ip-netblocks-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":["ip","netblocks","python","whoisxmlapi"],"created_at":"2024-11-26T06:15:48.390Z","updated_at":"2025-09-15T20:53:35.325Z","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: ip-netblocks-py license\n    :target: https://opensource.org/licenses/MIT\n\n.. image:: https://img.shields.io/pypi/v/ip-netblocks.svg\n    :alt: ip-netblocks-py release\n    :target: https://pypi.org/project/ip-netblocks\n\n.. image:: https://github.com/whois-api-llc/ip-netblocks-py/workflows/Build/badge.svg\n    :alt: ip-netblocks-py build\n    :target: https://github.com/whois-api-llc/ip-netblocks-py/actions\n\n========\nOverview\n========\n\nThe client library for\n`IP Netblocks API \u003chttps://ip-netblocks.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 ip-netblocks\n\nExamples\n========\n\nFull API documentation available `here \u003chttps://ip-netblocks.whoisxmlapi.com/api/documentation/making-requests\u003e`_\n\nCreate a new client\n-------------------\n\n.. code-block:: python\n\n    from ipnetblocks import *\n\n    client = Client('Your API key')\n\nMake basic requests\n-------------------\n\n.. code-block:: python\n\n    # Get netblocks for a given IPv4 or IPv6 address.\n    response = client.get('8.8.8.8')\n    print(response)\n\n    # Get netblocks by AS number\n    response = client.get_by_asn(15169)\n    # or\n    client.get(asn=15169)\n\n    # Find IP Netblocks which have the specified search terms in their\n    # Netblock (netname, description, remarks),\n    # or Organisation (org.org, org.name, org.email, org.address) fields.\n    response = client.get_by_org(['google', 'cloud'])\n    # or\n    client.get(org='google')\n\n    # Get raw API response in XML format\n    raw_result = client.get_raw('2.2.2.2',\n        output_format=Client.XML_FORMAT)\n\nAdvanced usage\n-------------------\n\nExtra request parameters\n\n.. code-block:: python\n\n    result = client.get(\n        '1.1.1.1',\n        mask=24,\n        limit=10)\n\nResponse model overview\n-----------------------\n\n.. code-block:: python\n\n    Response:\n        - search: [str]\n        - count: int\n        - limit: int\n        - inetnums: [Inetnum]\n            - inetnum: str\n            - inetnum_first: str\n            - inetnum_last: str\n            - parent: str\n            - AS: AutonomousSystem\n                - asn: int\n                - name: str\n                - type: str\n                - route: str\n                - domain: str\n            - netname: str\n            - nethandle: str\n            - description: [str]\n            - modified: datetime\n            - country: str\n            - city: str\n            - address: [str]\n            - org: Org\n                - org: str\n                - name: str\n                - email: str\n                - phone: str\n                - country: str\n                - city: str\n                - postal_code: str\n                - address: [str]\n            - abuse_contact: [Contact]\n                - id: str\n                - person: str\n                - role: str\n                - email: str\n                - phone: str\n                - country: str\n                - city: str\n                - address: [str]\n            - admin_contact: [Contact]\n            - tech_contact: [Contact]\n            - mnt_by: [Maintainer]\n                - mntner: str\n                - email: str\n            - mnt_domains: [Maintainer]\n            - mnt_lower: [Maintainer]\n            - mnt_routes: [Maintainer]\n            - remarks: [str]\n            - source: str\n\n\nSample response\n---------------\n\n.. code-block:: python\n\n  { 'search': '8.8.8.8', 'count': '7', 'limit': '100',\n    'inetnums': [\n        {'inetnum': '8.8.8.0 - 8.8.8.255',\n         'inetnum_first': 281470816487424,\n         'inetnum_last': 281470816487679,\n         'parent': '',\n         'AS': {'asn': 15169, \n                'name': 'Google LLC',\n                'type': 'Content',\n                'route': '8.8.8.0/24',\n                'domain': 'https://about.google/intl/en/'}\",\n         'netname': 'LVLT-GOGL-8-8-8', 'nethandle': 'NET-8-8-8-0-1',\n         'description': [],\n         'modified': '2014-03-14 00:00:00',\n         'country': 'US',\n         'city': 'Mountain View',\n         'address': ['1600 Amphitheatre Parkway'],\n         'abuse_contact': [], 'admin_contact': [], 'tech_contact': [],\n         'org': {'org': 'GOGL',\n                 'name': 'Google LLC',\n                 'email': 'arin-contact@google.com\\\\nnetwork-abuse@google.com',\n                 'phone': '+1-650-253-0000',\n                 'country': 'US',\n                 'city': 'Mountain View',\n                 'postal_code': '94043',\n                 'address': ['1600 Amphitheatre Parkway']},\n         'mnt_by': [], 'mnt_domains': [], 'mnt_lower': [], 'mnt_routes': [],\n         'remarks': [],\n         'source': 'ARIN'}\n        {'inetnum': '8.0.0.0 - 8.15.255.255',\n         'inetnum_first': 281470815961088,\n         'inetnum_last': 281470817009663,\n         'parent': '8.0.0.0 - 8.127.255.255',\n         'AS': {'asn': 3356,\n                'name': 'Lumen AS 3356',\n                'type': 'NSP',\n                'route': '8.0.0.0/12',\n                'domain': 'http://www.lumen.com'}\",\n         'netname': 'LVLT-ORG-8-8', 'nethandle': 'NET-8-0-0-0-1',\n         'description': [],\n         'modified': '2018-04-23 00:00:00',\n         'country': 'US',\n         'city': 'Monroe',\n         'address': ['100 CenturyLink Drive'],\n         'abuse_contact': [], 'admin_contact': [], 'tech_contact': [],\n         'org': {'org': 'LPL-141',\n                 'name': 'Level 3 Parent, LLC',\n                 'email': 'abuse@level3.com nipaddressing@level3.com',\n                 'phone': '+1-877-453-8353',\n                 'country': 'US',\n                 'city': 'Monroe',\n                 'postal_code': '71203',\n                 'address': ['100 CenturyLink Drive']},\n         'mnt_by': [], 'mnt_domains': [], 'mnt_lower': [], 'mnt_routes': [],\n         'remarks': [],\n         'source': 'ARIN'}\n        ...\n    ]\n  }\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhois-api-llc%2Fip-netblocks-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhois-api-llc%2Fip-netblocks-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhois-api-llc%2Fip-netblocks-py/lists"}