id: api-scrapingant

info:
  name: ScrapingAnt API Test
  author: daffainfo
  severity: info
  description: Headless Chrome scraping with a simple API
  reference:
    - https://docs.scrapingant.com/
    - https://github.com/daffainfo/all-about-apikey/tree/main/scrapingant
  metadata:
    max-request: 1
  tags: token-spray,scrapingant

self-contained: true

http:
  - raw:
      - |
        POST https://api.scrapingant.com/v1/general HTTP/1.1
        Host: api.scrapingant.com
        x-api-key: {{token}}
        Content-Type: application/json

        {"url": "https://example.com"}

    matchers:
      - type: word
        part: body
        words:
          - '"content"'
          - '"cookies"'
          - '"status_code"'
        condition: and
# digest: 4b0a00483046022100a7c5566c74dbd7bc9fd923dbcf942eae030a22890a29b1af5460aac0ca88f143022100b706f862a11760da1f3b8f1828d9d4efd1b5dbf8524e199fec016731067c102d:922c64590222798bb761d5b6d8e72950