Sources
Retrieve sources
GETnow/sources
Retrieves a list of sources that have referred visitors to the site, grouped by 'direct', 'organic', 'site' and 'social'. 'site', 'organic' and 'social' can be grouped by the engine/domain too.
Query String Parameters
limit | StringDefault Value: The maximum number of results e.g. |
drillLimit | StringDefault Value: The maximum number of results e.g. |
sections | StringDefault Value: A comma separated list of source types to return. Any of |
minimal | BooleanDefault Value: If true, returns a compacted version of the response |
Example Request
require_once('gosquared-php-sdk/main.php');
$GS = new GoSquared(array(
'site_token' => 'GSN-106863-S',
'api_key' => 'demo'
));
$result = $GS->now->sources();
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder
Retrieve group of sources
GETnow/sources/{sections}
Retrieves a specified group of sources such as 'site'.
Path Parameters
sections | StringRequired The source type to return. One of |
Query String Parameters
limit | StringDefault Value: The maximum number of results e.g. |
drillLimit | StringDefault Value: The maximum number of results e.g. |
minimal | BooleanDefault Value: If true, returns a compacted version of the response |
Example Request
require_once('gosquared-php-sdk/main.php');
$GS = new GoSquared(array(
'site_token' => 'GSN-106863-S',
'api_key' => 'demo'
));
$result = $GS->now->sources->{sections}();
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder