Search
  1. lists/members〔特定のリストのメンバー一覧を取得(認証不要)〕
  2. lists/members/show〔指定したユーザーが特定のリストのメンバーかを調べる(要認証)〕
  3. lists/members/create〔特定のリストにメンバーを追加〕
  4. lists/members/create_all〔特定のリストに複数のメンバーを追加(要認証)〕
  5. lists/members/destroy〔指定したリストから特定のメンバーを削除(要認証)〕

lists/members
特定のリストのメンバー一覧を取得(認証不要)

2009/7/18

認証なしAPI制限対象

HTTP GEThttp://api.twitter.com/1/lists/members.[xml|json]

指定したリストのメンバー一覧を取得します。 非公開リストの場合、そのリストの所有者が認証ユーザー自身であればメンバーを取得可能です。 リストはリストIDで指定するか、slug+owner_id、slug+owner_screen_nameで指定します。

パラメーター

パラメーター説明
list_id必須 リストIDを指定。
slug必須 リストIDの代わりにslugでリストを識別することができます。 この場合は、リストの所有者を特定するために、owner_idまたはowner_screen_nameパラメータも併用します。
例)http://api.twitter.com/1/lists/members.xml?slug=lifeline&owner_screen_name=cocoism
例)http://api.twitter.com/1/lists/members.xml?slug=lifeline&owner_id=7948862
cursor任意 結果をページ分けを指定します。1ページあたり20リストが含まれます。 ページの始まりには「-1」を指定します。 前後ページは、取得したデータの中にあるnext_cursorまたはprevious_cursor属性で参照できます。
例)http://api.twitter.com/1/lists/members.xml?cursor=12893764510938
include_entities任意 ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。
例)http://api.twitter.com/1/lists/members.xml?include_entities=true

取得サンプル(XML/JSON)

members.xml
<?xml version="1.0" encoding="UTF-8"?>
<users_list>
<users type="array">
<user>
  <id>99008565</id>
  <name>孫正義</name>
  <screen_name>masason</screen_name>
  <location></location>
  <description>孫正義です。 Twitterで多くの皆さんと時空を超えて、心の繋がりが広がっていく事に感動しています。初めてInternetに出会った時以来の感動です。世界が平和でより多くの人々が、幸福になれる事を心から願っています。</description>
  <profile_image_url>http://a1.twimg.com/profile_images/1313124623/masason_normal.jpg</profile_image_url>
  <url>http://www.softbank.co.jp/</url>
  <protected>false</protected>
  <followers_count>1185622</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>83</friends_count>
  <created_at>Thu Dec 24 02:26:24 +0000 2009</created_at>
  <favourites_count>105</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>false</geo_enabled>
  <verified>true</verified>
  <following>true</following>
  <statuses_count>4161</statuses_count>
  <lang>ja</lang>
  <contributors_enabled>false</contributors_enabled>
  <follow_request_sent>false</follow_request_sent>
  <listed_count>60512</listed_count>
  <show_all_inline_media>false</show_all_inline_media>
  <default_profile>true</default_profile>
  <default_profile_image>false</default_profile_image>
  <is_translator>false</is_translator>
  <status>
    <created_at>Wed May 25 15:28:17 +0000 2011</created_at>
    <id>73410063745810432</id>
    <text>地熱も関心あります。
RT @fujigranddesign 原発採用理由の1つにCo2問題があります。当社の地熱空調、地熱融雪など地熱利用技術を説明させて下さい。それにより、地熱ビジネスを成長させたいのです。一度説明の機会を下さい、その担当者もご紹介ください。</text>
    <source><a href="http://www.nibirutech.com/" rel="nofollow">TwitBird iPad</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>56</retweet_count>
    <retweeted>false</retweeted>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </status>
</user>
<user>
  <id>13006812</id>
  <name>ryugo hayano</name>
  <screen_name>hayano</screen_name>
  <location>tokyo</location>
  <description>Physics Department Chair, U. Tokyo</description>
  <profile_image_url>http://a0.twimg.com/profile_images/1121914646/ryu_by_shio_normal.jpg</profile_image_url>
  <url>http://nucl.phys.s.u-tokyo.ac.jp/hayano/</url>
  <protected>false</protected>
  <followers_count>151082</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>183</friends_count>
  <created_at>Sun Feb 03 10:57:19 +0000 2008</created_at>
  <favourites_count>0</favourites_count>
  <utc_offset>32400</utc_offset>
  <time_zone>Tokyo</time_zone>
  <profile_background_image_url>http://a3.twimg.com/images/themes/theme1/bg.png</profile_background_image_url>
  <profile_background_tile>false</profile_background_tile>
  <profile_use_background_image>false</profile_use_background_image>
  <notifications></notifications>
  <geo_enabled>false</geo_enabled>
  <verified>false</verified>
  <following></following>
  <statuses_count>10748</statuses_count>
  <lang>en</lang>
  <contributors_enabled>false</contributors_enabled>
  <follow_request_sent></follow_request_sent>
  <listed_count>11486</listed_count>
  <show_all_inline_media>false</show_all_inline_media>
  <default_profile>false</default_profile>
  <default_profile_image>false</default_profile_image>
  <is_translator>false</is_translator>
  <status>
    <created_at>Wed May 25 15:26:08 +0000 2011</created_at>
    <id>73409521254539264</id>
    <text>(zzz)</text>
    <source><a href="http://www.echofon.com/" rel="nofollow">Echofon</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>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </status>
</user>
<user>
  <id>4104111</id>
  <name>地震速報</name>
  <screen_name>earthquake_jp</screen_name>
  <location></location>
  <description>[BOT]警戒:震度1以上 もしくは M3以上の地震情報を提供しています。また少々のツイートを行います。

運用状況:http://j.mp/fowbbT

状況を見て通知する地震情報を変更します。

