For Agents
Run Google web searches scoped to a Programmable Search Engine and return ranked results with titles, snippets, and links so an agent can answer questions or feed retrieval pipelines.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Custom Search API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Custom Search API.
Run a query against a custom search engine and return ranked web results
Restrict results to the sites configured on the engine using the siterestrict variant
Paginate through up to 100 results per query using start and num parameters
GET STARTED
Use for: I need to search the web for documentation about a product, Search our company sites for a specific term using a custom engine, Get the top 10 results for a query restricted to our docs domain, Find images matching a query using a custom search engine
Not supported: Does not crawl, index, or modify search results — use only to query a Programmable Search Engine and read ranked results.
Google Custom Search API (Programmable Search Engine) returns Google web search results scoped to one or more sites or to the wider web. It exposes a single endpoint that accepts a query, a custom search engine ID, and optional filters such as result language, safe-search level, country restriction, and start offset for pagination. A site-restricted variant returns only results from the configured engine's domains. Output includes title, snippet, link, and rich result metadata that match what end users would see on google.com.
Filter by language, country, safe-search, and date range
Return image search results when the engine is configured for image search
Surface rich result metadata such as snippet, displayLink, and pagemap structured data
Patterns agents use Custom Search API for, with concrete tasks.
★ Site-Scoped Knowledge Lookup
A documentation chatbot uses Custom Search API with a Programmable Search Engine restricted to docs.example.com. The chatbot calls cse.siterestrict.list, takes the top three snippets, and grounds its response in the matching docs pages. Results return in well under a second per query.
Run a siterestrict search with cx='abc123' and q='refund policy', return the top 3 results' title, snippet, and link.
Web Retrieval for RAG
A retrieval-augmented generation pipeline calls the open Custom Search endpoint to fetch the latest web pages relevant to a user's question. The pipeline scrapes the returned links, embeds them, and supplies the chunks to a language model. Custom Search keeps freshness and ranking aligned with google.com results.
Search the web for 'gke 1.30 release notes', return the top 5 result links and snippets to feed into a RAG indexer.
Brand Monitoring Snapshot
A marketing team runs the Custom Search API daily for a list of brand and competitor terms, recording the top results' rank, link, and snippet in a warehouse. Trends in who appears for each term feed a brand-visibility dashboard. The 100-query free quota covers most small brand programmes.
For each term in ['acme cloud', 'acme storage'], retrieve the top 10 organic results and store rank, link, and snippet in BigQuery.
AI Agent Web Search Tool
An AI agent that needs current information about an external topic asks Jentic for the Custom Search API operation, supplies the cx and query, and receives results. Jentic isolates the API key in its vault, so the agent never holds the long-lived key directly.
Search the web for the current Kubernetes stable release using cx='abc123' and return the top 3 result snippets.
2 endpoints — google custom search api (programmable search engine) returns google web search results scoped to one or more sites or to the wider web.
METHOD
PATH
DESCRIPTION
/customsearch/v1
Run a search query against a custom search engine
/customsearch/v1/siterestrict
Run a search restricted to the engine's configured sites
/customsearch/v1
Run a search query against a custom search engine
/customsearch/v1/siterestrict
Run a search restricted to the engine's configured sites
Three things that make agents converge on Jentic-routed access.
Credential isolation
The Custom Search API key is stored encrypted in the Jentic vault and injected into the 'key' query parameter at execution time. Agents never see the raw API key string.
Intent-based discovery
Agents search Jentic for 'google web search' and Jentic returns the cse.list and cse.siterestrict.list operations with their full input schemas (cx, q, num, start, lr, gl, safe).
Time to first call
Direct integration: a few hours to handle key rotation, pagination, and quota tracking. Through Jentic: under 15 minutes by composing search, load, and execute on the customsearch endpoint.
Alternatives and complements available in the Jentic catalogue.
Specific to using Custom Search API through Jentic.
What authentication does the Custom Search API use?
The Custom Search API uses an API key passed as the 'key' query parameter. Through Jentic the API key is stored encrypted in the Jentic vault and injected into requests at execution time, so the raw key never appears in the agent's context.
Can I get more than 10 results per query from the Custom Search API?
Yes, in pages. Each call returns at most 10 results; set the 'start' parameter (1, 11, 21...) and 'num' (max 10) to paginate. The API supports retrieving the first 100 results for a given query.
What are the rate limits for the Custom Search API?
The Custom Search API allows 100 free queries per day per project, with paid tiers available for higher volume up to 10,000 queries per day per engine. Per-second QPS limits also apply; check the Programmable Search Engine pricing page for current ceilings.
How do I run a Google web search through Jentic?
Run pip install jentic, search Jentic for 'google custom search query', load the schema for the cse.list operation on customsearch.googleapis.com, and execute it with your cx (engine ID) and q (query) parameters.
Does the Custom Search API let me search the entire web like google.com?
Only when the linked Programmable Search Engine is configured to search the whole web. By default an engine targets a specific list of sites; toggle 'Search the entire web' in the Programmable Search Engine console to widen the scope.