IP2WHOIS

IP2WHOIS WHOIS lookup api helps users to obtain domain information, WHOIS record, by using a domain name. The WHOIS API returns a comprehensive WHOIS data such as creation date, updated date, expiration date, domain age, the contact information of the registrant, mailing address, phone number, email address, nameservers the domain is using and much more. IP2WHOIS supports the query for 1113 TLDs and 634 ccTLDs.

Go to site

Integrate the IP2WHOIS API with the Python API

Setup the IP2WHOIS API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate IP2WHOIS and Python remarkably fast. Free for developers.

Connect IP2WHOIS

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ip2whois: {
      type: "app",
      app: "ip2whois",
    },
    domain: {
      type: "string",
      default: "greendot.com"
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.ip2whois.com/v2?key={your_license_key}&domain={domain_name}`,
      params: {
        key: `${this.ip2whois.$auth.api_key}`,
        domain: `${this.domain}`,
      },
    })
  },
})

Connect Python

from pipedream.script_helpers import (steps, export)

# Reference data from previous steps
print(steps["trigger"]["context"]["id"])

# Return data for use in future steps
export("foo", {"test":True})