6

私はいくつかの Google 検索を行い、www.google.se で検索した場合と同じ結果を得たいと考えています (私はスウェーデンにいます)。https://code.google.com/apis/console/b/0/で API キーを取得するための Google API アカウントを作成しました。

次のように API を呼び出します。

https://www.googleapis.com/customsearch/v1?key=KEY&cx=013036536707430787589:_pqjad5hr1a&gl=se&cr=se&googlehost=google.se&q=bästa espressomaskin&alt=json

ただし、通常のように「bästa espressomaskin」で検索すると結果が異なり、その理由がわかりません。

2 番目の質問は、パラメーター「cx」についてです。それは実際には何であり、何をしますか?Google API 紹介サイトで提供されているものをそのまま使用しました。

また、10 を超える結果が必要です。API コンソール アカウントには数ドルありますが、「num」パラメータを 10 を超えるように設定するにはどうすればよいですか?

ありがとう

4

2 に答える 2

2

cx is the Google key you get for signing up for their custom search service. It allows you to customize your search. See here for more information: https://developers.google.com/custom-search/v1/getting_started

As for results, Google says in their documentation that your results may vary. See here for more information: http://support.google.com/customsearch/bin/answer.py?hl=en&answer=2633385

于 2013-05-14T13:32:56.083 に答える