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: 4a0a00473045022100a24cf8506b2bcd21a59c324234f93d103ed7ba7623b5c9cffa79eaa8842e0baf02203b7574186a94356c304ce062fbf5be6822c0d48d2dc17137b9a2fd6d8a76855a:922c64590222798bb761d5b6d8e72950
