このドキュメントでは、Custom Search Site Restricted JSON API の使用方法について説明します。
Custom Search Site Restricted JSON API について
プログラム可能検索エンジンが特定のサイト(10 個以下)の検索のみに制限されている場合は、Custom Search Site Restricted JSON API を使用できます。この API はカスタム検索 JSON API に似ていますが、1 日あたりのクエリ数の上限がありません。このバージョンを使用するには、プログラム可能検索エンジンのコントロール パネルの [検索するサイト] セクションに 10 個以下の検索するサイトが表示され、グローバル トップレベル ドメイン パターンがないこと、[ウェブ全体を検索] がオフになっていることを確認します。
Custom Search Site Restricted JSON API エンドポイントを使用する場合、プログラム可能検索エンジンの設定が上記のサイト制限ルールに準拠しないように変更されると、Custom Search Site Restricted JSON API は想定どおりの結果を返さないことがあるので注意してください。
リクエストの実行
Custom Search Site Restricted JSON API へのリクエストは、Custom Search JSON API へのリクエストに似ていますが、URI が異なります。Custom Search Site Restricted JSON API のフォーマットは次のようになります。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-12-18 UTC。"],[[["\u003cp\u003eThe Custom Search Site Restricted JSON API will be discontinued on January 8, 2025, and users should transition to Google Cloud's Vertex AI Search.\u003c/p\u003e\n"],["\u003cp\u003eThis API allows searching within 10 or fewer specific sites without a daily query limit, unlike the standard Custom Search JSON API.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize this API, ensure your Programmable Search Engine is configured to search only specific sites with "Search the entire web" disabled.\u003c/p\u003e\n"],["\u003cp\u003eThe API endpoint for the Site Restricted version differs slightly but uses the same parameters as the standard Custom Search JSON API.\u003c/p\u003e\n"],["\u003cp\u003eEach request to the Custom Search Site Restricted JSON API costs $5 per 1000 queries, and billing can be set up through the API Console.\u003c/p\u003e\n"]]],[],null,[]]