Google Scholar Cite API
You have to send a GET request to http://api.scrapingdog.com/google_scholar/cite with the below-given parameters.
Parameters
Parameter | Description |
---|---|
api_key required | Your personal API key. Available on your dashboard Type: String |
query required | This parameter is the ID of an individual Google Scholar organic search result. You can obtain this ID from the |
language | Language of the results. Possible Values - |
API Example
curl "https://api.scrapingdog.com/google_scholar/cite?api_key=5eaa61a6e562fc52fe763tr516e4653&query=FDc6HiktlqEJ"
import requests
api_key = "APIKEY"
url = "https://api.scrapingdog.com/google_scholar/cite"
params = {
"api_key": api_key,
"query": "physics"
}
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 = 'APIKEY
const url = 'https://api.scrapingdog.com/google_scholar/cite';
const params = {
api_key: api_key,
query: 'FDc6HiktlqEJ'
};
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 = 'APIKEY';
$query = 'FDc6HiktlqEJ';
// Set the API endpoint
$url = 'https://api.scrapingdog.com/google_scholar/cite?api_key=' . $api_key . '&query=' . $query;
// 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 = 'APIKEY'
query = 'FDc6HiktlqEJ'
# Construct the API endpoint URL
url = URI.parse("https://api.scrapingdog.com/google_scholar/cite?api_key=#{api_key}&query=#{query}")
# 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 = "APIKEY";
String query = "FDc6HiktlqEJ";
// Construct the API endpoint URL
String apiUrl = "https://api.scrapingdog.com/google_scholar/cite?api_key=" + apiKey
+ "&query=" + query
// 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
{
"citations": [
{
"title": "MLA",
"snippet": "Schwertmann, U. T. R. M., and Reginald M. Taylor. \"Iron oxides.\" Minerals in soil environments 1 (1989): 379-438."
},
{
"title": "APA",
"snippet": "Schwertmann, U. T. R. M., & Taylor, R. M. (1989). Iron oxides. Minerals in soil environments, 1, 379-438."
},
{
"title": "Chicago",
"snippet": "Schwertmann, U. T. R. M., and Reginald M. Taylor. \"Iron oxides.\" Minerals in soil environments 1 (1989): 379-438."
},
{
"title": "Harvard",
"snippet": "Schwertmann, U.T.R.M. and Taylor, R.M., 1989. Iron oxides. Minerals in soil environments, 1, pp.379-438."
},
{
"title": "Vancouver",
"snippet": "Schwertmann UT, Taylor RM. Iron oxides. Minerals in soil environments. 1989 Jan 1;1:379-438."
}
],
"links": [
{
"name": "BibTeX",
"link": "https://scholar.googleusercontent.com/scholar.bib?q=info:FDc6HiktlqEJ:scholar.google.com/&output=citation&scisdr=ClHczGghGAA:AFWwaeYAAAAAZvqd7iY3OJeBM76mazJ0K90qfXg&scisig=AFWwaeYAAAAAZvqd7sD7-LFeIJdcpm0MWRv7niA&scisf=4&ct=citation&cd=-1&hl=en"
},
{
"name": "EndNote",
"link": "https://scholar.googleusercontent.com/scholar.enw?q=info:FDc6HiktlqEJ:scholar.google.com/&output=citation&scisdr=ClHczGghGAA:AFWwaeYAAAAAZvqd7iY3OJeBM76mazJ0K90qfXg&scisig=AFWwaeYAAAAAZvqd7sD7-LFeIJdcpm0MWRv7niA&scisf=3&ct=citation&cd=-1&hl=en"
},
{
"name": "RefMan",
"link": "https://scholar.googleusercontent.com/scholar.ris?q=info:FDc6HiktlqEJ:scholar.google.com/&output=citation&scisdr=ClHczGghGAA:AFWwaeYAAAAAZvqd7iY3OJeBM76mazJ0K90qfXg&scisig=AFWwaeYAAAAAZvqd7sD7-LFeIJdcpm0MWRv7niA&scisf=2&ct=citation&cd=-1&hl=en"
},
{
"name": "RefWorks",
"link": "https://scholar.googleusercontent.com/scholar.rfw?q=info:FDc6HiktlqEJ:scholar.google.com/&output=citation&scisdr=ClHczGghGAA:AFWwaeYAAAAAZvqd7iY3OJeBM76mazJ0K90qfXg&scisig=AFWwaeYAAAAAZvqd7sD7-LFeIJdcpm0MWRv7niA&scisf=1&ct=citation&cd=-1&hl=en"
}
]
}
Last updated