Sources

Retrieve historic Sources data

GETtrends/sources

Retrieves a historical list of sources that have referred visitors to the site, grouped by 'direct', 'organic', 'site' and 'social'.

Query String Parameters

from

String

The start date-time for the query

to

String

The end date-time for the query

dateFormat

String

The format that any date parameters will be returned in. This takes any value permitted by Moment.

format

StringDefault Value: json

Accepted values: json, csv

The response format required (overrides header)

group

BooleanDefault Value: false

Used in conjunction with a sourceType, groups list by common source. For site sourceType, groups by site domain. For organic sourceType, groups by search engine. For social sourceType, groups by social site domain.

limit

StringDefault Value: 0,20

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

sourceType

String

Accepted values: site, social, organic, internal

Retrieve only the results for the given source type

Definition

GET https://api.gosquared.com/trends/v2/sources

Example Request

curl "https://api.gosquared.com/trends/v2/sources?api_key=demo&site_token=GSN-106863-S" 

Live Responseundefined undefined

Your API Key is not authorised for this endpoint

Please fill in the required fields in the Query Builder

Retrieve sources by group

GETtrends/sources/{sourceType}

Retrieves a historical list of sources for the given section.

Path Parameters

sourceType

StringRequired

Accepted values: site, social, organic, internal

Retrieve a list of items for given source type

Query String Parameters

from

String

The start date-time for the query

to

String

The end date-time for the query

dateFormat

String

The format that any date parameters will be returned in. This takes any value permitted by Moment.

format

StringDefault Value: json

Accepted values: json, csv

The response format required (overrides header)

group

BooleanDefault Value: false

Used in conjunction with a sourceType, groups list by common source. For site sourceType, groups by site domain. For organic sourceType, groups by search engine. For social sourceType, groups by social site domain.

limit

StringDefault Value: 0,20

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

Definition

GET https://api.gosquared.com/trends/v2/sources/{sourceType}

Example Request

curl "https://api.gosquared.com/trends/v2/sources/{sourceType}?api_key=demo&site_token=GSN-106863-S" 

Live Responseundefined undefined

Your API Key is not authorised for this endpoint

Please fill in the required fields in the Query Builder