google-111-112
google-111-112
google-111-112-113-114-115-116-117-118-119-210
Google Search is evolving from a traditional link-based list into an AI-powered agent. Using the Gemini model, it now dynamically generates interactive tables, mini-apps, and summaries. Despite this AI integration, its core foundation still relies on the web, maintained through regular crawling, indexing, and ranking of webpages.
# Google CSE: The Complete Guide to Google Custom Search Engine
What if you could build Google — but only for the websites you care about? That's exactly what Google CSE does.
### What is Google CSE?
**Google Custom Search Engine (CSE)**, now officially rebranded as **Google Programmable Search Engine**, is a platform that lets anyone create a custom search engine powered by Google's core search technology.
Instead of searching the entire web, you define *where* it searches and *how* it ranks results.
It was launched as Google Co-op, then became Custom Search, and today lives at **programmablesearchengine.google.com**. Google says it enables you to create a search engine for your website, your blog, or a collection of websites. You can fine-tune the ranking, add promotions and customize the look and feel.
In simple terms: you provide the list of sites, Google provides the index, ranking, and UI.
### How It Works
Every CSE is built on two IDs:
1. **Search Engine ID (cx)** - You create this at programmablesearchengine.google.com. It defines the scope: which sites, whether to search the entire web, image search on/off.
2. **API Key** - Created in Google Cloud Console after enabling Custom Search API. This authenticates programmatic calls.
Your application then calls the Custom Search JSON API with `key + cx + query` and gets Google results back in JSON. The free tier grants 100 queries/day, paid tier is $5 per 1000 queries.
There are two ways to use it:
- **Element / Embedded version:** A ready-made search box you paste into your website. No coding.
- **JSON API:** For developers, AI agents, apps, and automation. This is what most people mean today when they say "Google CSE API".
### Key Features
- **Site-restricted search:** Search only your own domain, e.g., `example.com`, or a curated list of up to 10,000 sites.
- **Whole-web mode:** You can opt to search the whole web instead, but with boosting/burying rules.
- **Look and feel control:** Remove Google branding (paid), customize result layout, enable autocomplete, thumbnails via `pagemap.cse_thumbnail`.
- **Ranking tweaks:** Add synonyms, boost specific sites, add promotions for certain keywords.
- **Monetization:** Connect to Google AdSense to show ads in your CSE and earn revenue.
- **Image and SafeSearch:** Supports web + image search, with language and SafeSearch controls.
- **Structured search:** Can restrict to sites that contain specific schema.
### How to Create Your Own CSE in 5 Minutes
1. Go to https://programmablesearchengine.google.com/ and click **Add**
2. Under "What to search?" choose:
- `Search only these sites` - Enter domains like `wikipedia.org, nasa.gov`
- or `Search the entire web` - Then use refinements later
3. Give it a name, click Create. Copy the **Search Engine ID (cx)** from Overview tab.
4. Go to Google Cloud Console > Enable **Custom Search API** > Create API Key.
5. Test: `https://www.googleapis.com/customsearch/v1?key=YOUR_KEY&cx=YOUR_CX&q=your query`
You can now embed the code Google gives you, or call the API from Python, Node, etc.
### Is It Free? Pricing in 2026
Google CSE is not unlimited free anymore.
- **Free:** 100 queries per day via JSON API. Enough for personal projects and testing.
- **Paid:** $5 per 1000 queries, up to 10,000 queries per day. Beyond that you need to request higher quota or move to enterprise.
- **Site-Restricted JSON API:** The old `siterestrict` endpoint that gave 10k free queries was discontinued Jan 2025.
For the embedded website search box (non-API), you can have free ad-supported version, or ad-free paid version via Google Cloud billing.
**Important future change:** Google has announced it will shut down the Custom Search JSON API on January 1, 2027, pushing users toward Vertex AI Search. If you are building a new product, plan for migration.
### Where People Actually Use It
- **Website internal search:** Replace WordPress default search with real Google quality.
- **Niche vertical search:** Like an agricultural search engine that only searches trusted farming universities and gov sites.
- **AI agents and RAG:** Developers use CSE as the cheapest way to get Google's organic results for AI tools.
- **Content curation:** Create a search engine that excludes Reddit, Pinterest, or Wikipedia when you want primary sources.
- **Research dashboards:** Companies build private search over competitors, docs, and Stack Overflow.
### Pros and Cons
**Pros:**
- Instantly get Google's index without crawling yourself
- Extremely fast setup, no infrastructure
- Highly trusted relevance ranking
**Cons:**
- 100/day free limit is tiny
- No full control over index freshness - if Google hasn't indexed a page, your CSE won't find it
- Results can still include ads unless you pay / use JSON API properly
- Future is uncertain with 2027 JSON API sunset
### Alternatives
If CSE limits don't fit you: SerpAPI, Serper, Bing Custom Search, Brave Search API, or building on Vertex AI Search / Algolia for your own content.
---
Want me to write a step-by-step tutorial with Python code to call CSE, or help you create a CSE for a specific topic - like only Telangana news sites, or only tech blogs?
