SERP
Google SERP
Real-time Google search results — organic rankings, paid ads, featured snippets, People Also Ask, knowledge graphs, local packs, and 30+ rich result types.
POST
$0.01/call/v1/serp/googleUsage
const res = await fetch('https://api.yepapi.com/v1/serp/google', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ query: 'best react frameworks 2026', depth: 10 }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/serp/google \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "best react frameworks 2026", "depth": 10}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
query | string | Yes | Search query to look up on Google | — |
depth | number | No | Number of results to return | 10 |
location_code | number | No | Target country code (e.g., 2840 for US). See Location Codes. | 2840 |
language | string | No | ISO language code (e.g., en, es) | "en" |
Response
{
"ok": true,
"data": {
"query": "pizza near me",
"totalResults": 1470000000,
"itemTypes": [
"paid",
"localPack",
"organic",
"peopleAlsoAsk",
"relatedSearches"
],
"results": [
{
"position": 1,
"type": "paid",
"title": "Pizza Delivery - Order Online Now",
"url": "https://www.dominos.com/",
"description": "Get hot, fresh pizza delivered to your door. Order online for exclusive deals.",
"domain": "www.dominos.com",
"data": {
"breadcrumb": "https://www.dominos.com",
"highlighted": ["Pizza Delivery", "Order Online"],
"extra": {
"type": "organic",
"links": [
{
"title": "Order Pizza Online",
"url": "https://www.dominos.com/pages/order/"
}
]
},
"descriptionRows": ["Free delivery on orders over $20"]
}
},
{
"position": 2,
"type": "localPack",
"title": "Joe's Pizza",
"url": "",
"description": "",
"domain": "",
"data": {
"rating": {
"ratingType": "Max5",
"value": 4.7,
"votesCount": 2341
},
"phone": "+1-212-555-0199",
"address": "7 Carmine St, New York, NY 10014",
"cid": "12345678901234567890",
"isMapsItem": true
}
},
{
"position": 5,
"type": "organic",
"title": "Best Pizza Near Me - Find Local Pizza Restaurants",
"url": "https://www.yelp.com/search?find_desc=pizza",
"description": "Find the best pizza near you with Yelp's comprehensive directory of local pizza restaurants, reviews, and ratings.",
"domain": "www.yelp.com",
"data": {
"breadcrumb": "www.yelp.com > search",
"websiteName": "Yelp",
"isFeaturedSnippet": false,
"isImage": false,
"isVideo": false,
"highlighted": ["pizza", "near"],
"links": [
{
"type": "link_element",
"title": "Pizza Delivery",
"url": "https://www.yelp.com/search?find_desc=pizza+delivery"
}
],
"rating": {
"ratingType": "Max5",
"value": 4.2,
"votesCount": 890
}
}
},
{
"position": 8,
"type": "peopleAlsoAsk",
"title": "People also ask",
"url": "",
"description": "",
"domain": "",
"data": {
"items": [
{
"type": "peopleAlsoAskElement",
"title": "What is the best pizza chain?",
"expandedElement": [
{
"type": "peopleAlsoAskExpandedElement",
"title": "Best Pizza Chains Ranked",
"url": "https://www.example.com/best-pizza-chains",
"domain": "www.example.com",
"description": "According to a nationwide survey..."
}
]
}
]
}
},
{
"position": 11,
"type": "relatedSearches",
"title": "",
"url": "",
"description": "",
"domain": "",
"data": {
"items": [
"best pizza delivery near me",
"pizza places open now",
"cheap pizza near me"
]
}
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.query | string | The search query that was executed |
data.totalResults | number | Estimated total number of Google results for the query |
data.itemTypes | string[] | Distinct result types present in this SERP (e.g. ["organic", "paid", "localPack"]) |
data.results | object[] | Array of search result items |
data.results[].position | number | Position in search results (1-indexed) |
data.results[].type | string | Result type — see Supported Result Types below |
data.results[].title | string | Title of the search result |
data.results[].url | string | URL of the search result page |
data.results[].description | string | Snippet or meta description shown in the SERP |
data.results[].domain | string | Domain of the result URL |
data.results[].data | object | null | Type-specific extra fields (see below for per-type details) |
Supported Result Types
Every Google SERP can contain a mix of the following result types. Each type includes type-specific fields in the data object.
| Type | Description |
|---|---|
organic | Standard organic search results |
paid | Paid search ads (Google Ads) |
featuredSnippet | Featured snippet / answer box at position zero |
peopleAlsoAsk | "People also ask" expandable questions |
relatedSearches | Related search queries |
peopleAlsoSearch | "People also search for" suggestions |
localPack | Local business results from Google Maps |
knowledgeGraph | Knowledge panel (entity info, Wikipedia, etc.) |
video | Video results (YouTube, etc.) |
topStories | Top stories / news carousel |
images | Image results pack |
shopping | Google Shopping product results |
twitter | Twitter/X results carousel |
answerBox | Direct answer box |
events | Event listings |
jobs | Job listing results |
recipes | Recipe results with ratings |
topSights | Tourist attraction results |
scholarlyArticles | Academic paper results |
popularProducts | Popular product listings |
hotelsPack | Hotel listings with prices |
googleFlights | Flight results |
googleReviews | Google review results |
thirdPartyReviews | Third-party review aggregations |
googlePosts | Google business posts |
carousel | Single carousel of results |
multiCarousel | Multi-row carousel |
mentionCarousel | Mention/brand carousel |
app | App install results |
map | Map embed results |
Type-Specific data Fields
Below are the key fields available in data for common result types. All field names use camelCase.
organic
| Field | Type | Description |
|---|---|---|
breadcrumb | string | URL breadcrumb trail shown in the SERP |
websiteName | string | Display name of the website |
isImage | boolean | Whether an image thumbnail is shown |
isVideo | boolean | Whether a video thumbnail is shown |
isFeaturedSnippet | boolean | Whether this result is also a featured snippet |
isMalicious | boolean | Whether Google flagged this as potentially malicious |
preSnippet | string | Text shown before the main description |
extendedSnippet | string | Additional snippet text |
highlighted | string[] | Search terms highlighted in the snippet |
links | object[] | Sitelinks — each with title, url, description |
faq | object[] | FAQ items — each with question, answer |
rating | object | Star rating — ratingType, value, votesCount, bestRating |
price | object | Price info — current, currency, displayedPrice |
timestamp | string | Date shown in the result |
ampVersion | boolean | Whether AMP version exists |
aboutThisResult | object | "About this result" panel data |
relatedResult | object[] | Related results shown inline |
paid
| Field | Type | Description |
|---|---|---|
breadcrumb | string | Display URL path |
highlighted | string[] | Highlighted terms in the ad |
extra | object | Extended ad content |
descriptionRows | string[] | Additional description lines |
links | object[] | Ad sitelinks — title, url, description |
faq | object[] | FAQ extensions |
rating | object | Seller rating |
price | object | Price extension data |
featuredSnippet
| Field | Type | Description |
|---|---|---|
featuredTitle | string | Title of the featured content |
images | object[] | Images shown in the snippet |
table | object | Table data if the snippet contains a table |
peopleAlsoAsk
| Field | Type | Description |
|---|---|---|
items | object[] | Array of questions, each with title, expandedElement[] |
localPack
| Field | Type | Description |
|---|---|---|
rating | object | Business rating — value, votesCount, ratingType |
phone | string | Business phone number |
address | string | Business street address |
cid | string | Google Maps CID identifier |
isMapsItem | boolean | Whether this links to Google Maps |
knowledgeGraph
| Field | Type | Description |
|---|---|---|
subTitle | string | Entity subtitle / category |
cardId | string | Knowledge Graph card identifier |
items | object[] | Key-value attribute items |
images | object[] | Associated images |
shopping
| Field | Type | Description |
|---|---|---|
items | object[] | Product items with title, price, source, url, rating, deliveryInfo |
video
| Field | Type | Description |
|---|---|---|
items | object[] | Video items with title, url, source, date, thumbnail |
Under the Hood
Under the hood, this queries our advanced SERP engine. We normalize the response format, convert all field names to camelCase, and pass through all type-specific data in the data field. The exact fields available in data depend on what Google returns for a given query and result type.