基本的に返事は行いません。問い合わせは@ariela もしくはyuki at transrain.netに</description>
  <profile_image_url>http://a3.twimg.com/profile_images/368358807/eqjp_normal.png</profile_image_url>
  <url>http://bit.ly/7uHI6t</url>
  <protected>false</protected>
  <followers_count>427730</followers_count>
  <profile_background_color>1A1B1F</profile_background_color>
  <profile_text_color>666666</profile_text_color>
  <profile_link_color>2FC2EF</profile_link_color>
  <profile_sidebar_fill_color>252429</profile_sidebar_fill_color>
  <profile_sidebar_border_color>181A1E</profile_sidebar_border_color>
  <friends_count>3</friends_count>
  <created_at>Wed Apr 11 01:33:52 +0000 2007</created_at>
  <favourites_count>1</favourites_count>
  <utc_offset>32400</utc_offset>
  <time_zone>Osaka</time_zone>
  <profile_background_image_url>http://a1.twimg.com/images/themes/theme9/bg.gif</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>true</following>
  <statuses_count>11174</statuses_count>
  <lang>en</lang>
  <contributors_enabled>false</contributors_enabled>
  <follow_request_sent>false</follow_request_sent>
  <listed_count>28523</listed_count>
  <show_all_inline_media>false</show_all_inline_media>
  <default_profile>false</default_profile>
  <default_profile_image>false</default_profile_image>
  <is_translator>false</is_translator>
  <status>
    <created_at>Wed May 25 15:36:48 +0000 2011</created_at>
    <id>73412207291011072</id>
    <text>【気象庁情報】26日00時30分頃 福島県浜通り近辺(N37/E140.8)にて最大震度1(M3.6)の地震が発生。震源の深さは10km。( http://j.mp/kmG0ca ) #saigai #eqjp #earthquake #jishin</text>
    <source><a href="http://labs.transrain.net/products/earthquake_jp/" rel="nofollow">日本の地下</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>8</retweet_count>
    <retweeted>false</retweeted>
    <geo xmlns:georss="http://www.georss.org/georss">
      <georss:point>37 140.8</georss:point>
    </geo>
    <coordinates xmlns:georss="http://www.georss.org/georss">
      <georss:point>37 140.8</georss:point>
    </coordinates>
    <place xmlns:georss="http://www.georss.org/georss">
      <id>88525b06cde3c913</id>
      <name>Iwaki City</name>
      <full_name>Iwaki City, Fukushima</full_name>
      <place_type>city</place_type>
      <url>http://api.twitter.com/1/geo/id/88525b06cde3c913.json</url>
      <attributes/>
      <bounding_box>
        <georss:polygon>34.1876627777778 133.726434722222 34.1876627777778 141.005477958235 37.8552322222222 141.005477958235 37.8552322222222 133.726434722222</georss:polygon>
      </bounding_box>
      <country code="JP">Japan</country>
    </place>
    <contributors/>
  </status>
</user>
<user>
  <id>137272821</id>
  <name>総務省消防庁</name>
  <screen_name>FDMA_JAPAN</screen_name>
  <location></location>
  <description>大規模災害に関する情報や総務省消防庁からの報道資料等を提供します。リンク先のファイルの容量が大きいので、パソコン端末での利用をおすすめします。あらかじめガイドラインをご覧ください。災害情報・ご意見は@FDMA_JAPANまでお願いします。いただいた情報を今後の業務の参考とさせていただきます。</description>
  <profile_image_url>http://a1.twimg.com/profile_images/891029089/_______1_normal.jpg</profile_image_url>
  <url>http://www.fdma.go.jp/</url>
  <protected>false</protected>
  <followers_count>222360</followers_count>
  <profile_background_color>DBE9ED</profile_background_color>
  <profile_text_color>333333</profile_text_color>
  <profile_link_color>CC3366</profile_link_color>
  <profile_sidebar_fill_color>E6F6F9</profile_sidebar_fill_color>
  <profile_sidebar_border_color>DBE9ED</profile_sidebar_border_color>
  <friends_count>0</friends_count>
  <created_at>Mon Apr 26 09:01:56 +0000 2010</created_at>
  <favourites_count>2</favourites_count>
  <utc_offset>32400</utc_offset>
  <time_zone>Tokyo</time_zone>
  <profile_background_image_url>http://a0.twimg.com/profile_background_images/101377616/___.jpg</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>false</geo_enabled>
  <verified>true</verified>
  <following>true</following>
  <statuses_count>1104</statuses_count>
  <lang>ja</lang>
  <contributors_enabled>false</contributors_enabled>
  <follow_request_sent>false</follow_request_sent>
  <listed_count>17459</listed_count>
  <show_all_inline_media>false</show_all_inline_media>
  <default_profile>false</default_profile>
  <default_profile_image>false</default_profile_image>
  <is_translator>false</is_translator>
  <status>
    <created_at>Wed May 25 06:45:57 +0000 2011</created_at>
    <id>73278612618481664</id>
    <text>【報道発表】消防庁では、市区町村における実践的な図上型防災訓練の実施促進を目的とし、風水害図上型防災訓練マニュアル検討会により調査研究を進めてきました。その報告書及び訓練実施支援マニュアルを公表いたします。→(PDF) http://bit.ly/lZcW69</text>
    <source>web</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>34</retweet_count>
    <retweeted>false</retweeted>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </status>
</user>
<user>
  <id>265205959</id>
  <name>首相官邸(災害情報)</name>
  <screen_name>Kantei_Saigai</screen_name>
  <location></location>
  <description>本アカウントは首相官邸の公式アカウントです。
首相官邸から災害関連の政府活動情報をお届けいたします。
</description>
  <profile_image_url>http://a1.twimg.com/profile_images/1270889509/twitter2_normal.gif</profile_image_url>
  <url>http://www.kantei.go.jp/</url>
  <protected>false</protected>
  <followers_count>332325</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>3</friends_count>
  <created_at>Sun Mar 13 05:22:07 +0000 2011</created_at>
  <favourites_count>0</favourites_count>
  <utc_offset>-36000</utc_offset>
  <time_zone>Hawaii</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>false</geo_enabled>
  <verified>true</verified>
  <following>false</following>
  <statuses_count>1064</statuses_count>
  <lang>ja</lang>
  <contributors_enabled>false</contributors_enabled>
  <follow_request_sent>false</follow_request_sent>
  <listed_count>19938</listed_count>
  <show_all_inline_media>false</show_all_inline_media>
  <default_profile>true</default_profile>
  <default_profile_image>false</default_profile_image>
  <is_translator>false</is_translator>
  <status>
    <created_at>Wed May 25 09:23:51 +0000 2011</created_at>
    <id>73318349999849472</id>
    <text>【訂正】枝野官房長官会見(11:00)/電気の使用制限の実施について、東電管内では7/1-9/22、東北電管内では7/1-9/9の平日9-20時の間実施することにした。対象は大口需要家で昨年のピーク時の15%削減をお願いする。</text>
    <source>web</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>90</retweet_count>
    <retweeted>false</retweeted>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </status>
</user>
<user>
  <id>92026643</id>
  <name>経済産業省情報プロジェクト室</name>
  <screen_name>openmeti</screen_name>
  <location>東京都千代田区霞が関</location>
  <description>経済産業省におけるオープンガバメント推進twitterです。
twitterの運用ポリシーに関しては、以下のサイトで掲載しております。
http://www.meti.go.jp/policy/it_policy/e-meti/twitter_policy.html
</description>
  <profile_image_url>http://a0.twimg.com/profile_images/591847786/metilogo_normal.gif</profile_image_url>
  <url>http://openlabs.go.jp/</url>
  <protected>false</protected>
  <followers_count>35029</followers_count>
  <profile_background_color>B2DFDA</profile_background_color>
  <profile_text_color>333333</profile_text_color>
  <profile_link_color>93A644</profile_link_color>
  <profile_sidebar_fill_color>ffffff</profile_sidebar_fill_color>
  <profile_sidebar_border_color>eeeeee</profile_sidebar_border_color>
  <friends_count>138</friends_count>
  <created_at>Mon Nov 23 14:10:45 +0000 2009</created_at>
  <favourites_count>0</favourites_count>
  <utc_offset>32400</utc_offset>
  <time_zone>Tokyo</time_zone>
  <profile_background_image_url>http://a1.twimg.com/images/themes/theme13/bg.gif</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>false</geo_enabled>
  <verified>false</verified>
  <following>false</following>
  <statuses_count>532</statuses_count>
  <lang>ja</lang>
  <contributors_enabled>false</contributors_enabled>
  <follow_request_sent>false</follow_request_sent>
  <listed_count>2932</listed_count>
  <show_all_inline_media>false</show_all_inline_media>
  <default_profile>false</default_profile>
  <default_profile_image>false</default_profile_image>
  <is_translator>false</is_translator>
  <status>
    <created_at>Fri May 20 08:33:46 +0000 2011</created_at>
    <id>71493806717009920</id>
    <text>復興構想会議も、先月28日からツイッターを開始しています。 QT @FukkoKosoKaigi: 【お知らせ】東日本大震災復興構想会議のツイッターを開設いたしました。これから東日本大震災復興構想会議に関する情報を発信していきます。</text>
    <source>web</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>20</retweet_count>
    <retweeted>false</retweeted>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </status>
</user>
</users>
<next_cursor>0</next_cursor>
<previous_cursor>0</previous_cursor>
</users_list>
members.json
json[users]['0']['profile_background_color']=C0DEED
json[users]['0']['protected']=
json[users]['0']['statuses_count']=4159
json[users]['0']['profile_background_image_url']=http://a0.twimg.com/images/themes/theme1/bg.png
json[users]['0']['followers_count']=1185624
json[users]['0']['location']=
json[users]['0']['name']=孫正義
json[users]['0']['default_profile']=1
json[users]['0']['notifications']=
json[users]['0']['profile_image_url']=http://a1.twimg.com/profile_images/1313124623/masason_normal.jpg
json[users]['0']['id_str']=99008565
json[users]['0']['default_profile_image']=
json[users]['0']['utc_offset']=32400
json[users]['0']['profile_text_color']=333333
json[users]['0']['url']=http://www.softbank.co.jp/
json[users]['0']['profile_sidebar_fill_color']=DDEEF6
json[users]['0']['description']=孫正義です。 Twitterで多くの皆さんと時空を超えて、心の繋がりが広がっていく事に感動しています。初めてInternetに出会った時以来の感動です。世界が平和でより多くの人々が、幸福になれる事を心から願っています。
json[users]['0']['screen_name']=masason
json[users]['0']['is_translator']=
json[users]['0']['lang']=ja
json[users]['0']['profile_background_tile']=
json[users]['0']['created_at']=Thu Dec 24 02:26:24 +0000 2009
json[users]['0']['status']['in_reply_to_screen_name']=
json[users]['0']['status']['in_reply_to_user_id_str']=
json[users]['0']['status']['contributors']=
json[users]['0']['status']['retweeted']=
json[users]['0']['status']['truncated']=
json[users]['0']['status']['id_str']=73410063745810432
json[users]['0']['status']['text']=地熱も関心あります。
RT @fujigranddesign 原発採用理由の1つにCo2問題があります。当社の地熱空調、地熱融雪など地熱利用技術を説明させて下さい。それにより、地熱ビジネスを成長させたいのです。一度説明の機会を下さい、その担当者もご紹介ください。
json[users]['0']['status']['in_reply_to_status_id']=
json[users]['0']['status']['created_at']=Wed May 25 15:28:17 +0000 2011
json[users]['0']['status']['place']=
json[users]['0']['status']['in_reply_to_user_id']=
json[users]['0']['status']['id']=7.34100637458E+16
json[users]['0']['status']['source']=TwitBird iPad
json[users]['0']['status']['favorited']=
json[users]['0']['status']['in_reply_to_status_id_str']=
json[users]['0']['status']['coordinates']=
json[users]['0']['status']['geo']=
json[users]['0']['status']['retweet_count']=56
json[users]['0']['follow_request_sent']=
json[users]['0']['verified']=1
json[users]['0']['friends_count']=83
json[users]['0']['favourites_count']=105
json[users]['0']['profile_link_color']=0084B4
json[users]['0']['id']=99008565
json[users]['0']['contributors_enabled']=
json[users]['0']['profile_sidebar_border_color']=C0DEED
json[users]['0']['show_all_inline_media']=
json[users]['0']['geo_enabled']=
json[users]['0']['time_zone']=Tokyo
json[users]['0']['listed_count']=60512
json[users]['0']['following']=1
json[users]['0']['profile_use_background_image']=1
json[users]['1']['profile_background_color']=C0DEED
json[users]['1']['protected']=
json[users]['1']['statuses_count']=10748
json[users]['1']['profile_background_image_url']=http://a3.twimg.com/images/themes/theme1/bg.png
json[users]['1']['followers_count']=151082
json[users]['1']['location']=tokyo
json[users]['1']['name']=ryugo hayano
json[users]['1']['notifications']=
json[users]['1']['profile_image_url']=http://a0.twimg.com/profile_images/1121914646/ryu_by_shio_normal.jpg
json[users]['1']['id_str']=13006812
json[users]['1']['default_profile_image']=
json[users]['1']['utc_offset']=32400
json[users]['1']['profile_text_color']=333333
json[users]['1']['url']=http://nucl.phys.s.u-tokyo.ac.jp/hayano/
json[users]['1']['profile_sidebar_fill_color']=DDEEF6
json[users]['1']['description']=Physics Department Chair, U. Tokyo
json[users]['1']['screen_name']=hayano
json[users]['1']['is_translator']=
json[users]['1']['default_profile']=
json[users]['1']['lang']=en
json[users]['1']['profile_background_tile']=
json[users]['1']['created_at']=Sun Feb 03 10:57:19 +0000 2008
json[users]['1']['status']['in_reply_to_screen_name']=
json[users]['1']['status']['in_reply_to_user_id_str']=
json[users]['1']['status']['contributors']=
json[users]['1']['status']['retweeted']=
json[users]['1']['status']['truncated']=
json[users]['1']['status']['id_str']=73409521254539264
json[users]['1']['status']['text']=(zzz)
json[users]['1']['status']['in_reply_to_status_id']=
json[users]['1']['status']['created_at']=Wed May 25 15:26:08 +0000 2011
json[users]['1']['status']['place']=
json[users]['1']['status']['in_reply_to_user_id']=
json[users]['1']['status']['id']=7.34095212545E+16
json[users]['1']['status']['source']=Echofon
json[users]['1']['status']['favorited']=
json[users]['1']['status']['in_reply_to_status_id_str']=
json[users]['1']['status']['coordinates']=
json[users]['1']['status']['geo']=
json[users]['1']['status']['retweet_count']=1
json[users]['1']['follow_request_sent']=
json[users]['1']['verified']=
json[users]['1']['friends_count']=183
json[users]['1']['favourites_count']=0
json[users]['1']['profile_link_color']=0084B4
json[users]['1']['id']=13006812
json[users]['1']['contributors_enabled']=
json[users]['1']['profile_sidebar_border_color']=C0DEED
json[users]['1']['show_all_inline_media']=
json[users]['1']['geo_enabled']=
json[users]['1']['time_zone']=Tokyo
json[users]['1']['listed_count']=11486
json[users]['1']['following']=
json[users]['1']['profile_use_background_image']=
json[users]['2']['profile_background_color']=1A1B1F
json[users]['2']['protected']=
json[users]['2']['default_profile_image']=
json[users]['2']['profile_background_image_url']=http://a1.twimg.com/images/themes/theme9/bg.gif
json[users]['2']['followers_count']=427727
json[users]['2']['location']=
json[users]['2']['name']=地震速報
json[users]['2']['notifications']=
json[users]['2']['friends_count']=3
json[users]['2']['profile_image_url']=http://a3.twimg.com/profile_images/368358807/eqjp_normal.png
json[users]['2']['id_str']=4104111
json[users]['2']['is_translator']=
json[users]['2']['utc_offset']=32400
json[users]['2']['profile_text_color']=666666
json[users]['2']['url']=http://bit.ly/7uHI6t
json[users]['2']['default_profile']=
json[users]['2']['follow_request_sent']=
json[users]['2']['contributors_enabled']=
json[users]['2']['profile_sidebar_fill_color']=252429
json[users]['2']['description']=[BOT]警戒:震度1以上 もしくは M3以上の地震情報を提供しています。また少々のツイートを行います。

運用状況:http://j.mp/fowbbT

状況を見て通知する地震情報を変更します。

基本的に返事は行いません。問い合わせは@ariela もしくはyuki at transrain.netに
json[users]['2']['screen_name']=earthquake_jp
json[users]['2']['lang']=en
json[users]['2']['profile_background_tile']=
json[users]['2']['created_at']=Wed Apr 11 01:33:52 +0000 2007
json[users]['2']['status']['in_reply_to_screen_name']=
json[users]['2']['status']['in_reply_to_user_id_str']=
json[users]['2']['status']['contributors']=
json[users]['2']['status']['retweeted']=
json[users]['2']['status']['truncated']=
json[users]['2']['status']['id_str']=73412207291011072
json[users]['2']['status']['text']=【気象庁情報】26日00時30分頃 福島県浜通り近辺(N37/E140.8)にて最大震度1(M3.6)の地震が発生。震源の深さは10km。( http://j.mp/kmG0ca ) #saigai #eqjp #earthquake #jishin
json[users]['2']['status']['in_reply_to_status_id']=
json[users]['2']['status']['created_at']=Wed May 25 15:36:48 +0000 2011
json[users]['2']['status']['place']=Array
json[users]['2']['status']['in_reply_to_user_id']=
json[users]['2']['status']['id']=7.3412207291E+16
json[users]['2']['status']['source']=日本の地下
json[users]['2']['status']['favorited']=
json[users]['2']['status']['in_reply_to_status_id_str']=
json[users]['2']['status']['coordinates']=Array
json[users]['2']['status']['geo']=Array
json[users]['2']['status']['retweet_count']=8
json[users]['2']['show_all_inline_media']=
json[users]['2']['verified']=
json[users]['2']['geo_enabled']=1
json[users]['2']['favourites_count']=1
json[users]['2']['profile_link_color']=2FC2EF
json[users]['2']['id']=4104111
json[users]['2']['listed_count']=28523
json[users]['2']['profile_sidebar_border_color']=181A1E
json[users]['2']['statuses_count']=11173
json[users]['2']['time_zone']=Osaka
json[users]['2']['following']=1
json[users]['2']['profile_use_background_image']=1
json[users]['3']['statuses_count']=1104
json[users]['3']['profile_background_color']=DBE9ED
json[users]['3']['protected']=
json[users]['3']['default_profile_image']=
json[users]['3']['profile_background_image_url']=http://a0.twimg.com/profile_background_images/101377616/___.jpg
json[users]['3']['followers_count']=222358
json[users]['3']['location']=
json[users]['3']['name']=総務省消防庁
json[users]['3']['default_profile']=
json[users]['3']['notifications']=
json[users]['3']['profile_image_url']=http://a1.twimg.com/profile_images/891029089/_______1_normal.jpg
json[users]['3']['id_str']=137272821
json[users]['3']['is_translator']=
json[users]['3']['contributors_enabled']=
json[users]['3']['utc_offset']=32400
json[users]['3']['profile_text_color']=333333
json[users]['3']['url']=http://www.fdma.go.jp/
json[users]['3']['follow_request_sent']=
json[users]['3']['friends_count']=0
json[users]['3']['profile_sidebar_fill_color']=E6F6F9
json[users]['3']['description']=大規模災害に関する情報や総務省消防庁からの報道資料等を提供します。リンク先のファイルの容量が大きいので、パソコン端末での利用をおすすめします。あらかじめガイドラインをご覧ください。災害情報・ご意見は@FDMA_JAPANまでお願いします。いただいた情報を今後の業務の参考とさせていただきます。
json[users]['3']['screen_name']=FDMA_JAPAN
json[users]['3']['lang']=ja
json[users]['3']['profile_background_tile']=
json[users]['3']['created_at']=Mon Apr 26 09:01:56 +0000 2010
json[users]['3']['status']['in_reply_to_screen_name']=
json[users]['3']['status']['in_reply_to_user_id_str']=
json[users]['3']['status']['contributors']=
json[users]['3']['status']['retweeted']=
json[users]['3']['status']['truncated']=
json[users]['3']['status']['id_str']=73278612618481664
json[users]['3']['status']['text']=【報道発表】消防庁では、市区町村における実践的な図上型防災訓練の実施促進を目的とし、風水害図上型防災訓練マニュアル検討会により調査研究を進めてきました。その報告書及び訓練実施支援マニュアルを公表いたします。→(PDF) http://bit.ly/lZcW69
json[users]['3']['status']['in_reply_to_status_id']=
json[users]['3']['status']['created_at']=Wed May 25 06:45:57 +0000 2011
json[users]['3']['status']['place']=
json[users]['3']['status']['in_reply_to_user_id']=
json[users]['3']['status']['id']=7.32786126185E+16
json[users]['3']['status']['source']=web
json[users]['3']['status']['favorited']=
json[users]['3']['status']['in_reply_to_status_id_str']=
json[users]['3']['status']['coordinates']=
json[users]['3']['status']['geo']=
json[users]['3']['status']['retweet_count']=34
json[users]['3']['verified']=1
json[users]['3']['favourites_count']=2
json[users]['3']['profile_link_color']=CC3366
json[users]['3']['id']=137272821
json[users]['3']['show_all_inline_media']=
json[users]['3']['listed_count']=17459
json[users]['3']['geo_enabled']=
json[users]['3']['profile_sidebar_border_color']=DBE9ED
json[users]['3']['time_zone']=Tokyo
json[users]['3']['following']=1
json[users]['3']['profile_use_background_image']=1
json[users]['4']['show_all_inline_media']=
json[users]['4']['follow_request_sent']=
json[users]['4']['contributors_enabled']=
json[users]['4']['geo_enabled']=
json[users]['4']['profile_background_color']=C0DEED
json[users]['4']['protected']=
json[users]['4']['profile_background_image_url']=http://a0.twimg.com/images/themes/theme1/bg.png
json[users]['4']['followers_count']=332325
json[users]['4']['location']=
json[users]['4']['name']=首相官邸(災害情報)
json[users]['4']['notifications']=
json[users]['4']['profile_image_url']=http://a1.twimg.com/profile_images/1270889509/twitter2_normal.gif
json[users]['4']['id_str']=265205959
json[users]['4']['statuses_count']=1064
json[users]['4']['utc_offset']=-36000
json[users]['4']['profile_text_color']=333333
json[users]['4']['url']=http://www.kantei.go.jp/
json[users]['4']['default_profile']=1
json[users]['4']['listed_count']=19938
json[users]['4']['profile_sidebar_fill_color']=DDEEF6
json[users]['4']['description']=本アカウントは首相官邸の公式アカウントです。
首相官邸から災害関連の政府活動情報をお届けいたします。

json[users]['4']['screen_name']=Kantei_Saigai
json[users]['4']['lang']=ja
json[users]['4']['profile_background_tile']=
json[users]['4']['created_at']=Sun Mar 13 05:22:07 +0000 2011
json[users]['4']['status']['in_reply_to_screen_name']=
json[users]['4']['status']['in_reply_to_user_id_str']=
json[users]['4']['status']['contributors']=
json[users]['4']['status']['retweeted']=
json[users]['4']['status']['truncated']=
json[users]['4']['status']['id_str']=73318349999849472
json[users]['4']['status']['text']=【訂正】枝野官房長官会見(11:00)/電気の使用制限の実施について、東電管内では7/1-9/22、東北電管内では7/1-9/9の平日9-20時の間実施することにした。対象は大口需要家で昨年のピーク時の15%削減をお願いする。
json[users]['4']['status']['in_reply_to_status_id']=
json[users]['4']['status']['created_at']=Wed May 25 09:23:51 +0000 2011
json[users]['4']['status']['place']=
json[users]['4']['status']['in_reply_to_user_id']=
json[users]['4']['status']['id']=7.33183499998E+16
json[users]['4']['status']['source']=web
json[users]['4']['status']['favorited']=
json[users]['4']['status']['in_reply_to_status_id_str']=
json[users]['4']['status']['coordinates']=
json[users]['4']['status']['geo']=
json[users]['4']['status']['retweet_count']=90
json[users]['4']['verified']=1
json[users]['4']['favourites_count']=0
json[users]['4']['profile_link_color']=0084B4
json[users]['4']['id']=265205959
json[users]['4']['default_profile_image']=
json[users]['4']['profile_sidebar_border_color']=C0DEED
json[users]['4']['time_zone']=Hawaii
json[users]['4']['friends_count']=3
json[users]['4']['is_translator']=
json[users]['4']['following']=
json[users]['4']['profile_use_background_image']=1
json[users]['5']['profile_background_color']=B2DFDA
json[users]['5']['protected']=
json[users]['5']['default_profile_image']=
json[users]['5']['profile_background_image_url']=http://a1.twimg.com/images/themes/theme13/bg.gif
json[users]['5']['followers_count']=35029
json[users]['5']['location']=東京都千代田区霞が関
json[users]['5']['name']=経済産業省情報プロジェクト室
json[users]['5']['notifications']=
json[users]['5']['friends_count']=138
json[users]['5']['profile_image_url']=http://a0.twimg.com/profile_images/591847786/metilogo_normal.gif
json[users]['5']['id_str']=92026643
json[users]['5']['is_translator']=
json[users]['5']['utc_offset']=32400
json[users]['5']['profile_text_color']=333333
json[users]['5']['url']=http://openlabs.go.jp/
json[users]['5']['follow_request_sent']=
json[users]['5']['contributors_enabled']=
json[users]['5']['profile_sidebar_fill_color']=ffffff
json[users]['5']['description']=経済産業省におけるオープンガバメント推進twitterです。
twitterの運用ポリシーに関しては、以下のサイトで掲載しております。
http://www.meti.go.jp/policy/it_policy/e-meti/twitter_policy.html

json[users]['5']['screen_name']=openmeti
json[users]['5']['lang']=ja
json[users]['5']['profile_background_tile']=
json[users]['5']['created_at']=Mon Nov 23 14:10:45 +0000 2009
json[users]['5']['status']['in_reply_to_screen_name']=
json[users]['5']['status']['in_reply_to_user_id_str']=
json[users]['5']['status']['contributors']=
json[users]['5']['status']['retweeted']=
json[users]['5']['status']['truncated']=
json[users]['5']['status']['id_str']=71493806717009920
json[users]['5']['status']['text']=復興構想会議も、先月28日からツイッターを開始しています。 QT @FukkoKosoKaigi: 【お知らせ】東日本大震災復興構想会議のツイッターを開設いたしました。これから東日本大震災復興構想会議に関する情報を発信していきます。
json[users]['5']['status']['in_reply_to_status_id']=
json[users]['5']['status']['created_at']=Fri May 20 08:33:46 +0000 2011
json[users]['5']['status']['place']=
json[users]['5']['status']['in_reply_to_user_id']=
json[users]['5']['status']['id']=7.1493806717E+16
json[users]['5']['status']['source']=web
json[users]['5']['status']['favorited']=
json[users]['5']['status']['in_reply_to_status_id_str']=
json[users]['5']['status']['coordinates']=
json[users]['5']['status']['geo']=
json[users]['5']['status']['retweet_count']=20
json[users]['5']['show_all_inline_media']=
json[users]['5']['verified']=
json[users]['5']['geo_enabled']=
json[users]['5']['favourites_count']=0
json[users]['5']['profile_link_color']=93A644
json[users]['5']['id']=92026643
json[users]['5']['listed_count']=2932
json[users]['5']['profile_sidebar_border_color']=eeeeee
json[users]['5']['default_profile']=
json[users]['5']['statuses_count']=532
json[users]['5']['time_zone']=Tokyo
json[users]['5']['following']=
json[users]['5']['profile_use_background_image']=1
json[next_cursor]=0
json[previous_cursor]=0
json[next_cursor_str]=0
json[previous_cursor_str]=0

設置サンプル

@cocoism/lifelineリストのメンバーを取得して、一覧表示します。

http://api.twitter.com/1/lists/members.xml?slug=lifeline&owner_screen_name=cocoism
設置サンプルサンプルを見る
<!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 API:リストメンバー関連:lists/members(特定のリストのメンバー一覧を取得) | 設置サンプル</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://api.twitter.com/1/lists/members.json?slug=lifeline&owner_screen_name=cocoism&callback={callback}";
                $.getJSONP(url, function(json){
                    var s="";
                    $.each(json.users, function(i, item){
                        s+="<li><img src='"+item.profile_image_url+"' /><a href='http://twitter.com/"+item.screen_name+"' target='_blank'>@"+item.screen_name+"</a></li>";
                    });
                    $("#res").html("<ul>"+s+"</ul>");
                });
            });
        </script>
        <style type="text/css">
            #res ul {
                margin:0; padding:0;
                list-style:none;
            }
            #res li {
                margin:5px; padding:0;
                list-style:none;
                line-height:48px;
                display:block;
            }
            #res li img {
                vertical-align:middle;
                margin-right:10px;
                width:48px; height:48px;
                border:1px solid #ccc;
            }
        </style>
    </head>
    <body>
        <div id="wrap">
            <h1>Twitter API:リストメンバー関連:lists/members(特定のリストのメンバー一覧を取得) | 設置サンプル</h1>
            <p>このAPIは認証不要です。@cocoism/lifelineリストのメンバー一覧を取得して表示します。</p>
