curl --request GET \
--url https://api.snowseo.com/v3/integrations/ga/chart/overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.snowseo.com/v3/integrations/ga/chart/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.snowseo.com/v3/integrations/ga/chart/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.snowseo.com/v3/integrations/ga/chart/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.snowseo.com/v3/integrations/ga/chart/overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.snowseo.com/v3/integrations/ga/chart/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snowseo.com/v3/integrations/ga/chart/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"chartData": [
{
"date": "<string>",
"sessions": 123,
"users": 123,
"pageviews": 123,
"prevSessions": 123,
"prevUsers": 123,
"prevPageviews": 123
}
],
"previousTotals": {
"sessions": 123,
"users": 123,
"pageviews": 123
},
"incompleteFrom": "<string>"
}{
"success": true,
"error": "<string>",
"code": "<string>",
"message": "<string>",
"reference": "<string>"
}{
"success": true,
"error": "<string>",
"code": "<string>",
"message": "<string>",
"reference": "<string>"
}Analytics (GA4)
Pull your website visitor data from Google Analytics 4 - users, pageviews, channels, pages, and devices.
curl --request GET \
--url https://api.snowseo.com/v3/integrations/ga/chart/overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.snowseo.com/v3/integrations/ga/chart/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.snowseo.com/v3/integrations/ga/chart/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.snowseo.com/v3/integrations/ga/chart/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.snowseo.com/v3/integrations/ga/chart/overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.snowseo.com/v3/integrations/ga/chart/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snowseo.com/v3/integrations/ga/chart/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"chartData": [
{
"date": "<string>",
"sessions": 123,
"users": 123,
"pageviews": 123,
"prevSessions": 123,
"prevUsers": 123,
"prevPageviews": 123
}
],
"previousTotals": {
"sessions": 123,
"users": 123,
"pageviews": 123
},
"incompleteFrom": "<string>"
}{
"success": true,
"error": "<string>",
"code": "<string>",
"message": "<string>",
"reference": "<string>"
}{
"success": true,
"error": "<string>",
"code": "<string>",
"message": "<string>",
"reference": "<string>"
}403.
Pass startDate and endDate or days; see Date Windows.
Filters Parameter
Thefilters query parameter accepts URL-encoded JSON: an object keyed by dimension, each with a list of selected values. Dimensions: page, referrer, channel, campaign, deviceCategory, browser, os. Invalid JSON, an unknown dimension, or a value that is not a list returns 400 with code INVALID_FILTERS naming the supported dimensions.
filters={"channel":["Organic Search","Direct"]}
channel, referrer, campaign, deviceCategory, browser, os, page. Call GET /v3/integrations/ga/filter-values for the available dimension values.
Traffic Chart
GET /v3/integrations/ga/chart/overview
Get daily users, pageviews, and sessions for the selected date range - used to power the main trend chart. Pass includePrevious=true for previous-period values on each point. incompleteFrom is today in the GA property’s time zone; days from it onward are still being collected.Authorizations
Your SnowSEO API key (sk_...).
Query Parameters
Team ID
Days back from today on the team's calendar, converted to startDate/endDate. Ignored when startDate or endDate is set. Defaults to 30.
x >= 1Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Country filter
Additional dimension filters
Include previous-period comparison values alongside each data point (roughly doubles the time-series payload). Defaults to false.
Response
Default Response
Show child attributes
Show child attributes
Totals for the whole previous period. Use these for change %, not a sum of the prev* points: a previous month can have more days than the chart pairs.
Show child attributes
Show child attributes
Today on the provider's own calendar (YYYY-MM-DD). Days from here on are still being collected. Null when the provider's time zone is unknown.
Was this page helpful?

