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