2022-10-21 01:42:43 +00:00
|
|
|
id: api-nytimes
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: NYTimes API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
|
|
|
description: NYTimes API Test
|
|
|
|
reference:
|
|
|
|
- https://developer.nytimes.com/apis
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: token-spray,nytimes
|
2022-10-21 01:42:43 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-10-21 01:42:43 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET https://api.nytimes.com/svc/mostpopular/v2/shared/1.json?api-key={{token}} HTTP/1.1
|
|
|
|
Host: api.nytimes.com
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2022-10-24 12:56:43 +00:00
|
|
|
- '"status":'
|
|
|
|
- '"copyright":'
|
|
|
|
- '"num_results":'
|
2022-10-21 01:42:43 +00:00
|
|
|
condition: and
|