Social API — Tweets by user id


This method will return data about tweets belonging to a given user.

Definition

GET http://social.api.condenet.co.uk/twitter/statuses/<username>


Example request

$ curl http://social.api.condenet.co.uk/twitter/statuses/BritishGQ

Example response

Please note this response is truncated
{
  "data": [
    {
      "contributors": null,
      "coordinates": null,
      "created_at": "Tue Sep 06 18:01:20 +0000 2016",
      "entities": {
        "hashtags": [],
        "media": [
          {
            "display_url": "pic.twitter.com/HXsIcZzk3L",
            "expanded_url": "https://twitter.com/BritishGQ/status/773219549457977344/photo/1",
            "id": 773210733949677568,
            "id_str": "773210733949677568",
            "indices": [
              59,
              82
            ],
            "media_url": "http://pbs.twimg.com/media/Crr_EN2W8AApFw_.jpg",
            "media_url_https": "https://pbs.twimg.com/media/Crr_EN2W8AApFw_.jpg",
            "sizes": {
              "large": {
                "h": 1069,
                "resize": "fit",
                "w": 1620
              },
              ...
            }
          },
          ...
        ]
      }
    }
  ]
}

Error handling

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

Example error response

{
  "error": "failed to get tweets"
}