# Google Scholar Cite API

{% hint style="success" %}
To enable this engine, set the **`engine=google_scholar_cite`** parameter.
{% endhint %}

In Google Scholar, authors are allowed to publish their citation metrics, which get automatically updated. With the Google Scholar Cite API you can easily scrape these results by simply passing the [**General API Parameters**](https://docs.webscrapingapi.com/getting-started/api-parameters#google-api-general-parameters) and the [query parameter](#1-query-parameter).

<figure><img src="https://1192456954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9wbsYOleiAqS785aMtPp%2Fuploads%2FRjbK2sE8AEnuhwljUeo8%2Fgoogle-scholar-cite-api.png?alt=media&#x26;token=d8d881e8-d546-4bc3-8c4b-cb2d530e7eee" alt=""><figcaption><p>Scrape Google Scholar Cite</p></figcaption></figure>

### Google Scholar Cite API Integration Examples

We will use following URL as an example for this request:

```
https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=<YOUR_API_KEY>&q=FDc6HiktlqEJ
```

### Ready to Use Google Scholar Cite API Scraping Scripts

{% tabs %}
{% tab title="cURL" %}

```bash
curl --request GET --url "https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ"
```

{% endtab %}

{% tab title="NodeJS" %}

```javascript
const http = require("https");

const options = {
  "method": "GET",
  "hostname": "serpapi.webscrapingapi.com",
  "port": null,
  "path": "/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ",
  "headers": {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
```

{% endtab %}

{% tab title="Python" %}

```python
import http.client

conn = http.client.HTTPSConnection("serpapi.webscrapingapi.com")

conn.request("GET", "/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
```

{% endtab %}

{% tab title="Go" %}

```go
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

{% endtab %}

{% tab title="Java" %}

```java
HttpResponse<String> response = Unirest.get("https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ")
  .asString();
```

{% endtab %}

{% tab title=".NET" %}

```csharp
var client = new RestClient("https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=YOUR_API_KEY&q=FDc6HiktlqEJ")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

{% endtab %}
{% endtabs %}

### Google Scholar Cite API Parameter

#### #1: Query Parameter

<table><thead><tr><th width="187">Parameter</th><th width="107" align="center">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>q</code><br><mark style="color:red;background-color:red;">Required</mark></td><td align="center"><code>string</code></td><td>The keywords that you are searching for on Google (the query).</td></tr></tbody></table>

To access this API, your GET request should be sent to the following address:

```
https://serpapi.webscrapingapi.com/v1?engine=google_scholar_cite&api_key=<YOUR_API_KEY>&q=<CITATION_ID>
```

<details>

<summary>Response Example</summary>

```javascript
{
 "search_parameters": {
  "google_url": "https://scholar.google.com/scholar?q=info:FDc6HiktlqEJ:scholar.google.com&output=cite&sourceid=chrome&ie=UTF-8",
  "engine": "google_scholar_cite",
  "google_domain": "scholar.google.com",
  "device": "desktop",
  "query": "FDc6HiktlqEJ"
 },
 "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=CgVZ4FBiGAA:AAGBfm0AAAAAYQvoREOhWGSEQolJxcNMAraGUolUmLw6&scisig=AAGBfm0AAAAAYQvoRP3-8nWDCT-_ICEcbyAKFuUy8_v1&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=CgVZ4FBiGAA:AAGBfm0AAAAAYQvoREOhWGSEQolJxcNMAraGUolUmLw6&scisig=AAGBfm0AAAAAYQvoRP3-8nWDCT-_ICEcbyAKFuUy8_v1&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=CgVZ4FBiGAA:AAGBfm0AAAAAYQvoREOhWGSEQolJxcNMAraGUolUmLw6&scisig=AAGBfm0AAAAAYQvoRP3-8nWDCT-_ICEcbyAKFuUy8_v1&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=CgVZ4FBiGAA:AAGBfm0AAAAAYQvoREOhWGSEQolJxcNMAraGUolUmLw6&scisig=AAGBfm0AAAAAYQvoRP3-8nWDCT-_ICEcbyAKFuUy8_v1&scisf=1&ct=citation&cd=-1&hl=en"
  }
 ]
}
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webscrapingapi.com/google-search-api/google-search-engines/google-scholar-cite-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
