[{"data":1,"prerenderedAt":379},["ShallowReactive",2],{"sdk-docs-navigation":3,"sdk-docs-page:\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fdirect-first-result":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":370,"path":44,"stem":46,"extension":371,"navigation":372,"next":373,"related":374,"seo":376,"_source":377,"sitemap":378},"Find your Sites in Google Search Console","Create a direct Google client and list accessible Sites.",{"toc":116,"nodes":133,"frontmatter":355,"meta":362},{"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},"create-the-direct-client","Create the direct client",{"id":126,"text":127,"depth":121},"if-the-list-is-empty","If the list is empty",{"id":129,"text":130,"depth":121},"query-one-site-next","Query one Site next","",3,[134,138,147,150,161,163,177,327,338,340,343,345],[135,136,113],"h1",{"id":137},"find-your-sites-in-google-search-console",[139,140,141,142,146],"p",{},"The direct ",[143,144,145],"code",{},"gscdump"," client calls Google with your OAuth access token. List Sites first so you can copy an exact Site identifier.",[148,149,120],"h2",{"id":119},[139,151,152,153,156,157,160],{},"Get a Google access token with Search Console access. Keep it on your server. A Site can use ",[143,154,155],{},"sc-domain:example.com"," or a URL prefix such as ",[143,158,159],{},"https:\u002F\u002Fexample.com\u002F",".",[148,162,124],{"id":123},[139,164,165,166,168,169,172,173,176],{},"Install ",[143,167,145],{}," with ",[143,170,171],{},"pnpm add gscdump",". Set ",[143,174,175],{},"GOOGLE_ACCESS_TOKEN",", then run:",[178,179,183],"pre",{"language":180,"class":181,"tabindex":182},"ts","rangi shiki shj-lang-ts",0,[143,184,186,214,215,214,217,214,237,214,252,214,273,214,275,214,295,214,315],{"class":185},"language-ts",[187,188,191,196,197,202,203,196,206,196,209],"span",{"class":189,"style":190},"line","display: inline",[187,192,195],{"class":193,"style":194},"shj-syn-kwd shj-kwd","--shiki-light:#cf222e;--shiki-default:#cf222e;color:#cf222e;--shiki-dark:#ff7b72","import"," ",[187,198,201],{"class":199,"style":200},"shj-syn-bracket shj-bracket","--shiki-light:#57606a;--shiki-default:#57606a;color:#57606a;--shiki-dark:#8b949e","{"," googleSearchConsole ",[187,204,205],{"class":199,"style":200},"}",[187,207,208],{"class":193,"style":194},"from",[187,210,213],{"class":211,"style":212},"shj-syn-str shj-str","--shiki-light:#0a3069;--shiki-default:#0a3069;color:#0a3069;--shiki-dark:#a5d6ff","'gscdump'","\n",[187,216],{"class":189,"style":190},[187,218,219,222,223,227,228,230,231,233],{"class":189,"style":190},[187,220,221],{"class":193,"style":194},"const"," accessToken ",[187,224,226],{"class":225,"style":194},"shj-syn-oper shj-oper","="," process",[187,229,160],{"class":225,"style":194},"env",[187,232,160],{"class":225,"style":194},[187,234,175],{"class":235,"style":236},"shj-syn-num shj-num","--shiki-light:#0550ae;--shiki-default:#0550ae;color:#0550ae;--shiki-dark:#79c0ff",[187,238,239,196,242,245,248,249],{"class":189,"style":190},[187,240,241],{"class":193,"style":194},"if",[187,243,244],{"class":199,"style":200},"(",[187,246,247],{"class":225,"style":194},"!","accessToken",[187,250,251],{"class":199,"style":200},")",[187,253,254,255,196,258,196,261,266,268,271],{"class":189,"style":190},"  ",[187,256,257],{"class":193,"style":194},"throw",[187,259,260],{"class":193,"style":194},"new",[187,262,265],{"class":263,"style":264},"shj-syn-class shj-class","--shiki-light:#953800;--shiki-default:#953800;color:#953800;--shiki-dark:#ffa657","Error",[187,267,244],{"class":199,"style":200},[187,269,270],{"class":211,"style":212},"'Set GOOGLE_ACCESS_TOKEN'",[187,272,251],{"class":199,"style":200},[187,274],{"class":189,"style":190},[187,276,277,279,280,196,282,287,289,222,291,293],{"class":189,"style":190},[187,278,221],{"class":193,"style":194}," google ",[187,281,226],{"class":225,"style":194},[187,283,286],{"class":284,"style":285},"shj-syn-func shj-func","--shiki-light:#8250df;--shiki-default:#8250df;color:#8250df;--shiki-dark:#d2a8ff","googleSearchConsole",[187,288,244],{"class":199,"style":200},[187,290,201],{"class":199,"style":200},[187,292,205],{"class":199,"style":200},[187,294,251],{"class":199,"style":200},[187,296,297,299,300,196,302,305,306,308,311,313],{"class":189,"style":190},[187,298,221],{"class":193,"style":194}," sites ",[187,301,226],{"class":225,"style":194},[187,303,304],{"class":193,"style":194},"await"," google",[187,307,160],{"class":225,"style":194},[187,309,310],{"class":284,"style":285},"sites",[187,312,244],{"class":199,"style":200},[187,314,251],{"class":199,"style":200},[187,316,317,318,320,323,310,325],{"class":189,"style":190},"console",[187,319,160],{"class":225,"style":194},[187,321,322],{"class":284,"style":285},"log",[187,324,244],{"class":199,"style":200},[187,326,251],{"class":199,"style":200},[139,328,329,332,333,337],{},[143,330,331],{},"sites()"," returns Google's Site list for that grant. Copy an identifier from the result. The ",[334,335,336],"a",{"href":13},"direct client reference"," lists other imports.",[148,339,127],{"id":126},[139,341,342],{},"Check that the token belongs to a user with Search Console access. A valid grant can still have no accessible Sites.",[148,344,130],{"id":129},[139,346,347,348,350,351,160],{},"Use the identifier in ",[334,349,54],{"href":53},". For synced history and hosted Reports, ",[334,352,354],{"href":353},"\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fchoose-access#hosted-gscdump-data","choose hosted access",{"title":113,"navigation":356,"description":114,"next":357,"related":359},{"title":45},{"title":358,"to":53},"Page through Search Analytics results",[360],{"title":361,"to":69},"Read Bing evidence and traffic",{"title":113,"description":363,"toc":364},"The direct gscdump client calls Google with your OAuth access token. List Sites first so you can copy an exact Site identifier.",{"title":131,"searchDepth":132,"depth":132,"links":365},[366,367,368,369],{"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\u002F1.start\u002F3.direct-first-result.md","md",{"title":45},{"title":358,"to":53},[375],{"title":361,"to":69},{"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\u002F1.start\u002F3.direct-first-result.md",{"loc":44},1794983848644]