Visual insights
Indoor / Outdoor split
This diagram shows the split between indoor and outdoor pictures within the articles which match the criteria filters:
To retrieve this result, we can use published
histogram with the highest interval value
to get only the total number over the period and the parameter q
setted to the image's scene you want to retrieve (one of scence-indoor
or scence-outdoor
) :
curl -L -X GET 'https://api.talkwalker.com/api/v1/search/p/<project_id>/histogram/published?access_token=<access_token>&timezone=Europe/Luxembourg&interval=2w&min=1633039200000&max=1633644000000&q=image:scene-indoor'
If the data is spread over 2 weeks, months, quarter or years, you will get 2 results, one per period. You need to double it to get only one result (eg: if it spreads over 2 years, use the interval 720d).
In our sample :
t
is the timestamp (beginning of the period).v
is the array of number of published documents which match the filter criterias in the filtered period. In our sample, we got 99 documents where the image was identified as an indoor scene.
Input split
This diagram shows the split between the type of media in the articles which match the criteria filters:
To retrieve this result, we can use published
histogram with the highest interval value
to get only the total number over the period and the parameter q
setted to the contain's tag you want to retrieve (one of image
, video
or audio
) :
curl -L -X GET 'https://api.talkwalker.com/api/v1/search/p/<project_id>/histogram/published?access_token=<access_token>&timezone=Europe/Luxembourg&interval=2w&min=1633039200000&max=1633644000000&q=contains:video'
If the data is spread over 2 weeks, months, quarter or years, you will get 2 results, one per period. You need to double it to get only one result (eg: if it spreads over 2 years, use the interval 720d).
In our sample :
t
is the timestamp (beginning of the period).v
is the array of number of published documents which match the filter criterias in the filtered period. In our sample, we got 317 documents which contain a video.