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.

Definition

GET http://social.api.condenet.co.uk/twitter/status/show/<tweet_id>


Example request

$ curl http://social.api.condenet.co.uk/twitter/status/show/773196916826005504

Example response


{
  "data": {
    "author_name": "British GQ",
    "author_url": "https://twitter.com/BritishGQ",
    "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=\"https://twitter.com/hashtag/GQAwards?src=hash\">#GQAwards from <a href=\"https://twitter.com/AudiUK\">@AudiUK</a> <a href=\"https://t.co/kzsBSnAWba\">pic.twitter.com/kzsBSnAWba</a></p>— British GQ (@BritishGQ) <a href=\"https://twitter.com/BritishGQ/status/773196916826005504\">September 6, 2016</a></blockquote>\n<script async src=\"//platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>",
    "provider_name": "Twitter",
    "provider_url": "https://twitter.com",
    "type": "rich",
    "url": "https://twitter.com/BritishGQ/status/773196916826005504",
    "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>"
}