Search
  1. statuses/show/:id〔指定したつぶやきIDの情報を取得(認証不要)〕
  2. statuses/update〔認証ユーザーの指定したつぶやきIDの情報を更新(要認証)〕
  3. statuses/destroy/:id〔認証ユーザーの指定したつぶやきIDの情報を削除(要認証)〕
  4. statuses/retweet/:id〔指定したつぶやきを公式RTし、リツイートを埋め込んだオリジナルのつぶやきを返す(要認証)〕
  5. statuses/retweets/:id〔指定したつぶやきに対する引用返信を最大100件まで取得(要認証)〕
  6. statuses/:id/retweeted_by〔指定したつぶやきを公式RTしたユーザー情報を最初の100件分取得〕
  7. statuses/:id/retweeted_by/ids〔指定したつぶやきを公式RTしたユーザーのIDを最大100件取得〕

statuses/show/:id
指定したつぶやきIDの情報を取得(認証不要)

2009/7/18

認証なしAPI制限対象

HTTP GEThttp://api.twitter.com/1/statuses/show/[ステータスID].[xml|json]

指定したステータスIDの情報を取得します。

※このメソッドは、ツイートを非公開にしているプロテクトユーザーの場合は認証が必要です。

パラメーター

パラメーター説明
id必須 ステータスIDを指定。
例)http://api.twitter.com/1/statuses/show/2567482373.xml
trim_user任意 ユーザー情報を詳細でなく、ユーザーIDだけにしたい場合は、true,t,1のいずれかを指定。
例)http://api.twitter.com/1/statuses/show/2567482373.xml?trim_user=1
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)http://api.twitter.com/1/statuses/show/2567482373.xml?include_entities=1

取得サンプル(XML/JSON)

2567482373.xml
<?xml version="1.0" encoding="UTF-8"?>
<status>
  <created_at>Fri Jul 10 12:52:14 +0000 2009</created_at>
  <id>2567482373</id>
  <text>花金なのにまだ帰れないよ。</text>
  <source><a href="http://movatwitter.jp/" rel="nofollow">movatwitter</a></source>
  <truncated>false</truncated>
  <favorited>false</favorited>
  <in_reply_to_status_id></in_reply_to_status_id>
  <in_reply_to_user_id></in_reply_to_user_id>
  <in_reply_to_screen_name></in_reply_to_screen_name>
  <retweet_count>0</retweet_count>
  <retweeted>false</retweeted>
  <user>
    <id>7948862</id>
    <name>つんつ</name>
    <screen_name>cocoism</screen_name>
    <location>カワタマ or オモサン</location>
    <description>青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。</description>
    <profile_image_url>http://a0.twimg.com/profile_images/1202496271/usa_normal.png</profile_image_url>
    <url>http://phpjavascriptroom.com/</url>
    <protected>false</protected>
    <followers_count>594</followers_count>
    <profile_background_color>8350a1</profile_background_color>
    <profile_text_color>f2afcf</profile_text_color>
    <profile_link_color>f2afcf</profile_link_color>
    <profile_sidebar_fill_color>8350a1</profile_sidebar_fill_color>
    <profile_sidebar_border_color>8350a1</profile_sidebar_border_color>
    <friends_count>512</friends_count>
    <created_at>Sat Aug 04 05:52:33 +0000 2007</created_at>
    <favourites_count>430</favourites_count>
    <utc_offset>32400</utc_offset>
    <time_zone>Tokyo</time_zone>
    <profile_background_image_url>http://a2.twimg.com/profile_background_images/187449144/02.png</profile_background_image_url>
    <profile_background_tile>true</profile_background_tile>
    <profile_use_background_image>true</profile_use_background_image>
    <notifications></notifications>
    <geo_enabled>true</geo_enabled>
    <verified>false</verified>
    <following></following>
    <statuses_count>4805</statuses_count>
    <lang>ja</lang>
    <contributors_enabled>false</contributors_enabled>
    <follow_request_sent></follow_request_sent>
    <listed_count>52</listed_count>
    <show_all_inline_media>true</show_all_inline_media>
    <default_profile>false</default_profile>
    <default_profile_image>false</default_profile_image>
    <is_translator>false</is_translator>
  </user>
  <geo/>
  <coordinates/>
  <place/>
  <contributors/>
</status>
2567482373.json
json['text']=花金なのにまだ帰れないよ。
json['id_str']=2567482373
json['source']=movatwitter
json['created_at']=Fri Jul 10 12:52:14 +0000 2009

json['user']['contributors_enabled']=
json['user']['profile_use_background_image']=1
json['user']['default_profile_image']=
json['user']['following']=
json['user']['profile_background_color']=8350a1
json['user']['description']=青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。
json['user']['screen_name']=cocoism
json['user']['show_all_inline_media']=1
json['user']['geo_enabled']=1
json['user']['profile_background_image_url']=http://a2.twimg.com/profile_background_images/187449144/02.png
json['user']['friends_count']=512
json['user']['verified']=
json['user']['id_str']=7948862
json['user']['follow_request_sent']=
json['user']['profile_text_color']=f2afcf
json['user']['location']=カワタマ or オモサン
json['user']['statuses_count']=4805
json['user']['profile_sidebar_fill_color']=8350a1
json['user']['profile_background_tile']=1
json['user']['url']=http://phpjavascriptroom.com/
json['user']['is_translator']=
json['user']['lang']=ja
json['user']['followers_count']=594
json['user']['protected']=
json['user']['listed_count']=52
json['user']['notifications']=
json['user']['time_zone']=Tokyo
json['user']['created_at']=Sat Aug 04 05:52:33 +0000 2007
json['user']['profile_link_color']=f2afcf
json['user']['name']=つんつ
json['user']['profile_sidebar_border_color']=8350a1
json['user']['id']=7948862
json['user']['default_profile']=
json['user']['utc_offset']=32400
json['user']['favourites_count']=430
json['user']['profile_image_url']=http://a0.twimg.com/profile_images/1202496271/usa_normal.png
json['id']=2567482373

設置サンプル

