Tech Notes

Twitter JSON API URL Changed

Twitter retired its old JSON timeline URL. Here are the old and new endpoints.

A couple of days ago, I noticed that the Twitter feed on my website had stopped working. I was using an old Twitter JSON API URL, which Twitter has recently removed. I found the fix on the Twitter blog.

Old URL: http://twitter.com/statuses/user_timeline/sarathdr.json?callback=twitterCallback2&count=1

New URL: https://api.twitter.com/1/statuses/user_timeline/sarathdr.json?callback=sarathdr&count=1

Update: version 1 of the Twitter API has since been retired too, and the current X API requires authentication for timeline requests.