Google SERP API: Get Structured Search Results with One Request
The first step in many tasks is simply "search for it": conducting industry research, monitoring keyword rankings, feeding real-time information to AI Agents, verifying information in bulk... But scraping Google directly is troublesome and unreliable—you have to deal with anti-scraping measures, CAPTCHAs, and changes to page structure.
The Google SERP API makes this simpler: you provide a keyword, and it returns structured JSON—organic results, knowledge graphs, related questions, and related searches are all categorized and ready to use. This article explains how to use this API on Ace Data Cloud. The endpoint is POST https://api.acedata.cloud/serp/google, and the documentation is at platform.acedata.cloud/documents/serp-google. Go to the console to configure an application and Key with permission to access the service you want to call. Check the application's balance and the current service price before making a call.
¶ Basic Usage
The simplest way to use it is to provide a query:
curl -X POST 'https://api.acedata.cloud/serp/google' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"type": "search",
"query": "nano banana image model",
"country": "US",
"language": "en",
"number": 5
}'
Below are the organic results actually returned by this request (excerpted; the cost is also from the actual record—it was 0.0092 credit this time):
The following example only shows the response structure. Search rankings vary over time and by region and language.
{
"organic": [
{"position": 1, "title": "Nano Banana 2 - Gemini AI image generator & photo editor", "link": "https://gemini.google/overview/image-generation/"},
{"position": 2, "title": "Nano Banana | Google AI Studio", "link": "https://aistudio.google.com/models/nano-banana"},
{"position": 3, "title": "Nano Banana: Free Online AI Image Editor", "link": "https://nanobanana.io/"},
{"position": 4, "title": "Gemini Image – Nano Banana - Google DeepMind", "link": "https://deepmind.google/models/gemini-image/"},
{"position": 5, "title": "Nano Banana image generation - Interactions API", "link": "https://ai.google.dev/gemini-api/docs/image-generation"}
],
"people_also_ask": [ ... ],
"related_searches": [ ... ],
"cost": {"amount": 0.0092, "currency": "credit", "list_amount": 0.01}
}
The response is returned synchronously, so there's no need to poll. Each result includes position (ranking), title, link, and snippet; some also include sitelinks.
¶ Key Fields
Common request fields:
type: Search resource type, defaults tosearch; the platform also supports six types, including images and news—change thetypeto search for images or news;query: Keyword (required);country/language: Country and language for the results, default to US / en—change these two when checking rankings in different markets;range: Time range (for example, only results from the past week);number/page: Number of results per page and page number.
Besides organic (organic results), common response fields include:
knowledge_graph: Entity card (official website, description, and key attributes of a company or person), useful when searching for a brand or person;people_also_ask: Related questions, a ready-made source of long-tail keywords for content ideas;related_searches: Related search terms.
¶ What You Can Do With It
- Keyword ranking monitoring: Search for the same set of keywords on a schedule and record each domain's
positionto track SEO rankings; - Give AI Agents real-time information: Large language models have a knowledge cutoff; adding SERP results to the context lets them answer based on "current, real search results," a common component of RAG / web-connected Q&A;
- Content ideas: Use
people_also_askandrelated_searchesto find out what users are actually asking, so you don't have to guess at topics; - Competitors and public sentiment: Change
typeto news and monitor the latest reports on a keyword on a schedule.
Because the response is clean JSON, you don't need to parse HTML for any of these tasks; a few lines of code can turn them into scheduled jobs.
¶ A Note on Revenue
"Infrastructure-type" APIs like SERP are among the easiest to turn into resellable services: a ranking monitoring dashboard, a content idea assistant, or a web search tool for someone else's Agent—all use just this one API underneath, and your cost is the usage-based charge for each query (such as the 0.0092 credit in the example above). Distributing your tool or registration link and earning commissions through the Ace Data Cloud Revenue Alliance when users who register through you spend is a way to earn additional income.
¶ Reference Links
- Documentation: https://platform.acedata.cloud/documents/serp-google
- Endpoint:
POST https://api.acedata.cloud/serp/google - Get a Token: https://platform.acedata.cloud/console/applications
After confirming the application's available credit and the cost per call, you can use one keyword to verify the response structure, then integrate it into your own tool.