設置サンプルサンプルを見る
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Language" content="ja" />
        <meta http-equiv="Content-Script-Type" content="text/javascript" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <meta http-equiv="imagetoolbar" content="no" />
        <title>Twitter REST API:ステータス関連:statues/show(指定したツイート情報を取得) | 設置サンプル</title>
        <link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        <script type="text/javascript" src="/content/lib/jquery/jquery.jsonp.js"></script>
        <!-- JS -->
        <script type="text/javascript">
            $(function(){
                var url="http://twitter.com/statuses/show/67487891118489600.json?callback={callback}";
                $.getJSONP(url,function(status){
                    var s="";
                    s+="<li>status.created_at = "+status.created_at+"</li>";
                    s+="<li>status.id = "+status.id+"</li>";
                    s+="<li>status.text = "+status.text+"</li>";
                    s+="<li>status.source = "+status.source+"</li>";
                    s+="<li>status.truncated = "+status.truncated+"</li>";
                    s+="<li>status.favorited = "+status.favorited+"</li>";
                    s+="<li>status.in_reply_to_status_id = "+status.in_reply_to_status_id+"</li>";
                    s+="<li>status.in_reply_to_user_id = "+status.in_reply_to_user_id+"</li>";
                    s+="<li>status.in_reply_to_screen_name = "+status.in_reply_to_screen_name+"</li>";
                    s+="<li>status.retweet_count = "+status.retweet_count+"</li>";
                    s+="<li>status.retweeted = "+status.retweeted+"</li>";
                    s+="<li>status.user";
                        s+="<ul>";
                            s+="<li>status.user.id = "+status.user.id+"</li>";
                            s+="<li>status.user.name = "+status.user.name+"</li>";
                            s+="<li>status.user.screen_name = "+status.user.screen_name+"</li>";
                            s+="<li>status.user.location = "+status.user.location+"</li>";
                            s+="<li>status.user.description = "+status.user.description+"</li>";
                            s+="<li>status.user.profile_image_url = "+status.user.profile_image_url+"</li>";
                            s+="<li>status.user.url = "+status.user.url+"</li>";
                            s+="<li>status.user.protected = "+status.user.protected+"</li>";
                            s+="<li>status.user.followers_count = "+status.user.followers_count+"</li>";
                            s+="<li>status.user.profile_background_color = "+status.user.profile_background_color+"</li>";
                            s+="<li>status.user.profile_text_color = "+status.user.profile_text_color+"</li>";
                            s+="<li>status.user.profile_link_color = "+status.user.profile_link_color+"</li>";
                            s+="<li>status.user.profile_sidebar_fill_color = "+status.user.profile_sidebar_fill_color+"</li>";
                            s+="<li>status.user.profile_sidebar_border_color = "+status.user.profile_sidebar_border_color+"</li>";
                            s+="<li>status.user.friends_count = "+status.user.friends_count+"</li>";
                            s+="<li>status.user.created_at = "+status.user.created_at+"</li>";
                            s+="<li>status.user.favourites_count = "+status.user.favourites_count+"</li>";
                            s+="<li>status.user.utc_offset = "+status.user.utc_offset+"</li>";
                            s+="<li>status.user.time_zone = "+status.user.time_zone+"</li>";
        
                            s+="<li>status.user.profile_background_image_url = "+status.user.profile_background_image_url+"</li>";
                            s+="<li>status.user.profile_background_tile = "+status.user.profile_background_tile+"</li>";
                            s+="<li>status.user.profile_use_background_image = "+status.user.profile_use_background_image+"</li>";
                            s+="<li>status.user.notifications = "+status.user.notifications+"</li>";
                            s+="<li>status.user.geo_enabled = "+status.user.geo_enabled+"</li>";
                            s+="<li>status.user.verified = "+status.user.verified+"</li>";
                            s+="<li>status.user.following = "+status.user.following+"</li>";
                            s+="<li>status.user.statuses_count = "+status.user.statuses_count+"</li>";
                            s+="<li>status.user.lang = "+status.user.lang+"</li>";
                            s+="<li>status.user.contributors_enabled = "+status.user.contributors_enabled+"</li>";
                            s+="<li>status.user.follow_request_sent = "+status.user.follow_request_sent+"</li>";
                            s+="<li>status.user.listed_count = "+status.user.listed_count+"</li>";
                            s+="<li>status.user.show_all_inline_media = "+status.user.show_all_inline_media+"</li>";
                            s+="<li>status.user.default_profile = "+status.user.default_profile+"</li>";
                            s+="<li>status.user.default_profile_image = "+status.user.default_profile_image+"</li>";
                            s+="<li>status.user.is_translator = "+status.user.is_translator+"</li>";
                        s+="</ul>";
                    s+="</li>";
                    s+="<li>status.geo = "+status.geo+"</li>";
                    s+="<li>status.coordinates = "+status.coordinates+"</li>";
                    s+="<li>status.place = "+status.place+"</li>";
                    s+="<li>status.contributors = "+status.contributors+"</li>";
                    $("#recent").html("<ul>"+s+"</ul>");
                });
            });
        </script>
    </head>
    <body>
        <div id="wrap">
            <h1>Twitter REST API:ステータス関連:statues/show(指定したツイート情報を取得) | 設置サンプル</h1>
            <p>指定したツイート情報とツイート主のユーザー情報が表示されます。</p>
<!-- CODE -->
            <div id="recent"></div>
<!-- / CODE -->
        </div>
    </body>
</html>

statuses/update
認証ユーザーの指定したつぶやきIDの情報を更新(要認証)

2009/7/18

要認証API制限対象

HTTP POSThttps://api.twitter.com/1/statuses/update.[xml|json]?
status[URLエンコードした文字列]
&in_replay_to_status_id=[ステータスID]

認証ユーザーのステータスを更新します(statusパラメータに指定した内容をTwitterに投稿)。 Twitterでは短時間の間に同じ内容のツイートを連続投稿することはできないので、その場合は、そのステータスIDが返されるだけで更新は無視されます。

返信先のツイートを指定する場合は、「in_replay_to_status_id」パラメータにそのステータスIDを指定します。

パラメーター

パラメーター説明
status必須 更新するツイートテキスト。要URLエンコード。140文字以内。
in_reply_to_status_id任意 返信先のステータスIDを指定。
lat任意 つぶやいた場所の緯度。 指定可能な値の有効範囲は、-90.0~90.0(北が正)の数値。 それ以外の値が指定されていたり、geo_enabledが無効になっていたり、対応するlongパラメータがない場合は無視されます。
例)http://api.twitter.com/1/statuses/update.xml?lat=37.7821120598956&long=-122.400612831116
long任意 つぶやいた場所の経度。 指定可能な値の有効範囲は、-180.0~180.0(東が正)の数値。 それ以外の値が指定されていたり、geo_enabledが無効になっていたり、対応するlatパラメータがない場合は無視されます。
例)http://api.twitter.com/1/statuses/update.xml?lat=37.7821120598956&long=-122.400612831116
place_id任意 場所ID。 geo/reverse_geocodeから取得可能。
例)http://api.twitter.com/1/statuses/update.xml?place_id=df51dec6f4ee2b2c
display_coordinates任意 ツイートした場所の座標にピンを立てるかの有無。
例)http://api.twitter.com/1/statuses/update.xml?display_coordinates=true
trim_user任意 ユーザー情報を詳細でなく、ユーザーIDだけにしたい場合は、true,t,1のいずれかを指定。
例)http://api.twitter.com/1/statuses/user_timeline.xml?trim_user=1
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)http://api.twitter.com/1/statuses/user_timeline.xml?include_entities=1

