Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Google Programmable Search Engine

7,683 sites Security covered Drupal 10–11
View on drupal.org

This module integrates Google's Programmable Search Engine into your Drupal site, allowing it to display search results from Google instead of the core Drupal search. It enables you to specify which websites Google should index for your search results.

This module provides a search input form that returns search results from Google. You control which site(s) are indexed. It supports all configuration provided by the Programmable Search Element API. Theming is the responsibility of the site owner.

Drupal core to remove Search

Drupal 12, which is planned to be released in December 2026, will move the core Search module into contributed code. Sites that use Google CSE will need either to:

  • (recommended) update to the forthcoming 6.x version, which will not include a dependency on core Search, or
  • (discouraged) start including the contributed version of the Search module in their codebase and continue to use the 5.x version of Google CSE, which will eventually become unsupported.

Google Programmable Search Engine (formerly "Custom Search Engine") is a free service that can be used to search a set of one or more sites. Google PSE uses Google's index of the site. Content changes are not immediately reflected in the results the way they are with Drupal's core search.

Similar modules

  • google_json_api retrieves search results using Google's JSON API, which can be manipulated and formatted as needed. In contrast, this module (google_cse) just returns the search results from Google as an embed.
  • flexible_google_cse provides some options to customize the search input,. In contrast, this module (google_cse) uses Drupal core's search input block.
  • simple_gse_search provides a search input with no configuration options.

Basic Setup

1. Install this module as you normally would.
2. Create a new Google PSE instance at https://programmablesearchengine.google.com/about/
3. Go to Configuration > Search Pages (/admin/config/search/pages) and create a new search page of type "Google PSE search". Enter the PSE ID from the previous step.
4. Place the core Drupal "Search" block in your layout. Searches will return results from Google.

Depends on

Dependencies of the latest stable release

  • search Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Apr 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
5.0.5 Stable 10–11 Jul 14, 2026
5.0.4 Stable 10–11 Apr 24, 2026
5.0.3 Stable 10–11 Dec 22, 2025
5.0.2 Stable 10–11 Jun 20, 2025
5.0.1 Stable 10–11 Apr 17, 2025