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 控制台。