Google Shorts API
The Google Shorts API retrieves short video results from Google search with thumbnails, GIF previews, account names, and publication dates.
Endpoint:
https://api.scrapingdog.com/google_shortsAPI Parameters
π
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard
Type: StringhtmlOptionalThis will return the full HTML of the Google page.
Default Value -false
Type - Boolean
π
Search Query
queryRequiredThis is a Google query. Example:query=shoes
π
Geographic Location and Localization
domainOptionalTo 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". For a complete list of supported domains, see the Google Domains Page.
Default:google.com
Type: StringcountryOptionalThis parameter specifies the country for the Google search using a two-letter country code (e.g., US for the United States, UK for the United Kingdom, or FR for France). For a complete list of supported countries, see the Google Country Parameter.
Default Value -us
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 - StringlanguageOptionalLanguage of the results. Possible Values -en,es,fr,de, etc. For a complete list of supported languages, see the Google Language Page.
Default Value -en
Type - StringlrOptionalLimit the search to one or multiple languages. It is used aslang_{language code}. For a complete list, see the Google LR Language Page.
Type - String
β
οΈ Advanced Filters
tbsOptionalto 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 excludes the result from an auto-corrected query that is spelled wrong. It can be set to1to exclude these results or0to include them.
Type:Boolean
Default:0startOptionalUsed for skipping a particular number of results (e.g.,start=12skips the first 12 results)
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/google_shorts?api_key=APIKEY&query=football&country=us"
import requests url = "https://api.scrapingdog.com/google_shorts" 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_shorts', { 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_shorts/?' . 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_shorts/") 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_shorts/?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
{
"short_videos_results": [
{
"title": "Our 2025 record will be ______ #Washington #Commanders",
"source": "YouTube",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:...",
"gif_url": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:...",
"account_name": "Washington Commanders",
"date": "May 15, 2025"
}
]
}