-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy patharticle.json
executable file
·63 lines (63 loc) · 1.56 KB
/
article.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"version": 1,
"request": {
"url": "https://api.nytimes.com/svc/search/v2/articlesearch.json",
"method": "GET",
"authorization": {
"type": "QueryParam",
"keyParam": "api-key"
},
"params": {
"q": true,
"page": false,
"limit": false
},
"search": {
"key": "q"
},
"pagination": {
"type": "page",
"pageKey": "page",
"limitKey": "limit",
"maxCount": 10
}
},
"examples": {
"q": "'politics'"
},
"response": {
"ctype": "application/json",
"tablePath": "$.response.docs[*]",
"schema": {
"headline": {
"target": "$.headline.main",
"type": "string"
},
"authors": {
"target": "$.byline.original",
"type": "string"
},
"abstract": {
"target": "$.abstract",
"type": "string"
},
"url": {
"target": "$.web_url",
"type": "string"
},
"lead_paragraph": {
"target": "$.lead_paragraph",
"type": "string"
},
"word_count": {
"target": "$.word_count",
"type": "int"
},
"pub_date": {
"target": "$.pub_date",
"type": "string"
}
},
"orient": "records"
}
}