Is there a way to access the alternate text for an image via the API?

no! but there should, this is a good one to post on https://twitterdevfeedback.uservoice.com/forums/921790-twitter-developer-labs?category_id=362716

1 Like

Thanks, I will post there. It’s a pretty serious omission IMO.

1 Like

Sorry i got that wrong, the feature is present, except you have to specify include_ext_alt_text=true for an endpoint that returns tweets. If alt text is present, the extended_entities media objects will contain ext_alt_text property with the text.

1 Like

This is the correct answer for the standard API.

I don’t think this data is currently served by the Labs endpoints, so I’d still encourage that you request this via the feedback site if this is something that would be useful to your applications for a future version of the API.

Thanks, I’ve opened a request and added a comment about including this include_ext_alt_text option in the documentation.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.