id: api-ipdata

info:
  name: IP Data API Test
  author: 0xpugal
  severity: info
  reference:
    - https://docs.ipdata.co/docs
  metadata:
    verified: true
    max-request: 1
  tags: token-spray,ipdata

self-contained: true

http:
  - method: GET
    path:
      - "https://api.ipdata.co/?api-key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"ip":'
          - '"name":'
          - '"asn":'
          - '"route":'
          - '"time_zone":'
        condition: and
# digest: 490a0046304402201770688ecc9ba8580973d2a3b830b755eb418ea55d741f6fde53c7e42fe9034c022044c1b3d73d0b7dcdafe566b59f42223e32b737ad6220f452181b528cf0b0bf7b:922c64590222798bb761d5b6d8e72950