id: api-opengraphr

info:
  name: OpenGraphr API Test
  author: daffainfo
  severity: info
  description: Really simple API to retrieve Open Graph data from an URL
  reference:
    - https://opengraphr.com/docs/1.0/overview
    - https://github.com/daffainfo/all-about-apikey/tree/main/opengraphr
  metadata:
    max-request: 1
  tags: token-spray,opengraphr

self-contained: true

http:
  - method: GET
    path:
      - "https://api.opengraphr.com/v1/og?api_token={{token}}&url=https://google.com"

    matchers:
      - type: word
        part: body
        words:
          - '"title"'
          - '"image"'
          - '"url"'
        condition: and
# digest: 4b0a00483046022100cc2f04898939d7d0eb1df8f396ef8bcee621fee6e490977f3ac48ed3da1006a1022100db60ee3c6f50ba5e886cef8b02fd57c10f219ef8713061f5a9d5916ca7a8440f:922c64590222798bb761d5b6d8e72950