{"id":1594,"date":"2018-02-04T10:59:03","date_gmt":"2018-02-04T01:59:03","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=1594"},"modified":"2018-02-11T11:16:14","modified_gmt":"2018-02-11T02:16:14","slug":"php-twitter-%e3%81%ae-search-api%e3%81%a7%e4%ba%ba%e6%b0%97%e3%83%84%e3%82%a4%e3%83%bc%e3%83%88%e3%82%92%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/php-twitter-%e3%81%ae-search-api%e3%81%a7%e4%ba%ba%e6%b0%97%e3%83%84%e3%82%a4%e3%83%bc%e3%83%88%e3%82%92%e5%8f%96%e5%be%97\/","title":{"rendered":"[php] Twitter \u306e Search API\u3067\u4eba\u6c17\u30c4\u30a4\u30fc\u30c8\u3092\u53d6\u5f97"},"content":{"rendered":"<p>Twitter developer\u30da\u30fc\u30b8\u306b\u3066\u30a2\u30d7\u30ea\u3092\u767b\u9332\u3057\u3001API\u30ad\u30fc\u3001API\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u53d6\u5f97\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>\u4e0b\u8a18\u95a2\u6570\u3092\u5b9f\u88c5\u3057\u3066\u304a\u304f<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php\r\n\/**************************************************\r\n\r\n [GET search\/tweets]\u306e\u304a\u8a66\u3057\u30d7\u30ed\u30b0\u30e9\u30e0\r\n\r\n \u8a8d\u8a3c\u65b9\u5f0f: \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\r\n\r\n \u914d\u5e03: SYNCER\r\n \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8: https:\/\/dev.twitter.com\/rest\/reference\/get\/search\/tweets\r\n \u65e5\u672c\u8a9e\u89e3\u8aac\u30da\u30fc\u30b8: https:\/\/syncer.jp\/Web\/API\/Twitter\/REST_API\/GET\/search\/tweets\/\r\n\r\n**************************************************\/\r\nfunction searchTweet(){\r\n \/\/ \u8a2d\u5b9a\r\n $api_key = 'xxxxxxxx' ; \/\/ API\u30ad\u30fc\r\n $api_secret = 'xxxxxxxx' ; \/\/ API\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\r\n $access_token = 'xxxxxxxx' ; \/\/ \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\r\n $access_token_secret = 'xxxxxxxx' ; \/\/ \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\r\n $request_url = 'https:\/\/api.twitter.com\/1.1\/search\/tweets.json' ; \/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\r\n $request_method = 'GET' ;\r\n\/*\r\n \/\/ \u30d1\u30e9\u30e1\u30fc\u30bfA (\u30aa\u30d7\u30b7\u30e7\u30f3)\r\n $params_a = array(\r\n \"q\" =&gt; \"*\", \/\/\u3059\u3079\u3066\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u5bfe\u8c61\u3068\u3059\u308b\r\n\/\/ \"geocode\" =&gt; \"35.794507,139.790788,1km\",\r\n \"lang\" =&gt; \"ja\",\r\n\/\/ \"locale\" =&gt; \"ja\",\r\n \"result_type\" =&gt; \"popular\",\r\n\/\/ \"count\" =&gt; \"10\",\r\n\/\/ \"until\" =&gt; \"2017-01-17\",\r\n\/\/ \"since_id\" =&gt; \"643299864344788992\",\r\n\/\/ \"max_id\" =&gt; \"643299864344788992\",\r\n\/\/ \"include_entities\" =&gt; \"true\",\r\n ) ;\r\n*\/\r\n \/\/ \u30ad\u30fc\u3092\u4f5c\u6210\u3059\u308b (URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b)\r\n $signature_key = rawurlencode( $api_secret ) . '&amp;' . rawurlencode( $access_token_secret ) ;\r\n\r\n \/\/ \u30d1\u30e9\u30e1\u30fc\u30bfB (\u7f72\u540d\u306e\u6750\u6599\u7528)\r\n $params_b = array(\r\n 'oauth_token' =&gt; $access_token ,\r\n 'oauth_consumer_key' =&gt; $api_key ,\r\n 'oauth_signature_method' =&gt; 'HMAC-SHA1' ,\r\n 'oauth_timestamp' =&gt; time() ,\r\n 'oauth_nonce' =&gt; microtime() ,\r\n 'oauth_version' =&gt; '1.0' ,\r\n ) ;\r\n\r\n \/\/ \u30d1\u30e9\u30e1\u30fc\u30bfA\u3068\u30d1\u30e9\u30e1\u30fc\u30bfB\u3092\u5408\u6210\u3057\u3066\u30d1\u30e9\u30e1\u30fc\u30bfC\u3092\u4f5c\u308b\r\n $params_c = array_merge( $params_a , $params_b ) ;\r\n\r\n \/\/ \u9023\u60f3\u914d\u5217\u3092\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u9806\u306b\u4e26\u3073\u66ff\u3048\u308b\r\n ksort( $params_c ) ;\r\n\r\n \/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u9023\u60f3\u914d\u5217\u3092[\u30ad\u30fc=\u5024&amp;\u30ad\u30fc=\u5024...]\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\r\n $request_params = http_build_query( $params_c , '' , '&amp;' ) ;\r\n\r\n \/\/ \u4e00\u90e8\u306e\u6587\u5b57\u5217\u3092\u30d5\u30a9\u30ed\u30fc\r\n $request_params = str_replace( array( '+' , '%7E' ) , array( '%20' , '~' ) , $request_params ) ;\r\n\r\n \/\/ \u5909\u63db\u3057\u305f\u6587\u5b57\u5217\u3092URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\r\n $request_params = rawurlencode( $request_params ) ;\r\n\r\n \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u3092URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\r\n \/\/ \u3053\u3053\u3067\u306f\u3001URL\u672b\u5c3e\u306e[?]\u4ee5\u4e0b\u306f\u4ed8\u3051\u306a\u3044\u3053\u3068\r\n $encoded_request_method = rawurlencode( $request_method ) ;\r\n \r\n \/\/ \u30ea\u30af\u30a8\u30b9\u30c8URL\u3092URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\r\n $encoded_request_url = rawurlencode( $request_url ) ;\r\n \r\n \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u3001\u30ea\u30af\u30a8\u30b9\u30c8URL\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092[&amp;]\u3067\u7e4b\u3050\r\n $signature_data = $encoded_request_method . '&amp;' . $encoded_request_url . '&amp;' . $request_params ;\r\n\r\n \/\/ \u30ad\u30fc[$signature_key]\u3068\u30c7\u30fc\u30bf[$signature_data]\u3092\u5229\u7528\u3057\u3066\u3001HMAC-SHA1\u65b9\u5f0f\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u306b\u5909\u63db\u3059\u308b\r\n $hash = hash_hmac( 'sha1' , $signature_data , $signature_key , TRUE ) ;\r\n\r\n \/\/ base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3066\u3001\u7f72\u540d[$signature]\u304c\u5b8c\u6210\u3059\u308b\r\n $signature = base64_encode( $hash ) ;\r\n\r\n \/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u9023\u60f3\u914d\u5217\u3001[$params]\u306b\u3001\u4f5c\u6210\u3057\u305f\u7f72\u540d\u3092\u52a0\u3048\u308b\r\n $params_c['oauth_signature'] = $signature ;\r\n\r\n \/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u9023\u60f3\u914d\u5217\u3092[\u30ad\u30fc=\u5024,\u30ad\u30fc=\u5024,...]\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\r\n $header_params = http_build_query( $params_c , '' , ',' ) ;\r\n\r\n \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u7528\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\r\n $context = array(\r\n 'http' =&gt; array(\r\n 'method' =&gt; $request_method , \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\r\n 'header' =&gt; array( \/\/ \u30d8\u30c3\u30c0\u30fc\r\n 'Authorization: OAuth ' . $header_params ,\r\n ) ,\r\n ) ,\r\n ) ;\r\n\r\n \/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308b\u5834\u5408\u3001URL\u306e\u672b\u5c3e\u306b\u8ffd\u52a0\r\n if( $params_a ) {\r\n $request_url .= '?' . http_build_query( $params_a ) ;\r\n }\r\n\r\n \/\/ \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u5834\u5408\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306bPOST\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f5c\u6210\u3059\u308b (GET\u306e\u5834\u5408\u306f\u4e0d\u8981)\r\n\/\/ if( $params_a ) {\r\n\/\/ $context['http']['content'] = http_build_query( $params_a ) ;\r\n\/\/ }\r\n\r\n \/\/ cURL\u3092\u4f7f\u3063\u3066\u30ea\u30af\u30a8\u30b9\u30c8\r\n $curl = curl_init() ;\r\n curl_setopt( $curl, CURLOPT_URL , $request_url ) ;\r\n curl_setopt( $curl, CURLOPT_HEADER, 1 ) ; \r\n curl_setopt( $curl, CURLOPT_CUSTOMREQUEST , $context['http']['method'] ) ; \/\/ \u30e1\u30bd\u30c3\u30c9\r\n curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER , false ) ; \/\/ \u8a3c\u660e\u66f8\u306e\u691c\u8a3c\u3092\u884c\u308f\u306a\u3044\r\n curl_setopt( $curl, CURLOPT_RETURNTRANSFER , true ) ; \/\/ curl_exec\u306e\u7d50\u679c\u3092\u6587\u5b57\u5217\u3067\u8fd4\u3059\r\n curl_setopt( $curl, CURLOPT_HTTPHEADER , $context['http']['header'] ) ; \/\/ \u30d8\u30c3\u30c0\u30fc\r\n\/\/ if( isset( $context['http']['content'] ) &amp;&amp; !empty( $context['http']['content'] ) ) { \/\/ GET\u306e\u5834\u5408\u306f\u4e0d\u8981\r\n\/\/ curl_setopt( $curl , CURLOPT_POSTFIELDS , $context['http']['content'] ) ; \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\r\n\/\/ }\r\n curl_setopt( $curl , CURLOPT_TIMEOUT , 5 ) ; \/\/ \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306e\u79d2\u6570\r\n $res1 = curl_exec( $curl ) ;\r\n $res2 = curl_getinfo( $curl ) ;\r\n curl_close( $curl ) ;\r\n\r\n \/\/ \u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\r\n $json = substr( $res1, $res2['header_size'] ) ; \/\/ \u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf(JSON\u306a\u3069)\r\n $header = substr( $res1, 0, $res2['header_size'] ) ; \/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u30fc (\u691c\u8a3c\u306b\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u306b\u3069\u3046\u305e)\r\n\r\n \/\/ [cURL]\u3067\u306f\u306a\u304f\u3001[file_get_contents()]\u3092\u4f7f\u3046\u306b\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u2026\r\n \/\/ $json = file_get_contents( $request_url , false , stream_context_create( $context ) ) ;\r\n\r\n \/\/ JSON\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\r\n $obj = json_decode( $json ) ;\r\n \r\n $dump = json_decode($json, true);\r\n \r\n return $dump;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u4e0a\u8a18\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<pre class=\"lang:default decode:true\">$dump = searchTweet();\r\n \r\nforeach($dump as $v){\r\n \r\n foreach ($v as $arr) {\r\n \r\n  $recentID .= $arr[\"id\"]; \/\/\u30c4\u30a4\u30fc\u30c8ID\u3092\u53d6\u5f97\r\n }\r\n \r\n}<\/pre>\n<p>\u8fd4\u3063\u3066\u304d\u305f\u60c5\u5831\u306f<a href=\"https:\/\/developer.twitter.com\/en\/docs\/tweets\/search\/api-reference\/get-search-tweets\" target=\"_blank\">\u516c\u5f0f\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u306e\u3053\u3068<\/p>\n<p>&nbsp;<\/p>\n<h3>\u30af\u30a8\u30ea\u4e00\u89a7<\/h3>\n<p>Search API\u3067\u4f7f\u7528\u3067\u304d\u308b\u30af\u30a8\u30ea\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<ul>\n<li><code>\"\u5cf6\u98a8 \u304b\u308f\u3044\u3044\"<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8 \u304b\u308f\u3044\u3044<\/code>\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 OR \u5929\u6d25\u98a8<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304b<code>\u5929\u6d25\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 -\u5929\u6d25\u98a8<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c<code>\u5929\u6d25\u98a8<\/code>\u304c\u542b\u307e\u308c\u306a\u3044\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>#\u5cf6\u98a8<\/code>\u00a0&#8211; \u30cf\u30c3\u30b7\u30e5\u30bf\u30b0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>from:user<\/code>\u00a0&#8211; \u30e6\u30fc\u30b6\u30fc<code>user<\/code>\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22<\/li>\n<li><code>to:user<\/code>\u00a0&#8211; \u5b9b\u5148\u304c\u30e6\u30fc\u30b6\u30fc<code>user<\/code>\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22<\/li>\n<li><code>@user<\/code>\u00a0&#8211; \u30ea\u30d7\u30e9\u30a4<code>@user<\/code>\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 since:2015-02-23<\/code>\u00a0&#8211; 2015\u5e742\u670823\u65e5\u4ee5\u964d\u306e<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u3092\u6700\u65b0\u304b\u3089\u9806\u306b\u691c\u7d22(search\/tweets\u3067\u306f1\u9031\u9593\u4ee5\u4e0a\u524d\u306e\u30c4\u30a4\u30fc\u30c8\u306f\u691c\u7d22\u4e0d\u53ef)<\/li>\n<li><code>\u5cf6\u98a8 until:2015-02-23<\/code>\u00a0&#8211; 2015\u5e742\u670823\u65e5\u4ee5\u524d\u306e<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u3092\u6700\u65b0\u304b\u3089\u9806\u306b\u691c\u7d22(search\/tweets\u3067\u306f1\u9031\u9593\u4ee5\u4e0a\u524d\u306e\u30c4\u30a4\u30fc\u30c8\u306f\u691c\u7d22\u4e0d\u53ef)<\/li>\n<li><code>\u5cf6\u98a8 :)<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u5185\u5bb9\u304c\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 :(<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u5185\u5bb9\u304c\u30cd\u30ac\u30c6\u30a3\u30d6\u306a\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 ?<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u5185\u5bb9\u304c\u7591\u554f\u5f62\u306a\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 source:flantter<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308cFlantter\u304b\u3089\u3064\u3076\u3084\u304b\u308c\u305f\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 lang:ja<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u65e5\u672c\u8a9e\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22(\u4ed6en\u7b49)<\/li>\n<li><code>\u5cf6\u98a8 include:retweets<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30ea\u30c4\u30a4\u30fc\u30c8\u3092\u542b\u3080\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 exclude:retweets<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30ea\u30c4\u30a4\u30fc\u30c8\u3092\u542b\u307e\u306a\u3044\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 exclude:nativeretweets<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30ea\u30c4\u30a4\u30fc\u30c8\u3092\u542b\u307e\u306a\u3044\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22?<\/li>\n<li><code>\u5cf6\u98a8 list:user\/listname<\/code>\u00a0&#8211;\u00a0<code>user<\/code>\u306e<code>listname<\/code>\u3068\u3044\u3046\u30ea\u30b9\u30c8\u5185\u3067<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 geocode:37.78115,-122.39872,1mi<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3092\u542b\u307f\u3001\u7def\u5ea6\u3001\u7d4c\u5ea6\u3001\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u3066\u691c\u7d22(\u5358\u4f4d\u306fkm,mi\u7b49)<\/li>\n<li><code>\u5cf6\u98a8 near:me<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3092\u542b\u307f\u81ea\u5206\u306b\u8fd1\u3044\u3068\u3053\u308d\u306b\u3044\u308b\u4eba\u9593\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22 (\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u306a\u3044)<\/li>\n<li><code>\u5cf6\u98a8 near:\u65b0\u6f5f<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3092\u542b\u307f\u65b0\u6f5f\u4ed8\u8fd1\u3067\u3064\u3076\u3084\u304b\u308c\u305f\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 near:\u65b0\u6f5f within:10km<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3092\u542b\u307f\u65b0\u6f5f\u4ed8\u8fd1\u3067\u3064\u3076\u3084\u304b\u308c\u305f\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22(\u7bc4\u56f2\u309210km\u306b\u6307\u5b9a\u3001\u5358\u4f4d\u306fkm,mi\u7b49)<\/li>\n<li><code>\u5cf6\u98a8 filter:links<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3068\u30ea\u30f3\u30af\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 filter:verified<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u8a8d\u8a3c\u3055\u308c\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u304b\u3089\u3064\u3076\u3084\u304b\u308c\u305f\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 filter:images<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3068\u753b\u50cf\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 filter:twimg<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3068\u30c4\u30a4\u30c3\u30bf\u30fc\u306e\u753b\u50cf\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 filter:videos<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3068\u52d5\u753b\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 filter:media<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3068\u30e1\u30c7\u30a3\u30a2(\u753b\u50cf\u3068\u52d5\u753b)\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 filter:vine<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u3068Vine\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22 (\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u306a\u3044)<\/li>\n<li><code>\u5cf6\u98a8 filter:news<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u3001\u30cb\u30e5\u30fc\u30b9\u3060\u3068\u601d\u308f\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22 (\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u306a\u3044)<\/li>\n<li><code>\u5cf6\u98a8 filter:safe<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u3001possibly_sensitive\u30d5\u30e9\u30b0\u304c0\u306e\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22\uff1f<\/li>\n<li><code>\u5cf6\u98a8 filter:periscope<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u3001periscope\u3067\u914d\u4fe1\u3057\u3066\u3044\u308b\u30c4\u30a4\u30fc\u30c8\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 filter:native_video<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u3001periscope,vine\u307e\u305f\u306fTwitter\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u52d5\u753b\u306e\u691c\u7d22<\/li>\n<li><code>\u5cf6\u98a8 card_name:animated_gif<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u3001GIF\u304c\u542b\u307e\u308c\u308b\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22 (\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u306a\u3044)<\/li>\n<li><code>\u5cf6\u98a8 min_retweets:100<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u30ea\u30c4\u30a4\u30fc\u30c8\u304c100\u4ee5\u4e0a\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22 (\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u306a\u3044)<\/li>\n<li><code>\u5cf6\u98a8 min_faves:100<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u304a\u6c17\u306b\u5165\u308a\u304c100\u4ee5\u4e0a\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22 (\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u306a\u3044)<\/li>\n<li><code>\u5cf6\u98a8 min_replies:5<\/code>\u00a0&#8211;\u00a0<code>\u5cf6\u98a8<\/code>\u304c\u542b\u307e\u308c\u30ea\u30d7\u30e9\u30a4\u304c5\u4ee5\u4e0a\u306e\u30c4\u30a4\u30fc\u30c8\u3092\u691c\u7d22 (\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u306a\u3044)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Twitter developer\u30da\u30fc\u30b8<\/p>\n","protected":false},"author":1,"featured_media":47,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1594"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=1594"}],"version-history":[{"count":2,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1594\/revisions"}],"predecessor-version":[{"id":1600,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1594\/revisions\/1600"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/47"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=1594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=1594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=1594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}