Submit Search
Upload
Bing Search API 使ってみました
•
Download as PPTX, PDF
•
1 like
•
2,014 views
良太 増子
Follow
bing api 勉強会での資料。
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 19
Download now
Recommended
mayah (AI) の実装
mayah (AI) の実装
Shinya Kawanaka
mod_perlで動くアプリをどう置くか #hachiojipm
mod_perlで動くアプリをどう置くか #hachiojipm
鉄次 尾形
サーバーレスでLINE Clova スキル開発+LINE との接続
サーバーレスでLINE Clova スキル開発+LINE との接続
Madoka Chiyoda
LINE bot (Azure Bot Service 製)を LINE Clova とも繋げてみよう
LINE bot (Azure Bot Service 製)を LINE Clova とも繋げてみよう
Madoka Chiyoda
一目会ったその日から・・・ WordPressとの付き合い方
一目会ったその日から・・・ WordPressとの付き合い方
Shoji Endo
Google Home, Amazon Echo, LINE Clova クロス開発& Azure Durable Funcitons で時間のかかる処理...
Google Home, Amazon Echo, LINE Clova クロス開発& Azure Durable Funcitons で時間のかかる処理...
Madoka Chiyoda
Raspberry piでlチカしてみた
Raspberry piでlチカしてみた
森下 智裕
Portfolio yoshinori kobayashi
Portfolio yoshinori kobayashi
Yoshinori Kobayashi
Recommended
mayah (AI) の実装
mayah (AI) の実装
Shinya Kawanaka
mod_perlで動くアプリをどう置くか #hachiojipm
mod_perlで動くアプリをどう置くか #hachiojipm
鉄次 尾形
サーバーレスでLINE Clova スキル開発+LINE との接続
サーバーレスでLINE Clova スキル開発+LINE との接続
Madoka Chiyoda
LINE bot (Azure Bot Service 製)を LINE Clova とも繋げてみよう
LINE bot (Azure Bot Service 製)を LINE Clova とも繋げてみよう
Madoka Chiyoda
一目会ったその日から・・・ WordPressとの付き合い方
一目会ったその日から・・・ WordPressとの付き合い方
Shoji Endo
Google Home, Amazon Echo, LINE Clova クロス開発& Azure Durable Funcitons で時間のかかる処理...
Google Home, Amazon Echo, LINE Clova クロス開発& Azure Durable Funcitons で時間のかかる処理...
Madoka Chiyoda
Raspberry piでlチカしてみた
Raspberry piでlチカしてみた
森下 智裕
Portfolio yoshinori kobayashi
Portfolio yoshinori kobayashi
Yoshinori Kobayashi
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Bing Search API 使ってみました
1.
Bing Search API 使ってみました 増子良太
2.
自己紹介 増子良太(ますこ りょうた) 株式会社 GENOVA MovableTypeを拡張したCMSばかり作ってます 得意言語:Perl、PHP、Java、JavaScript FaceBook、Twitter:
rmasco
3.
ちょっとだけ宣伝 子供向けAndroidアプリ作ってみました。 電車の動画がいっぱい!はしれ!ガタンゴトン 無料です!
4.
実は・・・ bing apiのことを知らなかった
5.
こんなAPIがあります Maps ◦ 地図 Speeche ◦ 音声認識 Transelator ◦
翻訳 Search API ◦ 検索
6.
というわけで・・・ 悩みました・・・
7.
君に決めた!
8.
話は少しずれますが・・・ 他の検索エンジンのAPIの話
9.
Google Google Web Search
API 2010年11月1日に非推奨に 現在はカスタムサーチAPIなどを使用してくださいとのこと ただしリクエスト数の制限があり、100 /日以上は使えないようです
10.
Yahoo ウェブ検索API 2013年8月14日にサービス提供を終了しております 理由は増加する適切ではない利用が多いため? 今後サイト内検索などはカスタムサーチなどの利用を検討
11.
Bing Bing Search API 5000/月まで無料で利用可能
← 太っ腹! 比較的日本語の情報が多い ← 本当に助かります
12.
大手検索エンジンの中で唯一のAPI 他の検索エンジンはAPIの提供を中止して行く方向 その中で5000/月ですが、無料でアクセスできるのは唯一の強み 検索APIと言えばBing! 画像検索や、他のAPIも駆使すると面白いことができるかも!?
13.
APIデモ
14.
<?php $query = htmlentities($_POST["query"],
ENT_QUOTES, "utf-8"); $accountKey = ' XXJxOaCmAQVoWAdxXLu3caZAXXTqojQ' ; //アカウントキーで置換する $ServiceRootURL = 'https://api.datamarket.azure.com/Bing/Search/'; $context = stream_context_create( array( 'http'=>array( 'request_fulluri'=>TRUE, 'header' =>'Authorization: Basic '.base64_encode( $accountKey.':'.$accountKey ) ) ) ); $request = $ServiceRootURL.'Web?$format=json&Query='.urlencode( " ' " .$query. " ' " ); API解説1
15.
API解説2 $response = ""; $title
= "Bing Search API Sample"; if(isset($query) && $query != ""){ $response = file_get_contents( $request, FALSE, $context ); $result_obj = json_decode($response); $results = $result_obj->d->results; $result_html = "<ul>"; foreach($results as $val){ $result_html .= "<li>"; $result_html .= '<a target="_blank" href="'.$val->Url.'">'.$val->Title.'</a>'; $result_html .= '<p>'.$val->Description.'</p>'; $result_html .= "</li>"; } $result_html .= "</ul>"; $title = "『".$query."』の検索結果"; } ? >
16.
検索対象 URLの末尾の文字列で検索対象を変えることができます。 Web • ウェブ検索 Image • 画像検索 Video •
動画検索 News • ニュース検索
17.
その他のオプション Query • 検索文字列 $format • レスポンスフォーマット(json
or atom) $top • 何件のレスポンスを返すのか(Max 50) $skip • 検索結果から除外する先頭からの件数
18.
APIデモ2
19.
ご清聴ありがとうございました。
Download now