<!-- CODE -->
            <h2><a href="http://twitter.com/cocoism/lifeline">@cocoism/lifeline</a>がフォローしているユーザー</h2>
            <div id="res"></div>
<!-- / CODE -->
        </div>
    </body>
</html>

lists/members/show
指定したユーザーが特定のリストのメンバーかを調べる(要認証)

2009/7/18

要認証API制限対象

HTTP GEThttp://api.twitter.com/1/lists/members/show.[xml|json]

指定したユーザーが特定のリストのメンバーかどうか調べます。 メンバーだった場合は、そのユーザー情報が返ります。 既に登録されているメンバーをまた追加しようとしてもエラーにはなりません。成功時と同様、リスト情報が返ります。

パラメーター説明
list_id必須 リストIDを指定。
user_id必須 メンバーかどうか調べたいユーザIDを指定。
例)http://api.twitter.com/1/lists/members/show.xml?list_id=25131742&user_id=12345
screen_name必須 メンバーかどうか調べたいスクリーンネームを指定。
例)http://api.twitter.com/1/lists/members/show.xml?list_id=25131742&screen_name=cocoism

取得サンプル(XML/JSON)

show.xml
▼@cocoismが@pjroomer/myfavリストのメンバーだった場合
<?xml version="1.0" encoding="UTF-8"?>
<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>611</followers_count>
  <profile_background_color>8350a1</profile_background_color>
  <profile_text_color>ff6699</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>534</friends_count>
  <created_at>Sat Aug 04 05:52:33 +0000 2007</created_at>
  <favourites_count>443</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>false</notifications>
  <geo_enabled>true</geo_enabled>
  <verified>false</verified>
  <following>false</following>
  <statuses_count>5019</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>
  <status>
    <created_at>Thu May 26 13:58:56 +0000 2011</created_at>
    <id>73749964697763840</id>
    <text>ジョーズいいねぇ。お茶がサバイバルになりそう♪ - 14 Modern and Stylish Tea Infuser and Tea Strainer – DesignSwan.com http://ow.ly/53xyJ</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>0</retweet_count>
    <retweeted>false</retweeted>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </status>
