Download Modifiying documents with the Talkwalker API

Transcript
{
"status_code" : "0",
"status_message" : "OK",
"request" : "GET
/api/v1/search/histogram?access_token=demo&q=birds%20sourcetype:\"ONLINENEWS\"&interval=7d&pretty=true",
"result_histogram" : {
"header" : {
"v" : [ "Number Results" ]
},
"data" : [ {
"t" : 1417478400000,
"v" : [ 4366.0 ]
}, {
"t" : 1417564800000,
"v" : [ 3385.0 ]
}, {
"t" : 1417651200000,
"v" : [ 4233.0 ]
}, {
"t" : 1417737600000,
"v" : [ 4071.0 ]
}, {
"t" : 1417824000000,
"v" : [ 2571.0 ]
}, {
"t" : 1417910400000,
"v" : [ 2191.0 ]
}, {
"t" : 1417996800000,
"v" : [ 3275.0 ]
}, {
"t" : 1418083200000,
"v" : [ 1140.0 ]
} ]
}
}
Get a histogram with a resolution of 6 hours over the last 7 days of results containing
the word "birds"
Set interval to 6h for 4 values per day.
curl
'https://api.talkwalker.com/api/v1/search/histogram/published?access_token=demo&q=birds&interval=6h&pretty=tru
e'