id: api-ip2whois

info:
  name: IP2WHOIS API Test
  author: daffainfo
  severity: info
  description: WHOIS domain name lookup
  reference:
    - https://www.ip2whois.com/developers-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/ip2whois
  metadata:
    max-request: 1
  tags: token-spray,ip2whois

self-contained: true

http:
  - method: GET
    path:
      - "https://api.ip2whois.com/v2?key={{token}}&domain=daffa.tech&format=json"

    matchers:
      - type: word
        part: body
        words:
          - '"domain"'
          - '"domain_id"'
          - '"whois_server"'
        condition: and
# digest: 4b0a004830460221008390c05b9dad1d297ebd5bff1b65da9720ccfb4d36a71c50e6a1ebfd1d1cecc4022100db8cab74c2e6c4790c0c1d8b26517efe62992db35b94ad191a1d0605030ce31e:922c64590222798bb761d5b6d8e72950