Visits from coding agents and AI assistants per country, most visits first. The country is located from the IP address the request came from. For hosted assistants such as ChatGPT that is usually the provider's servers, not the person who asked; for coding agents it is usually the developer's machine.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lightsage","colors":{"primary":"#0EA5E9","light":"#38BDF8","dark":"#0284C7"},"logo":{"light":"https://mintcdn.com/sapient-14d4e375/0RQiSxJPQv6MyuZt/images/lightsage-logo-with-text-light.svg?fit=max\u0026auto=format\u0026n=0RQiSxJPQv6MyuZt\u0026q=85\u0026s=843d0563baa54c778891f942711ab938","dark":"https://mintcdn.com/sapient-14d4e375/0RQiSxJPQv6MyuZt/images/lightsage-logo-with-text-dark.svg?fit=max\u0026auto=format\u0026n=0RQiSxJPQv6MyuZt\u0026q=85\u0026s=0ec933f6e5153f8392cb4c5f19b7017f"},"favicon":"https://mintcdn.com/sapient-14d4e375/lnqlKs8p_hzadcGt/images/favicon.png?fit=max\u0026auto=format\u0026n=lnqlKs8p_hzadcGt\u0026q=85\u0026s=358b3be56f25189cd6d5417fd300fefc","background":{"color":{"light":"#FFFFFF","dark":"#0D0C0C"}},"navbar":{"links":[{"href":"https://lightsage.com","label":"Homepage"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.lightsage.com"}},"seo":{"indexing":"all"},"fonts":{"family":"Geist"},"integrations":{"ga4":{"measurementId":"G-417S0EJVMS"},"posthog":{"apiKey":"phc_yrA1TjjqeYfsoJEofjxd0Bw7cTrxs8N402k3NwusII7"}},"contextual":{"options":["copy","chatgpt","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sapient-14d4e375","hasAudioNarration":false,"actualSubdomain":"sapient-14d4e375","customDomains":["lightsage.com"],"gitSource":{"type":"github","owner":"lightsagehq","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae02c324c09e96410641fcb","collectionId":"82419905-7508-4f98-a30d-d180f437b2ae","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae02c324c09e96410641fcb"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae02c324c09e96410641fcb","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":74},{"language":"default","tag":"CLI Reference","count":18},{"language":"default","tag":"Evals","count":14},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Prompts","count":13},{"language":"default","tag":"Visibility","count":12},{"language":"default","tag":"MCP Reference","count":10},{"language":"default","tag":"Clients","count":9},{"language":"default","tag":"Agent Preference","count":8},{"language":"default","tag":"Agent Analytics","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/agent-analytics/list-agent-analytics-countries","slug":"/api-reference/agent-analytics/list-agent-analytics-countries","pageMetadata":{"title":"List Agent Analytics Countries","description":"Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/countries","href":"/api-reference/agent-analytics/list-agent-analytics-countries","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Returns a site’s visits from coding agents and AI assistants per country in the date range, most visits first.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"List Agent Analytics Countries","description":"Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/countries","href":"/api-reference/agent-analytics/list-agent-analytics-countries","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Agent Analytics"],"summary":"List Agent Analytics Countries","description":"Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.","operationId":"v2_agent_analytics_countries_list","security":["993cd8f4-91cc-48dd-b979-87580b26038a"],"parameters":["c210c267-44d4-465d-a5a9-b97c5d948f85","81f2fc22-ea76-48b1-acca-06950290cba2","5892307b-c5a6-49bd-9418-5654f2608ae1","9c094da9-33a9-4791-8ba6-574541668e6b"],"responses":{"200":"aceb7489-501e-42f3-a47b-91110e6b3e74","422":"e4ba2720-22bc-440b-b5ce-f7f93eeab3bd"},"method":"get","type":"path","servers":["a8970441-6edd-43d6-b435-b35ca3adf874"],"path":"/v2/agent-analytics/sites/{site_id}/countries","baseUrlOptions":["https://api.lightsage.com"],"title":"List Agent Analytics Countries","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c210c267-44d4-465d-a5a9-b97c5d948f85":{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"81f2fc22-ea76-48b1-acca-06950290cba2":{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"date","title":"Start Date","isRequired":false,"description":"Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.","uniqueKey":"","typeLabel":"string\u003cdate>"},"description":"Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days."},"5892307b-c5a6-49bd-9418-5654f2608ae1":{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"date","title":"End Date","isRequired":false,"description":"Inclusive range end in UTC; defaults to today.","uniqueKey":"","typeLabel":"string\u003cdate>"},"description":"Inclusive range end in UTC; defaults to today."},"9c094da9-33a9-4791-8ba6-574541668e6b":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit","isRequired":false,"uniqueKey":"","typeLabel":"integer"}}},"responses":{"aceb7489-501e-42f3-a47b-91110e6b3e74":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"site_id":{"type":"string","title":"Site Id","isRequired":true,"uniqueKey":"site_id","typeLabel":"string"},"start_date":{"type":"string","format":"date","title":"Start Date","isRequired":true,"uniqueKey":"start_date","typeLabel":"string\u003cdate>"},"end_date":{"type":"string","format":"date","title":"End Date","isRequired":true,"uniqueKey":"end_date","typeLabel":"string\u003cdate>"},"countries":{"items":{"properties":{"country":{"type":"string","title":"Country","description":"Two-letter ISO country code of the request, or `unknown`.","isRequired":true,"uniqueKey":"countries.items.[INDEX].country","typeLabel":"string"},"visits":{"type":"integer","title":"Visits","isRequired":true,"uniqueKey":"countries.items.[INDEX].visits","typeLabel":"integer"}},"type":"object","required":["country","visits"],"title":"PublicAgentCountry","uniqueKey":"countries.items.[INDEX]","typeLabel":"PublicAgentCountry · object"},"type":"array","title":"Countries","description":"Visits from coding agents and AI assistants per country, most visits first. The country is located from the IP address the request came from. For hosted assistants such as ChatGPT that is usually the provider's servers, not the person who asked; for coding agents it is usually the developer's machine.","uniqueKey":"countries","typeLabel":"PublicAgentCountry · object[]"}},"type":"object","required":["site_id","start_date","end_date"],"title":"PublicAgentAnalyticsCountryListResponse","uniqueKey":"","typeLabel":"PublicAgentAnalyticsCountryListResponse · object"},"examples":{"Example":{"title":"Example","value":{"site_id":"\u003cstring>","start_date":"2023-12-25","end_date":"2023-12-25","countries":[{"country":"\u003cstring>","visits":123}]}}},"exampleType":"generated"}},"exampleType":"generated"},"e4ba2720-22bc-440b-b5ce-f7f93eeab3bd":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"993cd8f4-91cc-48dd-b979-87580b26038a":{"LightsageApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Lightsage-Api-Key","scopes":[],"schemeName":"LightsageApiKeyAuth"}}},"servers":{"a8970441-6edd-43d6-b435-b35ca3adf874":{"url":"https://api.lightsage.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Lightsage-Api-Key","scopes":[],"schemeName":"LightsageApiKeyAuth"},"schema":{"title":"X-Lightsage-Api-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"LightsageApiKeyAuth","name":"X-Lightsage-Api-Key"}],"title":"LightsageApiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"sapient-14d4e375","siteName":"Lightsage","title":"List Agent Analytics Countries - Lightsage","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T04:29:14.804Z","originalFileLocation":"api-reference/agent-analytics/list-agent-analytics-countries.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Returns a site\u0026#x27;s visits from coding agents and AI assistants per country in the date range, most visits first.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lightsage\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List Agent Analytics Countries - Lightsage\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns a site\u0026#x27;s visits from coding agents and AI assistants per country in the date range, most visits first.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lightsage\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sapient-14d4e375.mintlify.app/_mintlify/api/og/v2?division=Agent+Analytics\u0026amp;title=List+Agent+Analytics+Countries\u0026amp;description=Returns+a+site%27s+visits+from+coding+agents+and+AI+assistants+per+country+in+the+date+range%2C+most+visits+first.\u0026amp;theme=dd8ce0054346ff07fc865000\u0026amp;signature=346c9e6c4b8239cacd96f80fa0dea30490e20b6eb3e06da27b26a6bb62b4c234\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List Agent Analytics Countries - Lightsage\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns a site\u0026#x27;s visits from coding agents and AI assistants per country in the date range, most visits first.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sapient-14d4e375.mintlify.app/_mintlify/api/og/v2?division=Agent+Analytics\u0026amp;title=List+Agent+Analytics+Countries\u0026amp;description=Returns+a+site%27s+visits+from+coding+agents+and+AI+assistants+per+country+in+the+date+range%2C+most+visits+first.\u0026amp;theme=dd8ce0054346ff07fc865000\u0026amp;signature=346c9e6c4b8239cacd96f80fa0dea30490e20b6eb3e06da27b26a6bb62b4c234\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/sapient-14d4e375/dqjrUzdCO-t6TId6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lightsage\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0EA5E9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/agent-analytics/list-agent-analytics-countries.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://lightsage.com/#organization\",\"name\":\"Lightsage\",\"url\":\"https://lightsage.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sapient-14d4e375/0RQiSxJPQv6MyuZt/images/lightsage-logo-with-text-light.svg?fit=max\u0026auto=format\u0026n=0RQiSxJPQv6MyuZt\u0026q=85\u0026s=843d0563baa54c778891f942711ab938\"}},{\"@type\":\"WebSite\",\"@id\":\"https://lightsage.com/docs#website\",\"name\":\"Lightsage\",\"url\":\"https://lightsage.com/docs\",\"publisher\":{\"@id\":\"https://lightsage.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries#webpage\",\"url\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries\",\"name\":\"List Agent Analytics Countries\",\"description\":\"Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.\",\"dateModified\":\"2026-10-27T04:29:14.804Z\",\"isPartOf\":{\"@id\":\"https://lightsage.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent Analytics\",\"item\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-sites\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List Agent Analytics Countries\",\"item\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries#apireference\",\"headline\":\"List Agent Analytics Countries\",\"name\":\"List Agent Analytics Countries\",\"description\":\"Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.\",\"url\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries\",\"mainEntityOfPage\":{\"@id\":\"https://lightsage.com/docs/api-reference/agent-analytics/list-agent-analytics-countries#webpage\"},\"dateModified\":\"2026-10-27T04:29:14.804Z\",\"publisher\":{\"@id\":\"https://lightsage.com/#organization\"},\"isPartOf\":{\"@id\":\"https://lightsage.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lightsage\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Lightsage","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli-reference"}]},{"tab":"MCP Reference","pages":[{"title":"MCP Reference","href":"/mcp-reference"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","sidebarTitle":"Overview","icon":"code","href":"/api-reference/introduction"}]},{"group":"Status","pages":[{"title":"Get Status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/status","href":"/api-reference/status/get-status"},{"title":"Get Auth Status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/auth/status","href":"/api-reference/status/get-auth-status"}]},{"group":"Visibility","pages":[{"title":"Retrieve Current Visibility","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/current","href":"/api-reference/visibility/retrieve-current-visibility"},{"title":"Retrieve Visibility Overview","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/overview","href":"/api-reference/visibility/retrieve-visibility-overview"},{"title":"List Top Cited Urls","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/citations","href":"/api-reference/visibility/list-top-cited-urls"},{"title":"Retrieve Prompt Visibility Report","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/visibility/prompts","href":"/api-reference/visibility/retrieve-prompt-visibility-report"}]},{"group":"Prompts","pages":[{"title":"List Prompts","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts","href":"/api-reference/prompts/list-prompts"},{"title":"Create Prompts","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/prompts","href":"/api-reference/prompts/create-prompts"},{"title":"List Topics","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/topics","href":"/api-reference/prompts/list-topics"},{"title":"Create Topic","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/prompts/topics","href":"/api-reference/prompts/create-topic"},{"title":"Delete Topic","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/prompts/topics/{topic_id}","href":"/api-reference/prompts/delete-topic"},{"title":"Update Topic","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/prompts/topics/{topic_id}","href":"/api-reference/prompts/update-topic"},{"title":"List Prompt Runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/runs","href":"/api-reference/prompts/list-prompt-runs"},{"title":"Run Prompts","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/prompts/runs","href":"/api-reference/prompts/run-prompts"},{"title":"Get Prompt Run Status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/runs/{run_id}/status","href":"/api-reference/prompts/get-prompt-run-status"},{"title":"Retrieve Prompt Run","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/runs/{run_id}","href":"/api-reference/prompts/retrieve-prompt-run"},{"title":"Retrieve Prompt","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/prompts/{prompt_id}","href":"/api-reference/prompts/retrieve-prompt"},{"title":"Delete Prompt","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/prompts/{prompt_id}","href":"/api-reference/prompts/delete-prompt"},{"title":"Update Prompt","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/prompts/{prompt_id}","href":"/api-reference/prompts/update-prompt"}]},{"group":"Opportunities","pages":[{"title":"List Opportunities","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/opportunities","href":"/api-reference/opportunities/list-opportunities"},{"title":"Retrieve Opportunity","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/opportunities/{opportunity_id}","href":"/api-reference/opportunities/retrieve-opportunity"}]},{"group":"Tasks","pages":[{"title":"List Tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Create Task","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/tasks","href":"/api-reference/tasks/create-task"},{"title":"Retrieve Task","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/tasks/{task_id}","href":"/api-reference/tasks/retrieve-task"},{"title":"Update Task","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/tasks/{task_id}","href":"/api-reference/tasks/update-task"}]},{"group":"Site Audits","pages":[{"title":"List Site Audits","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/site-audits","href":"/api-reference/site-audits/list-site-audits"},{"title":"Retrieve Site Audit","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/site-audits/{site_id}","href":"/api-reference/site-audits/retrieve-site-audit"}]},{"group":"Agent Analytics","pages":[{"title":"List Agent Analytics Sites","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites","href":"/api-reference/agent-analytics/list-agent-analytics-sites"},{"title":"Retrieve Agent Analytics Summary","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/summary","href":"/api-reference/agent-analytics/retrieve-agent-analytics-summary"},{"title":"List Agent Analytics Sources","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/sources","href":"/api-reference/agent-analytics/list-agent-analytics-sources"},{"title":"List Agent Analytics Pages","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/pages","href":"/api-reference/agent-analytics/list-agent-analytics-pages"},{"title":"List Agent Analytics Error Pages","description":"Returns the pages on a site that returned an error status (400 and up) in the date range, most error requests first, with the agents, bots, and people that got each error. Set `status` to 404 for pages that were not found. Needs server-side tracking that records status codes; `status_codes_tracked` says whether the site has any.","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/error-pages","href":"/api-reference/agent-analytics/list-agent-analytics-error-pages"},{"title":"List Agent Analytics Countries","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-analytics/sites/{site_id}/countries","href":"/api-reference/agent-analytics/list-agent-analytics-countries"}]},{"group":"Evals","pages":[{"title":"List Evals","description":"Returns all active eval definitions owned by the organization. Agent Preference evals are not included; list them with `GET /v2/agent-preference/evals`.","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals","href":"/api-reference/evals/list-evals"},{"title":"Create Eval","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/evals","href":"/api-reference/evals/create-eval"},{"title":"Create evals from a template","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/evals/batch","href":"/api-reference/evals/create-evals-from-a-template"},{"title":"Retrieve Eval","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals/{eval_id}","href":"/api-reference/evals/retrieve-eval"},{"title":"Delete Eval","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/evals/{eval_id}","href":"/api-reference/evals/delete-eval"},{"title":"Update Eval","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/evals/{eval_id}","href":"/api-reference/evals/update-eval"},{"title":"List Configurations","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals/{eval_id}/configurations","href":"/api-reference/evals/list-configurations"},{"title":"Create Configuration","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/evals/{eval_id}/configurations","href":"/api-reference/evals/create-configuration"},{"title":"Retrieve Configuration","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/evals/{eval_id}/configurations/{configuration_id}","href":"/api-reference/evals/retrieve-configuration"},{"title":"Delete Configuration","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/evals/{eval_id}/configurations/{configuration_id}","href":"/api-reference/evals/delete-configuration"},{"title":"Update Configuration","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/evals/{eval_id}/configurations/{configuration_id}","href":"/api-reference/evals/update-configuration"}]},{"group":"Eval Templates","pages":[{"title":"List Eval templates","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-templates","href":"/api-reference/eval-templates/list-eval-templates"},{"title":"Create an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/eval-templates","href":"/api-reference/eval-templates/create-an-eval-template"},{"title":"Retrieve an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-templates/{template_id}","href":"/api-reference/eval-templates/retrieve-an-eval-template"},{"title":"Delete an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/eval-templates/{template_id}","href":"/api-reference/eval-templates/delete-an-eval-template"},{"title":"Update an Eval template","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/eval-templates/{template_id}","href":"/api-reference/eval-templates/update-an-eval-template"}]},{"group":"Eval Runs","pages":[{"title":"List Runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs","href":"/api-reference/eval-runs/list-runs"},{"title":"Start an eval run","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/eval-runs","href":"/api-reference/eval-runs/start-an-eval-run"},{"title":"Cancel an eval run","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/eval-runs/{run_id}/cancel","href":"/api-reference/eval-runs/cancel-an-eval-run"},{"title":"Monitor Runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs/monitor","href":"/api-reference/eval-runs/monitor-runs"},{"title":"Retrieve an eval run trace","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs/{run_id}/trace","href":"/api-reference/eval-runs/retrieve-an-eval-run-trace"},{"title":"Retrieve an eval run","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/eval-runs/{run_id}","href":"/api-reference/eval-runs/retrieve-an-eval-run"}]},{"group":"Agent Preference","pages":[{"title":"List Competitors","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/competitors","href":"/api-reference/agent-preference/list-competitors"},{"title":"Retrieve Head To Head","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/head-to-head","href":"/api-reference/agent-preference/retrieve-head-to-head"},{"title":"List Evals","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/evals","href":"/api-reference/agent-preference/list-evals"},{"title":"Create Eval","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/agent-preference/evals","href":"/api-reference/agent-preference/create-eval"},{"title":"Retrieve Eval","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/evals/{eval_id}","href":"/api-reference/agent-preference/retrieve-eval"},{"title":"Delete Eval","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/agent-preference/evals/{eval_id}","href":"/api-reference/agent-preference/delete-eval"},{"title":"Update Eval","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/agent-preference/evals/{eval_id}","href":"/api-reference/agent-preference/update-eval"},{"title":"List Results","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agent-preference/evals/{eval_id}/results","href":"/api-reference/agent-preference/list-results"}]},{"group":"Agents","pages":[{"title":"List Agents","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/agents","href":"/api-reference/agents/list-agents"}]},{"group":"Repositories","pages":[{"title":"List Repositories","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/repositories","href":"/api-reference/repositories/list-repositories"},{"title":"Create Repository","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/repositories","href":"/api-reference/repositories/create-repository"},{"title":"Retrieve Repository","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/repositories/{repository_id}","href":"/api-reference/repositories/retrieve-repository"},{"title":"Delete Repository","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/repositories/{repository_id}","href":"/api-reference/repositories/delete-repository"},{"title":"Update Repository","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/repositories/{repository_id}","href":"/api-reference/repositories/update-repository"}]},{"group":"Environments","pages":[{"title":"List Environments","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/environments","href":"/api-reference/environments/list-environments"}]},{"group":"MCP Servers","pages":[{"title":"List Mcp Servers","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/mcp-servers","href":"/api-reference/mcp-servers/list-mcp-servers"}]},{"group":"CLIs","pages":[{"title":"List Clis","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/clis","href":"/api-reference/clis/list-clis"}]},{"group":"Skills","pages":[{"title":"List Skills","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/skills","href":"/api-reference/skills/list-skills"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"title":"List Agent Analytics Countries - Lightsage","buildId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","deploymentId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bg4Z7D_G.js","utils-Biz734EK.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C6F9YHs6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BoJjY_VP.js","snippetPresets-CnZ-mOFh.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-DC_SB2pp.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BYKtOiIP.js","shallow-COAac_UD.js","getApiPlaygroundDisplay-BV4Viqi2.js","CodeSnippet-DDgW-JXl.js","CodeSnippets-CP1LpNhG.js","Page-BeiUfucV.js","getPastedJson-Cvgvbfmv.js","icon-D-H368xH.js","MethodPill-CXSxH1VW.js","DuplicateIcon-JcbBzF1x.js","createIcon-BDt_aHZM.js","DynamicMarkdown-DO1Fz7ar.js","SectionHeading-mwKBArs3.js","axios-vUo_bRtp.js","Markdown-C3KUTGJN.js","clsx-C6CAjViH.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C3vb5JQZ.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C8Hisf3g.js"]}