Brokerage
Get website traffic
GET
https://api.ruuster.com/v1/trafficGoogle Analytics visits to your Ruuster hostnames by source, medium and campaign. Measured per website, so it can't be split by agent, lead or listing.
- Authentication:
x-api-keyandx-emailheaders of an owner or admin - Rate limit: 120 requests per minute per key
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
from |
date | 30 days before to |
First day, YYYY-MM-DD in America/Chicago, included |
to |
date | today | Day after the last day, YYYY-MM-DD, excluded |
granularity |
string | day |
day, week or month. History goes back to coverage.ga.from in /me |
groupBy |
string | source,medium |
Any of source, medium, campaign, comma-separated. Empty for totals only |
hostname |
string | all yours | One of hostnames from /me |
Response
data.context is brokerage and data.note says traffic can't be split by agent, lead or listing. Each row in data.series: bucket, source, medium, campaign, sessions, users, newUsers, pageViews.
(not set)is returned asnull.- With
campaign, the top 50 campaigns per bucket are listed and the rest are combined asother. usersisn't additive across rows, so it'snullintotals; inweekandmonthbuckets it's the sum of each day's users.- Google can revise the last 48 hours.
- Visits from links in Ruuster's own emails show as source
sendGrid, mediumsendGridEmails.