取得サンプル(XML/JSON)

update.xml
<?xml version="1.0" encoding="UTF-8"?>
<status>
  <created_at>Mon May 09 09:25:03 +0000 2011</created_at>
  <id>67520444474994688</id>
  <text>あいうえおだMon, 09 May 11 09:24:49 +0000</text>
  <source><a href="http://phpjavascriptroom.com/" rel="nofollow">PJR</a></source>
  <truncated>false</truncated>
  <favorited>false</favorited>
  <in_reply_to_status_id></in_reply_to_status_id>
  <in_reply_to_user_id></in_reply_to_user_id>
  <in_reply_to_screen_name></in_reply_to_screen_name>
  <retweet_count>0</retweet_count>
  <retweeted>false</retweeted>
  <user>
    <id>7948862</id>
    <name>つんつ</name>
    <screen_name>cocoism</screen_name>
    <location>カワタマ or オモサン</location>
    <description>青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。</description>
    <profile_image_url>http://a0.twimg.com/profile_images/1202496271/usa_normal.png</profile_image_url>
    <url>http://phpjavascriptroom.com/</url>
    <protected>false</protected>
    <followers_count>594</followers_count>
    <profile_background_color>8350a1</profile_background_color>
    <profile_text_color>f2afcf</profile_text_color>
    <profile_link_color>f2afcf</profile_link_color>
    <profile_sidebar_fill_color>8350a1</profile_sidebar_fill_color>
    <profile_sidebar_border_color>8350a1</profile_sidebar_border_color>
    <friends_count>512</friends_count>
    <created_at>Sat Aug 04 05:52:33 +0000 2007</created_at>
    <favourites_count>431</favourites_count>
    <utc_offset>32400</utc_offset>
    <time_zone>Tokyo</time_zone>
    <profile_background_image_url>http://a2.twimg.com/profile_background_images/187449144/02.png</profile_background_image_url>
    <profile_background_tile>true</profile_background_tile>
    <profile_use_background_image>true</profile_use_background_image>
    <notifications>false</notifications>
    <geo_enabled>true</geo_enabled>
    <verified>false</verified>
    <following>false</following>
    <statuses_count>4807</statuses_count>
    <lang>ja</lang>
    <contributors_enabled>false</contributors_enabled>
    <follow_request_sent>false</follow_request_sent>
    <listed_count>52</listed_count>
    <show_all_inline_media>true</show_all_inline_media>
    <default_profile>false</default_profile>
    <default_profile_image>false</default_profile_image>
    <is_translator>false</is_translator>
  </user>
  <geo/>
  <coordinates/>
  <place/>
  <contributors/>
</status>

▼パラメータが不正の場合
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/1/statuses/update.xml</request>
  <error>Status is a duplicate.</error>
</hash>

▼同じメッセージを連続して投稿した場合
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/1/statuses/update.xml</request>
  <error>Client must provide a 'status' parameter with a value.</error>
</hash>

update.json
json['text']=あいうえおだJSONMon, 09 May 11 09:43:28 +0000
json['id_str']=67525137867612160
json['source']=PJR
json['created_at']=Mon May 09 09:43:42 +0000 2011

json['user']['default_profile']=
json['user']['follow_request_sent']=
json['user']['profile_use_background_image']=1
json['user']['following']=
json['user']['profile_background_color']=8350a1
json['user']['description']=青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。
json['user']['screen_name']=cocoism
json['user']['profile_background_image_url']=http://a2.twimg.com/profile_background_images/187449144/02.png
json['user']['is_translator']=
json['user']['show_all_inline_media']=1
json['user']['verified']=
json['user']['geo_enabled']=1
json['user']['id_str']=7948862
json['user']['listed_count']=51
json['user']['profile_text_color']=f2afcf
json['user']['location']=カワタマ or オモサン
json['user']['profile_sidebar_fill_color']=8350a1
json['user']['statuses_count']=4813
json['user']['profile_background_tile']=1
json['user']['url']=http://phpjavascriptroom.com/
json['user']['contributors_enabled']=
json['user']['lang']=ja
json['user']['followers_count']=594
json['user']['protected']=
json['user']['default_profile_image']=
json['user']['notifications']=
json['user']['time_zone']=Tokyo
json['user']['created_at']=Sat Aug 04 05:52:33 +0000 2007
json['user']['profile_link_color']=f2afcf
json['user']['name']=つんつ
json['user']['friends_count']=512
json['user']['profile_sidebar_border_color']=8350a1
json['user']['id']=7948862
json['user']['utc_offset']=32400
json['user']['favourites_count']=431
json['user']['profile_image_url']=http://a0.twimg.com/profile_images/1202496271/usa_normal.png
json['id']=6.75251378676E+16

▼同じメッセージを連続して投稿した場合
json[request]=/1/statuses/update.json
json[error]=Status is a duplicate.

statuses/destroy/:id
認証ユーザーの指定したつぶやきIDの情報を削除(要認証)

2009/7/18

要認証API制限対象

HTTP POSThttp://api.twitter.com/1/statuses/destroy/[ステータスID].[xml|json]

認証ユーザーが投稿したツイートから、指定したステータスIDのツイートを削除します。

パラメーター

パラメーター説明
id必須 削除するステータスIDを指定。
例)https://api.twitter.com/1/statuses/destroy/2567482373.json
trim_user任意 ユーザー情報を詳細でなく、ユーザーIDだけにしたい場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/destroy/2567482373.json?trim_user=1
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/destroy/2567482373.json?include_entities=1

取得サンプル(XML/JSON)

