Google Knowledge Panel Result API
For some requests, Google search includes a Knowledge card block, typically on the right side. SERPHouse is able to extract and make sense of this information.
JSON structure overview
{
"knowledge_card": {
"title": "Apple ",
"subtitle": "Technology company ",
"description": "DescriptionApple Inc. is an American multinational technology company headquartered in Cupertino, California. Apple is the world's largest technology company by revenue, with US$394.3 billion in 2022 revenue. As of March 2023, Apple is the world's biggest company by market capitalization. Wikipedia ",
"stock_price": "AAPL (NASDAQ) $172.57 -0.94 (-0.54%) \r\nMay 12, 4:00 PM EDT - Disclaimer",
"founders": "Steve Jobs, Steve Wozniak, Ronald Wayne, Mike Markkula",
"customer_service": "1 (800) 275-2273",
"products": "iPhone, iPad, Apple Watch, Apple TV, iOS, macOS, AirTag, MORE",
"headquarters": "Cupertino, CA",
"founded": "April 1, 1976, Los Altos, CA",
"social_presence": [
{
"title": "Twitter",
"url": "https://twitter.com/Apple"
},
{
"title": "Instagram",
"url": "https://www.instagram.com/apple"
},
{
"title": "Facebook",
"url": "https://www.facebook.com/apple"
},
{
"title": "LinkedIn",
"url": "https://www.linkedin.com/company/apple"
},
{
"title": "YouTube",
"url": "https://www.youtube.com/user/Apple"
}
],
"people_also_search": [
{
"position": 1,
"image": "//encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT-eTCrepeVLSUFhJXrQ340Q_-IIcjSe_-yWgPObuYHBn50smEEPVIZ&s=0",
"title": "Imran Chaudhri"
},
{
"position": 2,
"image": "//encrypted-tbn0.gstatic.com/licensed-image?q=tbn:ANd9GcRVC5tZd9-oWAY1Hg2wG5INsbXG6AcbStM0bQ1Lt2QlnqUmhpgpDMXCkTpd-w9gRNmVZNmsDiU&s=19",
"title": "Ken Kocienda"
},
{
"position": 3,
"image": "//encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQXrpRWIla0QS8bfhyMNfLMSumI1aKihFPV46NVGQkJZYBLK8JcD_pe&s=0",
"title": "Steve Jobs"
},
{
"position": 4,
"image": "//encrypted-tbn0.gstatic.com/licensed-image?q=tbn:ANd9GcQQyjVDYdevm-ricsauEENDhviRiIkXOGbsgO_2qyZl-D5d57pgJCfz02-8zVqUUsGnHYejwT0&s=19",
"title": "Scott Forstall"
},
{
"position": 5,
"image": "//encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRP_5WVIo-p6VqsZB487qP32S96FjLReokrDk17SdQrtDIThT84pwkH&s=0",
"title": "Mike Matas"
},
{
"position": 1,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "Spotify"
},
{
"position": 2,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "IBM"
},
{
"position": 3,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "Google"
},
{
"position": 4,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "Microsoft Corporation"
}
]
}
}
Results for: Apple
https://api.serphouse.com/serp/live?q=Apple&domain=google.com&lang=en&device=desktop&serp_type=web&loc=Austin,Texas,United States&loc_id=1026201&verbatim=0&gfilter=0&page=1&num_result=100

