Google Video Search
Search for videos using Google Video search (udm=7 parameter)
Endpoint
GET
/api/google_videos
Parameters
q
string
Required
The search term that will be used to search for videos.
page
string
Optional
Specifies which page of search results to retrieve.
Usage:
- page=1 or omitted - Returns the first page of results
- page=2 - Returns the second page of results
- page=3 - Returns the third page of results
hl
string
Optional
Language to use for the Google interface. Default is "en" (English).
gl
string
Optional
Geographic location to use for the search. Default is "us" (United States).
safe
string
Optional
Level of filtering for adult content. Options: "active" or "off".
tbs
string
Optional
Advanced search parameters for filtering results (e.g., date ranges, duration).
Request Examples
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.scrappa.co/api/videos?q=coffee+brewing+tutorial",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: YOUR_API_KEY_HERE"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
<?php
use Illuminate\Support\Facades\Http;
$response = Http::timeout(30)
->withHeaders(['x-api-key' => 'YOUR_API_KEY_HERE'])
->get('https://app.scrappa.co/api/videos?q=coffee+brewing+tutorial');
if ($response->successful()) {
echo $response->body();
} else {
echo "Error: " . $response->status();
}
const options = {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY_HERE'
}
};
fetch('https://app.scrappa.co/api/videos?q=coffee+brewing+tutorial', options)
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
return response.text();
})
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
require 'net/http'
require 'uri'
uri = URI.parse("https://app.scrappa.co/api/videos?q=coffee+brewing+tutorial")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == 'https'
request = Net::HTTP::Get.new(uri.request_uri)
request['x-api-key'] = 'YOUR_API_KEY_HERE'
begin
response = http.request(request)
puts response.body
rescue => e
puts "Error: #{e.message}"
end
import http.client
import json
conn = http.client.HTTPSConnection("app.scrappa.co")
headers = {
'x-api-key': 'YOUR_API_KEY_HERE',
}
try:
conn.request("GET", "/api/videos?q=coffee+brewing+tutorial", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
except Exception as e:
print(f"Error: {e}")
finally:
conn.close()
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class ApiExample {
public static void main(String[] args) {
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://app.scrappa.co/api/videos?q=coffee+brewing+tutorial")
.addHeader("x-api-key", "YOUR_API_KEY_HERE")
.build();
try (Response response = client.newCall(request).execute()) {
if (response.isSuccessful()) {
System.out.println(response.body().string());
} else {
System.out.println("Error: " + response.code());
}
} catch (IOException e) {
System.out.println("Error: " + e.getMessage());
}
}
}
Response Schema
[
{
"title": "JSON Results",
"description": null,
"json_sample": [
{
"date": "1 month ago",
"link": "https://www.youtube.com/watch?v=example123",
"title": "How I ACTUALLY Make Coffee At Home",
"channel": "Coffee Expert",
"snippet": "Check out this amazing coffee brewing tutorial...",
"duration": "18:39",
"position": 1,
"thumbnail": "https://example.com/thumbnail.jpg",
"key_moments": [
{
"link": "https://www.youtube.com/watch?v=example123&t=0",
"time": "00:00",
"title": "Introduction",
"thumbnail": "https://example.com/moment1.jpg"
},
{
"link": "https://www.youtube.com/watch?v=example123&t=330",
"time": "05:30",
"title": "Brewing Process",
"thumbnail": "https://example.com/moment2.jpg"
}
],
"displayed_link": "www.youtube.com \u203a watch"
},
{
"date": "2 weeks ago",
"link": "https://www.youtube.com/watch?v=example456",
"title": "Coffee Brewing Basics",
"channel": "Barista School",
"snippet": "Learn the basics of coffee brewing...",
"duration": "12:45",
"position": 2,
"thumbnail": "https://example.com/thumbnail2.jpg",
"displayed_link": "www.youtube.com \u203a watch"
}
]
}
]
Try It Live
Test this endpoint in our interactive playground with real data.
Open in Playground