67526232719376384.xml
<?xml version="1.0" encoding="UTF-8"?>
<status>
  <created_at>Mon May 09 09:48:03 +0000 2011</created_at>
  <id>67526232719376384</id>
  <text>あいうえおだJSONMon, 09 May 11 09:47:49 +0000</text>
  <source><a href="http://phpjavascriptroom.com/" rel="nofollow">PJR</a></source>
  <truncated>false</truncated>
  <favorited>false</favorited>
  <in_reply_to_status_id></in_reply_to_status_id>
  <in_reply_to_user_id></in_reply_to_user_id>
  <in_reply_to_screen_name></in_reply_to_screen_name>
  <retweet_count>0</retweet_count>
  <retweeted>false</retweeted>
  <user>
    <id>55984769</id>
    <name>PJRPJRPJRPJRPJRPJRPJ</name>
    <screen_name>pjroomer</screen_name>
    <location>とうきょう</location>
    <description>いやんばか。</description>
    <profile_image_url>http://a2.twimg.com/sticky/default_profile_images/default_profile_1_normal.png</profile_image_url>
    <url>http://www.hoge.com/ajierjaowejraojioejr#abut</url>
    <protected>false</protected>
    <followers_count>9</followers_count>
    <profile_background_color>C0DEED</profile_background_color>
    <profile_text_color>333333</profile_text_color>
    <profile_link_color>0084B4</profile_link_color>
    <profile_sidebar_fill_color>DDEEF6</profile_sidebar_fill_color>
    <profile_sidebar_border_color>C0DEED</profile_sidebar_border_color>
    <friends_count>191</friends_count>
    <created_at>Sun Jul 12 01:37:21 +0000 2009</created_at>
    <favourites_count>99</favourites_count>
    <utc_offset>32400</utc_offset>
    <time_zone>Tokyo</time_zone>
    <profile_background_image_url>http://a3.twimg.com/a/1304464034/images/themes/theme1/bg.png</profile_background_image_url>
    <profile_background_tile>false</profile_background_tile>
    <profile_use_background_image>true</profile_use_background_image>
    <notifications>false</notifications>
    <geo_enabled>true</geo_enabled>
    <verified>false</verified>
    <following>false</following>
    <statuses_count>1397</statuses_count>
    <lang>ja</lang>
    <contributors_enabled>false</contributors_enabled>
    <follow_request_sent>false</follow_request_sent>
    <listed_count>4</listed_count>
    <show_all_inline_media>false</show_all_inline_media>
    <default_profile>true</default_profile>
    <default_profile_image>true</default_profile_image>
    <is_translator>false</is_translator>
  </user>
  <geo/>
  <coordinates/>
  <place/>
  <contributors/>
</status>

▼すでに削除したツイートを消そうとした時
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/statuses/destroy.xml</request>
  <error>そのIDのツイートがありません。</error>
</hash>
67519399459946496.json
json['text']=あいうえお
json['id_str']=67519399459946496
json['source']=PJR
json['created_at']=Mon May 09 09:20:53 +0000 2011

json['user']['contributors_enabled']=
json['user']['profile_use_background_image']=1
json['user']['default_profile_image']=1
json['user']['default_profile']=1
json['user']['following']=
json['user']['profile_background_color']=C0DEED
json['user']['description']=いやんばか。
json['user']['screen_name']=pjroomer
json['user']['show_all_inline_media']=
json['user']['geo_enabled']=1
json['user']['profile_background_image_url']=http://a3.twimg.com/a/1304464034/images/themes/theme1/bg.png
json['user']['friends_count']=191
json['user']['verified']=
json['user']['id_str']=55984769
json['user']['follow_request_sent']=
json['user']['profile_text_color']=333333
json['user']['location']=とうきょう
json['user']['statuses_count']=1396
json['user']['profile_sidebar_fill_color']=DDEEF6
json['user']['profile_background_tile']=
json['user']['url']=http://www.hoge.com/ajierjaowejraojioejr#abut
json['user']['is_translator']=
json['user']['lang']=ja
json['user']['followers_count']=9
json['user']['protected']=
json['user']['listed_count']=4
json['user']['notifications']=
json['user']['time_zone']=Tokyo
json['user']['created_at']=Sun Jul 12 01:37:21 +0000 2009
json['user']['profile_link_color']=0084B4
json['user']['name']=PJRPJRPJRPJRPJRPJRPJ
json['user']['profile_sidebar_border_color']=C0DEED
json['user']['id']=55984769
json['user']['utc_offset']=32400
json['user']['favourites_count']=99
json['user']['profile_image_url']=http://a2.twimg.com/sticky/default_profile_images/default_profile_1_normal.png
json['id']=6.75193994599E+16

▼すでに削除したツイートを消そうとした時
json['request']=/statuses/destroy.json
json['error']=そのIDのツイートがありません。

statuses/retweet/:id
指定したつぶやきを公式RTし、リツイートを埋め込んだオリジナルのつぶやきを返す(要認証)

2009/7/18

要認証API制限なし

HTTP POSThttp://api.twitter.com/1/statuses/retweet/[ステータスID].[xml|json]

指定したステータスIDのツイートをリツイート(公式RT)し、リツイートを埋め込んだオリジナルのツイートを返します。

パラメーター

パラメーター説明
id必須 リツイートするステータスID。
例)http://api.twitter.com/1/statuses/retweet/123.json
trim_user任意 ユーザー情報を詳細でなく、ユーザーIDだけにしたい場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?trim_user=1
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?include_entities=1

取得サンプル(XML/JSON)