</user>

▼指定したユーザーが指定したリストのメンバーでない場合
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <error>The specified user is not a member of this list</error>
  <request>/1/lists/members/show.xml?format=xml&list_id=43044556&oauth_consumer_key=…略…</request>
</hash>
show.json
▼@cocoismが@pjroomer/myfavリストのメンバーだった場合
json[profile_background_color]=8350a1
json[protected]=
json[default_profile]=
json[statuses_count]=5019
json[profile_background_image_url]=http://a1.twimg.com/profile_background_images/187449144/02.png
json[followers_count]=611
json[location]=カワタマ or オモサン
json[name]=つんつ
json[notifications]=
json[profile_image_url]=http://a0.twimg.com/profile_images/1202496271/usa_normal.png
json[id_str]=7948862
json[default_profile_image]=
json[utc_offset]=32400
json[profile_text_color]=ff6699
json[url]=http://phpjavascriptroom.com/
json[profile_sidebar_fill_color]=8350a1
json[description]=青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。
json[screen_name]=cocoism
json[is_translator]=
json[lang]=ja
json[profile_background_tile]=1
json[created_at]=Sat Aug 04 05:52:33 +0000 2007
json[follow_request_sent]=
json[verified]=
json[friends_count]=534
json[favourites_count]=443
json[profile_link_color]=f2afcf
json[id]=7948862
json[contributors_enabled]=
json[profile_sidebar_border_color]=8350a1
json[show_all_inline_media]=1
json[geo_enabled]=1
json[time_zone]=Tokyo
json[listed_count]=51
json[following]=
json[profile_use_background_image]=1

