How to create twitter widget based on twitter id


I want to display twitter widget on my website. I have only twitter name. I have no data-widget-id.

I have used this code. i have got warning “TWITTER WIDGET: The Twitter API v1.0 is deprecated, and this widget has ceased functioning.”

Please give me solution.

<script src=""></script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 3,
  interval: 30000,
  width: 390,
  height: 100,
  theme: {
    shell: {
      background: '#854b4b',
      color: '255'
    tweets: {
      background: '#b833b8',
      color: '#b32eb3',
      links: '#634563'
  features: {
    scrollbar: true,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'default'

Abhishek Jain


These old widgets do not work anymore. You should now use embedded timelines
To create an embedded timeline, go to your Settings page on, then click on Widgets, then create a new one.


hello dear,
i have used below this code . but i don’t have data-widget id. I have only twitter name.
I want to confirm that this code run without data-widget_id.

Tweets by @twitterapi


No you need a widget id. Why don’t you want to give a widget id?
A new widget id can be generated by going to and creating a new widget.


Vincent, I cannot get it to generate it just outputs data-widget-id="" blank. Any idea? I deleted, added, etc. the same.


Hello Vincent. I’m developing a system that generate websites. So, I would like that it be easy for simple users and they put only the account’s twitter name. Is it possible?


You may generate a widget ID for your website generator and override individual usernames with data-screen-name.