Tag: Twitter TwitterAPI SearchAPI

目次

参考情報

パラメータ

q:

レスポンス

JSON形式のレスポンス

{"results":[
     {"text":"@twitterapi  http:\/\/tinyurl.com\/ctrefg",
     "to_user_id":396524,
     "to_user":"TwitterAPI",
     "from_user":"jkoum",
     "metadata":
     {
      "result_type":"popular",
      "recent_retweets": 109
 
     },
     "id":1478555574,   
     "from_user_id":1833773,
     "iso_language_code":"nl",
     "source":"<a href="http:\/\/twitter.com\/">twitter<\/a>",
     "profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/118412707\/2522215727_a5f07da155_b_normal.jpg",
     "created_at":"Wed, 08 Apr 2009 19:22:10 +0000"},
     ... truncated ...],
     "since_id":0,
     "max_id":1480307926,
     "refresh_url":"?since_id=1480307926&q=%40twitterapi",
     "results_per_page":15,
     "next_page":"?page=2&max_id=1480307926&q=%40twitterapi",
     "completed_in":0.031704,
     "page":1,
     "query":"%40twitterapi"}
}

ATOM形式のレスポンス

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:google="http://base.google.com/ns/1.0" xml:lang="en-US" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns="http://www.w3.org/2005/Atom" xmlns:twitter="http://api.twitter.com/">
  <id>tag:search.twitter.com,2005:search/twitter</id>
  <link type="text/html" href="http://search.twitter.com/search?q=twitter" rel="alternate"/>
  <link type="application/atom+xml" href="http://search.twitter.com/search.atom?q=twitter" rel="self"/>
  <title>twitter - Twitter Search</title>
  <link type="application/opensearchdescription+xml" href="http://search.twitter.com/opensearch.xml" rel="search"/>
  <link type="application/atom+xml" href="http://search.twitter.com/search.atom?q=twitter&amp;since_id=22066257016" rel="refresh"/>
  <twitter:warning>since_id removed for pagination.</twitter:warning>
  <updated>2010-08-25T06:05:00Z</updated>
  <openSearch:itemsPerPage>15</openSearch:itemsPerPage>
  <link type="application/atom+xml" href="http://search.twitter.com/search.atom?max_id=22066257016&amp;page=2&amp;q=twitter" rel="next"/>
  <entry>
    <id>tag:search.twitter.com,2005:22066257016</id>
    <published>2010-08-25T06:05:00Z</published>
    <link type="text/html" href="http://twitter.com/KhayliLuvBieber/statuses/22066257016" rel="alternate"/>
    <title>All that I see on my timeline right now is &quot;good nite&quot; &amp; &quot;I'm going to bed&quot;. LOL! Twitter is always dead when I get home frm skol!</title>
    <content type="html">All that I see on my timeline right now is &amp;quot;good nite&amp;quot; &amp;amp; &amp;quot;I&amp;apos;m going to bed&amp;quot;. LOL! &lt;b&gt;Twitter&lt;/b&gt; is always dead when I get home frm skol!</content>
    <updated>2010-08-25T06:05:00Z</updated>
    <link type="image/png" href="http://a3.twimg.com/profile_images/1108504895/KhayliLuvBieber_normal.jpg" rel="image"/>
    <twitter:geo>
    </twitter:geo>
    <twitter:metadata>
      <twitter:result_type>recent</twitter:result_type>
    </twitter:metadata>
    <twitter:source>&lt;a href=&quot;http://www.echofon.com/&quot; rel=&quot;nofollow&quot;&gt;Echofon&lt;/a&gt;</twitter:source>
    <twitter:lang>en</twitter:lang>
    <author>
      <name>KhayliLuvBieber (Khayli Bruton)</name>
      <uri>http://twitter.com/KhayliLuvBieber</uri>
    </author>
  </entry>
...

注意点

レスポンスのfrom_user_idとto_user_idがuser_idではない問題


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-04-11 (月) 15:28:31