▼指定したユーザーが指定したリストのメンバーでない場合
json[error]=The specified user is not a member of this list
json[request]=/1/lists/members/show.json?format=json&list_id=43044556&oauth_consumer_key=…略…

lists/members/create
特定のリストにメンバーを追加

2009/7/18

要認証API制限なし

HTTP POSThttp://api.twitter.com/1/lists/members/create.[xml|json]

指定したユーザーを特定のリストのメンバーに追加します。 成功した場合は、リストの情報が返ります。 メンバーを追加するリストはあらかじめ作成されていることが前提です。 1リストに登録可能なメンバーは500人までです。 既に登録されているメンバーをまた追加しようとしてもエラーにはなりません。

パラメーター

パラメーター説明
list_id必須 リストIDを指定します。
例)http://api.twitter.com/1/lists/members/create.xml?list_id=25131742
slug必須 リストIDでなく、slugを使う場合は、owner_idまたはowner_nameを使用して、リストの所有者も指定する必要があります。
例)http://api.twitter.com/1/lists/members/create.xml?slug=team&owner_screen_name=cocoism
例)http://api.twitter.com/1/lists/members/create.xml?slug=team&owner_id=7948862
user_id必須 追加するメンバーのユーザIDを指定。
例)http://api.twitter.com/1/lists/members/create.xml?list_id=25131742&user_id=12345
screen_name必須 追加するメンバーのスクリーンネームを指定。
例)http://api.twitter.com/1/lists/members/create.xml?list_id=25131742&screen_name=cocoism

