[{"data":1,"prerenderedAt":566},["ShallowReactive",2],{"sdk-docs-navigation":3,"sdk-docs-page:\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fdirect-search-analytics":112},[4],{"path":5,"title":6,"children":7,"stem":111,"page":16},"\u002Fgscdump-sdk","gscdump SDK",[8,27],{"path":9,"title":10,"children":11,"stem":25,"page":26},"\u002Fgscdump-sdk\u002Fapi","Api",[12,17,21],{"path":13,"title":14,"stem":15,"page":16},"\u002Fgscdump-sdk\u002Fapi\u002Fdirect-client","Direct client exports","api\u002F1.direct-client",true,{"path":18,"title":19,"stem":20,"page":16},"\u002Fgscdump-sdk\u002Fapi\u002Fhosted-http","Hosted HTTP","api\u002F2.hosted-http",{"path":22,"title":23,"stem":24,"page":16},"\u002Fgscdump-sdk\u002Fapi\u002Frealtime","Realtime","api\u002F3.realtime","gscdump-sdk\u002Fapi",false,{"path":28,"title":29,"children":30,"stem":110,"page":26},"\u002Fgscdump-sdk\u002Fguides","Guides",[31,48,73,97],{"path":32,"title":33,"children":34,"stem":47,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart","Start",[35,39,43],{"path":36,"title":37,"stem":38,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fchoose-access","Choose access","guides\u002F1.start\u002F1.choose-access",{"path":40,"title":41,"stem":42,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fhosted-first-result","Hosted first result","guides\u002F1.start\u002F2.hosted-first-result",{"path":44,"title":45,"stem":46,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fdirect-first-result","Direct first result","guides\u002F1.start\u002F3.direct-first-result","guides\u002F1.start\u002Findex",{"path":49,"title":50,"children":51,"stem":72,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data","Read data",[52,56,60,64,68],{"path":53,"title":54,"stem":55,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fdirect-search-analytics","Direct Search Analytics","guides\u002F2.read-data\u002F1.direct-search-analytics",{"path":57,"title":58,"stem":59,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fhosted-analytics","Hosted analytics","guides\u002F2.read-data\u002F2.hosted-analytics",{"path":61,"title":62,"stem":63,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fhosted-indexing","Hosted indexing","guides\u002F2.read-data\u002F3.hosted-indexing",{"path":65,"title":66,"stem":67,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fhosted-sitemaps","Hosted sitemaps","guides\u002F2.read-data\u002F4.hosted-sitemaps",{"path":69,"title":70,"stem":71,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fdirect-bing","Direct Bing","guides\u002F2.read-data\u002F5.direct-bing","guides\u002F2.read-data\u002Findex",{"path":74,"title":75,"children":76,"stem":96,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations","Build integrations",[77,81,85,89,92],{"path":78,"title":79,"stem":80,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fnuxt","Nuxt","guides\u002F3.build-integrations\u002F1.nuxt",{"path":82,"title":83,"stem":84,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fnextjs","Next.js","guides\u002F3.build-integrations\u002F2.nextjs",{"path":86,"title":87,"stem":88,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fhono-express","Hono \u002F Express","guides\u002F3.build-integrations\u002F3.hono-express",{"path":90,"title":23,"stem":91,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Frealtime","guides\u002F3.build-integrations\u002F4.realtime",{"path":93,"title":94,"stem":95,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fwebhooks","Webhooks","guides\u002F3.build-integrations\u002F5.webhooks","guides\u002F3.build-integrations\u002Findex",{"path":98,"title":99,"children":100,"stem":109,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Foperate","Operate",[101,105],{"path":102,"title":103,"stem":104,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Foperate\u002Fkeys-and-scopes","Keys and scopes","guides\u002F4.operate\u002F1.keys-and-scopes",{"path":106,"title":107,"stem":108,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Foperate\u002Ferrors-and-retry","Errors and retry","guides\u002F4.operate\u002F2.errors-and-retry","guides\u002F4.operate\u002Findex","gscdump-sdk\u002Fguides","index",{"title":113,"description":114,"body":115,"id":560,"path":53,"stem":55,"extension":561,"navigation":562,"seo":563,"_source":564,"sitemap":565},"Page through Search Analytics results","Query Google rows with a Site, dimensions, and Pacific reporting dates.",{"toc":116,"nodes":133,"frontmatter":550,"meta":552},{"links":117,"title":131,"searchDepth":132,"depth":132},[118,122,125,128],{"id":119,"text":120,"depth":121},"before-you-start","Before you start",2,{"id":123,"text":124,"depth":121},"build-a-query","Build a query",{"id":126,"text":127,"depth":121},"use-a-raw-request-when-needed","Use a raw request when needed",{"id":129,"text":130,"depth":121},"handle-quota-and-empty-rows","Handle quota and empty rows","",3,[134,138,147,150,153,155,452,455,457,460,536,543,545],[135,136,113],"h1",{"id":137},"page-through-search-analytics-results",[139,140,141,142,146],"p",{},"Use the direct Google client when your application holds a Google grant. ",[143,144,145],"a",{"href":44},"List Sites"," first and copy the exact identifier.",[148,149,120],"h2",{"id":119},[139,151,152],{},"Choose a complete Search Console date window. Google's reporting calendar uses Pacific dates. Recent days can change while Google finalizes data.",[148,154,124],{"id":123},[156,157,161],"pre",{"language":158,"class":159,"tabindex":160},"ts","rangi shiki shj-lang-ts",0,[162,163,165,193,194,193,222,193,224,193,245,193,260,193,281,193,283,193,307,193,317,193,324,193,339,193,368,193,370,193,404,193,418,193,448],"code",{"class":164},"language-ts",[166,167,170,175,176,181,182,175,185,175,188],"span",{"class":168,"style":169},"line","display: inline",[166,171,174],{"class":172,"style":173},"shj-syn-kwd shj-kwd","--shiki-light:#cf222e;--shiki-default:#cf222e;color:#cf222e;--shiki-dark:#ff7b72","import"," ",[166,177,180],{"class":178,"style":179},"shj-syn-bracket shj-bracket","--shiki-light:#57606a;--shiki-default:#57606a;color:#57606a;--shiki-dark:#8b949e","{"," googleSearchConsole ",[166,183,184],{"class":178,"style":179},"}",[166,186,187],{"class":172,"style":173},"from",[166,189,192],{"class":190,"style":191},"shj-syn-str shj-str","--shiki-light:#0a3069;--shiki-default:#0a3069;color:#0a3069;--shiki-dark:#a5d6ff","'gscdump'","\n",[166,195,196,175,198,200,201,205,206,208,209,211,212,214,215,175,217,175,219],{"class":168,"style":169},[166,197,174],{"class":172,"style":173},[166,199,180],{"class":178,"style":179}," between",[166,202,204],{"class":203,"style":173},"shj-syn-oper shj-oper",","," date",[166,207,204],{"class":203,"style":173}," gsc",[166,210,204],{"class":203,"style":173}," page",[166,213,204],{"class":203,"style":173}," query ",[166,216,184],{"class":178,"style":179},[166,218,187],{"class":172,"style":173},[166,220,221],{"class":190,"style":191},"'gscdump\u002Fquery'",[166,223],{"class":168,"style":169},[166,225,226,229,230,233,234,237,238,240],{"class":168,"style":169},[166,227,228],{"class":172,"style":173},"const"," token ",[166,231,232],{"class":203,"style":173},"="," process",[166,235,236],{"class":203,"style":173},".","env",[166,239,236],{"class":203,"style":173},[166,241,244],{"class":242,"style":243},"shj-syn-num shj-num","--shiki-light:#0550ae;--shiki-default:#0550ae;color:#0550ae;--shiki-dark:#79c0ff","GOOGLE_ACCESS_TOKEN",[166,246,247,175,250,253,256,257],{"class":168,"style":169},[166,248,249],{"class":172,"style":173},"if",[166,251,252],{"class":178,"style":179},"(",[166,254,255],{"class":203,"style":173},"!","token",[166,258,259],{"class":178,"style":179},")",[166,261,262,263,175,266,175,269,274,276,279],{"class":168,"style":169},"  ",[166,264,265],{"class":172,"style":173},"throw",[166,267,268],{"class":172,"style":173},"new",[166,270,273],{"class":271,"style":272},"shj-syn-class shj-class","--shiki-light:#953800;--shiki-default:#953800;color:#953800;--shiki-dark:#ffa657","Error",[166,275,252],{"class":178,"style":179},[166,277,278],{"class":190,"style":191},"'Set GOOGLE_ACCESS_TOKEN'",[166,280,259],{"class":178,"style":179},[166,282],{"class":168,"style":169},[166,284,285,287,288,175,290,295,297,299,300,229,303,305],{"class":168,"style":169},[166,286,228],{"class":172,"style":173}," google ",[166,289,232],{"class":203,"style":173},[166,291,294],{"class":292,"style":293},"shj-syn-func shj-func","--shiki-light:#8250df;--shiki-default:#8250df;color:#8250df;--shiki-dark:#d2a8ff","googleSearchConsole",[166,296,252],{"class":178,"style":179},[166,298,180],{"class":178,"style":179}," accessToken",[166,301,302],{"class":203,"style":173},":",[166,304,184],{"class":178,"style":179},[166,306,259],{"class":178,"style":179},[166,308,309,311,312,175,314],{"class":168,"style":169},[166,310,228],{"class":172,"style":173}," site ",[166,313,232],{"class":203,"style":173},[166,315,316],{"class":190,"style":191},"'sc-domain:example.com'",[166,318,319,321,322,208],{"class":168,"style":169},[166,320,228],{"class":172,"style":173}," request ",[166,323,232],{"class":203,"style":173},[166,325,262,326,328,331,333,334,336,337],{"class":168,"style":169},[166,327,236],{"class":203,"style":173},[166,329,330],{"class":292,"style":293},"select",[166,332,252],{"class":178,"style":179},"page",[166,335,204],{"class":203,"style":173}," query",[166,338,259],{"class":178,"style":179},[166,340,262,341,343,346,348,351,353,354,175,356,359,175,361,364,366],{"class":168,"style":169},[166,342,236],{"class":203,"style":173},[166,344,345],{"class":292,"style":293},"where",[166,347,252],{"class":178,"style":179},[166,349,350],{"class":292,"style":293},"between",[166,352,252],{"class":178,"style":179},"date",[166,355,204],{"class":203,"style":173},[166,357,358],{"class":190,"style":191},"'2026-08-01'",[166,360,204],{"class":203,"style":173},[166,362,363],{"class":190,"style":191},"'2026-08-28'",[166,365,259],{"class":178,"style":179},[166,367,259],{"class":178,"style":179},[166,369],{"class":168,"style":169},[166,371,372,175,375,175,378,380,382,383,386,387,389,392,394,395,397,398,400,175,402],{"class":168,"style":169},[166,373,374],{"class":172,"style":173},"for",[166,376,377],{"class":172,"style":173},"await",[166,379,252],{"class":178,"style":179},[166,381,228],{"class":172,"style":173}," rows ",[166,384,385],{"class":172,"style":173},"of"," google",[166,388,236],{"class":203,"style":173},[166,390,391],{"class":292,"style":293},"query",[166,393,252],{"class":178,"style":179},"site",[166,396,204],{"class":203,"style":173}," request",[166,399,259],{"class":178,"style":179},[166,401,259],{"class":178,"style":179},[166,403,180],{"class":178,"style":179},[166,405,262,406,175,408,410,412,413,415,416],{"class":168,"style":169},[166,407,374],{"class":172,"style":173},[166,409,252],{"class":178,"style":179},[166,411,228],{"class":172,"style":173}," row ",[166,414,385],{"class":172,"style":173}," rows",[166,417,259],{"class":178,"style":179},[166,419,420,421,423,426,428,429,333,431,433,434,391,436,433,438,440,441,433,443,445,446],{"class":168,"style":169},"    console",[166,422,236],{"class":203,"style":173},[166,424,425],{"class":292,"style":293},"log",[166,427,252],{"class":178,"style":179},"row",[166,430,236],{"class":203,"style":173},[166,432,204],{"class":203,"style":173}," row",[166,435,236],{"class":203,"style":173},[166,437,204],{"class":203,"style":173},[166,439,236],{"class":203,"style":173},"clicks",[166,442,204],{"class":203,"style":173},[166,444,236],{"class":203,"style":173},"impressions",[166,447,259],{"class":178,"style":179},[166,449,450],{"class":168,"style":169},[166,451,184],{"class":178,"style":179},[139,453,454],{},"Replace the Site and dates. The iterator yields nonempty batches and handles Google's 25,000-row pages. Keep the same dates when comparing pages.",[148,456,127],{"id":126},[139,458,459],{},"The direct operation accepts a Search Analytics request body:",[156,461,462],{"language":158,"class":159,"tabindex":160},[162,463,464,193,486,193,495,193,504,193,520,193,530],{"class":164},[166,465,466,468,469,175,471,386,473,475,476,478,480,394,482,175,484],{"class":168,"style":169},[166,467,228],{"class":172,"style":173}," response ",[166,470,232],{"class":203,"style":173},[166,472,377],{"class":172,"style":173},[166,474,236],{"class":203,"style":173},"searchAnalytics",[166,477,236],{"class":203,"style":173},[166,479,391],{"class":292,"style":293},[166,481,252],{"class":178,"style":179},[166,483,204],{"class":203,"style":173},[166,485,180],{"class":178,"style":179},[166,487,488,489,175,491,493],{"class":168,"style":169},"  startDate",[166,490,302],{"class":203,"style":173},[166,492,358],{"class":190,"style":191},[166,494,204],{"class":203,"style":173},[166,496,497,498,175,500,502],{"class":168,"style":169},"  endDate",[166,499,302],{"class":203,"style":173},[166,501,363],{"class":190,"style":191},[166,503,204],{"class":203,"style":173},[166,505,506,507,175,509,512,515,518],{"class":168,"style":169},"  dimensions",[166,508,302],{"class":203,"style":173},[166,510,511],{"class":178,"style":179},"[",[166,513,514],{"class":190,"style":191},"'page'",[166,516,517],{"class":178,"style":179},"]",[166,519,204],{"class":203,"style":173},[166,521,522,523,175,525,528],{"class":168,"style":169},"  rowLimit",[166,524,302],{"class":203,"style":173},[166,526,527],{"class":242,"style":243},"1000",[166,529,204],{"class":203,"style":173},[166,531,532,534],{"class":168,"style":169},[166,533,184],{"class":178,"style":179},[166,535,259],{"class":178,"style":179},[139,537,538,539,542],{},"Use the ",[143,540,541],{"href":13},"direct client reference"," for exports. Do not assume a missing row means zero demand. Google can omit rows under its API limits.",[148,544,130],{"id":129},[139,546,547,548,236],{},"If no batch arrives, check the Site, date window, and query dimensions. For quota or grant failures, inspect the Google error before retrying. If you need hosted totals and sync metadata, switch at ",[143,549,37],{"href":36},{"title":113,"navigation":551,"description":114},{"title":54},{"title":113,"description":553,"toc":554},"Use the direct Google client when your application holds a Google grant. List Sites first and copy the exact identifier.",{"title":131,"searchDepth":132,"depth":132,"links":555},[556,557,558,559],{"id":119,"depth":121,"text":120},{"id":123,"depth":121,"text":124},{"id":126,"depth":121,"text":127},{"id":129,"depth":121,"text":130},"sdkDocs\u002Fguides\u002F2.read-data\u002F1.direct-search-analytics.md","md",{"title":54},{"title":113,"description":114},"\u002Fopt\u002Factions-runner\u002F_work\u002Fgscdump.com\u002Fgscdump.com\u002Fnode_modules\u002F.cache\u002Fcomark-content\u002Fgit\u002Fd100867c457f148bef5f\u002Fdocs\u002Fgscdump-sdk\u002Fguides\u002F2.read-data\u002F1.direct-search-analytics.md",{"loc":53},1794983848644]