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>",
"code": "<string>",
"message": "<string>",
"reference": "<string>"
}{
"success": true,
"error": "<string>",
"code": "<string>",
"message": "<string>",
"reference": "<string>"
}Google Search Console
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>",
"code": "<string>",
"message": "<string>",
"reference": "<string>"
}{
"success": true,
"error": "<string>",
"code": "<string>",
"message": "<string>",
"reference": "<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.
Send
You need a Google Search Console integration connected to your team. You can connect it from Settings → Integrations → SEO & AI Tools.
startDate and endDate or days; with neither you get the last 30 days. Search Console data lags 2-3 days, so a window ending today is clamped to Google’s newest day. See Date Windows.
The prev*Trend arrays (e.g. prevClicksTrend) contain the previous period’s data for comparison, but are empty unless you pass includePrevious=true. *Change objects give you the percentage change and whether it’s a positive movement; for position, positionChange is the absolute difference in position and isPositive carries the direction.
More endpoints
- Search Queries
- Top Pages
- Traffic by Country
- Traffic by Device
- Page Performance Changes
- Pages for a Keyword
- Keywords for a Page
Authorizations
bearerAuthapiKey
Your SnowSEO API key (sk_...).
Query Parameters
Team ID
ISO start date (YYYY-MM-DD)
ISO end date (YYYY-MM-DD)
Days back from today on the team's calendar, converted to startDate/endDate. Ignored when startDate or endDate is set. Defaults to 30.
Required range:
x >= 1Device 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?

