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!


#2

Bump! Really curious if viewing card content on organic tweets is a possibility.


#3

Thanks for the question, @theKetsuN. The GET statuses/user_timeline endpoint does not support the card_uri field. You could, however, use the GET statuses/show/:id or the GET statuses/lookup endpoint. For more information see this announcement.


#4

Thanks for the response @juanshishido. After looking at the announcement you posted it seems as though you cannot view card details without having access to the ads account associated with the Twitter account. Is this correct?

To clarify - I cannot view card details (links, video urls, photo urls, etc) for a tweet without explicit access to the ad account the card was created for even though the Tweet itself is public?


#5

Hi @theKetsuN, yes that is correct. It is somewhat deliberate to protect the creative assets of the advertiser.


#6

Hi @joncipriano. I can understand that stance, but are there any plans to ever surface the public data from those cards in an organic way? From the perspective of the user_timeline API it seems disingenuous to not surface those public elements from a tweet if I can go to the Twitter platform and see them on the user’s timeline naturally.

The issue we are having is that Tweets created through the Ads Composer are surfaced through the user_timeline API with only text information on them. There are no links, there is no media, nothing. From the API perspective it seems like these tweets are text-only tweets when that’s clearly not the case, but they ARE organic tweets.