Get Daily Traffic Data by Segment
This endpoint returns the organic traffic metrics by day for a traffic segment over a specified timeframe.
The data returned includes the number of sessions, conversions, bounce rate, and revenue.
Request
(Required) This parameter specifies the ID of the campaign for which you want to return data.
Please refer to the Quick Start Guide to learn how to retrieve the IDs of your campaigns.
(Required) This parameter specifies the start date of the timeframe for which you want to return the data, in YYYY-MM-DD format.
(Required) This parameter specifies the end date of the timeframe for which you want to return the data, in YYYY-MM-DD format.
The name assigned to the segment in the platform.
Accepted values are all
, non-brand
, brand
, or the name of a custom traffic segment created in the SEOmonitor platform, e.g. "blog".
Unless otherwise specified, data will be returned for the Non-Brand segment by default.
Request samples
Responses
{
"date": "<date>",
"sessions": "<integer>",
"ecommerce": {
"conversions": "<integer>",
"revenue": "<integer>"
},
"goals": {
"completions": "<integer>",
"revenue": "<integer>"
},
"bounce_rate": "<number>"
}