Get your Twitter’s tweet as RSS feed and JSON’s url plus widget codes


Unbelievable, right? yes, you have read rightly: Twitter’s tweet as feed as well as JSON.

Here is my Twitter account’s RSS feed: http://twitter.com/statuses/user_timeline/193774020.rss

You have several questions, right? Here is the steps on how to get your Tweeter accounts tweets as RSS feed:

 

  1. Copy the url posted above (that is, my one).
  2. You need your Tweeter user id (number, not the username). For this, go to idfromuser and get your Tweeter id.
  3. Replace my number part of the url with yours. That is: / user_timeline / (put your Twitter id here) . rss
  4. If you change the .rss with .json; you will get the JSON too. JSON can be used for Ajax call function. You will get a working example of such Ajax JSON callback function usage here: AbhishekGhosh.co.nr
  5. If you are further interested to create such Ajax tweeter widget of your own, here are the codes:

 

You need to define your CSS style sheet. For , put it in your main CSS style sheet. For Blogger, add at the end of the HTML editor where is last CSS code already exists:

 


}

.tweets {
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
: url(“url of with extention”) no-repeat scroll 1px -12px #EBF5F9;
border: 1px solid #B1D7E7;
clear: both;
float: left;
margin-top: 3px;
padding: 10px 10px 10px 50px;
width: 390px;
height:48px;

}

.tweets ul {
list-style:none;
margin:0;
padding:0;
}

 

 


Now, the HTML part. You can use as Text Widget in the sidebar too. Background image means that Twitter bird, something like my test profile page. Here is the birdie too (right click to save it): Twitter's tweet as RSS feed

We are giving it as div class for usage anywhere within the body:

 

<div class='tweets'>
<ul id='twitter_update_list'>
<script src='http://twitter.com/javascripts/blogger.js' type='text/javascript'/>
<script src='http://twitter.com/statuses/user_timeline/put your user id here.json?callback=twitterCallback2&amp;count=1' type='text/javascript'/>
</ul>
</div>

 

I have given the Twitter javascript of Blogger.  It will work for WordPress too (tested). In WordPress or Blogger, if you add within the header, footer or comment part, it will appear in all pages.

Note: I have set count=1 ; that will show the last tweet. You can change it to any value (=number of tweets) you want.

Signature


Incoming search terms:

twitter rss feed url,twitter rss url,tweet to rss,my twitter rss feed,what is my twitter rss feed,twitter feed url,rss feed wiget with json,RSSFeedURL,tweet als rss,tweet from rss,com/rss-feed-url/,Twitter JSON Feed,twitter json feed sample,RSS Feed URL - rss-feed-url/,Publish/Create RSS Feed,get my twitter feed json,get tweets in rss,Get Tweets JSON,how to receive tweets as feed,json
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
About Abhishek

Abhishek Ghosh is an Orthopedic Surgeon, Inventor with 216 Patents, Current editor of The Customize Windows Media Group. You can follow and know more about Dr. +Abhishek Ghosh on Google Plus and follow on Twitter as @AbhishekCTRL.

Comments

  1. Thundaboom says:

    Wow, thank you. Seriously. Ever since twitter’s replaced RSS with oAuth, it’s been a pain trying to figure out how to get the RSS feed regardless before I found this article.

    Congrats to you for finding this!

    -Justin

  2. THANKS!

  3. Thats awesome!..thanks a lot for this. I had one more doubt if we can see the trending items related to any specific search evrytime i login to the page?

  4. Thank You! Will be using this on my site.

Trackbacks

  1. [...] Twitter Activity As Instant Visual Information Graphics that is infographic is somewhat line timeline of Facebook. A third party free service is needed for the setup. We previously posted how to create RSS feed of your Twitter Tweets by following few easy steps. [...]

  2. Create Own Social Media RSS Feed Stream says:

    [...] It is fully JSON, js based and has no php or python component [...]

Speak Your Mind

*