id: api-screenshotapi

info:
  name: ScreenshotAPI API Test
  author: daffainfo,geeknik
  severity: info
  description: Create pixel-perfect website screenshots
  reference:
    - https://docs.screenshotapi.net/?ref=webflow
    - https://github.com/daffainfo/all-about-apikey/tree/main/screenshot-api
  metadata:
    max-request: 1
  tags: token-spray,screenshotapi

self-contained: true

http:
  - method: GET
    path:
      - "https://shot.screenshotapi.net/screenshot?token={{token}}&url=https://example.com"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'screenshot'
          - 'url'
        condition: and

      - type: status
        status:
          - 403
          - 401
          - 400
        negative: true
# digest: 490a004630440220425eb41578e74d8a8d55186c29dc1eacd06dd819fa4378a634a6987ff52d95c902202ac3f175d5affab248976fdb2014ffa8599f23d1209fd5ce029d338901a88b8d:922c64590222798bb761d5b6d8e72950