id: api-mywot

info:
  name: My Web of Trust API
  author: daffainfo
  severity: info
  description: IP/domain/URL reputation
  reference:
    - https://support.mywot.com/hc/en-us/sections/360004477734-API-
    - https://github.com/daffainfo/all-about-apikey/tree/main/web-of-trust
  metadata:
    max-request: 1
  tags: token-spray,weboftrust

self-contained: true

http:
  - raw:
      - |
        GET https://scorecard.api.mywot.com/v3/targets?t=hbo.com&t=google.com HTTP/1.1
        Host: scorecard.api.mywot.com
        x-user-id: {{id}}
        x-api-key: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"target":'
          - '"safety":'
        condition: and
# digest: 4a0a0047304502204471dedc5cbaca9dafeff30a631fb03296e13fec69708a7d26132fccb0a58c35022100ecb6f89be8ffa8d980a3d67ae4e2f17473a314dbcd594ebb61ebfb18790cd032:922c64590222798bb761d5b6d8e72950