id: api-urlscan

info:
  name: URLScan API Test
  author: daffainfo
  severity: info
  description: Scan and Analyse URLs
  reference:
    - https://urlscan.io/docs/api/
    - https://github.com/daffainfo/all-about-apikey/tree/main/urlscan
  metadata:
    max-request: 1
  tags: token-spray,urlscan

self-contained: true

http:
  - raw:
      - |
        GET https://urlscan.io/user/quotas/ HTTP/1.1
        Host: urlscan.io
        Content-Type: application/json
        API-Key: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - 'X-Rate-Limit-Scope:'
          - 'X-Rate-Limit-Limit:'
          - 'X-Rate-Limit-Remaining:'
        condition: and

# digest: 4a0a0047304502203cb0701cadd396aaf22545b3fc8cdba4f6ad1ebc91776ea487ba439eb6c6b74a022100ac57630b68e70ca749e67081b8c4b527fe730c85f0805a8237199a50488cd329:922c64590222798bb761d5b6d8e72950
