id: api-ipstack

info:
  name: IPStack API Test
  author: zzeitlin
  severity: info
  reference:
    - https://ipstack.com/documentation
  metadata:
    max-request: 1
  tags: token-spray,ipstack

self-contained: true

http:
  - method: GET
    path:
      - "https://api.ipstack.com/8.8.8.8?access_key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"ip":'
          - '"hostname":'
          - '"type":'
        condition: and
# digest: 4a0a00473045022100e951d0a611c53652fdf6924e8b489c8266ff2f2de805ff0c621bc8d805b2662e02206ec4ef208ba355ad290ad67df769b62e670458e900683b8e53a791087f8bf2e9:922c64590222798bb761d5b6d8e72950