action sendgrid_get_geo_stats { label: "Retrieve email statistics by country and state/province." description: "**This endpoint allows you to retrieve your email statistics segmented by country and state/province.**\n\n**We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints.\n\nAdvanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html)." provider: sendgrid method: GET path: "/geo/stats" encoding: json input: { type: "object" properties: { country: { type: "string" enum: ["US", "CA"] } } additionalProperties: false } output: { type: "array" items: { type: "object" properties: { date: { type: "string" description: "The date that the statistics were gathered." } stats: { type: "array" description: "The list of statistics." items: { type: "object" properties: { metrics: { description: "The individual events and their stats." type: "object" } name: { type: "string" description: "The name of the specific segmentation." } type: { type: "string" description: "The type of segmentation." } } } } } } } }