Authentication Required

API Key

Parameters

Required

site_token Site Token

Optional

pagesLimit Start and end positions for the portion of pages to send back. Values can be:

A single integer n - fetch the n top pages

Comma-delimited string x , n - fetch the top n pages stating at position x

Returns

JSON ONLY. Object of information about the pages with visitors viewing them. Pages are returned, sorted in descending order by the number of visitors present on them.

Key Type Description
cardinality Integer The total number of pages that have visitors online right now.
[PAGE URL] Object Object containing current browsing data for a page. Contains the keys:
visitors Integer Number of visitors currently browsing that page
title String Page title

Complexity Cost

1 unit.

Example Request

http://api.gosquared.com/pages?api_key=API_KEY&site_token=GSN-1234567-X

Example Response

{
    "pages": {
        "cardinality": 45,
        "http://www.gosquared.com/": {
            "title": "GoSquared - real-time web analytics",
            "visitors": 234
        },
        "http://www.gosquared.com/about/": {
            "title": "GoSquared real-time web analytics - About us",
            "visitors": 150
        },
        "http://www.gosquared.com/liquidicity/": {
            "title": "GoSquared - Blog",
            "visitors": 125
        },
        "http://www.gosquared.com/features/": {
            "title": "GoSquared - Features - real-time web analytics",
            "visitors": 101
        },
        "http://www.gosquared.com/support/": {
            "title": "GoSquared - Support",
            "visitors": 83
        },
        "http://www.gosquared.com/labs/": {
            "title": "GoSquared - Labs",
            "visitors": 50
        },
        "http://www.gosquared.com/livestats/demo/": {
            "title": "GoSquared - LiveStats Public Demo - Real-Time Analytics",
            "visitors": 42
        },
        [...]
    }
}
Last modified: 3 April 2012 12:14