你要瀏覽的網頁目前並未提供你慣用的語言版本。你可以在頁面底部選取其他語言版本,或使用 Google Chrome 內建的翻譯功能,將網頁內容即時翻譯成所選的語言。

Problems with adding a search engine to your site

I'm having problems with the iframe that displays my search results.

The iframe hosting option for displaying your search results is no longer supported. Instead, try using the Two page layout or Results only layout. Read more about Search results layout.

I'm having problems with Programmable Search Engine Element V1 implementation code that displays my search results.

Programmable Search Engine Element V1 hosting option for displaying your search results is no longer supported. Instead, try using Programmable Search Engine Element V2 code, which is a simpler way to configure the search box. Read more about Programmable Search Engine Element V2 layout.

I'm seeing the error message “Unauthorized access to internal API. Please refer to https://support.google.com/customsearch/answer/4542055” when I try to access Programmable Search Engine results.

Please try to refresh the search page and check.

This error is an indication of trying to directly access the Programmable Search Engine’s internal API (‘v1element’). Please use the code snippet found in your search engine control panel. Learn more about Programmable Search Engine Element V2 setup.

For programmatic access use the public JSON API

Search results don't load.

If your results seem to be stuck on a "Loading..." message, here are a few things to try:
  • Check to see if it works in another browser. 
    Test your search engine using multiple web browsers (Chrome, Safari, Internet Explorer, Firefox, and Opera) to determine if the problem is browser-specific. If your search engine works in some, but not all of these browsers, let us know
  • Check your site's HTML.
    Make sure your HTML page begins with the <!DOCTYPE html> declaration.
  • Try the original code snippet.
    If you edited your code snippet, try replacing it with the original snippet. If that works, try your edited code snippet on a blank page. If your edited snippet works on a blank page, your page may contain CSS or JavaScript that interferes with the search code.
  • Make sure the snippet's HTTP protocol matches your site's.
    If you obtained the auto-generated Programmable Search Engine code snippet, the protocol should be automatically determined for you.  If you supplied your own custom search snippet, make sure it uses the same http:// protocol used for your site. 
  • Check for network errors.
    To see if your network connection is preventing your page from loading JavaScript and CSS files, in Chrome, right click the page and click Inspect Element. The Network tab lists the components your web page or application is requesting from web servers, and lists the HTTP request and response headers for each of these resources. If you see a HTTP status code other than "Success" or "Not modified", check that your network is not preventing you from accessing these files. Similarly, you can use the Firebug add-on (for Firefox), the F12 developer tools (Internet Explorer 9), and Safari Web Inspector to help diagnose network issues.
  • Check for any JavaScript errors.
    1. In Chrome, right-click the page, click Inspect Element, and then click the Console tab.
    2. In Firefox, first make sure you have installed the Web Developer add-on. A notification will appear in the top right corner whenever a JavaScript error is detected. In addition, the Firebug add-on can help diagnose JavaScript problems.
    3. In Internet Explorer, your status bar will display a warning if any JavaScript errors are discovered on the page. Double-click the warning to see the problem code.
    4. In Safari, use the Elements tab of Web Inspector to check for JavaScript problems.
Search
Clear search
Close search
Main menu
12232586315223468072
true
Search Help Center
true
true
true
false
false