Curl
Ruby
Python
Node.js
PHP
Java
GO
Curl
curl -X POST \
https://api.serphouse.com/serp/live \
-H 'accept: application/json' \
-H 'authorization: Bearer API_TOKEN' \
-H 'content-type: application/json' \
-d '{
"data": {
"domain":"google.com",
"lang":"en",
"q": "Apple",
"loc":"Texas,United States",
"device": "Apple",
"serp_type": "web"
}
}'
Ruby
require 'uri'
require 'net/http'
url = URI("https://api.serphouse.com/serp/live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request["authorization"] = 'Bearer API_TOKEN'
request.body = '{"data": {
"domain": "google.com",
"lang": "en",
"q": "Apple",
"loc": "Texas,United States",
"device": "desktop",
"serp_type": "web"
}}'
response = http.request(request)
puts response.read_body
Python
import requests, json
url = "https://api.serphouse.com/serp/live"
payload = json.dumps({
"data": {
"domain": "google.com",
"lang": "en",
"q": "Apple",
"loc": "Texas,United States",
"device": "desktop",
"serp_type": "web"
}
})
headers = {
'accept': "application/json",
'content-type': "application/json",
'authorization': "Bearer API_TOKEN"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Node.js
var axios = require('axios');
var data = JSON.stringify({
data: {
domain: 'google.com',
lang: 'en',
q: 'Apple',
loc: 'Texas,United States',
device: 'desktop',
serp_type: 'web'
}
});
var config = {
"method": "POST",
"url": "https://api.serphouse.com/serp/live",
"headers": {
"content-type": "application/json",
"authorization": "Bearer API_TOKEN"
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error){
console.log(error);
});
PHP
$client = new GuzzleHttp\Client();
$headers= [
'Authorization' => 'Bearer API_TOKEN',
'Content-Type' => 'Application/json',
];
$body = '{
"data" : {
"domain": "google.com",
"lang": "en",
"q": "Apple",
"loc": "Texas,United States",
"device": "desktop",
"serp_type": "web"
}}';
$request = new GuzzleHttp\Psr7\Request('POST','https://api.serphouse.com/serp/live', $headers, $body);
$res = $client->sendAsync($request)->wait();
Java
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
JSONObject jsonObject = new JSONObject();
JSONObject data = new JSONObject();
data.put("domain", "google.com");
data.put("lang", "en");
data.put("q", "Apple");
data.put("loc", "Texas,United States");
data.put("device", "desktop");
data.put("serp_type", "web");
jsonObject.put("data", data);
String bodyJson = jsonObject.toString();
RequestBody body = RequestBody.create(mediaType, bodyJson);
Request request = new Request.Builder()
.url("https://api.serphouse.com/serp/live")
.method("POST", body)
.addHeader("content-type", "application/json")
.addHeader("authorization", "Bearer API_TOKEN")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
GO
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.serphouse.com/serp/live"
payload := strings.NewReader(`{"data": {
"domain":"google.com",
"lang": "en",
"q": "Apple",
"loc": "Texas,United States",
"device": "desktop",
"serp_type": "web"}}
`)
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("accept", "application/json")
req.Header.Add("content-type", "application/json")
req.Header.Add("authorization", "Bearer API_TOKEN")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
{
...
"knowledge_card": {
"title": "Apple ",
"subtitle": "Technology company ",
"description": "DescriptionApple Inc. is an American multinational technology company headquartered in Cupertino, California. Apple is the world's largest technology company by revenue, with US$394.3 billion in 2022 revenue. As of March 2023, Apple is the world's biggest company by market capitalization. Wikipedia ",
"stock_price": "AAPL (NASDAQ) $172.57 -0.94 (-0.54%) \r\nMay 12, 4:00 PM EDT - Disclaimer",
"founders": "Steve Jobs, Steve Wozniak, Ronald Wayne, Mike Markkula",
"customer_service": "1 (800) 275-2273",
"products": "iPhone, iPad, Apple Watch, Apple TV, iOS, macOS, AirTag, MORE",
"headquarters": "Cupertino, CA",
"founded": "April 1, 1976, Los Altos, CA",
"social_presence": [
{
"title": "Twitter",
"url": "https://twitter.com/Apple"
},
{
"title": "Instagram",
"url": "https://www.instagram.com/apple"
},
{
"title": "Facebook",
"url": "https://www.facebook.com/apple"
},
{
"title": "LinkedIn",
"url": "https://www.linkedin.com/company/apple"
},
{
"title": "YouTube",
"url": "https://www.youtube.com/user/Apple"
}
],
"people_also_search": [
{
"position": 1,
"image": "//encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT-eTCrepeVLSUFhJXrQ340Q_-IIcjSe_-yWgPObuYHBn50smEEPVIZ&s=0",
"title": "Imran Chaudhri"
},
{
"position": 2,
"image": "//encrypted-tbn0.gstatic.com/licensed-image?q=tbn:ANd9GcRVC5tZd9-oWAY1Hg2wG5INsbXG6AcbStM0bQ1Lt2QlnqUmhpgpDMXCkTpd-w9gRNmVZNmsDiU&s=19",
"title": "Ken Kocienda"
},
{
"position": 3,
"image": "//encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQXrpRWIla0QS8bfhyMNfLMSumI1aKihFPV46NVGQkJZYBLK8JcD_pe&s=0",
"title": "Steve Jobs"
},
{
"position": 4,
"image": "//encrypted-tbn0.gstatic.com/licensed-image?q=tbn:ANd9GcQQyjVDYdevm-ricsauEENDhviRiIkXOGbsgO_2qyZl-D5d57pgJCfz02-8zVqUUsGnHYejwT0&s=19",
"title": "Scott Forstall"
},
{
"position": 5,
"image": "//encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRP_5WVIo-p6VqsZB487qP32S96FjLReokrDk17SdQrtDIThT84pwkH&s=0",
"title": "Mike Matas"
},
{
"position": 1,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "Spotify"
},
{
"position": 2,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "IBM"
},
{
"position": 3,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "Google"
},
{
"position": 4,
"image": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"title": "Microsoft Corporation"
}
]
}
...
}

Get in touch with us!
You may contact us from here for any concern.