Using Google Patents API you can scrape Google Patentn results without worrying about proxy rotation and data parsing. Our API is fast and reliable. Each successful request will cost you 5 API credits
You have to send a GET request to http://api.scrapingdog.com/google_patent with the below-given parameters.
Your personal API key. Available on your dashboard
query
required
Type: String
The parameter specifies the query you wish to search for. You can separate multiple search terms using a semicolon (;). For advanced search syntax, please refer to the "About Google Patents" section.
Example for a single search term: (Coffee) OR (Tea)
Example for multiple search terms (separated by a semicolon ;): (Coffee) OR (Tea);(A47J)
page
Type - String
Default Value - 0
This is the page number of Google searches. Its value can be 0 for the first page, 1 for the second page, and so on.
num
Type - String
Default Value - 10
Number of results you want to scrape. Its value could be anything between 1 and 100.
sort
Type - String
The parameter specifies the sorting method. By default, the results are sorted by Relevance. The supported sorting options are:
new: Newest
old: Oldest
For patent results, sorting is based on the filing date, while for scholar results, sorting is done by the publication date for both "new" and "old" values.
clustered
Type - String
The parameter determines how the results should be grouped. The available option is:
true: Classification
dups
Type - String
The parameter defines the deduplication method, which can either be by Family (default) or by Publication. The available value is:
language: Publication
patents
Type - String
This parameter determines whether Google Patents results are included. (Default is true)
scholar
Type - String
This parameter determines whether Google Scholar results are included. (Default is false)
before
Type - String
This parameter specifies the maximum date for the results. The format should be type:YYYYMMDD, where 'type' can be one of the following: priority, filing, or publication.
Example:
priority:20221231
publication:20230101
after
Type - String
This parameter sets the minimum date for the results. The format should be type:YYYYMMDD, where 'type' can be one of the following: priority, filing, or publication.
Example:
priority:20221231
publication:20230101
inventor
Type - String
This parameter specifies the inventors of the patents. Separate multiple inventors with a comma (,).
assignee
Type - String
This parameter specifies the assignees of the patents. Separate multiple assignees with a comma (,).
country
Type - String
This parameter filters patent results by country. Separate multiple country codes with a comma (,).
Example: WO,US.
A list of supported country codes is available.
language
Type - String
This parameter filters patent results by language. Separate multiple languages with a comma (,).
Supported languages include:
ENGLISH, GERMAN, CHINESE, FRENCH, SPANISH, ARABIC, JAPANESE, KOREAN, PORTUGUESE, RUSSIAN, ITALIAN, DUTCH, SWEDISH, FINNISH, NORWEGIAN, DANISH.
Example: ENGLISH,GERMAN.
status
Type - String
This parameter filters patent results by their status.
Supported values include:
GRANT - Grant
APPLICATION - Application
type
Type - String
This parameter filters patent results by their type.
Supported values include:
PATENT - Patent
DESIGN - Design
litigation
Type - String
This parameter filters patent results based on their litigation status.
Supported values include:
YES - Has Related Litigation
NO - No Known Litigation
import requestsapi_key ="5eaa61a6e562fc52fe763tr516e4653"url ="https://api.scrapingdog.com/google_patents/"params ={"api_key": api_key,"query":"seat+belt"}response = requests.get(url, params=params)if response.status_code ==200: data = response.json()print(data)else:print(f"Request failed with status code: {response.status_code}")
constaxios=require('axios');constapi_key='5eaa61a6e562fc52fe763tr516e4653';consturl='https://api.scrapingdog.com/google_patents/';constparams= { api_key: api_key, query:'seat+belt'};axios.get(url, { params: params }).then(function (response) {if (response.status ===200) {constdata=response.data;console.log(data) } else {console.log('Request failed with status code: '+response.status); } }).catch(function (error) {console.error('Error making the request: '+error.message); });
<?php// Set the API key and request parameters$api_key ='5eaa61a6e562fc52fe763tr516e4653';$query ='seat+belt';// Set the API endpoint$url ='https://api.scrapingdog.com/google_patents/?api_key='. $api_key .'&query='. $query;// Initialize cURL session$ch =curl_init($url);// Set cURL optionscurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);// Execute the cURL request$response =curl_exec($ch);// Check if the request was successfulif ($response === false) {echo'cURL error: '.curl_error($ch);} else {// Process the response data as neededecho $response;}// Close the cURL sessioncurl_close($ch);
require'net/http'require'uri'# Set the API key and request parametersapi_key = '5eaa61a6e562fc52fe763tr516e4653'query = 'seat+belt'# Construct the API endpoint URLurl = URI.parse("https://api.scrapingdog.com/google_patents/?api_key=#{api_key}&query=#{query}")# Create an HTTP GET requestrequest = Net::HTTP::Get.new(url)# Create an HTTP clienthttp = Net::HTTP.new(url.host, url.port)http.use_ssl=true# Enable SSL (https)# Send the request and get the responseresponse = http.request(request)# Check if the request was successfulif response.is_a?(Net::HTTPSuccess)puts response.body# Process the response data as neededelseputs"HTTP request failed with code: #{response.code}, message: #{response.message}"end
importjava.io.BufferedReader;importjava.io.InputStreamReader;importjava.net.HttpURLConnection;importjava.net.URL;importjava.io.IOException;publicclassMain {publicstaticvoidmain(String[] args) {try {// Set the API key and request parametersString apiKey ="5eaa61a6e562fc52fe763tr516e4653";String query ="seat+belt";// Construct the API endpoint URLString apiUrl ="https://api.scrapingdog.com/google_patents/?api_key="+ apiKey+"&query="+ query// Create a URL object from the API URL stringURL url =newURL(apiUrl);// Open a connection to the URLHttpURLConnection connection = (HttpURLConnection) url.openConnection();// Set the request method to GETconnection.setRequestMethod("GET");// Get the response codeint responseCode =connection.getResponseCode();if (responseCode ==200) {// Read the response from the connectionBufferedReader reader =newBufferedReader(new InputStreamReader(connection.getInputStream()));String inputLine;StringBuilder response =newStringBuilder();while ((inputLine =reader.readLine()) !=null) {response.append(inputLine); }reader.close();// Process the response data as neededSystem.out.println(response.toString()); } else {System.out.println("HTTP request failed with response code: "+ responseCode); }// Close the connectionconnection.disconnect(); } catch (IOException e) {e.printStackTrace(); } }}
Response
{"organic_results": [ {"position":1,"rank":0,"patent_id":"patent/CN101318498B/en","scrapingdog_link":"https://api.scrapingdog.com/google_patents/details?api_key=678931085a43300f9f0181ef&id=patent/CN101318498B/en","title":"Four point seat belt system","snippet":"A four-point seat belt system for restraining a vehicle occupant in a vehicle seat is disclosed. Two shoulder belts are provided which are buckled together with a pair of lap belts. The convergence of the shoulder belts created at the buckles defines a V-shaped configuration which aids in occupant …","priority_date":"2007-06-04","filing_date":"2008-06-04","grant_date":"2013-03-20","publication_date":"2013-03-20","inventor":"斯蒂芬·威廉·路哈那","assignee":"福特全球技术公司","publication_number":"CN101318498B","language":"en","thumbnail":"54/b9/9b/c6f095a8237174/S2008101086926E00011.png","pdf":"3c/27/d5/08220e6315bf97/CN101318498B.pdf","figures": [ {"thumbnail":"08/e4/e2/428ad6c738786f/S2008101086926E00011.png","full":"c7/ba/17/e75caf681dea72/S2008101086926E00011.png" }, {"thumbnail":"8b/60/db/e9ebc43d4f209f/S2008101086926E00021.png","full":"a0/9f/2e/56eb667bc25e22/S2008101086926E00021.png" }, {"thumbnail":"4e/44/72/f38107c17086aa/S2008101086926E00031.png","full":"b5/07/99/6707e4ef33adec/S2008101086926E00031.png" }, {"thumbnail":"f5/7d/42/3b822014e087a2/S2008101086926E00041.png","full":"f3/d4/e1/d306586a4428d8/S2008101086926E00041.png" }, {"thumbnail":"c4/2d/f3/0a44d6be177562/S2008101086926E00051.png","full":"3b/86/87/3cd58d95f52b5b/S2008101086926E00051.png" }, {"thumbnail":"3a/60/da/1f190ef9d8ba96/S2008101086926E00061.png","full":"dc/f2/ed/95a3826552800b/S2008101086926E00061.png" } ],"country_status": {"EP":"ACTIVE","US":"ACTIVE","CN":"ACTIVE" } }, {"position":2,"rank":1,"patent_id":"patent/US7520532B2/en","scrapingdog_link":"https://api.scrapingdog.com/google_patents/details?api_key=678931085a43300f9f0181ef&id=patent/US7520532B2/en","title":"Seat belt arrangement for child occupants of a vehicle","snippet":"a webbing path adapter having a passageway for receiving a seat belt webbing, the webbing path adapter having a pin for connecting the webbing path adapter to any one of a plurality of holes on the load-bearing plate through the aligned holes in the movable lock plate and the upholstered part of …","priority_date":"2006-10-30","filing_date":"2007-03-14","grant_date":"2009-04-21","publication_date":"2009-04-21","inventor":"John Bell","assignee":"Key Safety Systems, Inc.","publication_number":"US7520532B2","language":"en","thumbnail":"fb/d5/db/6f393e4dfdf8da/US07520532-20090421-D00000.png","pdf":"11/ff/b6/666c564a6c7f25/US7520532.pdf","figures": [ {"thumbnail":"f7/94/6d/322452a67a5080/US07520532-20090421-D00000.png","full":"ce/d3/34/0fd69e878ebfe0/US07520532-20090421-D00000.png" }, {"thumbnail":"74/88/64/eb7444db4c9fb5/US07520532-20090421-D00001.png","full":"1e/db/ab/410a9853ddf863/US07520532-20090421-D00001.png" }, {"thumbnail":"e1/b2/9b/9eb22a97b3a5ff/US07520532-20090421-D00002.png","full":"c7/89/0c/e83c53d1192612/US07520532-20090421-D00002.png" }, {"thumbnail":"45/99/c8/bc2c59e647cb66/US07520532-20090421-D00003.png","full":"08/1e/d2/cb392f4fe2a850/US07520532-20090421-D00003.png" }, {"thumbnail":"6c/14/40/9743ec72fd8897/US07520532-20090421-D00004.png","full":"34/42/02/10330de9dbfe03/US07520532-20090421-D00004.png" }, {"thumbnail":"cb/17/c7/1bbac735791a18/US07520532-20090421-D00005.png","full":"f8/9d/5f/eebb6f5c05a987/US07520532-20090421-D00005.png" } ],"country_status": {"WO":"ACTIVE","EP":"ACTIVE","US":"ACTIVE","DE":"ACTIVE" } },....