Google Videos API
The Google Videos API retrieves video search results from Google, supporting geographic localization, language preferences, and advanced filtering. Costs 5 API credits per request.
Endpoint:
https://api.scrapingdog.com/google_videosAPI Parameters
🔑
Authentication
api_keyRequiredYour personal API key. Available on your dashboard
Type: StringqueryRequiredThis is a Google query.
Example1 -query=shoes
🌍
Geographic Location and Localization
countryOptionalThis is the ISO code of the country from which you are seeking Google search results.
Default Value -us
Type - StringpageOptionalThis is the page number of Google searches. Its value can be0for the first page,1for the second page, and so on.
Default Value -0
Type - StringdomainOptionalTo obtain local results from a specific country, for example, for India, it will be "google.co.in," and for the UK, it will be "google.co.uk".
Type:String
Default:google.comlanguageOptionalLanguage of the results. Possible Values -en,es,fr,de, etc.
Default Value -en
Type - StringlrOptionalLimit the search to one or multiple languages. It is used aslang_{language code}.
Type:String
For example - "lang_us"result_timeOptionalThe "tbs" parameter is often accompanied by additional parameters that define specific search options.
These options can include parameters such as time range, language, country, file type, and more.
Possible Value -qdr:d
Type - StringuuleOptionalIt is a parameter that specifies the geographic location or locale for which the search results should be tailored. Possible Value could bew+CAIQIFJlbGF5IFN0YXRlcw==
Type - StringtbsOptionalTo be searched - An advanced parameter to filter search results.
Type:StringsafeOptionalTo filter the adult content setsafetoactiveor to disable it setoff.
Type: String [active/off]
Default:offnfprOptionalIt can be set to1to exclude these results or0to include them.
Type:Boolean
Default:0
It excludes the result from an auto-corrected query that is spelled wrong.htmlOptionalTo render the response as raw HTML.
Type:Boolean
Default:false
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/google_videos?api_key=APIKEY&query=football&country=us"
import requests url = "https://api.scrapingdog.com/google_videos" params = { "api_key": "APIKEY", "query": "football", "country": "us" } response = requests.get(url, params=params) if response.status_code == 200: print(response.json())
const axios = require('axios'); axios.get('https://api.scrapingdog.com/google_videos', { params: { api_key: 'APIKEY', query: 'football', country: 'us' } }).then(response => console.log(response.data)) .catch(error => console.error(error.message));
<?php $url = 'https://api.scrapingdog.com/google_videos/?' . http_build_query([ 'api_key' => 'APIKEY', 'query' => 'football', 'country' => 'us', ]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo curl_exec($ch); curl_close($ch);
require 'net/http' require 'uri' url = URI.parse("https://api.scrapingdog.com/google_videos/") url.query = URI.encode_www_form('api_key' => 'APIKEY', 'query' => 'football', 'country' => 'us') http = Net::HTTP.new(url.host, url.port) http.use_ssl = true puts http.request(Net::HTTP::Get.new(url)).body
import java.io.*; import java.net.*; public class Main { public static void main(String[] args) throws Exception { String apiUrl = "https://api.scrapingdog.com/google_videos/?api_key=APIKEY&query=football&country=us"; URL url = new URL(apiUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; while ((line = reader.readLine()) != null) System.out.println(line); conn.disconnect(); } }
API Response
{
"video_results": [
{
"title": "NFL \"Backyard Football\" Moments - YouTube",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=...",
"link": "https://www.youtube.com/watch?v=ET0G1FYxWqc",
"displayed_link": "www.youtube.com › watch",
"time": "14:04",
"rank": "1"
},
{
"title": "First NFL Africa Camp gives young athletes chance to show off football skills",
"link": "https://www.nfl.com/news/first-nfl-africa-camp",
"displayed_link": "www.nfl.com › news",
"rank": "2"
}
]
}