Google SERP
Parse a Google search results page into structured organic results, ads, related searches, knowledge panels, and "People also ask" boxes.
API usage
Add &scraper=google-serp to a Crawling API request. URL-encode the target URL in the url parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.google.com/search?q=samsung+social+accounts' \
--data-urlencode 'scraper=google-serp' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.google.com/search?q=samsung+social+accounts',
{'scraper': 'google-serp'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.google.com/search?q=samsung+social+accounts',
{ scraper: 'google-serp' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.google.com/search?q=samsung+social+accounts', scraper: 'google-serp')
data = JSON.parse(res.body)Example input URL
The URL passed in the url parameter (URL-decoded for readability):
https://www.google.com/search?q=samsung+social+accountsResponse shape
JSON response body. Field types may be null when the source page omits the value.
Search query.
Organic search results.
Result title.
Result destination URL.
Description text shown under the title.
Optional sitelinks under the main result.
Sponsored ads with the same shape as
results[]."Searches related to" suggestions.
PAA section with question/answer pairs.
Knowledge panel block when present.
Sample response
{
"query": "samsung social accounts",
"results": [
{
"title": "Samsung Mobile (@SamsungMobile) / X",
"url": "https://x.com/SamsungMobile",
"snippet": "The official Samsung Mobile X account…"
}
],
"related_searches": ["samsung instagram", "samsung official tiktok"],
"people_also_ask": [
{
"question": "Does Samsung have a TikTok?",
"answer": "Yes, Samsung is on TikTok at @samsung."
}
]
}
