Skip to main content
GET
Get GA4 traffic trend

Authorizations

Authorization
string
header
required

A Searchable API key, created under Manage Account → Integrations → API Keys. Send as Authorization: Bearer sea_xxxxx. Every key carries one or more scopes (read, write, admin) and may optionally be bound to a single project — see Getting started.

Path Parameters

projectId
string<uuid>
required

The project id.

Query Parameters

weeks
integer
default:12

Lookback window in weeks.

Required range: 1 <= x <= 52

Response

Traffic trend.

window
object
required
points
object[]
required
totals
object
required

GA's TOTAL row per property, summed across properties. Users is not the sum of daily users.

success
boolean
required

Always true — injected on every success response by this endpoint family's response wrapper.

properties
object[]
required

One entry per active linked GA4 property the caller can see (shared with the project, or linked by them) and read for this result; a property that failed is error and the rest are still returned.

usersIsUpperBound
boolean
required

True when more than one property returned users: users summed across properties can count a person twice.