Custom Search Site Restricted JSON API
本文件說明如何使用 Custom Search Site Restricted JSON API。
關於 Custom Search Site Restricted JSON API
如果您的程式化搜尋引擎僅供搜尋特定網站 (10 個以內),就可以使用 Custom Search Site Restricted JSON API。這版 API 與 Custom Search JSON API 相似,但沒有每日查詢量上限。如要使用這個版本,請前往程式化搜尋引擎控制台,確認「要搜尋的網站」部分所列的網站數低於 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 的 URI 格式為
https://www.googleapis.com/customsearch/v1/siterestrict?[parameters]
其中 [parameters]
與 Custom Search JSON API 所用的參數相同。
定價
Custom Search Site Restricted JSON API 的要求費用為每 1000 個查詢 $5 美元,無每日查詢量上限。若要申請帳單,請前往 API 控制台。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-18 (世界標準時間)。
[null,null,["上次更新時間:2024-12-18 (世界標準時間)。"],[[["The Custom Search Site Restricted JSON API will be discontinued on January 8, 2025, and users should transition to Google Cloud's Vertex AI Search."],["This API allows searching within 10 or fewer specific sites without a daily query limit, unlike the standard Custom Search JSON API."],["To utilize this API, ensure your Programmable Search Engine is configured to search only specific sites with \"Search the entire web\" disabled."],["The API endpoint for the Site Restricted version differs slightly but uses the same parameters as the standard Custom Search JSON API."],["Each request to the Custom Search Site Restricted JSON API costs $5 per 1000 queries, and billing can be set up through the API Console."]]],[]]