Google Custom Search JSON API: Complete Guide, Pricing, Limits & Examples
Google Custom Search JSON API lets developers programmatically retrieve
Google search results (web and images) from a
Programmable Search Engine using RESTful requests.
This guide covers setup, API keys, CX ID, request examples, pricing,
limitations, and scalable alternatives like ExpertRec.
Table of Contents
Trusted Website Search by 10,000+ Sites
Deliver fast, AI-powered search results that help visitors find content instantly and convert better.
⭐ 4.8/5 Rating
🔒 GDPR Compliant
⚡ 5 Min Setup
No credit card required • Free setup
What is Google Custom Search JSON API?
The Google Custom Search JSON API is a RESTful API that returns
Google search results in JSON format. It works with Google’s
Programmable Search Engine and allows developers to build custom search
interfaces for websites and applications.
- Web search results
- Image search support
- Site-restricted or multi-site search
- Custom UI with Google-powered results
Things to Do Before You Begin
- Create a Programmable Search Engine
- Retrieve your Search Engine ID (CX)
- Generate a Custom Search API key
- Enable billing if needed
Create a Custom Search Engine
- Visit https://cse.google.com
- Click Create
- Add your website or list of URLs
- Configure language and region
- Finish setup
Get Your Search Engine ID (CX)
The CX ID uniquely identifies your Programmable Search Engine.
- Open the search engine control panel
- Edit search engine
- Go to Basics → Details
- Copy the Search engine ID
Get Your Custom Search API Key
- Go to
Google Custom Search API overview
- Click Get a key
- Create or select a Google Cloud project
- Generate and restrict your API key
Request Format & Parameters
https://www.googleapis.com/customsearch/v1
Required Parameters
- key – API key
- cx – Search Engine ID
- q – Search query
Optional Parameters
- num – Number of results (max 10)
- start – Pagination
- searchType – image
- fileType – PDF, DOC, etc.
Sample API Request
https://www.googleapis.com/customsearch/v1?
key=YOUR_API_KEY
&cx=YOUR_CX_ID
&q=rocket+propulsion
&num=10
Pricing & Quota Limits
- 100 free queries per day
- $5 per 1,000 additional queries
- Maximum 10,000 queries per day
High-traffic websites can quickly incur significant costs.
Monitoring API Usage
Monitor usage via Google Cloud Console → API Dashboard
or use Google Cloud Operations for alerts and dashboards.
Limitations of Google Custom Search JSON API
- Maximum 10 results per request
- Daily query limits
- Expensive at scale
- Ads may appear
ExpertRec: A Scalable Alternative
ExpertRec provides a site search API priced by
number of pages, not queries.
- Unlimited searches
- No ads
- Fast performance
- Multi-site support
Google Custom Search vs ExpertRec
| Feature | Google Custom Search API | ExpertRec |
|---|---|---|
| Pricing model | Per query | Per page |
| Query limits | Yes | No |
| Ads | Possible | No ads |
| Best for | Low-volume search | High-traffic sites |
Frequently Asked Questions
How many free searches does the API allow?
Google allows 100 free queries per day.
What is a CX ID?
It is the unique identifier of your Programmable Search Engine.
Is there a cheaper alternative?
Yes. ExpertRec offers unlimited queries with predictable pricing.




