Skip to main content
GET
/
v3
/
integrations
/
ga
/
chart
/
overview
Get GA chart data
curl --request GET \
  --url https://api.snowseo.com/v3/integrations/ga/chart/overview \
  --header 'Authorization: Bearer <token>'
{
  "chartData": [
    {
      "date": "<string>",
      "sessions": 123,
      "users": 123,
      "pageviews": 123,
      "prevSessions": 123,
      "prevUsers": 123,
      "prevPageviews": 123
    }
  ]
}
Get your website analytics data from Google Analytics 4 or PostHog. These endpoints give you the same data as the Traffic dashboard’s Analytics tab — users, pageviews, bounce rate, traffic sources, top pages, and more.
You need a Google Analytics 4 or PostHog integration connected to your team. Connect it from Settings → Integrations → Analytics & Performance.

Filters Parameter

The filters query parameter accepts URL-encoded JSON with dimensions and their selected values:
filters=[{"dimension":"channel","values":["Organic Search","Direct"]}]
Available dimensions: channel, referrer, campaign, deviceCategory, browser, os, page.

Traffic Channels

GET /integrations/ga/channels Get your traffic broken down by source type. Channels returned: Direct, Organic Search, Paid Search, Organic Social, Paid Social, Email, Referral, Display, Organic Video, Affiliates, Unassigned.

Top Pages

GET /integrations/ga/pages Get your most-viewed pages with engagement metrics.

Traffic Sources (Referrers & Campaigns)

GET /integrations/ga/sources Get your traffic sources — external referrers and UTM-tagged campaigns.

Traffic by Country

GET /integrations/ga/countries See where your visitors are located geographically.

Traffic by Device

GET /integrations/ga/devices See what browsers, operating systems, and device types your visitors use.

New vs Returning Visitors

GET /integrations/ga/user-type See the split between new and returning visitors.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

teamId
string

Team ID

days
integer

Number of days to look back

startDate
string

Start date (YYYY-MM-DD)

endDate
string

End date (YYYY-MM-DD)

country
string

Country filter

filters

Additional dimension filters

Response

Default Response

chartData
object[]
required