id: api-hirak-rates

info:
  name: Hirak Exchange Rates API Test
  author: daffainfo
  severity: info
  description: Exchange rates between 162 currency & 300 crypto currency update each 5 min, accurate, no limits
  reference:
    - https://rates.hirak.site/
    - https://github.com/daffainfo/all-about-apikey/tree/main/hirak-exchange-rates
  metadata:
    max-request: 1
  tags: token-spray,hirak

self-contained: true

http:
  - method: GET
    path:
      - "https://rates.hirak.site/stat/?token={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"token":'
          - '"plan":'
          - '"hits":'
          - '"remain":'
        condition: and
# digest: 4a0a0047304502206f2f25b900ccfa01ff2f0dca468dac07c103b95a76d0a2db57bea06031b5a10d022100bcd070a64bcb668628e2c101aa75d43a859ef6a3978f854fdd7c3e5e8835d689:922c64590222798bb761d5b6d8e72950