id: api-iucn

info:
  name: IUCN API Test
  author: daffainfo
  severity: info
  description: IUCN Red List of Threatened Species
  reference:
    - http://apiv3.iucnredlist.org/api/v3/docs
    - https://github.com/daffainfo/all-about-apikey/tree/main/iucn
  metadata:
    max-request: 1
  tags: token-spray,iucn

self-contained: true

http:
  - method: GET
    path:
      - "http://apiv3.iucnredlist.org/api/v3/country/list?token={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - 'taxonid'
          - 'scientific_name'
          - 'subspecies'
        condition: and
# digest: 4b0a00483046022100be9505305ec64aabac597c1d3a610aee2761fe81d0db587c96b841234108688e0221009bb775146fc35383d19d84fdeb13ed8d2f19e148f9b98e1fa6a727cac616c36c:922c64590222798bb761d5b6d8e72950