Search Types
Introduction
The SERP API supports multiple Google search types beyond standard web search. Use the search_type parameter to specify which type of search results you want to retrieve.
INFO — Available Search Types
search- Standard web search (default) — includes AI Overview when availablenews- Google News articlesvideos- Video search resultsimages- Image search resultsmaps- Google Maps/local business resultsai- Google AI Mode — full AI-generated answers with cited sources
Google News Search
If you want to perform a Google News search, you can use the following example query. This retrieves results specific to news articles based on the specified search term.
curl --location 'https://api.ujeebu.com/serp?results_count=20&search_type=news&search=Donald%20Trump' \
--header 'ApiKey: <API Key>'
The example code provided returns a JSON response formatted as follows:
{
"metadata": {
"google_url": "https://www.google.com/search?gl=US&hl=en&num=10&q=Donald+Trump&tbm=nws",
"number_of_results": 62800000,
"query_displayed": "Donald Trump",
"results_time": "0.25 seconds"
},
"news": [
{
"date": "LIVE2 hours ago",
"description": "The House has passed the spending measure to fund the government through September 30. Meanwhile, President Volodymyr Zelensky said Ukraine...",
"favicon": "data:image/png;base64,iVBOR...",
"image": "data:image/jpeg;base64,/9j/4AA...",
"link": "https://www.cnn.com/politics/live-news/trump-administration-presidency-ukraine-03-11-2025/index.html",
"position": 1,
"siteName": "CNN",
"title": "Live updates: Trump tariff threats; Government funding bill House vote; US-Ukraine talks"
},
{
"date": "30 minutes ago",
"description": "President Donald Trump's threat to double his planned tariffs on steel and aluminum from 25% to 50% for Canada has led the provincial...",
"favicon": "data:image/png;base64,iVBOR...",
"image": "data:image/jpeg;base64,/9j/4AA...",
"link": "https://apnews.com/article/trump-economy-tariffs-stock-musk-business-8a5f28d9bb16e0b8a924d99ead0907fa",
"position": 2,
"siteName": "AP News",
"title": "Trump halts doubling of tariffs on Canadian metals after Ontario suspends electricity price hikes"
}
// ... more news results
],
"pagination": {
"google": {
"current": "https://google.com/search?gl=US&hl=en&num=10&q=Donald+Trump&tbm=nws&",
"next": "https://google.com/search?gl=US&hl=en&num=10&q=Donald+Trump&start=20&tbm=&",
"other_pages": {
"3": "https://google.com/search?gl=US&hl=en&num=10&q=Donald+Trump&start=30&tbm=&"
}
},
"api": {
"current": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=1&results_count=10&search=Donald+Trump&",
"next": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=2&results_count=10&search=Donald+Trump&"
}
}
}
Google Videos Search
To search for videos on Google programmatically, use the search_type=videos parameter along with other query parameters like language and results count. Below is an example:
curl --location 'https://api.ujeebu.com/serp?search=Bitcoin&timeout=90000&lang=en&results_count=10&search_type=videos' \
--header 'ApiKey: <API Key>'
The example code provided returns a JSON response formatted as follows:
{
"metadata": {
"google_url": "https://www.google.com/search?gl=US&hl=en&num=10&q=Bitcoin&udm=7",
"query_displayed": "Bitcoin"
},
"pagination": {
"google": {
"current": "https://google.com/search?gl=US&hl=en&num=10&q=Bitcoin&tbm=vid&",
"next": "https://google.com/search?gl=US&hl=en&num=10&q=Bitcoin&start=20&tbm=&"
},
"api": {
"current": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=1&results_count=10&search=Bitcoin&",
"next": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=2&results_count=10&search=Bitcoin&"
}
},
"videos": [
{
"author": "CNBC Television",
"date": "6 hours ago",
"description": "On today's episode of CNBC Crypto World, bitcoin jumps back above $80000 after a Monday sell-off...",
"position": 1,
"provider": "YouTube",
"site": "www.youtube.com",
"summary": "Bitcoin rebounds after falling to its lowest level since ... by CNBC Television on YouTube. Play on YouTube. 10:03. 6 hours ago",
"title": "Bitcoin rebounds after falling to its lowest level since ...",
"url": "https://www.youtube.com/watch?v=ts0VTnXMs9I"
},
{
"author": "Swan Bitcoin",
"date": "5 hours ago",
"description": "Trump just signed an executive order making Bitcoin a strategic reserve asset—yet the market reacted by dumping. Why?",
"position": 2,
"provider": "YouTube",
"site": "www.youtube.com",
"summary": "Historic WIN For Bitcoin - What's Happening With the Price? by Swan Bitcoin on YouTube. Play on Google. 11:33. 5 hours ago",
"title": "Historic WIN For Bitcoin - What's Happening With the Price?",
"url": "https://www.youtube.com/watch?v=NnE544z1JL0"
}
// ... more video results
]
}
Google Images Search
To search for images on Google programmatically, use the search_type=images parameter along with other query parameters like language and results count. Below is an example:
curl --location 'https://api.ujeebu.com/serp?search=Coffee&timeout=90000&lang=en&search_type=images' \
--header 'ApiKey: <API Key>'
The example code provided returns a JSON response formatted as follows:
{
"images": [
{
"google_thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRkRapDtN6JSis1bWCnMbqn3pmIEDeDY9t8tg&s",
"height": 2000,
"image": "https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg",
"link": "https://en.wikipedia.org/wiki/Coffee",
"position": 1,
"source": "Wikipedia",
"title": "Coffee - Wikipedia",
"width": 3200
},
{
"google_thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTsmD2K-wg4D2csngncAOMlxa1y5g_yToyicw&s",
"height": 405,
"image": "https://somedayilllearn.com/wp-content/uploads/2020/05/cup-of-black-coffee-scaled-720x405.jpeg",
"link": "https://somedayilllearn.com/how-to-make-black-coffee/",
"position": 2,
"source": "Someday I'll Learn",
"title": "How to Make Black Coffee that Tastes Good",
"width": 720
}
// ... more image results
],
"metadata": {
"google_url": "https://www.google.com/search?gl=US&hl=en&num=10&q=Coffee&udm=2",
"query_displayed": "Coffee"
},
"pagination": {
"google": {
"current": "https://google.com/search?gl=US&hl=en&num=10&q=Coffee&udm=2&",
"next": "https://google.com/search?gl=US&hl=en&num=10&q=Coffee&start=20&tbm=&"
},
"api": {
"current": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=1&results_count=10&search=Coffee&",
"next": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=2&results_count=10&search=Coffee&"
}
},
"suggestions": [
{
"google_link": "https://www.google.com/search?...",
"position": 1,
"thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAA...",
"title": "Cup",
"ujeebu_link": "https://api.ujeebu.com/serp?search_type=images&search=coffee%20cup..."
},
{
"google_link": "https://www.google.com/search?...",
"position": 2,
"thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAA...",
"title": "Cafe",
"ujeebu_link": "https://api.ujeebu.com/serp?search_type=images&search=cafe%20coffee..."
}
// ... more suggestions
]
}
Google Maps Search
You can also perform a Google Maps search by using the search_type=maps parameter. The example below shows how to retrieve map-related results programmatically:
curl --location 'https://api.ujeebu.com/serp?search=Italien%20restaurant&timeout=90000&lang=en&results_count=10&search_type=maps' \
--header 'ApiKey: <API Key>'
The example code provided returns a JSON response formatted as follows:
{
"maps_results": [
{
"address": "Brampton, ON",
"category": "·",
"cid": "1322681635158113553",
"opening_hours": null,
"position": 1,
"rating": 4.7,
"reviews": 370,
"title": "La Pergola Ristorante"
},
{
"address": "Burnaby, BC",
"category": "Italian",
"cid": "5098284575974088326",
"opening_hours": null,
"position": 2,
"rating": 4.6,
"reviews": 598,
"title": "Trattoria by Italian Kitchen"
},
{
"address": "Vancouver, BC",
"category": "·",
"cid": "9175025857835411475",
"opening_hours": null,
"position": 3,
"rating": 4.8,
"reviews": 911,
"title": "Nonna's Cucina \"Italian Street Food\""
}
// ... more map results
],
"metadata": {
"google_url": "https://www.google.com/search?gl=ca&hl=en&num=10&q=Italian+restaurant&tbm=lcl",
"query_displayed": "Italian restaurant"
},
"pagination": {
"google": {
"current": "https://google.com/search?gl=ca&hl=en&num=10&q=Italian+restaurant&tbm=lcl&",
"next": "https://google.com/search?gl=ca&hl=en&num=10&q=Italian+restaurant&start=20&tbm=&"
},
"api": {
"current": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=ca&page=1&results_count=10&search=Italian+restaurant&",
"next": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=ca&page=2&results_count=10&search=Italian+restaurant&"
}
}
}
Google AI Mode Search
Google AI Mode provides full AI-generated answers to questions, complete with cited sources. Use search_type=ai to access this feature. The API waits for Google's AI streaming response to complete before returning results.
TIP — AI Mode vs AI Overview
AI Mode (
search_type=ai) returns a full-page AI-generated answer — similar to asking a question to an AI assistant. AI Overview is automatically included in standard web search results (search_type=search) when Google shows one. It appears in theai_overviewfield alongside organic results.
curl --location 'https://api.ujeebu.com/serp?search=what%20is%20quantum%20computing&search_type=ai&lang=en' \
--header 'ApiKey: <API Key>'
The example code provided returns a JSON response formatted as follows:
{
"ai_results": {
"answer_text": "Quantum computing is a type of computation that harnesses quantum mechanical phenomena such as superposition and entanglement to process information. Unlike classical computers that use bits (0 or 1), quantum computers use qubits which can exist in multiple states simultaneously.\n\nKey Concepts\nSuperposition allows qubits to be in a combination of 0 and 1 at the same time.\nEntanglement links qubits so the state of one instantly influences another, regardless of distance.\nQuantum gates manipulate qubits to perform computations.\n\nApplications\nCryptography and secure communications\nDrug discovery and molecular simulation\nOptimization problems in logistics and finance\nMachine learning and artificial intelligence",
"text_blocks": [
{
"type": "paragraph",
"content": "Quantum computing is a type of computation that harnesses quantum mechanical phenomena such as superposition and entanglement to process information. Unlike classical computers that use bits (0 or 1), quantum computers use qubits which can exist in multiple states simultaneously."
},
{
"type": "heading",
"content": "Key Concepts"
},
{
"type": "list",
"content": [
"Superposition allows qubits to be in a combination of 0 and 1 at the same time.",
"Entanglement links qubits so the state of one instantly influences another, regardless of distance.",
"Quantum gates manipulate qubits to perform computations."
]
},
{
"type": "heading",
"content": "Applications"
},
{
"type": "list",
"content": [
"Cryptography and secure communications",
"Drug discovery and molecular simulation",
"Optimization problems in logistics and finance",
"Machine learning and artificial intelligence"
]
}
],
"citations": [
{
"title": "What is Quantum Computing?",
"link": "https://www.ibm.com/topics/quantum-computing",
"description": "Quantum computing is a rapidly-emerging technology that harnesses the laws of quantum mechanics to solve problems...",
"source": "IBM",
"src_id": "1"
},
{
"title": "Quantum Computing Overview",
"link": "https://en.wikipedia.org/wiki/Quantum_computing",
"description": "A quantum computer is a computer that exploits quantum mechanical phenomena...",
"source": "Wikipedia",
"src_id": "2"
},
{
"title": "Introduction to Quantum Computing",
"link": "https://www.microsoft.com/en-us/quantum/what-is-quantum-computing",
"description": "Learn about the fundamentals of quantum computing and how it differs from classical computing.",
"source": "Microsoft",
"src_id": "3"
}
],
"is_complete": true
},
"metadata": {
"google_url": "https://www.google.com/search?gl=US&hl=en&num=10&q=what+is+quantum+computing&udm=50",
"query_displayed": "what is quantum computing"
},
"pagination": {
"google": {
"current": "https://google.com/search?gl=US&hl=en&num=10&q=what+is+quantum+computing&udm=50&",
"next": "https://google.com/search?gl=US&hl=en&num=10&q=what+is+quantum+computing&start=20&udm=50&"
},
"api": {
"current": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=1&results_count=10&search=what+is+quantum+computing&search_type=ai&",
"next": "https://api.ujeebu.com/serp?device=desktop&lang=en&location=US&page=2&results_count=10&search=what+is+quantum+computing&search_type=ai&"
}
}
}
Spin up an API key in 60 seconds
Free tier: 5,000 credits, no card, full access to every endpoint on this page.