id: api-savepage

info:
  name: SavePage API Test
  author: daffainfo
  severity: info
  description: A free, RESTful API used to screenshot any desktop, or mobile website
  reference:
    - https://docs.savepage.io
    - https://github.com/daffainfo/all-about-apikey/tree/main/savepage
  metadata:
    max-request: 1
  tags: token-spray,savepage

self-contained: true

http:
  - method: GET
    path:
      - "https://api.savepage.io/v1?key={{token}}&q=https://selfcontained.test"

    matchers:
      - type: word
        part: body
        words:
          - 'getaddrinfo ENOTFOUND selfcontained.test'

# digest: 490a0046304402204e42d74af915b48e26f8e5b3ef52406ad7e7564ccabd1919fd950bfbcbb9ecc902202162047f29d81a1cce27ed88245a3c9d6331be3cb73e18858c8b727f778c0d54:922c64590222798bb761d5b6d8e72950
