[{"data":1,"prerenderedAt":1130},["ShallowReactive",2],{"learn-chrome-th":3,"nav-th":114,"doc-\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fgetting-started":677,"mdc--aeubj1-key":1119},{"id":4,"docsPage":5,"docsSidebar":15,"docsTabs":17,"extension":19,"footer":20,"header":92,"localeSwitch":109,"meta":111,"stem":112,"__hash__":113},"chrome_th\u002Fth\u002Fchrome.yml",{"onThisPage":6,"copyPage":7,"copied":8,"copyMenu":9,"copyMarkdownLink":10,"linkCopied":8,"viewMarkdown":11,"openChatGpt":12,"openClaude":13,"platforms":14},"บนหน้านี้","คัดลอกหน้า","คัดลอกแล้ว","ตัวเลือกการคัดลอกเพิ่มเติม","คัดลอกลิงก์ Markdown","ดูเป็น Markdown","เปิดใน ChatGPT","เปิดใน Claude","ใช้ได้กับ",{"label":16},"เมนูเอกสาร",{"ariaLabel":18},"หมวดเอกสาร","yml",{"ariaLabel":21,"columns":22,"legal":72,"quote":73,"askAi":76},"ส่วนท้าย",[23,38,50,60],{"label":24,"children":25},"เรียนรู้",[26,29,32,35],{"label":27,"to":28},"เอกสาร","\u002Fdocs",{"label":30,"to":31},"ตัวอย่างการใช้งาน","\u002Fuse-cases",{"label":33,"to":34},"การฝึกอบรม","\u002Ftraining",{"label":36,"to":37},"แหล่งข้อมูล","\u002Fresources",{"label":39,"children":40},"สำหรับนักพัฒนา",[41,44,47],{"label":42,"to":43},"ผู้ช่วย AI","\u002Fdocs\u002Fai-and-api\u002Fassistants",{"label":45,"to":46},"API","\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fgetting-started",{"label":48,"to":49},"Open Platform","\u002Fdocs\u002Fadministration\u002Faccount\u002Fopen-platform",{"label":51,"children":52},"อัปเดต",[53,56],{"label":54,"to":55},"อัปเดตล่าสุด","\u002Freleases",{"label":57,"to":58,"target":59},"บทความ","https:\u002F\u002Fwww.dataglasslabs.com\u002Fblog","_blank",{"label":61,"children":62},"DataGlass",[63,66,69],{"label":64,"to":65,"target":59},"เปิด DataGlass","https:\u002F\u002Fapp.dataglasslabs.com",{"label":67,"to":68,"target":59},"เว็บไซต์","https:\u002F\u002Fwww.dataglasslabs.com",{"label":70,"to":71},"ราคา","\u002Fdocs\u002Foverview\u002Fexplore\u002Fpricing","DataGlass Labs สงวนลิขสิทธิ์",{"text":74,"caption":75},"วัดสิ่งที่เหลือเป็นกำไร แล้วค่อยเติบโตจากสิ่งที่วัดได้","ทีม DataGlass",{"label":77,"prompt":78,"assistants":79},"ถาม AI เกี่ยวกับ DataGlass","ช่วยสอนวิธีใช้ DataGlass ให้หน่อย DataGlass คือ Decision Engine สำหรับผู้ขายบน Shopee, Lazada และ TikTok Shop ที่ปรับโฆษณา ราคา และโปรโมชันเพื่อกำไรที่แท้จริง ใช้การค้นหาเว็บเพื่ออ่านเอกสารที่ https:\u002F\u002Flearn.dataglasslabs.com\u002Fth\u002Fdocs (สรุปสำหรับ AI อยู่ที่ https:\u002F\u002Flearn.dataglasslabs.com\u002Fllms.txt) แล้วตอบเป็นภาษาไทยว่า DataGlass ทำอะไร เริ่มต้นใช้งานอย่างไร และควรอ่านคู่มือเรื่องไหนก่อน",[80,84,88],{"label":81,"icon":82,"url":83},"ChatGPT","chatgpt","https:\u002F\u002Fchatgpt.com\u002F?prompt={prompt}",{"label":85,"icon":86,"url":87},"Claude","claude","https:\u002F\u002Fclaude.ai\u002Fnew?q={prompt}",{"label":89,"icon":90,"url":91},"Perplexity","perplexity","https:\u002F\u002Fwww.perplexity.ai\u002Fsearch?q={prompt}",{"sections":93,"navLabel":107,"openApp":64,"search":108},[94,97,99,101,103,105],{"key":95,"label":96},"home","หน้าแรก",{"key":98,"label":27},"docs",{"key":100,"label":30},"use-cases",{"key":102,"label":33},"training",{"key":104,"label":54},"releases",{"key":106,"label":36},"resources","ส่วนต่าง ๆ","เริ่มค้นหา",{"label":110},"ภูมิภาคและภาษา",{},"th\u002Fchrome","oehsJxJS8-mOnkBR_goBo54MPvM7axylEK_M0cWBEHI",[115],{"title":116,"path":28,"stem":98,"children":117,"page":120},"Docs",[118,185,374,562,640],{"title":119,"draft":120,"path":121,"stem":122,"children":123},"ภาพรวม",false,"\u002Fdocs\u002Foverview","docs\u002F01.overview\u002Findex",[124,125,149,174],{"title":119,"path":121,"stem":122,"draft":120},{"title":126,"draft":120,"path":127,"stem":128,"children":129,"page":120},"เริ่มต้นใช้งาน","\u002Fdocs\u002Foverview\u002Fget-started","docs\u002F01.overview\u002F01.get-started",[130,135,139,144],{"title":131,"path":132,"stem":133,"draft":120,"icon":134},"DataGlass คืออะไร","\u002Fdocs\u002Foverview\u002Fget-started\u002Fwhat-is-dataglass","docs\u002F01.overview\u002F01.get-started\u002F01.what-is-dataglass","i-material-symbols-info-rounded",{"title":126,"path":136,"stem":137,"draft":120,"icon":138},"\u002Fdocs\u002Foverview\u002Fget-started\u002Fquick-start","docs\u002F01.overview\u002F01.get-started\u002F02.quick-start","i-material-symbols-rocket-launch-rounded",{"title":140,"path":141,"stem":142,"draft":120,"icon":143},"แพลตฟอร์มที่รองรับ","\u002Fdocs\u002Foverview\u002Fget-started\u002Fsupported-platforms","docs\u002F01.overview\u002F01.get-started\u002F03.supported-platforms","i-material-symbols-grid-view-rounded",{"title":145,"path":146,"stem":147,"draft":120,"icon":148},"การเชื่อมต่อร้านค้า","\u002Fdocs\u002Foverview\u002Fget-started\u002Fconnecting-shops","docs\u002F01.overview\u002F01.get-started\u002F04.connecting-shops","i-material-symbols-link-rounded",{"title":150,"draft":120,"path":151,"stem":152,"children":153,"page":120},"พื้นฐาน","\u002Fdocs\u002Foverview\u002Ffoundations","docs\u002F01.overview\u002F02.foundations",[154,159,164,169],{"title":155,"path":156,"stem":157,"draft":120,"icon":158},"มุมมองร้านค้านี้ เทียบกับ มุมมองรวมทุกร้าน","\u002Fdocs\u002Foverview\u002Ffoundations\u002Fthis-shop-vs-unified","docs\u002F01.overview\u002F02.foundations\u002F01.this-shop-vs-unified","i-material-symbols-layers-rounded",{"title":160,"path":161,"stem":162,"draft":120,"icon":163},"COGS และบทบาทสำคัญ","\u002Fdocs\u002Foverview\u002Ffoundations\u002Fcogs-and-their-role","docs\u002F01.overview\u002F02.foundations\u002F02.cogs-and-their-role","i-material-symbols-payments-rounded",{"title":165,"path":166,"stem":167,"draft":120,"icon":168},"margin ของคุณรวมอะไรบ้าง","\u002Fdocs\u002Foverview\u002Ffoundations\u002Fideal-vs-realized-margin","docs\u002F01.overview\u002F02.foundations\u002F03.ideal-vs-realized-margin","i-material-symbols-compare-arrows-rounded",{"title":170,"path":171,"stem":172,"draft":120,"icon":173},"True ROAS","\u002Fdocs\u002Foverview\u002Ffoundations\u002Ftrue-roas","docs\u002F01.overview\u002F02.foundations\u002F04.true-roas","i-material-symbols-ad-group-rounded",{"title":175,"draft":120,"path":176,"stem":177,"children":178,"page":120},"สำรวจ","\u002Fdocs\u002Foverview\u002Fexplore","docs\u002F01.overview\u002F03.explore",[179,182],{"title":70,"path":71,"stem":180,"draft":120,"icon":181},"docs\u002F01.overview\u002F03.explore\u002F01.pricing","i-material-symbols-sell-rounded",{"title":54,"path":183,"stem":184,"draft":120,"to":55},"\u002Fdocs\u002Foverview\u002Fexplore\u002Freleases","docs\u002F01.overview\u002F03.explore\u002F02.releases",{"title":186,"draft":120,"path":187,"stem":188,"children":189},"ฟีเจอร์","\u002Fdocs\u002Ffeatures","docs\u002F02.features\u002Findex",[190,191,221,271,312,335,355],{"title":119,"path":187,"stem":188,"draft":120},{"title":192,"draft":120,"path":193,"stem":194,"children":195,"page":120},"ร้านค้า","\u002Fdocs\u002Ffeatures\u002Fshops","docs\u002F02.features\u002F01.shops",[196,201,206,211,216],{"title":197,"path":198,"stem":199,"draft":120,"icon":200},"ภาพรวมร้านค้า","\u002Fdocs\u002Ffeatures\u002Fshops\u002Fshop-overview","docs\u002F02.features\u002F01.shops\u002F01.shop-overview","i-material-symbols-space-dashboard-rounded",{"title":202,"path":203,"stem":204,"draft":120,"icon":205},"ทำความเข้าใจตัวเลขต่างๆ","\u002Fdocs\u002Ffeatures\u002Fshops\u002Funderstanding-the-numbers","docs\u002F02.features\u002F01.shops\u002F02.understanding-the-numbers","i-material-symbols-help-rounded",{"title":207,"path":208,"stem":209,"draft":120,"icon":210},"การระบุที่มาและการขจัดการนับซ้ำ (Attribution & dedup)","\u002Fdocs\u002Ffeatures\u002Fshops\u002Fattribution-and-dedup","docs\u002F02.features\u002F01.shops\u002F03.attribution-and-dedup","i-material-symbols-call-merge-rounded",{"title":212,"path":213,"stem":214,"draft":120,"icon":215},"สุขภาพร้าน","\u002Fdocs\u002Ffeatures\u002Fshops\u002Fshop-health","docs\u002F02.features\u002F01.shops\u002F04.shop-health","i-material-symbols-monitor-heart-rounded",{"title":217,"path":218,"stem":219,"draft":120,"icon":220},"การตั้งค่าร้านค้าและการซิงก์ข้อมูล","\u002Fdocs\u002Ffeatures\u002Fshops\u002Fshop-settings-and-sync","docs\u002F02.features\u002F01.shops\u002F05.shop-settings-and-sync","i-material-symbols-settings-rounded",{"title":222,"draft":120,"path":223,"stem":224,"children":225,"page":120},"สินค้า","\u002Fdocs\u002Ffeatures\u002Fproducts","docs\u002F02.features\u002F02.products",[226,231,236,241,246,251,256,261,266],{"title":227,"path":228,"stem":229,"draft":120,"icon":230},"ตารางสินค้า","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Fproduct-table","docs\u002F02.features\u002F02.products\u002F01.product-table","i-material-symbols-deployed-code-rounded",{"title":232,"path":233,"stem":234,"draft":120,"icon":235},"ภาพรวมสินค้า","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Funified-products","docs\u002F02.features\u002F02.products\u002F02.unified-products","i-material-symbols-dashboard-customize-rounded",{"title":237,"path":238,"stem":239,"draft":120,"icon":240},"จับคู่และรวมสินค้า","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Fmatching-and-merging","docs\u002F02.features\u002F02.products\u002F03.matching-and-merging","i-material-symbols-merge-rounded",{"title":242,"path":243,"stem":244,"draft":120,"icon":245},"แก้ไขหลายรายการ (Excel)","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Fbulk-edit-excel","docs\u002F02.features\u002F02.products\u002F04.bulk-edit-excel","i-material-symbols-grid-on-rounded",{"title":247,"path":248,"stem":249,"draft":120,"icon":250},"สต็อกและการสั่งซื้อเพิ่ม","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Finventory-and-reorder","docs\u002F02.features\u002F02.products\u002F05.inventory-and-reorder","i-material-symbols-inventory-2-rounded",{"title":252,"path":253,"stem":254,"draft":120,"icon":255},"ซิงก์สต็อก","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Fstock-sync","docs\u002F02.features\u002F02.products\u002F06.stock-sync","i-material-symbols-sync-rounded",{"title":257,"path":258,"stem":259,"draft":120,"icon":260},"ค่าคอมมิชชั่น","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Fcommission","docs\u002F02.features\u002F02.products\u002F07.commission","i-material-symbols-price-change-rounded",{"title":262,"path":263,"stem":264,"draft":120,"icon":265},"Auto bump","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Fauto-bump","docs\u002F02.features\u002F02.products\u002F08.auto-bump","i-material-symbols-trending-up-rounded",{"title":267,"path":268,"stem":269,"draft":120,"icon":270},"ช่วง margin","\u002Fdocs\u002Ffeatures\u002Fproducts\u002Fmargin-spread","docs\u002F02.features\u002F02.products\u002F09.margin-spread","i-material-symbols-straighten-rounded",{"title":272,"draft":120,"path":273,"stem":274,"children":275},"การวิเคราะห์ทางการเงิน","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown","docs\u002F02.features\u002F03.financial-breakdown\u002Findex",[276,277,282,287,292,297,302,307],{"title":119,"path":273,"stem":274,"draft":120},{"title":278,"path":279,"stem":280,"draft":120,"icon":281},"การจำลองและบันทึกร่างการแก้ไข","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown\u002Fsimulate-and-draft-edit","docs\u002F02.features\u002F03.financial-breakdown\u002F01.simulate-and-draft-edit","i-material-symbols-science-rounded",{"title":283,"path":284,"stem":285,"draft":120,"icon":286},"การตั้งค่า margin","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown\u002Fset-margin","docs\u002F02.features\u002F03.financial-breakdown\u002F02.set-margin","i-material-symbols-tune-rounded",{"title":288,"path":289,"stem":290,"draft":120,"icon":291},"Margin optimizer","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown\u002Fmargin-optimizer","docs\u002F02.features\u002F03.financial-breakdown\u002F03.margin-optimizer","i-material-symbols-instant-mix-rounded",{"title":293,"path":294,"stem":295,"draft":120,"icon":296},"ความยืดหยุ่นของราคา","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown\u002Fprice-elasticity","docs\u002F02.features\u002F03.financial-breakdown\u002F04.price-elasticity","i-material-symbols-show-chart-rounded",{"title":298,"path":299,"stem":300,"draft":120,"icon":301},"เครื่องคำนวณสินค้า","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown\u002Fproduct-calculator","docs\u002F02.features\u002F03.financial-breakdown\u002F05.product-calculator","i-material-symbols-calculate-rounded",{"title":303,"path":304,"stem":305,"draft":120,"icon":306},"ประวัติสินค้า","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown\u002Fproduct-history","docs\u002F02.features\u002F03.financial-breakdown\u002F06.product-history","i-material-symbols-history-rounded",{"title":308,"path":309,"stem":310,"draft":120,"icon":311},"กำไรสุทธิและต้นทุนแฝง","\u002Fdocs\u002Ffeatures\u002Ffinancial-breakdown\u002Fnet-profit-and-hidden-cost","docs\u002F02.features\u002F03.financial-breakdown\u002F07.net-profit-and-hidden-cost","i-material-symbols-visibility-off-rounded",{"title":313,"draft":120,"path":314,"stem":315,"children":316,"page":120},"การตั้งราคา","\u002Fdocs\u002Ffeatures\u002Fpricing","docs\u002F02.features\u002F04.pricing",[317,321,326,331],{"title":318,"path":319,"stem":320,"draft":120,"icon":245},"Price Edit","\u002Fdocs\u002Ffeatures\u002Fpricing\u002Fprice-edit","docs\u002F02.features\u002F04.pricing\u002F01.price-edit",{"title":322,"path":323,"stem":324,"draft":120,"icon":325},"Whitelist การขึ้นราคา","\u002Fdocs\u002Ffeatures\u002Fpricing\u002Fprice-increase-whitelist","docs\u002F02.features\u002F04.pricing\u002F02.price-increase-whitelist","i-lucide-badge-check",{"title":327,"path":328,"stem":329,"draft":120,"icon":330},"การขออนุมัติ whitelist","\u002Fdocs\u002Ffeatures\u002Fpricing\u002Frequest-whitelist-approval","docs\u002F02.features\u002F04.pricing\u002F03.request-whitelist-approval","i-lucide-mail",{"title":332,"path":333,"stem":334,"draft":120,"icon":181},"ระดับราคา","\u002Fdocs\u002Ffeatures\u002Fpricing\u002Fprice-tiers","docs\u002F02.features\u002F04.pricing\u002F04.price-tiers",{"title":336,"draft":120,"path":337,"stem":338,"children":339},"ตัวจำลองแคมเปญ","\u002Fdocs\u002Ffeatures\u002Fcampaign-simulator","docs\u002F02.features\u002F05.campaign-simulator\u002Findex",[340,341,346,351],{"title":119,"path":337,"stem":338,"draft":120},{"title":342,"path":343,"stem":344,"draft":120,"icon":345},"โมเดลช่วงแคมเปญ","\u002Fdocs\u002Ffeatures\u002Fcampaign-simulator\u002Fphase-model","docs\u002F02.features\u002F05.campaign-simulator\u002F01.phase-model","i-material-symbols-timeline-rounded",{"title":347,"path":348,"stem":349,"draft":120,"icon":350},"การวางแผนโฆษณา","\u002Fdocs\u002Ffeatures\u002Fcampaign-simulator\u002Fads-planning","docs\u002F02.features\u002F05.campaign-simulator\u002F02.ads-planning","i-material-symbols-ads-click-rounded",{"title":352,"path":353,"stem":354,"draft":120,"icon":168},"เทียบไม่จัดแคมเปญ","\u002Fdocs\u002Ffeatures\u002Fcampaign-simulator\u002Fcounterfactual","docs\u002F02.features\u002F05.campaign-simulator\u002F03.counterfactual",{"title":356,"draft":120,"path":357,"stem":358,"children":359,"page":120},"ออเดอร์","\u002Fdocs\u002Ffeatures\u002Forders","docs\u002F02.features\u002F06.orders",[360,364,369],{"title":356,"path":361,"stem":362,"draft":120,"icon":363},"\u002Fdocs\u002Ffeatures\u002Forders\u002Forders","docs\u002F02.features\u002F06.orders\u002F01.orders","i-material-symbols-receipt-long-rounded",{"title":365,"path":366,"stem":367,"draft":120,"icon":368},"Reconciliation","\u002Fdocs\u002Ffeatures\u002Forders\u002Freconciliation","docs\u002F02.features\u002F06.orders\u002F02.reconciliation","i-material-symbols-balance",{"title":370,"path":371,"stem":372,"draft":120,"icon":373},"ใบปะหน้าพัสดุ","\u002Fdocs\u002Ffeatures\u002Forders\u002Fshipping-labels","docs\u002F02.features\u002F06.orders\u002F03.shipping-labels","i-material-symbols-local-shipping-rounded",{"title":375,"draft":120,"path":376,"stem":377,"children":378},"การเติบโต","\u002Fdocs\u002Fgrowth","docs\u002F03.growth\u002Findex",[379,380,403,467,491],{"title":119,"path":376,"stem":377,"draft":120},{"title":381,"draft":120,"path":382,"stem":383,"children":384,"page":120},"Actions","\u002Fdocs\u002Fgrowth\u002Factions","docs\u002F03.growth\u002F01.actions",[385,390,394,399],{"title":386,"path":387,"stem":388,"draft":120,"icon":389},"Actions คืออะไร","\u002Fdocs\u002Fgrowth\u002Factions\u002Fwhat-are-actions","docs\u002F03.growth\u002F01.actions\u002F01.what-are-actions","i-material-symbols-app-spark-rounded",{"title":391,"path":392,"stem":393,"draft":120},"ขั้นตอนของ Action","\u002Fdocs\u002Fgrowth\u002Factions\u002Faction-flow","docs\u002F03.growth\u002F01.actions\u002F02.action-flow",{"title":395,"path":396,"stem":397,"draft":120,"icon":398},"Deployed และ Dismissed","\u002Fdocs\u002Fgrowth\u002Factions\u002Fdeployed-and-dismissed","docs\u002F03.growth\u002F01.actions\u002F03.deployed-and-dismissed","i-material-symbols-published-with-changes-rounded",{"title":400,"path":401,"stem":402,"draft":120,"icon":301},"ผลลัพธ์คำนวณอย่างไร","\u002Fdocs\u002Fgrowth\u002Factions\u002Fresults","docs\u002F03.growth\u002F01.actions\u002F04.results",{"title":404,"draft":120,"path":405,"stem":406,"children":407,"icon":409},"ประเภทของ Action","\u002Fdocs\u002Fgrowth\u002Faction-types","docs\u002F03.growth\u002F02.action-types\u002Findex",[408,410,415,420,424,429,434,439,444,448,453,458,463],{"title":119,"path":405,"stem":406,"draft":120,"icon":409},"i-material-symbols-format-list-bulleted-rounded",{"title":411,"path":412,"stem":413,"draft":120,"icon":414},"Price buffer","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fprice-buffer","docs\u002F03.growth\u002F02.action-types\u002F01.price-buffer","i-material-symbols-money-range-rounded",{"title":416,"path":417,"stem":418,"draft":120,"icon":419},"Commission adjust","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fcommission-adjust","docs\u002F03.growth\u002F02.action-types\u002F02.commission-adjust","i-material-symbols-percent-discount-rounded",{"title":421,"path":422,"stem":423,"draft":120,"icon":210},"Variant merge","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fvariant-merge","docs\u002F03.growth\u002F02.action-types\u002F03.variant-merge",{"title":425,"path":426,"stem":427,"draft":120,"icon":428},"Target ROAS","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Ftarget-roas","docs\u002F03.growth\u002F02.action-types\u002F04.target-roas","i-material-symbols-target",{"title":430,"path":431,"stem":432,"draft":120,"icon":433},"Bundle Deal","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fbundle-deal","docs\u002F03.growth\u002F02.action-types\u002F05.bundle-deal","i-material-symbols-category-rounded",{"title":435,"path":436,"stem":437,"draft":120,"icon":438},"Product Boost","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fproduct-boost","docs\u002F03.growth\u002F02.action-types\u002F06.product-boost","i-material-symbols-electric-bolt-rounded",{"title":440,"path":441,"stem":442,"draft":120,"icon":443},"การลงทะเบียนแคมเปญ","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fcampaign-enrollment","docs\u002F03.growth\u002F02.action-types\u002F07.campaign-enrollment","i-material-symbols-play-arrow-rounded",{"title":445,"path":446,"stem":447,"draft":120,"icon":350},"การปรับแต่งโฆษณา","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fad-adjustment","docs\u002F03.growth\u002F02.action-types\u002F08.ad-adjustment",{"title":449,"path":450,"stem":451,"draft":120,"icon":452},"SEO","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fseo","docs\u002F03.growth\u002F02.action-types\u002F09.seo","i-material-symbols-category-search-rounded",{"title":454,"path":455,"stem":456,"draft":120,"icon":457},"Add-on Deal","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fadd-on-deal","docs\u002F03.growth\u002F02.action-types\u002F10.add-on-deal","i-material-symbols-add-box-rounded",{"title":459,"path":460,"stem":461,"draft":120,"icon":462},"Stock Up","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Fstock-up","docs\u002F03.growth\u002F02.action-types\u002F11.stock-up","i-material-symbols-inventory-rounded",{"title":464,"path":465,"stem":466,"draft":120,"icon":428},"TikTok Target ROAS","\u002Fdocs\u002Fgrowth\u002Faction-types\u002Ftiktok-target-roas","docs\u002F03.growth\u002F02.action-types\u002F12.tiktok-target-roas",{"title":468,"draft":120,"path":469,"stem":470,"children":471,"page":120},"โฆษณา","\u002Fdocs\u002Fgrowth\u002Fads","docs\u002F03.growth\u002F03.ads",[472,477,481,486],{"title":473,"path":474,"stem":475,"draft":120,"icon":476},"การอ่านแผนภูมิ Sankey","\u002Fdocs\u002Fgrowth\u002Fads\u002Freading-the-sankey","docs\u002F03.growth\u002F03.ads\u002F01.reading-the-sankey","i-material-symbols-schema-rounded",{"title":478,"path":479,"stem":480,"draft":120,"icon":168},"Cannibalization","\u002Fdocs\u002Fgrowth\u002Fads\u002Fcannibalization","docs\u002F03.growth\u002F03.ads\u002F02.cannibalization",{"title":482,"path":483,"stem":484,"draft":120,"icon":485},"Meta (Facebook) Ads","\u002Fdocs\u002Fgrowth\u002Fads\u002Fmeta-ads","docs\u002F03.growth\u002F03.ads\u002F03.meta-ads","i-simple-icons-meta",{"title":487,"path":488,"stem":489,"draft":120,"icon":490},"กำไรจาก CPAS","\u002Fdocs\u002Fgrowth\u002Fads\u002Fcpas-profit","docs\u002F03.growth\u002F03.ads\u002F04.cpas-profit","i-material-symbols-hub-rounded",{"title":492,"draft":120,"path":493,"stem":494,"children":495,"icon":173},"Optimization groups","\u002Fdocs\u002Fgrowth\u002Foptimization-groups","docs\u002F03.growth\u002F04.optimization-groups\u002Findex",[496,497,502,507,512,517,522,527,532,537,542,547,552,557],{"title":119,"path":493,"stem":494,"draft":120,"icon":173},{"title":498,"path":499,"stem":500,"draft":120,"icon":501},"สร้างกลุ่ม","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fcreating-a-group","docs\u002F03.growth\u002F04.optimization-groups\u002F01.creating-a-group","i-lucide-plus",{"title":503,"path":504,"stem":505,"draft":120,"icon":506},"การตั้งค่าโดยรวม","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fglobal-settings","docs\u002F03.growth\u002F04.optimization-groups\u002F02.global-settings","i-lucide-settings-2",{"title":508,"path":509,"stem":510,"draft":120,"icon":511},"งบและขีดจำกัด","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fbudget-and-limits","docs\u002F03.growth\u002F04.optimization-groups\u002F03.budget-and-limits","i-lucide-wallet",{"title":513,"path":514,"stem":515,"draft":120,"icon":516},"เลือกเป้าหมาย","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fchoosing-an-objective","docs\u002F03.growth\u002F04.optimization-groups\u002F05.choosing-an-objective","i-lucide-target",{"title":518,"path":519,"stem":520,"draft":120,"icon":521},"เงื่อนไข","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fconstraints","docs\u002F03.growth\u002F04.optimization-groups\u002F06.constraints","i-lucide-shield-check",{"title":523,"path":524,"stem":525,"draft":120,"icon":526},"การกระจายงบ","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fallocation-preference","docs\u002F03.growth\u002F04.optimization-groups\u002F07.allocation-preference","i-lucide-sliders-horizontal",{"title":528,"path":529,"stem":530,"draft":120,"icon":531},"แผนรายเดือน","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fmonthly-plan","docs\u002F03.growth\u002F04.optimization-groups\u002F09.monthly-plan","i-lucide-calendar-days",{"title":533,"path":534,"stem":535,"draft":120,"icon":536},"ตารางเวลาบนไทม์ไลน์","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fschedule","docs\u002F03.growth\u002F04.optimization-groups\u002F10.schedule","i-lucide-clock",{"title":538,"path":539,"stem":540,"draft":120,"icon":541},"กฎระบบอัตโนมัติ","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fautomation","docs\u002F03.growth\u002F04.optimization-groups\u002F11.automation","i-lucide-workflow",{"title":543,"path":544,"stem":545,"draft":120,"icon":546},"จัดการแคมเปญในกลุ่ม","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fmanaging-campaigns","docs\u002F03.growth\u002F04.optimization-groups\u002F12.managing-campaigns","i-lucide-list-checks",{"title":548,"path":549,"stem":550,"draft":120,"icon":551},"รอบการปรับงบทำงานอย่างไร","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fdaily-run","docs\u002F03.growth\u002F04.optimization-groups\u002F13.daily-run","i-lucide-refresh-cw",{"title":553,"path":554,"stem":555,"draft":120,"icon":556},"เมื่อโมเดลโฆษณากำลังอัปเดต","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fmodel-training","docs\u002F03.growth\u002F04.optimization-groups\u002F14.model-training","i-lucide-brain-circuit",{"title":558,"path":559,"stem":560,"draft":120,"icon":561},"อภิธานศัพท์","\u002Fdocs\u002Fgrowth\u002Foptimization-groups\u002Fglossary","docs\u002F03.growth\u002F04.optimization-groups\u002F16.glossary","i-lucide-book-a",{"title":563,"draft":120,"path":564,"stem":565,"children":566},"AI และ API","\u002Fdocs\u002Fai-and-api","docs\u002F04.ai-and-api\u002Findex",[567,568,608],{"title":119,"path":564,"stem":565,"draft":120},{"title":42,"draft":120,"path":43,"stem":569,"children":570,"icon":572},"docs\u002F04.ai-and-api\u002F01.assistants\u002Findex",[571,573,578,583,588,593,598,603],{"title":119,"path":43,"stem":569,"draft":120,"icon":572},"i-material-symbols-smart-toy-rounded",{"title":574,"path":575,"stem":576,"draft":120,"icon":577},"เชื่อมต่อกับ ChatGPT","\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-chatgpt","docs\u002F04.ai-and-api\u002F01.assistants\u002F01.connect-chatgpt","i-simple-icons-openai",{"title":579,"path":580,"stem":581,"draft":120,"icon":582},"เชื่อมต่อกับ Claude","\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-claude","docs\u002F04.ai-and-api\u002F01.assistants\u002F02.connect-claude","i-simple-icons-claude",{"title":584,"path":585,"stem":586,"draft":120,"icon":587},"Native playbooks","\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fplaybooks","docs\u002F04.ai-and-api\u002F01.assistants\u002F03.playbooks","i-material-symbols-route-rounded",{"title":589,"path":590,"stem":591,"draft":120,"icon":592},"คลัง prompt","\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fprompt-library","docs\u002F04.ai-and-api\u002F01.assistants\u002F04.prompt-library","i-material-symbols-forum-rounded",{"title":594,"path":595,"stem":596,"draft":120,"icon":597},"MCP tool catalog","\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Ftool-catalog","docs\u002F04.ai-and-api\u002F01.assistants\u002F05.tool-catalog","i-material-symbols-build-rounded",{"title":599,"path":600,"stem":601,"draft":120,"icon":602},"สิทธิ์และความปลอดภัย","\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fusage-and-safety","docs\u002F04.ai-and-api\u002F01.assistants\u002F06.usage-and-safety","i-material-symbols-health-and-safety-rounded",{"title":604,"path":605,"stem":606,"draft":120,"icon":607},"ตัวอย่าง MCP แบบครบขั้นตอน","\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fworked-examples","docs\u002F04.ai-and-api\u002F01.assistants\u002F07.worked-examples","i-material-symbols-menu-book-rounded",{"title":45,"draft":120,"path":609,"stem":610,"children":611,"page":120},"\u002Fdocs\u002Fai-and-api\u002Fapi","docs\u002F04.ai-and-api\u002F02.api",[612,615,620,625,630,635],{"title":126,"path":46,"stem":613,"draft":120,"icon":614},"docs\u002F04.ai-and-api\u002F02.api\u002F01.getting-started","i-material-symbols-key-rounded",{"title":616,"path":617,"stem":618,"draft":120,"icon":619},"ความปลอดภัยและขีดจำกัดของ API","\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fsecurity","docs\u002F04.ai-and-api\u002F02.api\u002F02.security","i-material-symbols-verified-user-rounded",{"title":621,"path":622,"stem":623,"draft":120,"icon":624},"Endpoints: สินค้าและออเดอร์","\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fproducts-and-orders","docs\u002F04.ai-and-api\u002F02.api\u002F03.products-and-orders","i-material-symbols-package-2-rounded",{"title":626,"path":627,"stem":628,"draft":120,"icon":629},"Endpoints: การแยกรายละเอียดทางการเงิน","\u002Fdocs\u002Fai-and-api\u002Fapi\u002Ffinancial-breakdown","docs\u002F04.ai-and-api\u002F02.api\u002F04.financial-breakdown","i-material-symbols-account-balance-rounded",{"title":631,"path":632,"stem":633,"draft":120,"icon":634},"Endpoints: ข้อมูลแพลตฟอร์มดิบ","\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fplatform-data","docs\u002F04.ai-and-api\u002F02.api\u002F05.platform-data","i-material-symbols-database-rounded",{"title":636,"path":637,"stem":638,"draft":120,"icon":639},"Endpoints: Actions และคำแนะนำ","\u002Fdocs\u002Fai-and-api\u002Fapi\u002Frecommendations","docs\u002F04.ai-and-api\u002F02.api\u002F06.recommendations","i-material-symbols-recommend-rounded",{"title":641,"draft":120,"path":642,"stem":643,"children":644},"การดูแลระบบ","\u002Fdocs\u002Fadministration","docs\u002F05.administration\u002Findex",[645,646,666],{"title":119,"path":642,"stem":643,"draft":120},{"title":647,"draft":120,"path":648,"stem":649,"children":650,"page":120},"ทีมและการเข้าถึง","\u002Fdocs\u002Fadministration\u002Fteam-and-access","docs\u002F05.administration\u002F01.team-and-access",[651,656,661],{"title":652,"path":653,"stem":654,"draft":120,"icon":655},"ทีมและบทบาท","\u002Fdocs\u002Fadministration\u002Fteam-and-access\u002Fteam-and-roles","docs\u002F05.administration\u002F01.team-and-access\u002F01.team-and-roles","i-material-symbols-group-rounded",{"title":657,"path":658,"stem":659,"draft":120,"icon":660},"การเพิ่มสมาชิก","\u002Fdocs\u002Fadministration\u002Fteam-and-access\u002Fadding-teammates","docs\u002F05.administration\u002F01.team-and-access\u002F02.adding-teammates","i-material-symbols-person-add-rounded",{"title":662,"path":663,"stem":664,"draft":120,"icon":665},"การจัดการการเข้าถึง","\u002Fdocs\u002Fadministration\u002Fteam-and-access\u002Fmanaging-access","docs\u002F05.administration\u002F01.team-and-access\u002F03.managing-access","i-material-symbols-admin-panel-settings-rounded",{"title":667,"draft":120,"path":668,"stem":669,"children":670,"page":120},"บัญชี","\u002Fdocs\u002Fadministration\u002Faccount","docs\u002F05.administration\u002F02.account",[671,673],{"title":48,"path":49,"stem":672,"draft":120,"icon":490},"docs\u002F05.administration\u002F02.account\u002F01.open-platform",{"title":674,"path":675,"stem":676,"draft":120,"icon":363},"VAT","\u002Fdocs\u002Fadministration\u002Faccount\u002Fvat","docs\u002F05.administration\u002F02.account\u002F02.vat",{"id":678,"title":126,"body":679,"description":1111,"draft":120,"draftReason":1112,"extension":1113,"layout":1112,"meta":1114,"navigation":1115,"path":46,"platforms":1112,"rawbody":1116,"seo":1117,"stem":613,"__hash__":1118},"docs_th\u002Fdocs\u002F04.ai-and-api\u002F02.api\u002F01.getting-started.md",{"type":680,"value":681,"toc":1104},"minimark",[682,703,707,753,764,768,782,824,835,888,891,894,914,924,927,958,961,964,1075,1078,1092,1100],[683,684,685,686,690,691,694,695,699,700],"p",{},"ถ้าคุณอยากเชื่อม DataGlass เข้ากับสคริปต์, โน้ตบุ๊ก หรือ agent ของคุณเอง — แทนที่จะใช้ connector แบบคลิกเดียวอย่าง ",[687,688,81],"a",{"href":689},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-chatgpt"," หรือ ",[687,692,85],{"href":693},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-claude"," — คุณสามารถออก ",[696,697,698],"strong",{},"API key"," แล้วเรียกใช้ DataGlass REST API ได้โดยตรง API key (หรือที่เรียกว่า Personal Access Token) จะมีสิทธิ์เข้าถึงเท่ากับบัญชีของคุณ แต่เป็นแบบ ",[696,701,702],{},"อ่านอย่างเดียว",[704,705,706],"h2",{"id":706},"สร้างคีย์",[708,709,710,717,723,746],"ol",{},[711,712,713,714],"li",{},"เปิดเมนูบัญชี (มุมขวาบน) แล้วไปที่ ",[696,715,716],{},"Settings → API keys",[711,718,719,720],{},"คลิก ",[696,721,722],{},"Create API key",[711,724,725,726,729,730,690,734,737,738,741,742,745],{},"ตั้ง ",[696,727,728],{},"ป้ายชื่อ (label)"," ที่คุณจะจำได้ภายหลัง (เช่น ",[731,732,733],"em",{},"\"สคริปต์ดูกำไร\"",[731,735,736],{},"\"Claude Desktop\"",") และเลือก ",[696,739,740],{},"วันหมดอายุ"," ได้ตามต้องการ — ",[731,743,744],{},"ไม่มีวันหมดอายุ",", 30, 60, 90 หรือ 365 วัน",[711,747,748,749],{},"คัดลอกโทเคนที่ปรากฏขึ้นมา โทเคนจะขึ้นต้นด้วย ",[750,751,752],"code",{},"dg_pat_",[754,755,757],"callout",{"icon":756},"i-lucide-triangle-alert",[683,758,759,760,763],{},"โทเคนจะแสดง ",[696,761,762],{},"เพียงครั้งเดียวเท่านั้น"," เราเก็บไว้แค่ค่าแฮชของมัน จึงไม่สามารถแสดงให้ดูซ้ำได้ — ถ้าทำหาย ให้ยกเลิกคีย์เดิมแล้วสร้างใหม่",[704,765,767],{"id":766},"เรียกใช้-api","เรียกใช้ API",[683,769,770,771,774,775,778,779],{},"ส่งโทเคนเป็น ",[696,772,773],{},"Bearer"," token บน header ",[750,776,777],{},"Authorization"," โดย API อยู่ที่ ",[750,780,781],{},"https:\u002F\u002Fprod-api.dataglasslabs.com",[783,784,789],"pre",{"className":785,"code":786,"language":787,"meta":788,"style":788},"language-bash shiki shiki-themes github-light","# แสดงรายการร้าน Shopee ที่เชื่อมต่อ\ncurl https:\u002F\u002Fprod-api.dataglasslabs.com\u002Fapi\u002Fshopee\u002Ffetch-all-user-shops \\\n  -H \"Authorization: Bearer dg_pat_your_token_here\"\n","bash","",[750,790,791,800,815],{"__ignoreMap":788},[792,793,796],"span",{"class":794,"line":795},"line",1,[792,797,799],{"class":798},"sAwPA","# แสดงรายการร้าน Shopee ที่เชื่อมต่อ\n",[792,801,803,807,811],{"class":794,"line":802},2,[792,804,806],{"class":805},"s7eDp","curl",[792,808,810],{"class":809},"sYBdl"," https:\u002F\u002Fprod-api.dataglasslabs.com\u002Fapi\u002Fshopee\u002Ffetch-all-user-shops",[792,812,814],{"class":813},"sYu0t"," \\\n",[792,816,818,821],{"class":794,"line":817},3,[792,819,820],{"class":813},"  -H",[792,822,823],{"class":809}," \"Authorization: Bearer dg_pat_your_token_here\"\n",[683,825,826,827,830,831,834],{},"endpoint ส่วนใหญ่เป็น ",[750,828,829],{},"POST"," และรับ JSON body — ให้ส่ง ",[750,832,833],{},"Content-Type: application\u002Fjson",":",[783,836,838],{"className":785,"code":837,"language":787,"meta":788,"style":788},"# ค้นหาสินค้าด้วยข้อความอิสระ\ncurl -X POST https:\u002F\u002Fprod-api.dataglasslabs.com\u002Fapi\u002Fcanonical-product-controller\u002Fcanonical\u002Fsearch-products \\\n  -H \"Authorization: Bearer dg_pat_your_token_here\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"query\": \"phone case\" }'\n",[750,839,840,845,860,869,879],{"__ignoreMap":788},[792,841,842],{"class":794,"line":795},[792,843,844],{"class":798},"# ค้นหาสินค้าด้วยข้อความอิสระ\n",[792,846,847,849,852,855,858],{"class":794,"line":802},[792,848,806],{"class":805},[792,850,851],{"class":813}," -X",[792,853,854],{"class":809}," POST",[792,856,857],{"class":809}," https:\u002F\u002Fprod-api.dataglasslabs.com\u002Fapi\u002Fcanonical-product-controller\u002Fcanonical\u002Fsearch-products",[792,859,814],{"class":813},[792,861,862,864,867],{"class":794,"line":817},[792,863,820],{"class":813},[792,865,866],{"class":809}," \"Authorization: Bearer dg_pat_your_token_here\"",[792,868,814],{"class":813},[792,870,872,874,877],{"class":794,"line":871},4,[792,873,820],{"class":813},[792,875,876],{"class":809}," \"Content-Type: application\u002Fjson\"",[792,878,814],{"class":813},[792,880,882,885],{"class":794,"line":881},5,[792,883,884],{"class":813},"  -d",[792,886,887],{"class":809}," '{ \"query\": \"phone case\" }'\n",[683,889,890],{},"ทุกคำขอจะทำงานในนามของคุณ — เห็นเฉพาะร้าน, สินค้า, ออเดอร์ และรายงานที่บัญชีของคุณเห็นได้เท่านั้น และไม่เห็นข้อมูลของคนอื่นเลย",[704,892,893],{"id":893},"สิ่งที่เข้าถึงได้",[683,895,896,897,900,901,904,905,907,908,910,911],{},"API key เรียกใช้ฝั่ง ",[696,898,899],{},"อ่านข้อมูล"," ของ DataGlass ได้: สินค้าและแคตตาล็อกรวม, ออเดอร์, การแยกรายละเอียดทางการเงิน, True ROAS, สต๊อก และคำแนะนำชุดเดียวกับที่ขับเคลื่อน Actions ของคุณ คีย์ที่สร้างจากหน้านี้ไม่มีตัวเลือกสิทธิ์ จึงเป็น ",[696,902,903],{},"อ่านอย่างเดียวโดยโครงสร้าง"," ส่วน connector ",[687,906,81],{"href":689}," และ ",[687,909,85],{"href":693}," อ่านข้อมูลชุดเดียวกัน แต่ผู้ช่วย AI สามารถขอสิทธิ์เขียนเฉพาะด้านเพิ่มได้ โดยคุณเป็นคนอนุมัติตอนเชื่อมต่อ — ดู ",[687,912,599],{"href":913},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fusage-and-safety",[754,915,917],{"icon":916},"i-lucide-info",[683,918,919,920,923],{},"ขณะนี้ยังไม่มีสเปก OpenAPI ที่เข้าถึงได้จากภายนอก ระบบสร้างสเปก ",[750,921,922],{},"agent"," จากกฎการเข้าถึงจริงไว้ภายใน จึงไม่มีทางแสดง endpoint ที่คีย์จะถูกปฏิเสธ แต่ยังไม่ได้เปิดให้เข้าถึงจากอินเทอร์เน็ตสาธารณะ หน้าอ้างอิง endpoint ด้านล่างคือรายการสาธารณะที่ใช้อ้างอิงได้",[683,925,926],{},"เอกสารชุดนี้จัดกลุ่ม endpoint เดียวกันออกเป็น 4 หน้าอ้างอิง:",[928,929,930,937,944,951],"ul",{},[711,931,932,936],{},[687,933,935],{"href":934},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fproducts-and-orders","สินค้าและออเดอร์"," — แคตตาล็อก, สินค้ารวม, ออเดอร์, สต๊อก และร้านที่เชื่อมต่อ",[711,938,939,943],{},[687,940,942],{"href":941},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Ffinancial-breakdown","การแยกรายละเอียดทางการเงิน"," — การแยกกำไรจริง, profit-adjusted ROAS, เครื่องมือมาร์จิน และภาพรวมร้าน",[711,945,946,950],{},[687,947,949],{"href":948},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fplatform-data","ข้อมูลแพลตฟอร์มดิบ"," — ข้อมูลสินค้า, ออเดอร์ และแคมเปญโฆษณาที่ปรับให้เป็นมาตรฐานในแต่ละแพลตฟอร์ม",[711,952,953,957],{},[687,954,956],{"href":955},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Frecommendations","Actions และคำแนะนำ"," — Actions ที่ช่วยเพิ่มกำไรซึ่งระบบสร้างขึ้น",[704,959,960],{"id":960},"หลักการทั่วไป",[683,962,963],{},"สิ่งที่ใช้กับทุก endpoint:",[928,965,966,975,985,1002,1011,1038,1066],{},[711,967,968,971,972,974],{},[696,969,970],{},"Base URL"," — ",[750,973,781],{}," ทุกพาธในเอกสารต่อจาก URL นี้",[711,976,977,980,981,984],{},[696,978,979],{},"การยืนยันตัวตน"," — ส่งคีย์เป็น ",[750,982,983],{},"Authorization: Bearer dg_pat_…"," ในทุกคำขอ",[711,986,987,990,991,994,995,998,999],{},[696,988,989],{},"โครงห่อผลลัพธ์"," — ผลลัพธ์ถูกห่อเป็น ",[750,992,993],{},"{ \"status\": \"SUCCESS\", \"statusCode\": 200, \"message\": …, \"data\": \u003Cresult> }"," ชนิดใน ",[696,996,997],{},"Response"," ของแต่ละ endpoint คือรูปร่างของ ",[750,1000,1001],{},"data",[711,1003,1004,1007,1008],{},[696,1005,1006],{},"วันที่"," — ฟิลด์ชนิดวันที่ที่มีเวลาด้วยจะถูกแปลงเป็นอาเรย์: ",[750,1009,1010],{},"[ปี, เดือน (เริ่มที่ 1), วัน, ชั่วโมง, นาที, วินาที]",[711,1012,1013,1018,1019,1022,1023,1032,1033,1035,1036],{},[696,1014,1015],{},[750,1016,1017],{},"region"," — รหัสภูมิภาค (เช่น ",[750,1020,1021],{},"TH",") ส่วน ",[696,1024,1025,1028,1029],{},[750,1026,1027],{},"shopId"," \u002F ",[750,1030,1031],{},"sellerId"," — ตัวระบุที่ได้จาก endpoint หมวด ",[731,1034,192],{}," ใน ",[687,1037,935],{"href":934},[711,1039,1040,1043,1044,1047,1048,1051,1052,1055,1056,1059,1060,1028,1063],{},[696,1041,1042],{},"การแบ่งหน้า"," — แบบ cursor คืน ",[750,1045,1046],{},"{ rows\u002Fdata, nextCursor }"," ให้ส่ง ",[750,1049,1050],{},"nextCursor"," กลับเพื่อดึงหน้าถัดไป แบบ offset (v3) รับ ",[750,1053,1054],{},"page"," (เริ่มที่ 0) + ",[750,1057,1058],{},"pageSize"," และคืน ",[750,1061,1062],{},"totalItems",[750,1064,1065],{},"totalPages",[711,1067,1068,1071,1072],{},[696,1069,1070],{},"ขีดจำกัดการเรียก"," — 60 คำขอต่อนาทีต่อคีย์ ดู ",[687,1073,616],{"href":1074},"\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fsecurity",[704,1076,1077],{"id":1077},"จัดการและยกเลิกคีย์",[683,1079,1080,1081,1083,1084,1087,1088,1091],{},"ที่หน้า ",[696,1082,716],{}," คุณจะเห็นคีย์ทุกตัวพร้อมป้ายชื่อ, ส่วนนำหน้า (prefix), วันที่ใช้ล่าสุด, วันหมดอายุ และสถานะ คลิก ",[696,1085,1086],{},"Revoke"," ที่คีย์ใดก็ได้เพื่อปิดการใช้งาน ",[696,1089,1090],{},"ทันทีและถาวร"," — ควรทำทันทีที่สงสัยว่าโทเคนอาจรั่วไหล",[754,1093,1095],{"icon":1094},"i-lucide-shield",[683,1096,1097,1098],{},"สำหรับนโยบายอ่านอย่างเดียว, การจำกัดอัตราการเรียก และกฎความปลอดภัยอื่น ๆ เกี่ยวกับคีย์ ดูได้ที่ ",[687,1099,616],{"href":1074},[1101,1102,1103],"style",{},"html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":788,"searchDepth":817,"depth":817,"links":1105},[1106,1107,1108,1109,1110],{"id":706,"depth":802,"text":706},{"id":766,"depth":802,"text":767},{"id":893,"depth":802,"text":893},{"id":960,"depth":802,"text":960},{"id":1077,"depth":802,"text":1077},"สร้าง API key แบบอ่านอย่างเดียว แล้วเรียกใช้ DataGlass API โดยตรงจากสคริปต์หรือ agent ของคุณเอง",null,"md",{},{"icon":614},"---\ntitle: เริ่มต้นใช้งาน\ndescription: สร้าง API key แบบอ่านอย่างเดียว แล้วเรียกใช้ DataGlass API โดยตรงจากสคริปต์หรือ agent ของคุณเอง\nnavigation:\n  icon: i-material-symbols-key-rounded\n---\n\nถ้าคุณอยากเชื่อม DataGlass เข้ากับสคริปต์, โน้ตบุ๊ก หรือ agent ของคุณเอง — แทนที่จะใช้ connector แบบคลิกเดียวอย่าง [ChatGPT](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-chatgpt) หรือ [Claude](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-claude) — คุณสามารถออก **API key** แล้วเรียกใช้ DataGlass REST API ได้โดยตรง API key (หรือที่เรียกว่า Personal Access Token) จะมีสิทธิ์เข้าถึงเท่ากับบัญชีของคุณ แต่เป็นแบบ **อ่านอย่างเดียว**\n\n## สร้างคีย์\n\n1. เปิดเมนูบัญชี (มุมขวาบน) แล้วไปที่ **Settings → API keys**\n2. คลิก **Create API key**\n3. ตั้ง **ป้ายชื่อ (label)** ที่คุณจะจำได้ภายหลัง (เช่น *\"สคริปต์ดูกำไร\"* หรือ *\"Claude Desktop\"*) และเลือก **วันหมดอายุ** ได้ตามต้องการ — *ไม่มีวันหมดอายุ*, 30, 60, 90 หรือ 365 วัน\n4. คัดลอกโทเคนที่ปรากฏขึ้นมา โทเคนจะขึ้นต้นด้วย `dg_pat_`\n\n::callout{icon=\"i-lucide-triangle-alert\"}\nโทเคนจะแสดง **เพียงครั้งเดียวเท่านั้น** เราเก็บไว้แค่ค่าแฮชของมัน จึงไม่สามารถแสดงให้ดูซ้ำได้ — ถ้าทำหาย ให้ยกเลิกคีย์เดิมแล้วสร้างใหม่\n::\n\n## เรียกใช้ API\n\nส่งโทเคนเป็น **Bearer** token บน header `Authorization` โดย API อยู่ที่ `https:\u002F\u002Fprod-api.dataglasslabs.com`\n\n```bash\n# แสดงรายการร้าน Shopee ที่เชื่อมต่อ\ncurl https:\u002F\u002Fprod-api.dataglasslabs.com\u002Fapi\u002Fshopee\u002Ffetch-all-user-shops \\\n  -H \"Authorization: Bearer dg_pat_your_token_here\"\n```\n\nendpoint ส่วนใหญ่เป็น `POST` และรับ JSON body — ให้ส่ง `Content-Type: application\u002Fjson`:\n\n```bash\n# ค้นหาสินค้าด้วยข้อความอิสระ\ncurl -X POST https:\u002F\u002Fprod-api.dataglasslabs.com\u002Fapi\u002Fcanonical-product-controller\u002Fcanonical\u002Fsearch-products \\\n  -H \"Authorization: Bearer dg_pat_your_token_here\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"query\": \"phone case\" }'\n```\n\nทุกคำขอจะทำงานในนามของคุณ — เห็นเฉพาะร้าน, สินค้า, ออเดอร์ และรายงานที่บัญชีของคุณเห็นได้เท่านั้น และไม่เห็นข้อมูลของคนอื่นเลย\n\n## สิ่งที่เข้าถึงได้\n\nAPI key เรียกใช้ฝั่ง **อ่านข้อมูล** ของ DataGlass ได้: สินค้าและแคตตาล็อกรวม, ออเดอร์, การแยกรายละเอียดทางการเงิน, True ROAS, สต๊อก และคำแนะนำชุดเดียวกับที่ขับเคลื่อน Actions ของคุณ คีย์ที่สร้างจากหน้านี้ไม่มีตัวเลือกสิทธิ์ จึงเป็น **อ่านอย่างเดียวโดยโครงสร้าง** ส่วน connector [ChatGPT](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-chatgpt) และ [Claude](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fconnect-claude) อ่านข้อมูลชุดเดียวกัน แต่ผู้ช่วย AI สามารถขอสิทธิ์เขียนเฉพาะด้านเพิ่มได้ โดยคุณเป็นคนอนุมัติตอนเชื่อมต่อ — ดู [สิทธิ์และความปลอดภัย](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fassistants\u002Fusage-and-safety)\n\n::callout{icon=\"i-lucide-info\"}\nขณะนี้ยังไม่มีสเปก OpenAPI ที่เข้าถึงได้จากภายนอก ระบบสร้างสเปก `agent` จากกฎการเข้าถึงจริงไว้ภายใน จึงไม่มีทางแสดง endpoint ที่คีย์จะถูกปฏิเสธ แต่ยังไม่ได้เปิดให้เข้าถึงจากอินเทอร์เน็ตสาธารณะ หน้าอ้างอิง endpoint ด้านล่างคือรายการสาธารณะที่ใช้อ้างอิงได้\n::\n\nเอกสารชุดนี้จัดกลุ่ม endpoint เดียวกันออกเป็น 4 หน้าอ้างอิง:\n\n- [สินค้าและออเดอร์](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fproducts-and-orders) — แคตตาล็อก, สินค้ารวม, ออเดอร์, สต๊อก และร้านที่เชื่อมต่อ\n- [การแยกรายละเอียดทางการเงิน](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Ffinancial-breakdown) — การแยกกำไรจริง, profit-adjusted ROAS, เครื่องมือมาร์จิน และภาพรวมร้าน\n- [ข้อมูลแพลตฟอร์มดิบ](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fplatform-data) — ข้อมูลสินค้า, ออเดอร์ และแคมเปญโฆษณาที่ปรับให้เป็นมาตรฐานในแต่ละแพลตฟอร์ม\n- [Actions และคำแนะนำ](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Frecommendations) — Actions ที่ช่วยเพิ่มกำไรซึ่งระบบสร้างขึ้น\n\n## หลักการทั่วไป\n\nสิ่งที่ใช้กับทุก endpoint:\n\n- **Base URL** — `https:\u002F\u002Fprod-api.dataglasslabs.com` ทุกพาธในเอกสารต่อจาก URL นี้\n- **การยืนยันตัวตน** — ส่งคีย์เป็น `Authorization: Bearer dg_pat_…` ในทุกคำขอ\n- **โครงห่อผลลัพธ์** — ผลลัพธ์ถูกห่อเป็น `{ \"status\": \"SUCCESS\", \"statusCode\": 200, \"message\": …, \"data\": \u003Cresult> }` ชนิดใน **Response** ของแต่ละ endpoint คือรูปร่างของ `data`\n- **วันที่** — ฟิลด์ชนิดวันที่ที่มีเวลาด้วยจะถูกแปลงเป็นอาเรย์: `[ปี, เดือน (เริ่มที่ 1), วัน, ชั่วโมง, นาที, วินาที]`\n- **`region`** — รหัสภูมิภาค (เช่น `TH`) ส่วน **`shopId` \u002F `sellerId`** — ตัวระบุที่ได้จาก endpoint หมวด *ร้านค้า* ใน [สินค้าและออเดอร์](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fproducts-and-orders)\n- **การแบ่งหน้า** — แบบ cursor คืน `{ rows\u002Fdata, nextCursor }` ให้ส่ง `nextCursor` กลับเพื่อดึงหน้าถัดไป แบบ offset (v3) รับ `page` (เริ่มที่ 0) + `pageSize` และคืน `totalItems` \u002F `totalPages`\n- **ขีดจำกัดการเรียก** — 60 คำขอต่อนาทีต่อคีย์ ดู [ความปลอดภัยและขีดจำกัดของ API](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fsecurity)\n\n## จัดการและยกเลิกคีย์\n\nที่หน้า **Settings → API keys** คุณจะเห็นคีย์ทุกตัวพร้อมป้ายชื่อ, ส่วนนำหน้า (prefix), วันที่ใช้ล่าสุด, วันหมดอายุ และสถานะ คลิก **Revoke** ที่คีย์ใดก็ได้เพื่อปิดการใช้งาน **ทันทีและถาวร** — ควรทำทันทีที่สงสัยว่าโทเคนอาจรั่วไหล\n\n::callout{icon=\"i-lucide-shield\"}\nสำหรับนโยบายอ่านอย่างเดียว, การจำกัดอัตราการเรียก และกฎความปลอดภัยอื่น ๆ เกี่ยวกับคีย์ ดูได้ที่ [ความปลอดภัยและขีดจำกัดของ API](\u002Fth\u002Fdocs\u002Fai-and-api\u002Fapi\u002Fsecurity)\n::\n",{"title":126,"description":1111},"mQX46EAv12T8ug1E-VbSPNZMrhOfkd1vsJg1s9YAquk",{"data":1120,"body":1121},{},{"type":1122,"children":1123},"root",[1124],{"type":1125,"tag":683,"props":1126,"children":1127},"element",{},[1128],{"type":1129,"value":1111},"text",1792785058163]