Organize multi page data 'by page'

kimono API results will be consolidated across crawled pages. This means, in effect, that each collection will contain the full aggregate list of result items across all pages crawled.

You can change this if desired by choosing to organize your results by page. On the data preview tab of the detailpage, you can select 'kimbypage' from the filter dropdown menu. Else you can simply append kimbypage=1 to your API call, like this:

https://www.kimonolabs.com/api/{API_ID}?apikey={YOUR_API_KEY}&kimbypage=1

The results property in the API response will contain an array of 'pages' rather than an object of collections, where each page looks like an independent results object full of collections and properties. It looks like this:

{
  "name": "Hackernews Top Item",
  "lastrunstatus": "success",
  "version": 6,
  "count": 1,
  "frequency": "daily",
  "newdata": true,
  "lastsuccess": "Wed Mar 05 2014 11:13:41 GMT-0800 (PST)",
  "nextrun": "Thu Mar 06 2014 11:13:49 GMT-0800 (PST)",
  "results": [
    {
      page:1,
      url:"http://news.ycombinator.com",
      "collection1": [
        {
          "property1": {
            "href": "https://blog.mozilla.org/research",
            "text": "Introducing the ‘mozjpeg’ Project"
          },
          "property2": "26 points",
          "property3": {
            "href": "https://news.ycombinator.com/item?id=7348814",
            "text": "1 comment"
          }
        }
      ]
    },
    {
      page:2,
      url:"http://news.ycombinator.com/news2",
      "collection1": [
        {
          "property1": {
            "href": "http://dish.andrewsullivan.com/2014/03/05/the-cia-spied/",
            "text": "Yes, The CIA Spied On Congress"
          },
          "property2": "151 points",
          "property3": {
            "href": "https://news.ycombinator.com/item?id=7291039",
            "text": "43 comments"
          }
        }
      ]
    }
  ]
}

 

 

Powered by Zendesk