Get GSC traffic stats
curl --request GET \
--url https://api.snowseo.com/v3/integrations/gsc/website-traffic/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.snowseo.com/v3/integrations/gsc/website-traffic/stats"
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/gsc/website-traffic/stats', 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/gsc/website-traffic/stats",
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/gsc/website-traffic/stats"
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/gsc/website-traffic/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snowseo.com/v3/integrations/gsc/website-traffic/stats")
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{
"totalClicks": 123,
"totalImpressions": 123,
"averageCTR": 123,
"averagePosition": 123,
"clicksTrend": [
{}
],
"impressionsTrend": [
{}
],
"ctrTrend": [
{}
],
"positionTrend": [
{}
],
"prevClicksTrend": [
{}
],
"prevImpressionsTrend": [
{}
],
"prevCtrTrend": [
{}
],
"prevPositionTrend": [
{}
],
"clicksChange": {},
"impressionsChange": {},
"ctrChange": {},
"positionChange": {},
"coverage": {}
}{
"success": true,
"error": "<string>"
}{
"success": true,
"error": "<string>"
}Traffic & Analytics
Google Search Traffic
Pull your Google Search Console data — clicks, impressions, keywords, pages, and more.
GET
/
v3
/
integrations
/
gsc
/
website-traffic
/
stats
Get GSC traffic stats
curl --request GET \
--url https://api.snowseo.com/v3/integrations/gsc/website-traffic/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.snowseo.com/v3/integrations/gsc/website-traffic/stats"
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/gsc/website-traffic/stats', 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/gsc/website-traffic/stats",
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/gsc/website-traffic/stats"
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/gsc/website-traffic/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snowseo.com/v3/integrations/gsc/website-traffic/stats")
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{
"totalClicks": 123,
"totalImpressions": 123,
"averageCTR": 123,
"averagePosition": 123,
"clicksTrend": [
{}
],
"impressionsTrend": [
{}
],
"ctrTrend": [
{}
],
"positionTrend": [
{}
],
"prevClicksTrend": [
{}
],
"prevImpressionsTrend": [
{}
],
"prevCtrTrend": [
{}
],
"prevPositionTrend": [
{}
],
"clicksChange": {},
"impressionsChange": {},
"ctrChange": {},
"positionChange": {},
"coverage": {}
}{
"success": true,
"error": "<string>"
}{
"success": true,
"error": "<string>"
}Get your organic search performance data directly from Google Search Console. These endpoints give you the same data that powers the Traffic dashboard’s Google tab — clicks, impressions, CTR, average position, top queries, and top pages.
The
You need a Google Search Console integration connected to your team. You can connect it from Settings → Integrations → SEO & AI Tools.
prev*Trend arrays (e.g. prevClicksTrend) contain the previous period’s data for comparison. *Change objects give you the percentage change and whether it’s a positive movement.
Search Queries
GET /integrations/gsc/website-traffic/search-queries
Get the search queries driving traffic to your site, sorted by clicks.
Top Pages
GET /integrations/gsc/website-traffic/top-pages
Get your best-performing pages in search results.
Traffic by Country
GET /integrations/gsc/website-traffic/countries
See how your search traffic breaks down by country.
Traffic by Device
GET /integrations/gsc/website-traffic/devices
See how your search traffic breaks down by device type.
Page Performance Changes
GET /integrations/gsc/website-traffic/page-changes
See which pages gained or lost clicks, impressions, CTR, or position between periods.
Pages for a Keyword
GET /integrations/gsc/website-traffic/pages-for-keyword
See which of your pages rank for a specific search query. Pass the keyword query parameter.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Team ID
ISO start date (YYYY-MM-DD)
ISO end date (YYYY-MM-DD)
Number of days to look back
Device filter
Search type filter
Country filter
Include previous-period comparison values alongside each data point (roughly doubles the time-series payload). Defaults to false.
Response
Default Response
Was this page helpful?

