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: 490a00463044022068c08d9876d73e8181765fd57562d760a4114651d93979f971482cc92ea2298902206e89c0c4f3ef9094331bb64b3335fe5e3a94c9c24d0d603634b6077515e43a1a:922c64590222798bb761d5b6d8e72950