取得サンプル(XML/JSON)

show.xml
▼@cocoismが@pjroomer/myfavリストのメンバーだった場合
<?xml version="1.0" encoding="UTF-8"?>
<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>611</followers_count>
  <profile_background_color>8350a1</profile_background_color>
  <profile_text_color>ff6699</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>534</friends_count>
  <created_at>Sat Aug 04 05:52:33 +0000 2007</created_at>
  <favourites_count>443</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>false</notifications>
  <geo_enabled>true</geo_enabled>
  <verified>false</verified>
  <following>false</following>
  <statuses_count>5019</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>
  <status>
    <created_at>Thu May 26 13:58:56 +0000 2011</created_at>
    <id>73749964697763840</id>
    <text>ジョーズいいねぇ。お茶がサバイバルになりそう♪ - 14 Modern and Stylish Tea Infuser and Tea Strainer – DesignSwan.com http://ow.ly/53xyJ</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>0</retweet_count>
    <retweeted>false</retweeted>
    <geo/>
    <coordinates/>
    <place/>
    <contributors/>
  </status>
</user>

▼指定したユーザーが指定したリストのメンバーでない場合
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <error>The specified user is not a member of this list</error>
  <request>/1/lists/members/show.xml?format=xml&list_id=43044556&oauth_consumer_key=…略…</request>