67487891118489600.xml
<?xml version="1.0" encoding="UTF-8"?>
<status>
  <created_at>Mon May 23 06:16:37 +0000 2011</created_at>
  <id>72546457462378496</id>
  <text>RT @cocoism: しゃっくりが止まらないので息止めます。</text>
  <source><a href="http://phpjavascriptroom.com/" rel="nofollow">PJR</a></source>
  <truncated>false</truncated>
  <favorited>false</favorited>
  <in_reply_to_status_id></in_reply_to_status_id>
  <in_reply_to_user_id></in_reply_to_user_id>
  <in_reply_to_screen_name></in_reply_to_screen_name>
  <retweet_count>2</retweet_count>
  <retweeted>false</retweeted>
  <retweeted_status>
    <created_at>Sat May 21 15:19:24 +0000 2011</created_at>
    <id>71958276341899264</id>
    <text>しゃっくりが止まらないので息止めます。</text>
    <source><a href="http://www.hootsuite.com" rel="nofollow">HootSuite</a></source>
    <truncated>false</truncated>
    <favorited>false</favorited>
    <in_reply_to_status_id></in_reply_to_status_id>
    <in_reply_to_user_id></in_reply_to_user_id>
    <in_reply_to_screen_name></in_reply_to_screen_name>
    <retweet_count>2</retweet_count>
    <retweeted>false</retweeted>
    <user>
      <id>7948862</id>
      <name>つんつ</name>
      <screen_name>cocoism</screen_name>
      <location>カワタマ or オモサン</location>
      <description>青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。</description>
      <profile_image_url>http://a0.twimg.com/profile_images/1202496271/usa_normal.png</profile_image_url>
      <url>http://phpjavascriptroom.com/</url>
      <protected>false</protected>
      <followers_count>612</followers_count>
      <profile_background_color>8350a1</profile_background_color>
      <profile_text_color>f2afcf</profile_text_color>
      <profile_link_color>f2afcf</profile_link_color>
      <profile_sidebar_fill_color>8350a1</profile_sidebar_fill_color>
      <profile_sidebar_border_color>8350a1</profile_sidebar_border_color>
      <friends_count>527</friends_count>
      <created_at>Sat Aug 04 05:52:33 +0000 2007</created_at>
      <favourites_count>440</favourites_count>
      <utc_offset>32400</utc_offset>
      <time_zone>Tokyo</time_zone>
      <profile_background_image_url>http://a1.twimg.com/profile_background_images/187449144/02.png</profile_background_image_url>
      <profile_background_tile>true</profile_background_tile>
      <profile_use_background_image>true</profile_use_background_image>
      <notifications>true</notifications>
      <geo_enabled>true</geo_enabled>
      <verified>false</verified>
      <following>true</following>
      <statuses_count>4966</statuses_count>
      <lang>ja</lang>
      <contributors_enabled>false</contributors_enabled>
      <follow_request_sent>false</follow_request_sent>
      <listed_count>51</listed_count>
      <show_all_inline_media>true</show_all_inline_media>
      <default_profile>false</default_profile>
      <default_profile_image>false</default_profile_image>
      <is_translator>false</is_translator>
    </user>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </retweeted_status>
  <user>
    <id>55984769</id>
    <name>PJRPJRPJRPJRPJRPJRPJ</name>
    <screen_name>pjroomer</screen_name>
    <location>とうきょう</location>
    <description>いやんばか。</description>
    <profile_image_url>http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png</profile_image_url>
    <url>http://www.hoge.com/ajierjaowejraojioejr#abut</url>
    <protected>false</protected>
    <followers_count>9</followers_count>
    <profile_background_color>C0DEED</profile_background_color>
    <profile_text_color>333333</profile_text_color>
    <profile_link_color>0084B4</profile_link_color>
    <profile_sidebar_fill_color>DDEEF6</profile_sidebar_fill_color>
    <profile_sidebar_border_color>C0DEED</profile_sidebar_border_color>
    <friends_count>190</friends_count>
    <created_at>Sun Jul 12 01:37:21 +0000 2009</created_at>
    <favourites_count>99</favourites_count>
    <utc_offset>32400</utc_offset>
    <time_zone>Tokyo</time_zone>
    <profile_background_image_url>http://a0.twimg.com/images/themes/theme1/bg.png</profile_background_image_url>
    <profile_background_tile>false</profile_background_tile>
    <profile_use_background_image>true</profile_use_background_image>
    <notifications>false</notifications>
    <geo_enabled>true</geo_enabled>
    <verified>false</verified>
    <following>false</following>
    <statuses_count>1424</statuses_count>
    <lang>ja</lang>
    <contributors_enabled>false</contributors_enabled>
    <follow_request_sent>false</follow_request_sent>
    <listed_count>4</listed_count>
    <show_all_inline_media>false</show_all_inline_media>
    <default_profile>true</default_profile>
    <default_profile_image>true</default_profile_image>
    <is_translator>false</is_translator>
  </user>
  <geo/>
  <coordinates/>
  <place/>
  <contributors/>
</status>

▼すでにリツイート済の場合
<?xml version="1.0" encoding="UTF-8"?>
<errors>
  <error>sharing is not permissable for this status (Share validations failed)</error>
  <error>sharing is not permissable for this status (Share validations failed)</error>
  <error>sharing is not permissable for this status (Share validations failed)</error>
</errors>
67487891118489600.json
json[in_reply_to_user_id_str]=
json[coordinates]=
json[geo]=

json[retweeted_status]['in_reply_to_user_id_str']=
json[retweeted_status]['coordinates']=
json[retweeted_status]['geo']=
json[retweeted_status]['user']['profile_sidebar_border_color']=8350a1
json[retweeted_status]['user']['followers_count']=612
json[retweeted_status]['user']['protected']=
json[retweeted_status]['user']['time_zone']=Tokyo
json[retweeted_status]['user']['profile_image_url']=http://a0.twimg.com/profile_images/1202496271/usa_normal.png
json[retweeted_status]['user']['name']=つんつ
json[retweeted_status]['user']['default_profile_image']=
json[retweeted_status]['user']['profile_use_background_image']=1
json[retweeted_status]['user']['favourites_count']=440
json[retweeted_status]['user']['show_all_inline_media']=1
json[retweeted_status]['user']['geo_enabled']=1
json[retweeted_status]['user']['notifications']=1
json[retweeted_status]['user']['utc_offset']=32400
json[retweeted_status]['user']['friends_count']=527
json[retweeted_status]['user']['profile_background_color']=8350a1
json[retweeted_status]['user']['screen_name']=cocoism
json[retweeted_status]['user']['profile_background_image_url']=http://a1.twimg.com/profile_background_images/187449144/02.png
json[retweeted_status]['user']['description']=青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。
json[retweeted_status]['user']['default_profile']=
json[retweeted_status]['user']['follow_request_sent']=
json[retweeted_status]['user']['lang']=ja
json[retweeted_status]['user']['id_str']=7948862
json[retweeted_status]['user']['is_translator']=
json[retweeted_status]['user']['statuses_count']=4966
json[retweeted_status]['user']['profile_text_color']=f2afcf
json[retweeted_status]['user']['location']=カワタマ or オモサン
json[retweeted_status]['user']['profile_sidebar_fill_color']=8350a1
json[retweeted_status]['user']['id']=7948862
json[retweeted_status]['user']['profile_background_tile']=1
json[retweeted_status]['user']['url']=http://phpjavascriptroom.com/
json[retweeted_status]['user']['listed_count']=51
json[retweeted_status]['user']['contributors_enabled']=
json[retweeted_status]['user']['following']=1
json[retweeted_status]['user']['verified']=
json[retweeted_status]['user']['created_at']=Sat Aug 04 05:52:33 +0000 2007
json[retweeted_status]['user']['profile_link_color']=f2afcf
json[retweeted_status]['truncated']=
json[retweeted_status]['text']=しゃっくりが止まらないので息止めます。
json[retweeted_status]['in_reply_to_status_id']=
json[retweeted_status]['id_str']=71958276341899264
json[retweeted_status]['place']=
json[retweeted_status]['favorited']=
json[retweeted_status]['retweet_count']=1
json[retweeted_status]['id']=7.19582763419E+16
json[retweeted_status]['in_reply_to_screen_name']=
json[retweeted_status]['source']=HootSuite
json[retweeted_status]['in_reply_to_status_id_str']=
json[retweeted_status]['contributors']=
json[retweeted_status]['retweeted']=
json[retweeted_status]['in_reply_to_user_id']=
json[retweeted_status]['created_at']=Sat May 21 15:19:24 +0000 2011

