wordCount

Historics Preview wordCount type returns a list of the top n words found in the specified target. For example, if you are looking at YouTube video titles and want to know what the top ten words found in the matching interactions are, use the wordCount preview on the youtube.title target with the count parameter set to 10.

Parameters

  • count - maximum number of most-frequently used words. Allowed range: 1 to 100.

Sample targets

Sample output data

The following example shows output for the top ten results of a wordCount preview on interaction.content (interaction.content,wordCount,10):

{
    "id": "4ffaee9aebd52ba37a7f",
    "name": "preview",
    "progress": 100,
    "status": "succeeded",
    "feeds": "twitter",
    "sample": 1,
    "end": 1359936000,
    "created_at": 1364313516,
    "start": 1359849600,
    "user": "12635",
    "parameters": "interaction.content,wordCount,10",
    "hash": "c2307b18e06254647a52d7a9c0bcfe59",
    "data": [
        {
            "target": "interaction.content",
            "analysis": "wordCount",
            "output": {
                "sunday": 304,
                "feel": 368,
                "people": 724,
                "pra": 376,
                "más": 317,
                "lol": 1249,
                "thirsty": 2289,
                "xd": 352,
                "itu": 421,
                "ini": 378
            },
            "threshold": 10
        }
    ]
}

The following example shows output for the top ten results of a wordCount preview on interaction.content (interaction.content,wordCount,10) and the results of a targetVol preview on interaction.content computed at hourly intervals:

{
    "id": "4ffaee9aebd52ba37a7f",
    "name": "preview",
    "progress": 100,
    "status": "succeeded",
    "feeds": "twitter",
    "sample": 1,
    "end": 1359936000,
    "created_at": 1364314662,
    "start": 1359849600,
    "user": "12635",
    "parameters": "interaction.content,wordCount,10;interaction.content,targetVol,hour",
    "hash": "c2307b18e06254647a52d7a9c0bcfe59",
    "data": [
        {
            "target": "interaction.content",
            "analysis": "wordCount",
            "output": {
                "lol": 1249,
                "thirsty": 2289,
                "good": 834,
                ":(": 829,
                "love": 1462,
                ":d": 1235,
                ":)": 2412,
                "time": 800,
                "haha": 956,
                "follow": 1130
            },
            "threshold": 10
        },
        {
            "target": "interaction.content",
            "analysis": "targetVol",
            "output": {
                "2013/02/03 21:00:00": 3785,
                "2013/02/03 04:00:00": 3651,
                "2013/02/03 01:00:00": 3583,
                "2013/02/03 20:00:00": 3863,
                "2013/02/03 16:00:00": 4206,
                "2013/02/03 00:00:00": 3551,
                "2013/02/03 07:00:00": 2633,
                "2013/02/03 23:00:00": 4502,
                "2013/02/03 14:00:00": 4407,
                "2013/02/03 19:00:00": 3735,
                "2013/02/03 05:00:00": 3318,
                "2013/02/03 13:00:00": 4008,
                "2013/02/03 15:00:00": 4248,
                "2013/02/03 08:00:00": 2535,
                "2013/02/03 11:00:00": 3120,
                "2013/02/03 10:00:00": 2771,
                "2013/02/03 12:00:00": 3538,
                "2013/02/03 02:00:00": 3710,
                "2013/02/03 09:00:00": 2546,
                "2013/02/03 22:00:00": 4063,
                "2013/02/03 03:00:00": 3749,
                "2013/02/03 18:00:00": 3828,
                "2013/02/03 06:00:00": 2966,
                "2013/02/03 17:00:00": 4060
            },
            "interval": "hour"
        }
    ]
}