|
/ Documentation /Apps & Integrations Setup/ Configuring and Setting Up a Custom Search Engine in Google Cloud

Configuring and Setting Up a Custom Search Engine in Google Cloud

The following steps provide detailed instructions for setting up a custom search engine, its API, and the search engine ID.

1) Create or Select a Google Cloud Project: 

  • Go to the Google Cloud Console: https://console.cloud.google.com/ 
  • If you don’t have a Google Cloud project, create one. Click on the project selector at the top and then “New Project.” Give it a name and select a billing account (you need a billing account to use paid Google Cloud services, but the Custom Search API has a free tier, although very limited). 
  • If you already have a project, select it from the project selector.
AD 4nXcf1VBagagFZiD0t7vhNoGQIlpji3ocdyHxC63tCaxP JDZBdDuwD8Ji3xCS4EmKpLEYq2L5N1brhkieWpUTRbp2zCkfjEAOkCyae4SJCbtX7lZoRuJhkE7x14azim27RRQBdX RA?key= 4TZxpew54 GFraKACe9Aimv

2) Enable the Custom Search API: 

  • In the Google Cloud Console, search for “Custom Search API” in the search bar at the top. 
AD 4nXcsh3yoZE6lCUSNZ SvNi73iEBrSukKZ13woPrQ 2s 9NkayGWiPmjIESZw8tewiEOyuImdvhNGCFovQbXTQFPfm5 Nv8SM4UA89DCbWLjRAN3lYCmAMdO8 D9I5eDkp9xxjFIQ?key= 4TZxpew54 GFraKACe9Aimv
  • Click on the “Custom Search API” result. This will take you to the API’s overview page.
  • Click the “Enable” button. It might take a few moments to enable the API.
AD 4nXfGCwmQq2zT64joOZtvG0mVY X4UAk3U FMosUvsHhYza0uldnz8i0eXWBtD9IQOG RPayxPLcn54yzhPfMaazFHFi5q3Gzj OlTzpQHA C5F7fw86RvVqtJc P34sYD I JZjK9A?key= 4TZxpew54 GFraKACe9Aimv

3) Get Your API Key: 

  • In the Google Cloud Console (not the Custom Search Engine control panel), go to “APIs & Services” > “Credentials” (or search for “Credentials” in the console’s search bar).
Annotation On 2025 02 28 At 20 12 48 1024x561
Annotation On 2025 02 28 At 20 47 08 1024x494
  • Click “+ CREATE CREDENTIALS” at the top.
AD 4nXdKwuAed IbT VMlKEPPAMqHfwt0O7IL7K3nGM7KCs9frJFFy5MHYg8guI1Dh8Guhw3N8WBVF7PB1WPbrl4xMvrXtCphnl 7dpGLVpH9SCyDSGS15IligRal9AopXfgwe MhG3Xkw?key= 4TZxpew54 GFraKACe9Aimv
  • Choose “API key”. A popup will show your API key. Copy this key.
AD 4nXfVJPTeTi2mA2J7sRcvbd6Im Jqu4Dh Ao4tjlS5ECA9VV RXTMk 5L1 TXklZX56EjEdYvUwE VnQYKRHx5hl3snEwmRyAbsg7Qy8oIMVNVSHrve Vqcw0bvoBnWcp0m2jwg5cXQ?key= 4TZxpew54 GFraKACe9Aimv
AD 4nXdaor JSRrlUeh5g1rf AmiM07sVIzdVTenVqNu8eyNuR T8su6LKO 6vCqRs6MspPWnRL7xO2khq5Q9ccBD07sTvHVQ4GYJKBr0zustnR2M K 7wJBR NgdHh6g6I66cJuHNup9Q?key= 4TZxpew54 GFraKACe9Aimv

4) Create a Custom Search Engine: 

  • Go to the Custom Search Engine control panel: https://cse.google.com/cse/all
  • Click “Add”. 
  • Sites to Search: Enter the websites you want to search. Select: Search the entire web (leave the field empty or use *). Be careful with this, as it consumes more API quota. Give a name: Give your search engine a name.
  • Click “Create”
AD 4nXe QBzh8rDjSReepL1nuzW5YZw0XtBTE 3R LKp7ehcsGfVotPSnguWtRH2tG5pyLs JXfaZowc7EmItaYz7 O6QyyGg0fkM619rPnaPUorTb1oPnLtAxJWrQqGl884YTJb0p6JCQ?key= 4TZxpew54 GFraKACe9Aimv

5) Get Your Search Engine ID: 

  • After creating the search engine, you’ll be taken to the confirmation page. 
  • In the script, you will see an id with “cx=”
  • Copy the value shown shown after “cx=”
AD 4nXfNzXG2dUEk7PECzSxAKt0bIbUVt BbdxIch JCuiJ9qPgBTjlEoAZuKdrtYt5zVG U 5rVxLyiIkPPFtutUqKLEqstzmm341TtA4cn1gy3jF59j96LjBByPZShRdyv4nFIYg?key= 4TZxpew54 GFraKACe9Aimv
  • This is your cx (Search Engine ID). It will look something like fc1234567890123456789

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top