json[user]['profile_sidebar_border_color']=C0DEED
json[user]['followers_count']=9
json[user]['protected']=
json[user]['time_zone']=Tokyo
json[user]['profile_image_url']=http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png
json[user]['name']=PJRPJRPJRPJRPJRPJRPJ
json[user]['default_profile_image']=1
json[user]['profile_use_background_image']=1
json[user]['favourites_count']=99
json[user]['show_all_inline_media']=
json[user]['geo_enabled']=1
json[user]['notifications']=
json[user]['utc_offset']=32400
json[user]['friends_count']=190
json[user]['profile_background_color']=C0DEED
json[user]['screen_name']=pjroomer
json[user]['profile_background_image_url']=http://a0.twimg.com/images/themes/theme1/bg.png
json[user]['description']=いやんばか。
json[user]['default_profile']=1
json[user]['follow_request_sent']=
json[user]['lang']=ja
json[user]['id_str']=55984769
json[user]['is_translator']=
json[user]['statuses_count']=1424
json[user]['profile_text_color']=333333
json[user]['location']=とうきょう
json[user]['profile_sidebar_fill_color']=DDEEF6
json[user]['id']=55984769
json[user]['profile_background_tile']=
json[user]['url']=http://www.hoge.com/ajierjaowejraojioejr#abut
json[user]['listed_count']=4
json[user]['contributors_enabled']=
json[user]['following']=
json[user]['verified']=
json[user]['created_at']=Sun Jul 12 01:37:21 +0000 2009
json[user]['profile_link_color']=0084B4
json[truncated]=
json[text]=RT @cocoism: しゃっくりが止まらないので息止めます。
json[in_reply_to_status_id]=
json[id_str]=72547154157240320
json[place]=
json[favorited]=
json[retweet_count]=1
json[id]=7.25471541572E+16
json[in_reply_to_screen_name]=
json[source]=PJR
json[in_reply_to_status_id_str]=
json[contributors]=
json[retweeted]=
json[in_reply_to_user_id]=
json[created_at]=Mon May 23 06:19:24 +0000 2011

▼すでにリツイート済の場合
json[errors]=sharing is not permissable for this status (Share validations failed)
sharing is not permissable for this status (Share validations failed)
sharing is not permissable for this status (Share validations failed)

statuses/retweets/:id
指定したつぶやきに対する引用返信を最大100件まで取得(要認証)

2009/7/18

要認証API制限対象

HTTP GEThttp://api.twitter.com/1/statuses/retweets/[ステータスID].[xml|json]

指定したステータスIDをリツイート(公式RT)しているユーザー情報を最初の100件分取得します。

パラメーター

パラメーター説明
id必須 リツイートされているステータスIDを指定。
例)http://api.twitter.com/1/statuses/retweets/5466220198.xml
count任意受け取るユーザー数を指定します。
例)http://api.twitter.com/1/statuses/retweets/5466220198.xml?count=5
trim_user任意 ユーザー情報を詳細でなく、ユーザーIDだけにしたい場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?trim_user=1
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?include_entities=1

取得サンプル(XML/JSON)

67519315221544960.xml
<?xml version="1.0" encoding="UTF-8"?>
<statuses type="array">
<status>
  <created_at>Mon May 23 06:19:24 +0000 2011</created_at>
  <id>72547154157240320</id>
  <text>RT @cocoism: しゃっくりが止まらないので息止めます。</text>
  <source><a href="http://phpjavascriptroom.com/" rel="nofollow">PJR</a></source>
  <truncated>false</truncated>
  <favorited>false</favorited>
  <in_reply_to_status_id></in_reply_to_status_id>
  <in_reply_to_user_id></in_reply_to_user_id>
  <in_reply_to_screen_name></in_reply_to_screen_name>
  <retweet_count>1</retweet_count>
  <retweeted>false</retweeted>
  <retweeted_status>
    <created_at>Sat May 21 15:19:24 +0000 2011</created_at>
    <id>71958276341899264</id>
    <text>しゃっくりが止まらないので息止めます。</text>
    <source><a href="http://www.hootsuite.com" rel="nofollow">HootSuite</a></source>
    <truncated>false</truncated>
    <favorited>false</favorited>
    <in_reply_to_status_id></in_reply_to_status_id>
    <in_reply_to_user_id></in_reply_to_user_id>
    <in_reply_to_screen_name></in_reply_to_screen_name>
    <retweet_count>1</retweet_count>
    <retweeted>false</retweeted>
    <user>
      <id>7948862</id>
      <name>つんつ</name>
      <screen_name>cocoism</screen_name>
      <location>カワタマ or オモサン</location>
      <description>青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。</description>
      <profile_image_url>http://a0.twimg.com/profile_images/1202496271/usa_normal.png</profile_image_url>
      <url>http://phpjavascriptroom.com/</url>
      <protected>false</protected>
      <followers_count>612</followers_count>
      <profile_background_color>8350a1</profile_background_color>
      <profile_text_color>f2afcf</profile_text_color>
      <profile_link_color>f2afcf</profile_link_color>
      <profile_sidebar_fill_color>8350a1</profile_sidebar_fill_color>
      <profile_sidebar_border_color>8350a1</profile_sidebar_border_color>
      <friends_count>527</friends_count>
      <created_at>Sat Aug 04 05:52:33 +0000 2007</created_at>
      <favourites_count>440</favourites_count>
      <utc_offset>32400</utc_offset>
      <time_zone>Tokyo</time_zone>
      <profile_background_image_url>http://a1.twimg.com/profile_background_images/187449144/02.png</profile_background_image_url>
      <profile_background_tile>true</profile_background_tile>
      <profile_use_background_image>true</profile_use_background_image>
      <notifications>true</notifications>
      <geo_enabled>true</geo_enabled>
      <verified>false</verified>
      <following>true</following>
      <statuses_count>4966</statuses_count>
      <lang>ja</lang>
      <contributors_enabled>false</contributors_enabled>
      <follow_request_sent>false</follow_request_sent>
      <listed_count>51</listed_count>
      <show_all_inline_media>true</show_all_inline_media>
      <default_profile>false</default_profile>
      <default_profile_image>false</default_profile_image>
      <is_translator>false</is_translator>
    </user>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </retweeted_status>
  <user>
    <id>55984769</id>
    <name>PJRPJRPJRPJRPJRPJRPJ</name>
    <screen_name>pjroomer</screen_name>
    <location>とうきょう</location>
    <description>いやんばか。</description>
    <profile_image_url>http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png</profile_image_url>
    <url>http://www.hoge.com/ajierjaowejraojioejr#abut</url>
    <protected>false</protected>
    <followers_count>9</followers_count>
    <profile_background_color>C0DEED</profile_background_color>
    <profile_text_color>333333</profile_text_color>
    <profile_link_color>0084B4</profile_link_color>
    <profile_sidebar_fill_color>DDEEF6</profile_sidebar_fill_color>
    <profile_sidebar_border_color>C0DEED</profile_sidebar_border_color>
    <friends_count>190</friends_count>
    <created_at>Sun Jul 12 01:37:21 +0000 2009</created_at>
    <favourites_count>99</favourites_count>
    <utc_offset>32400</utc_offset>
    <time_zone>Tokyo</time_zone>
    <profile_background_image_url>http://a0.twimg.com/images/themes/theme1/bg.png</profile_background_image_url>
    <profile_background_tile>false</profile_background_tile>
    <profile_use_background_image>true</profile_use_background_image>
    <notifications>false</notifications>
    <geo_enabled>true</geo_enabled>
    <verified>false</verified>
    <following>false</following>
    <statuses_count>1424</statuses_count>
    <lang>ja</lang>
    <contributors_enabled>false</contributors_enabled>
    <follow_request_sent>false</follow_request_sent>
    <listed_count>4</listed_count>
    <show_all_inline_media>false</show_all_inline_media>
    <default_profile>true</default_profile>
    <default_profile_image>true</default_profile_image>
    <is_translator>false</is_translator>
  </user>
  <geo/>
  <coordinates/>
  <place/>
  <contributors/>
