id: api-ipinfo

info:
  name: IPinfo API Test
  author: 0xpugal
  severity: info
  reference:
    - https://ipinfo.io/developers
  metadata:
    verified: true
    max-request: 1
  tags: token-spray,ipinfo

self-contained: true

http:
  - method: GET
    path:
      - "https://ipinfo.io/?token={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"ip"'
          - '"city"'
          - '"org"'
          - '"postal"'
          - '"timezone"'
        condition: and
# digest: 4b0a00483046022100a73ab0c1f39c97317cb5304b1c6b05e771428a1c9884e29c964e20e6b862068d022100cf15d3b8835d10c347d4e76352b765ae4d432d2925689e4a7668a7028078dbff:922c64590222798bb761d5b6d8e72950