Scrapingdog
HomePricingSupportLogin
  • Documentation
  • Web Scraping API
    • Request Customization
      • Javascript Rendering
        • Wait when rendering Javascript
      • Custom Headers
      • Premium Residential Proxies
      • Geotargeting
      • Sessions
  • POST Request
  • Google Search Scraper API
    • Google Country Parameter: Supported Google Countries
    • Supported Google Countries via cr parameter
    • Google Domains Page
    • Google Language Page
    • Google LR Language Page
  • Google AI Overview API
  • Google Maps API
    • Google Maps Posts API
    • Google Maps Photos API
    • Google Maps Reviews API
    • Google Maps Places API
  • Google Trends API
    • Google Trends Autocomplete API
    • Google Trends Trending Now API
  • Google Images API
  • Google News API
    • Google News API 2.0
  • Google Shopping API
  • Google Product API
  • Google Videos API
  • Google Shorts API
  • Google Autocomplete API
  • Google Scholar API
    • Google Scholar Profiles API
    • Google Scholar Author API
      • Google Scholar Author Citation API
    • Google Scholar Cite API
  • Google Finance API
  • Google Lens API
  • Google Jobs API
  • Google Local API
  • Google Patents API
    • Google Patent Details API
  • Bing Search Scraper API
  • Amazon Scraper API
    • Amazon Product Scraper
    • Amazon Search Scraper
    • Amazon Reviews API
    • Amazon Autocomplete Scraper
  • Instagram Scraper API
  • Linkedin Scraper API
    • Person Profile Scraper
    • Company Profile Scraper
  • Linkedin Jobs Scraper
    • Scrape Linkedin Jobs
    • Scrape LinkedIn Job Overview
  • Yelp Scraper API
  • Twitter Scraping API
    • X Scraping API 2.0
  • Indeed Scraper API
  • Zillow Scraper API
  • Youtube Scraper API
    • Youtube Search API
    • YouTube Transcripts API
    • YouTube Channel API
  • Walmart Scraper API
    • Walmart Product Scraper
    • Walmart Search Scraper
    • Walmart Reviews Scraper
  • Screenshot API
  • Webhook Integration
  • Datacenter Proxies
  • Account API
Powered by GitBook
On this page
  • Parameters
  • API Example
  • Response
  1. Google Patents API

Google Patent Details API

Using Google Patent Details API you can scrape patent details without worrying about proxy rotation and data parsing. Each successful request will cost you 5 API credits

Each successful request will cost you 5 API credits.

You have to send a GET request to http://api.scrapingdog.com/google_patents/details with the below-given parameters.

Parameters

Scrapingdog Parameters

Parameter
Description

api_key

required

Your personal API key. Available on your dashboard Type: String

html

This will return the full HTML of the Google page. Default Value - false Type - Boolean

Search Query

Parameter
Description

patent_id required

The patent ID of the patent. Type: String

API Example

curl "https://api.scrapingdog.com/google_patents/details/?api_key=5eaa61a6e562fc52fe763tr516e4653&patent_id=US11734097B1"
import requests

api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/google_patents/details"

params = {
    "api_key": api_key,
    "patent_id": "US11734097B1",
}

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}")
const axios = require('axios');

const api_key = '5eaa61a6e562fc52fe763tr516e4653';
const url = 'https://api.scrapingdog.com/google_patents/details/';

const params = {
  api_key: api_key,
  patent_id: 'US11734097B1'
};

axios
  .get(url, { params: params })
  .then(function (response) {
    if (response.status === 200) {
      const data = 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';
$patent_id = 'US11734097B1';

// Set the API endpoint
$url = 'https://api.scrapingdog.com/google_patents/details/?api_key=' . $api_key . '&patent_id=' . $patent_id;

// Initialize cURL session
$ch = curl_init($url);

// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Execute the cURL request
$response = curl_exec($ch);

// Check if the request was successful
if ($response === false) {
    echo 'cURL error: ' . curl_error($ch);
} else {
    // Process the response data as needed
    echo $response;
}

// Close the cURL session
curl_close($ch);
require 'net/http'
require 'uri'

# Set the API key and request parameters
api_key = '5eaa61a6e562fc52fe763tr516e4653'
patent_id = 'US11734097B1'

# Construct the API endpoint URL
url = URI.parse("https://api.scrapingdog.com/google_patents/details/?api_key=#{api_key}&patent_id=#{patent_id}")

# Create an HTTP GET request
request = Net::HTTP::Get.new(url)

# Create an HTTP client
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true # Enable SSL (https)

# Send the request and get the response
response = http.request(request)

# Check if the request was successful
if response.is_a?(Net::HTTPSuccess)
  puts response.body # Process the response data as needed
else
  puts "HTTP request failed with code: #{response.code}, message: #{response.message}"
end
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.IOException;

public class Main {
    public static void main(String[] args) {
        try {
            // Set the API key and request parameters
            String apiKey = "5eaa61a6e562fc52fe763tr516e4653";
            String patent_id = "US11734097B1";

            // Construct the API endpoint URL
            String apiUrl = "https://api.scrapingdog.com/google_patents/details/?api_key=" + apiKey
                    + "&patent_id=" + patent_id

            // Create a URL object from the API URL string
            URL url = new URL(apiUrl);

            // Open a connection to the URL
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();

            // Set the request method to GET
            connection.setRequestMethod("GET");

            // Get the response code
            int responseCode = connection.getResponseCode();

            if (responseCode == 200) {
                // Read the response from the connection
                BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
                String inputLine;
                StringBuilder response = new StringBuilder();

                while ((inputLine = reader.readLine()) != null) {
                    response.append(inputLine);
                }
                reader.close();

                // Process the response data as needed
                System.out.println(response.toString());
            } else {
                System.out.println("HTTP request failed with response code: " + responseCode);
            }

            // Close the connection
            connection.disconnect();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Response

{
    "title": "Machine learning-based hardware component monitoring \n       ",
    "type": "patent",
    "pdf": "https://patentimages.storage.googleapis.com/00/a7/59/6750cd74efdf32/US11734097.pdf",
    "publication_number": "US11734097B1",
    "country": "United States",
    "prior_art_keywords": [
        "storage",
        "data",
        "hardware component",
        "anomaly",
        "monitoring system"
    ],
    "prior_art_date": "2018-01-18",
    "application_number": "US17/160,053",
    "inventors": [
        {
            "name": "Christopher Golden",
            "link": "https://patents.google.com/?inventor=Christopher+Golden",
            "scrapingdog_link": "https://api.scrapingdog.com/google_patents?api_key=672e5c31f1d9ff6bcc5481e2&inventor=Christopher+Golden"
        },
        {
            "name": "Emily Watkins",
            "link": "https://patents.google.com/?inventor=Emily+Watkins",
            "scrapingdog_link": "https://api.scrapingdog.com/google_patents?api_key=672e5c31f1d9ff6bcc5481e2&inventor=Emily+Watkins"
        }
    ],
    "assignees": [
        "\n    Pure Storage Inc\n  "
    ],
    "priority_date": "2018-01-18",
    "filing_date": "2021-01-27",
    "publication_date": "2021-01-27",
    "worldwide_applications": {
    ...
    }
   ........... 

PreviousGoogle Patents APINextBing Search Scraper API

Last updated 2 months ago