Google Inline Video Results API
When a Google search contains an inline Videos block, it is parsed into the inline_videos array in the JSON output. Inline Videos block contains title,
source, channel and URL.
source, channel and URL.
JSON structure overview
{
"inline_videos": [
{
"title": "HOW TO MAKE BREAD // STEP BY STEP INSTRUCTIONS ... YouTube · Sheri Hemingway 23 minutes, 30 secondsNov 20, 2020 ",
"source": "YouTube",
"channel": " · Sheri Hemingway",
"url": "#fpstate=ive&vld=cid:dae2020e,vid:wh3cs85ow1A"
},
{
"title": "How To Make Bread, Step By Step Instructions YouTube · Grandma and Grandpa Griffiths 20 minutes, 44 secondsJun 17, 2019 ",
"source": "YouTube",
"channel": " · Grandma and Grandpa Griffiths",
"url": "#fpstate=ive&vld=cid:3240e2fb,vid:MVb1Tfsdcr0"
},
{
"title": "How to Make Bread with Step by Step Instructions - Easy ... YouTube · Mary's Nest 24 minutes, 31 secondsMay 14, 2020 ",
"source": "YouTube",
"channel": " · Mary's Nest",
"url": "#fpstate=ive&vld=cid:ee5b83cf,vid:U6dw28UtSHw"
}
]
}
Results for: How to make bread step by step
https://api.serphouse.com/serp/live?q=How+to+make+bread+step+by+step&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": "How to make bread step by step",
"loc":"Texas,United States",
"device": "desktop",
"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": "How to make bread step by step",
"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": "How to make bread step by step",
"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: 'How to make bread step by step',
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": "How to make bread step by step",
"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", "How to make bread step by step");
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": "How to make bread step by step",
"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))
}
{
...
"inline_videos": [
{
"title": "HOW TO MAKE BREAD // STEP BY STEP INSTRUCTIONS ... YouTube · Sheri Hemingway 23 minutes, 30 secondsNov 20, 2020 ",
"source": "YouTube",
"channel": " · Sheri Hemingway",
"url": "#fpstate=ive&vld=cid:dae2020e,vid:wh3cs85ow1A"
},
{
"title": "How To Make Bread, Step By Step Instructions YouTube · Grandma and Grandpa Griffiths 20 minutes, 44 secondsJun 17, 2019 ",
"source": "YouTube",
"channel": " · Grandma and Grandpa Griffiths",
"url": "#fpstate=ive&vld=cid:3240e2fb,vid:MVb1Tfsdcr0"
},
{
"title": "How to Make Bread with Step by Step Instructions - Easy ... YouTube · Mary's Nest 24 minutes, 31 secondsMay 14, 2020 ",
"source": "YouTube",
"channel": " · Mary's Nest",
"url": "#fpstate=ive&vld=cid:ee5b83cf,vid:U6dw28UtSHw"
}
]
...
}
Results for: How to make black coffee on mobile
https://api.serphouse.com/serp/live?q=How+to+make+black+coffee&domain=google.com&lang=en&device=mobile&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": "How to make black coffee",
"loc":"Texas,United States",
"device": "mobile",
"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": "How to make black coffee",
"loc": "Texas,United States",
"device": "mobile",
"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": "How to make black coffee",
"loc": "Texas,United States",
"device": "mobile",
"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: 'How to make black coffee',
loc: 'Texas,United States',
device: 'mobile',
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": "How to make black coffee",
"loc": "Texas,United States",
"device": "mobile",
"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", "How to make black coffee");
data.put("loc", "Texas,United States");
data.put("device", "mobile");
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": "How to make black coffee",
"loc": "Texas,United States",
"device": "mobile",
"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))
}
{
...
"inline_videos": [
{
"title": "Instant black coffee recipe | Easy black coffee recipe",
"channel": "Sharmis Passions",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=ReL9_qKPJVI"
},
{
"title": "Black Coffee Recipe | How to Make Black Coffee",
"channel": "Yummy Tummy",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=IUWClsjmuwI"
},
{
"title": "How to make Black Coffee - Black Coffee Recipe for Weight Loss ...",
"channel": "Healthy Jiyo",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=MjDA9cWWmh4"
},
{
"title": "Black Coffee | Black Coffee Recipe for Weight Loss | How to make Black ...",
"channel": "Gowthami Foods",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=mqtbyfymuuM"
},
{
"title": "How to Make Black Coffee",
"channel": "wikiHow",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=to1t2d_c0WY"
},
{
"title": "How to Make A Long Black Coffee",
"channel": "coffeefusion",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=Ri29KxaZmg0"
},
{
"title": "How To Use South Indian Coffee Filter | Black Coffee Recipe | #shorts",
"channel": "Rajshri Food",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=EOQgy_0bkRE"
},
{
"title": "Black coffee | How to make black coffee | Black coffee with brown ...",
"channel": "Home-Made",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=Z43inVSB3yo"
},
{
"title": "HOW TO MAKE BLACK COFFEE AT HOME",
"channel": "Cupocafe Coffee bar",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=g9_ExXb-TeI"
},
{
"title": "BLACK COFFEE RECIPE WITHOUT COFFEE MAKER | Easy Recipe that ...",
"channel": "Learn to cook with me",
"source": "YouTube",
"url": "https://m.youtube.com/watch?v=uIB495HxoNo"
}
]
...
}

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