id: api-open-page-rank

info:
  name: Open Page Rank API Test
  author: daffainfo
  severity: info
  description: API for calculating and comparing metrics of different websites using Page Rank algorithm
  reference:
    - https://www.domcop.com/openpagerank/documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/open-page-rank
  metadata:
    max-request: 1
  tags: token-spray,openpagerank

self-contained: true

http:
  - raw:
      - |
        GET https://openpagerank.com/api/v1.0/getPageRank?domains[]=google.com HTTP/1.1
        Host: openpagerank.com
        API-OPR: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"page_rank_integer"'
          - '"page_rank_decimal"'
          - '"rank"'
        condition: and
# digest: 490a0046304402207a03e49a1f7efdc00c5ec1977af526bbbea7e75a5dc5fea9f29088c3a0bf572302204786c03b2c3640ac77b5b44e897c9e0f37e93054b3877ea7d6ed3d90fb97da8e:922c64590222798bb761d5b6d8e72950