</status>
</statuses>
67519315221544960.json
json[0]['in_reply_to_user_id_str']=
json[0]['coordinates']=
json[0]['geo']=
json[0]['retweeted_status']['in_reply_to_user_id_str']=
json[0]['retweeted_status']['coordinates']=
json[0]['retweeted_status']['geo']=
json[0]['retweeted_status']['user']['profile_sidebar_border_color']=8350a1
json[0]['retweeted_status']['user']['followers_count']=612
json[0]['retweeted_status']['user']['protected']=
json[0]['retweeted_status']['user']['time_zone']=Tokyo
json[0]['retweeted_status']['user']['profile_image_url']=http://a0.twimg.com/profile_images/1202496271/usa_normal.png
json[0]['retweeted_status']['user']['name']=つんつ
json[0]['retweeted_status']['user']['default_profile_image']=
json[0]['retweeted_status']['user']['profile_use_background_image']=1
json[0]['retweeted_status']['user']['favourites_count']=440
json[0]['retweeted_status']['user']['show_all_inline_media']=1
json[0]['retweeted_status']['user']['geo_enabled']=1
json[0]['retweeted_status']['user']['notifications']=1
json[0]['retweeted_status']['user']['utc_offset']=32400
json[0]['retweeted_status']['user']['friends_count']=527
json[0]['retweeted_status']['user']['profile_background_color']=8350a1
json[0]['retweeted_status']['user']['screen_name']=cocoism
json[0]['retweeted_status']['user']['profile_background_image_url']=http://a1.twimg.com/profile_background_images/187449144/02.png
json[0]['retweeted_status']['user']['description']=青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。
json[0]['retweeted_status']['user']['default_profile']=
json[0]['retweeted_status']['user']['follow_request_sent']=
json[0]['retweeted_status']['user']['lang']=ja
json[0]['retweeted_status']['user']['id_str']=7948862
json[0]['retweeted_status']['user']['is_translator']=
json[0]['retweeted_status']['user']['statuses_count']=4966
json[0]['retweeted_status']['user']['profile_text_color']=f2afcf
json[0]['retweeted_status']['user']['location']=カワタマ or オモサン
json[0]['retweeted_status']['user']['profile_sidebar_fill_color']=8350a1
json[0]['retweeted_status']['user']['id']=7948862
json[0]['retweeted_status']['user']['profile_background_tile']=1
json[0]['retweeted_status']['user']['url']=http://phpjavascriptroom.com/
json[0]['retweeted_status']['user']['listed_count']=51
json[0]['retweeted_status']['user']['contributors_enabled']=
json[0]['retweeted_status']['user']['following']=1
json[0]['retweeted_status']['user']['verified']=
json[0]['retweeted_status']['user']['created_at']=Sat Aug 04 05:52:33 +0000 2007
json[0]['retweeted_status']['user']['profile_link_color']=f2afcf
json[0]['retweeted_status']['truncated']=
json[0]['retweeted_status']['text']=しゃっくりが止まらないので息止めます。
json[0]['retweeted_status']['in_reply_to_status_id']=
json[0]['retweeted_status']['id_str']=71958276341899264
json[0]['retweeted_status']['place']=
json[0]['retweeted_status']['favorited']=
json[0]['retweeted_status']['retweet_count']=1
json[0]['retweeted_status']['id']=7.19582763419E+16
json[0]['retweeted_status']['in_reply_to_screen_name']=
json[0]['retweeted_status']['source']=HootSuite
json[0]['retweeted_status']['in_reply_to_status_id_str']=
json[0]['retweeted_status']['contributors']=
json[0]['retweeted_status']['retweeted']=
json[0]['retweeted_status']['in_reply_to_user_id']=
json[0]['retweeted_status']['created_at']=Sat May 21 15:19:24 +0000 2011
json[0]['user']['profile_sidebar_border_color']=C0DEED
json[0]['user']['followers_count']=9
json[0]['user']['protected']=
json[0]['user']['time_zone']=Tokyo
json[0]['user']['profile_image_url']=http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png
json[0]['user']['name']=PJRPJRPJRPJRPJRPJRPJ
json[0]['user']['default_profile_image']=1
json[0]['user']['profile_use_background_image']=1
json[0]['user']['favourites_count']=99
json[0]['user']['show_all_inline_media']=
json[0]['user']['geo_enabled']=1
json[0]['user']['notifications']=
json[0]['user']['utc_offset']=32400
json[0]['user']['friends_count']=190
json[0]['user']['profile_background_color']=C0DEED
json[0]['user']['screen_name']=pjroomer
json[0]['user']['profile_background_image_url']=http://a0.twimg.com/images/themes/theme1/bg.png
json[0]['user']['description']=いやんばか。
json[0]['user']['default_profile']=1
json[0]['user']['follow_request_sent']=
json[0]['user']['lang']=ja
json[0]['user']['id_str']=55984769
json[0]['user']['is_translator']=
json[0]['user']['statuses_count']=1424
json[0]['user']['profile_text_color']=333333
json[0]['user']['location']=とうきょう
json[0]['user']['profile_sidebar_fill_color']=DDEEF6
json[0]['user']['id']=55984769
json[0]['user']['profile_background_tile']=
json[0]['user']['url']=http://www.hoge.com/ajierjaowejraojioejr#abut
json[0]['user']['listed_count']=4
json[0]['user']['contributors_enabled']=
json[0]['user']['following']=
json[0]['user']['verified']=
json[0]['user']['created_at']=Sun Jul 12 01:37:21 +0000 2009
json[0]['user']['profile_link_color']=0084B4
json[0]['truncated']=
json[0]['text']=RT @cocoism: しゃっくりが止まらないので息止めます。
json[0]['in_reply_to_status_id']=
json[0]['id_str']=72547154157240320
json[0]['place']=
json[0]['favorited']=
json[0]['retweet_count']=1
json[0]['id']=7.25471541572E+16
json[0]['in_reply_to_screen_name']=
json[0]['source']=PJR
json[0]['in_reply_to_status_id_str']=
json[0]['contributors']=
json[0]['retweeted']=
json[0]['in_reply_to_user_id']=
json[0]['created_at']=Mon May 23 06:19:24 +0000 2011

