Countries

Retrieve list of countries

GETnow/countries

Retrieves a list of the different countries that currently online visitors are from, sorted by the number of visitors per country.

Query String Parameters

limit

StringDefault Value: 0,5

The maximum number of results e.g. 10 to return with an optional offset e.g. 5,10

presenter

StringDefault Value: truncatedList

Accepted values: truncatedList, list, truncatedObject, object

Modifies the response data structure

  • truncatedList: A list of items including the sum of "other" values
  • list: A list of items
  • truncatedObject: A key:value object of item:count including the sum of "other" values
  • object: A key:value object of item:count

Definition

GET https://api.gosquared.com/now/v3/countries

Example Request

var GoSquared = require('gosquared');
var gosquared = new GoSquared({
  api_key: 'demo',
  site_token: 'GSN-106863-S'
});

gosquared.now.v3.countries(function(err, res) {
  if (err) return console.log(err);
  console.log(res);
});

Live Responseundefined undefined

Your API Key is not authorised for this endpoint

Please fill in the required fields in the Query Builder