id: api-amdoren

info:
  name: Amdoren API Test
  author: daffainfo
  severity: info
  description: Free currency API with over 150 currencies
  reference:
    - https://www.amdoren.com/currency-api/
    - https://github.com/daffainfo/all-about-apikey/tree/main/amdoren
  metadata:
    max-request: 1
  tags: token-spray,amdoren

self-contained: true

http:
  - method: GET
    path:
      - "https://www.amdoren.com/api/currency.php?api_key={{token}}&from=USD&to=EUR"

    matchers:
      - type: word
        part: body
        words:
          - '"error" : 0'
          - '"error_message" : "-"'
        condition: and
# digest: 4a0a004730450221008f53dc7b9f97d8e8d23e2de3876900e2f058b39dbb3c3372c9522032a29a2ff70220625433fb076a89868764a1ab3c987984ae4999dec0e92d468bcd2a41690b7a71:922c64590222798bb761d5b6d8e72950