diff --git a/token-spray/api-covalent.yaml b/token-spray/api-covalent.yaml new file mode 100644 index 0000000000..ad6594f1ee --- /dev/null +++ b/token-spray/api-covalent.yaml @@ -0,0 +1,23 @@ +id: api-covalent + +info: + name: Covalent API Test + author: daffainfo + severity: info + reference: + - https://www.covalenthq.com/docs/api/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Covalent.md + tags: token-spray,covalent + +self-contained: true +requests: + - method: GET + path: + - "https://api.covalenthq.com/v1/3/address/balances_v2/?&key={{token}}" + + matchers: + - type: word + part: body + negative: true + words: + - 'Invalid API key' diff --git a/token-spray/api-etherscan.yaml b/token-spray/api-etherscan.yaml new file mode 100644 index 0000000000..144601dacc --- /dev/null +++ b/token-spray/api-etherscan.yaml @@ -0,0 +1,23 @@ +id: api-etherscan + +info: + name: Etherscan API Test + author: daffainfo + severity: info + reference: + - https://docs.etherscan.io/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Etherscan.md + tags: token-spray,etherscan + +self-contained: true +requests: + - method: GET + path: + - "https://api.etherscan.io/api?module=account&action=balance&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&tag=latest&apikey={{token}}" + + matchers: + - type: word + part: body + negative: true + words: + - 'Invalid API Key' diff --git a/token-spray/api-nownodes.yaml b/token-spray/api-nownodes.yaml new file mode 100644 index 0000000000..fd2cc1ee93 --- /dev/null +++ b/token-spray/api-nownodes.yaml @@ -0,0 +1,28 @@ +id: api-nownodes + +info: + name: Nownodes API Test + author: daffainfo + severity: info + reference: + - https://nownodes.io/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Nownodes.md + tags: token-spray,nownodes + +self-contained: true +requests: + - raw: + - | + GET /api HTTP/1.1 + Host: bsc-blockbook.nownodes.io + api-key: {{token}} + Content-Type: application/json + + matchers: + - type: word + part: body + words: + - '"coin":' + - '"host":' + - '"version":' + condition: and diff --git a/token-spray/api-thecatapi.yaml b/token-spray/api-thecatapi.yaml index f8399778d8..54740e47d8 100644 --- a/token-spray/api-thecatapi.yaml +++ b/token-spray/api-thecatapi.yaml @@ -4,7 +4,9 @@ info: name: TheCatApi API Test author: daffainfo severity: info - reference: https://docs.thecatapi.com/ + reference: + - https://docs.thecatapi.com/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Animals/TheCatApi.md tags: token-spray,thecatapi self-contained: true @@ -16,7 +18,10 @@ requests: x-api-key: "{{token}}" matchers: - - type: status - negative: true - status: - - 401 + - type: word + part: body + words: + - 'id":' + - 'image_id":' + - 'sub_id":' + condition: and diff --git a/token-spray/api-thedogapi.yaml b/token-spray/api-thedogapi.yaml new file mode 100644 index 0000000000..75db08e1fc --- /dev/null +++ b/token-spray/api-thedogapi.yaml @@ -0,0 +1,27 @@ +id: api-thedogapi + +info: + name: TheDogApi API Test + author: daffainfo + severity: info + reference: + - https://docs.thedogapi.com/ + - https://github.com/daffainfo/all-about-apikey/blob/main/Animals/TheDogApi.md + tags: token-spray,thedogapi + +self-contained: true +requests: + - method: GET + path: + - "https://api.thedogapi.com/v1/votes" + headers: + x-api-key: "{{token}}" + + matchers: + - type: word + part: body + words: + - 'id":' + - 'image_id":' + - 'sub_id":' + condition: and