Card attachment information on organic tweet responses


#1

We have recently run into an issue when pulling organic tweets from the user_timeline endpoint. Organic tweets created through the Twitter Ads Composer can have cards attached to them, but the card information is not available on the user_timeline response for the organic tweet. For example, I posted the following organic tweet through the Ads Composer:

A Website Card was attached to the tweet which acts as a link on the tweet. When viewing the tweet through the user_timeline API I get the following result:

{
    'in_reply_to_status_id': None,
    'in_reply_to_user_id': None,
    'id': 1017770152182476801,
    'favorite_count': 1,
    'in_reply_to_status_id_str': None,
    'entities': {
        'user_mentions': [],
        'symbols': [],
        'urls': [],
        'hashtags': []
    },
    'truncated': False,
    'coordinates': None,
    'source': '<a href="https://ads-api.twitter.com" rel="nofollow">Twitter Ads Composer</a>',
    'created_at': 'Fri Jul 13 13:58:08 +0000 2018',
    'in_reply_to_user_id_str': None,
    'is_quote_status': False,
    'lang': 'en',
    'contributors': None,
    'geo': None,
    'retweeted': False,
    'id_str': '1017770152182476801',
    'retweet_count': 0,
    'in_reply_to_screen_name': None,
    'favorited': False,
    'full_text': 'Been gone for a while, but starting next week lots of indie games coming through!',
    'user': {
        ...
    },
    'display_text_range': [0, 81],
    'place': None
}

There is no reference to the card and from the perspective of the API there is no link attached to the tweet at all (all entities keys are empty).

My questions are the following:

  • Is there any way to detect these types of cards through the API?
  • Can I detect a link that is associated with a card through the API?
  • Do organic tweets with cards created through the Ads Composer always look as though they are text-only tweets when viewing them from the perspective of user_timeline?

Any insight here would be appreciated! Thanks!