</hash>
show.json
▼@cocoismが@pjroomer/myfavリストのメンバーだった場合
json[profile_background_color]=8350a1
json[protected]=
json[default_profile]=
json[statuses_count]=5019
json[profile_background_image_url]=http://a1.twimg.com/profile_background_images/187449144/02.png
json[followers_count]=611
json[location]=カワタマ or オモサン
json[name]=つんつ
json[notifications]=
json[profile_image_url]=http://a0.twimg.com/profile_images/1202496271/usa_normal.png
json[id_str]=7948862
json[default_profile_image]=
json[utc_offset]=32400
json[profile_text_color]=ff6699
json[url]=http://phpjavascriptroom.com/
json[profile_sidebar_fill_color]=8350a1
json[description]=青山でWeb系のお仕事してます。デザイナーズレストランははるか昔に卒業済。芋焼酎と焼鳥が大好きで居心地のいい呑み屋でおやじ談義するのがライフワーク。最近は日本酒をお勉強中。家では大人しく猛犬チワワのママしてます。iPhone4/Xperia所有。
json[screen_name]=cocoism
json[is_translator]=
json[lang]=ja
json[profile_background_tile]=1
json[created_at]=Sat Aug 04 05:52:33 +0000 2007
json[follow_request_sent]=
json[verified]=
json[friends_count]=534
json[favourites_count]=443
json[profile_link_color]=f2afcf
json[id]=7948862
json[contributors_enabled]=
json[profile_sidebar_border_color]=8350a1
json[show_all_inline_media]=1
json[geo_enabled]=1
json[time_zone]=Tokyo
json[listed_count]=51
json[following]=
json[profile_use_background_image]=1

▼指定したユーザーが指定したリストのメンバーでない場合
json[error]=The specified user is not a member of this list
json[request]=/1/lists/members/show.json?format=json&list_id=43044556&oauth_consumer_key=…略…

lists/members/create_all
特定のリストに複数のメンバーを追加(要認証)

2009/7/18

要認証API制限なし

HTTP POSThttp://api.twitter.com/1/lists/members/create_all.[xml|json]

指定したリストに複数のユーザーをリストに追加します。 成功するとリスト情報を返します。 既に登録されているメンバーをまた追加しようとしてもエラーにはならず、成功時と同様リスト情報が返ります。

ユーザーIDまたはスクリーンネームは、カンマ区切りで最大100人まで指定可能です。 なお、1リストに登録可能なメンバーは500人までです。 メンバーを追加するリストはあらかじめ作成されていることが前提です。

取得サンプル(XML/JSON)

create_all.xml
<?xml version="1.0" encoding="UTF-8"?>
<list>
  <id>25131742</id>
  <name>myfav</name>
  <full_name>@pjroomer/myfav</full_name>
  <slug>myfav</slug>
  <description></description>
  <subscriber_count>0</subscriber_count>
  <member_count>2</member_count>
  <uri>/pjroomer/myfav</uri>
  <following>false</following>
  <mode>public</mode>
  <user>
    <id>55984769</id>
    <name>つんこ</name>
    <screen_name>pjroomer</screen_name>
    <location>Tokyo, Japan</location>
    <description>てすあか</description>
    <profile_image_url>http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png</profile_image_url>
    <url>http://phpjavascriptroom.com</url>
    <protected>false</protected>
    <followers_count>8</followers_count>
    <profile_background_color>C0DEED</profile_background_color>
    <profile_text_color>ff6699</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>188</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>1425</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>false</default_profile>
    <default_profile_image>true</default_profile_image>
    <is_translator>false</is_translator>
  </user>
