總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
什麼是程式化搜尋引擎?
程式化搜尋引擎可讓您為網站、網誌或網站一系列網站建立搜尋引擎。您可以設定搜尋引擎,同時搜尋網頁和圖片。您可以微調排名、自訂搜尋結果的外觀和風格,並邀請朋友或信任的使用者協助您建構程式化搜尋引擎。您甚至可以使用 Google AdSense 帳戶,透過搜尋引擎賺取收益。
程式化搜尋引擎有兩種主要用途:您可以建立只搜尋某個網站內容的搜尋引擎 (站內搜尋),或建立以多個網站上特定主題為主的搜尋引擎。您可以依據自身的相關專業知識,告知程式化搜尋引擎要搜尋、優先搜尋或忽略哪些網站。由於您很瞭解使用者,因此可根據
目標對象的興趣量身打造搜尋引擎
你可以使用程式化搜尋引擎執行下列操作:
- 建立程式化搜尋引擎
在特定一組網站或網頁上搜尋
- 為你的網站啟用圖片搜尋功能
- 自訂搜尋結果的外觀和風格,包括新增即時搜尋的自動完成建議
- 在搜尋結果中新增促銷活動資訊
- 運用網站上的結構化資料自訂搜尋結果
- 運用 Google AdSense 帳戶建立營利搜尋引擎廣告單元,
只要使用者按下搜尋結果網頁中的廣告,您就能賺取收益。
程式化搜尋引擎產品摘要
程式化搜尋引擎提供四種可用服務。請使用這張圖表,挑選最適合您網站的服務項目。
方案內容 |
標準搜尋元素 |
非營利搜尋元素 |
付費搜尋元素 |
Custom Search JSON API |
費用 |
免費 |
免費 |
每 1,000 次查詢 $5 美元 |
每 1,000 次查詢 $5 美元 |
廣告 |
是 |
不可 |
否 |
否 |
Google 品牌宣傳 |
選用 |
是 |
選用 |
否 |
每日查詢限制 |
無每日上限 |
無每日上限 |
無每日上限 |
每日 10,000 次查詢 |
導入作業 |
用戶端 JavaScript |
用戶端 JavaScript |
用戶端 JavaScript |
用戶端或伺服器端 JSON API |
服務提供狀況 |
所有人 |
僅限非營利機構 |
所有人 |
所有人 |
入門課程 |
瞭解詳情 |
瞭解詳情 |
瞭解詳情 |
瞭解詳情 |
可用的 API
建立程式化搜尋引擎後,您可以使用 Google 代管的預設網頁向使用者顯示結果,也可以直接將搜尋功能嵌入您的網站。開發人員可以運用下列資源,進一步控管搜尋引擎建立和自訂搜尋結果外觀:
開始使用
開始使用程式化搜尋引擎最簡單的方法是透過控制台建立基本搜尋引擎。接著,您可以下載需要修改的重要 XML 檔案,透過程式輔助方式自訂搜尋引擎。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eProgrammable Search Engine allows you to build custom search engines for your website, blog, or a collection of websites, enabling searches across web pages and images.\u003c/p\u003e\n"],["\u003cp\u003eYou can refine search rankings, personalize the appearance of search results, and potentially monetize your search engine using Google AdSense.\u003c/p\u003e\n"],["\u003cp\u003eProgrammable Search Engine offers four distinct offerings: Standard, Non-profit, Paid, and Custom Search JSON API, each with varying features and costs.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage APIs like the Programmable Search Element Control API and the Custom Search JSON API for advanced customization and integration.\u003c/p\u003e\n"],["\u003cp\u003eCreating a basic search engine through the Control Panel is the easiest way to begin using Programmable Search Engine.\u003c/p\u003e\n"]]],[],null,["# Overview\n\nWhat Is Programmable Search Engine?\n-----------------------------------\n\nProgrammable Search Engine lets you create a search engine for your website,\nyour blog, or a collection of websites. You can configure your search engine to\nsearch both web pages and images. You can fine-tune the ranking, customize the\nlook and feel of the search results, and invite your friends or trusted users to\nhelp you build your Programmable Search Engine. You can even make money from\nyour search engine by using your [Google AdSense account](https://www.google.com/adsense/login?sourceid=aso&subid=ww-en-et-aso_api3&medium=link).\n\nThere are two main use cases for Programmable Search Engine - you can create a\nsearch engine that searches only the contents of one website (site search), or\nyou can create one that focuses on a particular topic from multiple sites. You\ncan use your expertise about a subject to tell Programmable Search Engine which\nwebsites to search, prioritize, or ignore. Because you know your users well, you\ncan tailor the search engine to their interests.\n\nWith Programmable Search Engine, you can:\n\n- Create Programmable Search Engines that search across a specified collection of sites or pages\n- Enable image search for your site\n- Customize the look and feel of search results, including adding search-as-you-type autocompletions\n- Add promotions to your search results\n- Leverage structured data on your site to customize search results\n- Create a monetized search engine ad unit with your Google AdSense account, so you make money whenever users click ads on your search results pages.\n\nSummary of Programmable Search Engine Offerings\n-----------------------------------------------\n\nProgrammable Search Engine has four offerings available for use. Use this chart\nto help you select which offering is best for your site.\n\n|-------------------|-------------------------------------------|------------------------------------------------------------------------------|-----------------------------------------------------------------------------|------------------------------------------|\n| Offering | Standard Search Element | Non-profit Search Element | Paid Search Element | Custom Search JSON API |\n| Cost | Free | Free | $5 per thousand queries | $5 per thousand queries |\n| Ads | Yes | No | No | No |\n| Google Branding | Optional | Yes | Optional | No |\n| Daily Query Limit | No Daily Limit | No Daily Limit | No Daily Limit | 10,000 queries per day |\n| Implementation | Client side javascript | Client side javascript | Client side javascript | Client side or server side JSON API |\n| Availability | Everyone | Non-profits only | Everyone | Everyone |\n| Getting Started | [Learn More](/custom-search/docs/element) | [Learn More](https://support.google.com/programmable-search/answer/12423873) | [Learn More](https://developers.google.com/custom-search/docs/paid_element) | [Learn More](/custom-search/v1/overview) |\n\nAvailable APIs\n--------------\n\nAfter creating a Programmable Search Engine, you can use a default page hosted\nby Google to show your results to the user, or you can embed search\nfunctionality directly in your website. The following resources are available to\ndevelopers who want more control over creating search engines and customizing\nthe appearance of search results:\n\n- The [Programmable Search Element Control API](/custom-search/docs/element)\n\n lets you embed the Programmable Search Element in your web pages and other\n web applications using JavaScript.\n- The [Custom Search JSON API](/custom-search/v1/overview) lets you\n develop websites and programs to retrieve and display search results from\n Programmable Search Engine programmatically. With this API, you can use\n RESTful requests to get search results in JSON format.\n\nGetting started\n---------------\n\nThe easiest way to get started with Programmable Search Engine is to create a\nbasic search engine using the [Control Panel](https://programmablesearchengine.google.com/controlpanel/all). You can\nthen download the key XML files you need to modify to customize your search\nengine programmatically."]]