statuses/:id/retweeted_by
指定したつぶやきを公式RTしたユーザー情報を最初の100件分取得

2009/7/18

認証なしAPI制限対象

HTTP GEThttp://api.twitter.com/1/statuses/[ステータスID]/retweeted_by.[xml|json]

指定したステータスIDをリツイート(公式RT)したユーザー情報を最大100人分取得します。

パラメーター

パラメーター説明
count任意受け取るユーザー数を指定します。
例)http://api.twitter.com/1/statuses/retweets/5466220198.xml?count=5
page任意受け取るページ番号を指定します。
例)http://api.twitter.com/1/statuses/retweets/5466220198.xml?page=3
trim_user任意 ユーザー情報を詳細でなく、ユーザーIDだけにしたい場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?trim_user=1
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?include_entities=1

取得サンプル(XML/JSON)

statuses_retweeted_by.xml
<?xml version="1.0" encoding="UTF-8"?>
<users type="array">
<user>
  <id>55984769</id>
  <name>PJRPJRPJRPJRPJRPJRPJ</name>
  <screen_name>pjroomer</screen_name>
  <location>とうきょう</location>
  <description>いやんばか。</description>
  <profile_image_url>http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png</profile_image_url>
  <url>http://www.hoge.com/ajierjaowejraojioejr#abut</url>
  <protected>false</protected>
  <followers_count>9</followers_count>
  <profile_background_color>C0DEED</profile_background_color>
  <profile_text_color>333333</profile_text_color>
  <profile_link_color>0084B4</profile_link_color>
  <profile_sidebar_fill_color>DDEEF6</profile_sidebar_fill_color>
  <profile_sidebar_border_color>C0DEED</profile_sidebar_border_color>
  <friends_count>190</friends_count>
  <created_at>Sun Jul 12 01:37:21 +0000 2009</created_at>
  <favourites_count>99</favourites_count>
  <utc_offset>32400</utc_offset>
  <time_zone>Tokyo</time_zone>
  <profile_background_image_url>http://a0.twimg.com/images/themes/theme1/bg.png</profile_background_image_url>
  <profile_background_tile>false</profile_background_tile>
  <profile_use_background_image>true</profile_use_background_image>
  <notifications>false</notifications>
  <geo_enabled>true</geo_enabled>
  <verified>false</verified>
  <following>false</following>
  <statuses_count>1424</statuses_count>
  <lang>ja</lang>
  <contributors_enabled>false</contributors_enabled>
  <follow_request_sent>false</follow_request_sent>
  <listed_count>4</listed_count>
  <show_all_inline_media>false</show_all_inline_media>
  <default_profile>true</default_profile>
  <default_profile_image>true</default_profile_image>
  <is_translator>false</is_translator>
</user>
</users>
statuses_retweeted_by.json
json[0]['follow_request_sent']=
json[0]['lang']=ja
json[0]['friends_count']=190
json[0]['is_translator']=
json[0]['verified']=
json[0]['profile_link_color']=0084B4
json[0]['description']=いやんばか。
json[0]['location']=とうきょう
json[0]['profile_sidebar_border_color']=C0DEED
json[0]['followers_count']=9
json[0]['time_zone']=Tokyo
json[0]['url']=http://www.hoge.com/ajierjaowejraojioejr#abut
json[0]['listed_count']=4
json[0]['profile_use_background_image']=1
json[0]['favourites_count']=99
json[0]['show_all_inline_media']=
json[0]['following']=
json[0]['geo_enabled']=1
json[0]['notifications']=
json[0]['created_at']=Sun Jul 12 01:37:21 +0000 2009
json[0]['profile_background_color']=C0DEED
json[0]['profile_background_image_url']=http://a0.twimg.com/images/themes/theme1/bg.png
json[0]['default_profile']=1
json[0]['protected']=
json[0]['profile_image_url']=http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png
json[0]['id_str']=55984769
json[0]['default_profile_image']=1
json[0]['contributors_enabled']=
json[0]['statuses_count']=1424
json[0]['profile_text_color']=333333
json[0]['name']=PJRPJRPJRPJRPJRPJRPJ
json[0]['profile_sidebar_fill_color']=DDEEF6
json[0]['screen_name']=pjroomer
json[0]['id']=55984769
json[0]['profile_background_tile']=
json[0]['utc_offset']=32400

statuses/:id/retweeted_by/ids
指定したつぶやきを公式RTしたユーザーのIDを最大100件取得

2009/7/18

要認証API制限対象

HTTP GEThttp://api.twitter.com/1/statuses/[ステータスID]/retweeted_by/ids.[xml|json]

指定したステータスIDをリツイート(公式RT)したユーザーIDを最大100人分取得します。

パラメーター

パラメーター説明
id任意 リツイートされているステータスIDを指定。
例)http://api.twitter.com/1/statuses/5466220198/retweeted_by/ids.xml
count任意 受け取るユーザー数を指定します。
例)http://api.twitter.com/1/statuses/retweets/5466220198.xml?count=5
page任意 受け取るページ番号を指定します。
例)http://api.twitter.com/1/statuses/retweets/5466220198.xml?page=3
trim_user任意 ユーザー情報を詳細でなく、ユーザーIDだけにしたい場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?trim_user=1
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)https://api.twitter.com/1/statuses/retweet/123.json?include_entities=1

取得サンプル(XML/JSON)

statuses_retweeted_by_ids.xml
<?xml version="1.0" encoding="UTF-8"?>
<ids>
<id>55984769</id>
</ids>
statuses_retweeted_by_ids.json
json[0]=55984769

関連コンテンツ

Q. このサイトの情報はお役に立ちましたでしょうか?

投票する 投票結果を見る

管理人に【web拍手】を送るweb拍手(1行メッセージも送れます♪)

pagetop

polarized women