</list>
create_all.json
json[user]['profile_background_color']=C0DEED
json[user]['protected']=
json[user]['default_profile_image']=1
json[user]['profile_background_image_url']=http://a0.twimg.com/images/themes/theme1/bg.png
json[user]['followers_count']=8
json[user]['location']=Tokyo, Japan
json[user]['name']=つんこ
json[user]['show_all_inline_media']=
json[user]['contributors_enabled']=
json[user]['geo_enabled']=1
json[user]['notifications']=
json[user]['friends_count']=188
json[user]['profile_image_url']=http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png
json[user]['id_str']=55984769
json[user]['is_translator']=
json[user]['default_profile']=
json[user]['utc_offset']=32400
json[user]['profile_text_color']=ff6699
json[user]['url']=http://phpjavascriptroom.com
json[user]['follow_request_sent']=
json[user]['profile_sidebar_fill_color']=DDEEF6
json[user]['description']=てすあか
json[user]['screen_name']=pjroomer
json[user]['lang']=ja
json[user]['statuses_count']=1425
json[user]['profile_background_tile']=
json[user]['created_at']=Sun Jul 12 01:37:21 +0000 2009
json[user]['verified']=
json[user]['favourites_count']=99
json[user]['profile_link_color']=0084B4
json[user]['id']=55984769
json[user]['listed_count']=5
json[user]['profile_sidebar_border_color']=C0DEED
json[user]['time_zone']=Tokyo
json[user]['following']=
json[user]['profile_use_background_image']=1
json[name]=myfav
json[id_str]=25131742
json[uri]=/pjroomer/myfav
json[mode]=public
json[description]=
json[slug]=myfav
json[member_count]=2
json[id]=25131742
json[subscriber_count]=0
json[full_name]=@pjroomer/myfav
json[following]=

lists/members/destroy
指定したリストから特定のメンバーを削除(要認証)

2009/7/18

要認証API制限なし

HTTP POSThttp://api.twitter.com/1/lists/members/destroy.[xml|json]

指定したリストから特定のメンバーを削除します。 認証ユーザーが作成したリストからしかメンバーは削除できません。

パラメーター

パラメーター説明
list_id必須 リストIDを指定します。
slug必須 リストIDでなく、slugを使う場合は、owner_idまたはowner_nameを使用して、リストの所有者も指定する必要があります。
例)http://api.twitter.com/1/lists/members/destroy.xml?slug=team&owner_screen_name=cocoism
例)http://api.twitter.com/1/lists/members/destroy.xml?slug=team&owner_id=7948862
user_id必須 追加するメンバーのユーザIDを指定。
例)http://api.twitter.com/1/lists/members/destroy.xml?list_id=25131742&user_id=12345
screen_name必須 追加するメンバーのスクリーンネームを指定。
例)http://api.twitter.com/1/lists/members/destroy.xml?list_id=25131742&screen_name=cocoism

取得サンプル(XML/JSON)

destroy.xml
▼削除に成功した場合
<?xml version="1.0" encoding="UTF-8"?>
<list>
  <id>25131742</id>
  <name>myfav</name>
  <full_name>@pjroomer/myfav</full_name>
  <slug>myfav</slug>
  <description></description>
  <subscriber_count>0</subscriber_count>
  <member_count>2</member_count>
  <uri>/pjroomer/myfav</uri>
  <following>false</following>
  <mode>public</mode>
  <user>
    <id>55984769</id>
    <name>つんこ</name>
    <screen_name>pjroomer</screen_name>
    <location>Tokyo, Japan</location>
    <description>てすあか</description>
    <profile_image_url>http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png</profile_image_url>
    <url>http://phpjavascriptroom.com</url>
    <protected>false</protected>
    <followers_count>8</followers_count>
    <profile_background_color>C0DEED</profile_background_color>
    <profile_text_color>ff6699</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>188</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>1425</statuses_count>
    <lang>ja</lang>
    <contributors_enabled>false</contributors_enabled>
    <follow_request_sent>false</follow_request_sent>
    <listed_count>5</listed_count>
    <show_all_inline_media>false</show_all_inline_media>
    <default_profile>false</default_profile>
    <default_profile_image>true</default_profile_image>
    <is_translator>false</is_translator>
  </user>
</list>

▼削除に失敗した場合合
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <error>The user you are trying to remove from the list is not a member</error>
  <request>/1/lists/members/destroy.xml</request>
</hash>
destroy.json
▼削除に成功した場合
json[user]['default_profile']=
json[user]['friends_count']=188
json[user]['profile_background_color']=C0DEED
json[user]['protected']=
json[user]['is_translator']=
json[user]['profile_background_image_url']=http://a0.twimg.com/images/themes/theme1/bg.png
json[user]['followers_count']=8
json[user]['location']=Tokyo, Japan
json[user]['name']=つんこ
json[user]['follow_request_sent']=
json[user]['contributors_enabled']=
json[user]['notifications']=
json[user]['profile_image_url']=http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png
json[user]['id_str']=55984769
json[user]['utc_offset']=32400
json[user]['profile_text_color']=ff6699
json[user]['url']=http://phpjavascriptroom.com
json[user]['show_all_inline_media']=
json[user]['geo_enabled']=1
json[user]['profile_sidebar_fill_color']=DDEEF6
json[user]['description']=てすあか
json[user]['screen_name']=pjroomer
json[user]['lang']=ja
json[user]['profile_background_tile']=
json[user]['created_at']=Sun Jul 12 01:37:21 +0000 2009
json[user]['listed_count']=5
json[user]['verified']=
json[user]['statuses_count']=1425
json[user]['favourites_count']=99
json[user]['profile_link_color']=0084B4
json[user]['id']=55984769
json[user]['profile_sidebar_border_color']=C0DEED
json[user]['time_zone']=Tokyo
json[user]['default_profile_image']=1
json[user]['following']=
json[user]['profile_use_background_image']=1
json[name]=myfav
json[id_str]=25131742
json[uri]=/pjroomer/myfav
json[mode]=public
json[description]=
json[slug]=myfav
json[member_count]=1
json[id]=25131742
json[subscriber_count]=0
json[full_name]=@pjroomer/myfav
json[following]=

▼削除に失敗した場合
json[error]=The user you are trying to remove from the list is not a member
json[request]=/1/lists/members/destroy.json

関連コンテンツ

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

投票する 投票結果を見る

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

pagetop

polarized women