We are looking to extract country wise, city wise enagagement stats for all the promoted tweets in my ad account.

Is there any single API which would get those stats ?.

I could see Asynchronous API for stats https://ads-api.twitter.com/4/stats/jobs/accounts/:accountid. But for this we should give only a single country parameter.

Suppose If I have a large reach of around 100 countries I Should hit this api for 100 times.

Is There any work around or any other api Which give all the stats for all tweets say in last 1 year segmented by region and location in my ad account ??

Thanks for the question, @twiterinteg.

It sounds like you’re interested in seeing stats broken out by location. For this, you’re correct that you’d use our asynchronous analytics endpoints as it’s the only one that supports segmentation.

To get stats for each location you’ve targeted, you can pass in segmentation_type=LOCATIONS. You only need to make a single request and the response will be broken out by all the targeted locations.

Let’s say you’re interested stats by region. In this case, you’d pass in segmentation_type=REGIONS&country=<some value>. In this case, you’d make one request per country. See this post for more information.

For all segmentation options, see our Metric and Segmentation page.

Hope this helps.