29 lines
574 B
YAML
29 lines
574 B
YAML
id: api-nytimes
|
|
|
|
info:
|
|
name: NYTimes API Test
|
|
author: daffainfo
|
|
severity: info
|
|
description: NYTimes API Test
|
|
reference:
|
|
- https://developer.nytimes.com/apis
|
|
tags: token-spray,nytimes
|
|
metadata:
|
|
max-request: 1
|
|
|
|
self-contained: true
|
|
http:
|
|
- 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:
|
|
- '"status":'
|
|
- '"copyright":'
|
|
- '"num_results":'
|
|
condition: and
|