Hello!
I am new to twitter api and I’m trying to get stat information (ENGAGEMENT) on the level of a single tweet.
I have all the authentications and permissions established, the idea is to get list of all the tweets from the user
ads-api.twitter.com/1/accounts/xxx/scoped_timeline"
and then translate these ids (somehow?) into API call to
ads-api.twitter.com/1/stats/accounts/xxx?entity_ids=<HERE_COMES_SOMETHIG>&
entity=ORGANIC_TWEET&
granularity=DAY&
metric_groups=ENGAGEMENT&
placement=ALL_ON_TWITTER&
start_time=2016-06-08T07:00:00Z&
end_time=2016-06-15T07:00:00Z
Can you please give me an advice on how to approach this, what should go inside the <> brackets, or if I misunderstood the logic and hierarchy of the entities in the ads? Where should I look for a solution?
Thank you for your help!
Karin
Alin
#2
Hi Karin,
You should input the Tweet ID value in there in order to get stat information for a particular tweet. The Tweet ID value can be derived from the Tweet URL.
Please let us know if you require additional assistance.
Gut! It solves the problem, I was using “id” instead of “id_str”.
Thanks a lot for your fast answer!
Have a nice day.
Karin
1 Like