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

require 'gosquared'

gs = Gosquared::RubyLibrary.new('demo','GSN-106863-S')

gs.now.countries

gs.now.fetch

Live Responseundefined undefined

Your API Key is not authorised for this endpoint

Please fill in the required fields in the Query Builder