Social API — Tweet by id

This method will return data about an individual tweet. You will need to know the id of the tweet you wish to look up.



Example request

$ curl

Example response

  "data": {
    "author_name": "British GQ",
    "author_url": "",
    "cache_age": "3153600000",
    "height": null,
    "html": "<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">The first car of the night for the <a href=\"\">#GQAwards from <a href=\"\">@AudiUK</a> <a href=\"\"></a></p>— British GQ (@BritishGQ) <a href=\"\">September 6, 2016</a></blockquote>\n<script async src=\"//\" charset=\"utf-8\"></script>",
    "provider_name": "Twitter",
    "provider_url": "",
    "type": "rich",
    "url": "",
    "version": "1.0",
    "width": 550

Error handling

If the given tweet_id is not found, a 500 response will be returned.

Example error response

  "error": "Failed to fetch tweet, id: <tweet_id>"