-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathso_answer___data.json
41 lines (41 loc) · 2.1 KB
/
so_answer___data.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
/* Retrieve metadata for Stack Overflow answers. */
{
"input_parameters": ["id",
["filter",
"https://api.stackexchange.com/2.2/filters/create?include=answer.comment_count;answer.down_vote_count;answer.last_editor;answer.link;answer.share_link;answer.tags;answer.title;answer.up_vote_count;question.comment_count;question.down_vote_count;question.favorite_count;question.last_editor;question.share_link;question.up_vote_count&exclude=answer.community_owned_date;question.bounty_amount;question.bounty_closes_date;question.community_owned_date;question.migrated_from;question.migrated_to&unsafe=false>",
["items", "0", "filter"]
]
],
"ignore_input_duplicates": false,
"uri_template": "https://api.stackexchange.com/2.2/answers/{id}?key={api_key_1}&site=stackoverflow&filter={filter}",
"api_keys": [
"" // add Stack Overflow API key here
],
"headers": {},
"delay": [1000, 1500],
"pre_request_callbacks": [],
"pre_request_callback_filter": true,
"output_parameter_mapping": {
"is_accepted": ["items", "0", "is_accepted"],
"answer_id": ["items", "0", "answer_id"],
"score": ["items", "0", "score"],
"share_link": ["items", "0", "share_link"],
"comment_count": ["items", "0", "comment_count"],
"up_vote_count": ["items", "0", "up_vote_count"],
"down_vote_count": ["items", "0", "down_vote_count"],
"owner_id": ["items", "0", "owner", "user_id"],
"owner_name": ["items", "0", "owner", "display_name"],
"owner_reputation": ["items", "0", "owner", "reputation"],
"last_editor_id": ["items", "0", "last_editor", "user_id"],
"last_editor_name": ["items", "0", "last_editor", "display_name"],
"last_editor_reputation": ["items", "0", "last_editor", "reputation"],
"creation_date": ["items", "0", "creation_date"],
"last_edit_date": ["items", "0", "last_edit_date"],
"last_activity_date": ["items", "0", "last_activity_date"],
"question_id": ["items", "0", "question_id"]
},
"post_request_callbacks": [],
"post_request_callback_filter": false,
"flatten_output": false,
"chained_request": {} // TODO: get metadata for corresponding questions
}