
Under Metrics & Segmentation in the X Ads API documentation the segmentation types list includes LOCATIONS (which covers country) — “Segmentation reporting allows the retrieval of metrics broken out by the values of a given targeting type.”
https://developer.x.com/en/docs/x-ads-api/analytics/overview/metrics-and-segmentation?