id: api-serpstack

info:
  name: serpstack API Test
  author: daffainfo
  severity: info
  description: Real-Time & Accurate Google Search Results API
  reference:
    - https://serpstack.com/documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/serpstack
  metadata:
    max-request: 1
  tags: token-spray,serpstack

self-contained: true

http:
  - method: GET
    path:
      - "http://api.serpstack.com/search?access_key={{token}}&query=mcdonalds"

    matchers:
      - type: word
        part: body
        words:
          - '"total_time_taken"'
          - '"processed_timestamp"'
          - '"search_url"'
        condition: and

# digest: 4b0a00483046022100e5617e9467eec0004b8d5ea61213affe2e734dafc39987060335cac985f98fc802210094a842acbd2bef636f7cfc866b7bbedce5382b4275849325412479831a6cc1c4:922c64590222798bb761d5b6d8e72950
