# getCitations

**Identifier:** `googlescholar_getCitations`

**Provider:** [Google Scholar](https://kirha.com/providers/googlescholar.md)

Get formatted citation strings (MLA, APA, Chicago, Harvard, Vancouver) and download links (BibTeX, EndNote, RefMan, RefWorks) for one or more papers. Use resultIds from searchPapers.

## Run it with the CLI

```bash
kirha tools run googlescholar_getCitations \
  --input '{
    "resultIds": [
      "<resultIds>"
    ]
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "googlescholar_getCitations",
  "input": {
    "resultIds": [
      "<resultIds>"
    ]
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "resultIds": {
      "description": "From searchPapers resultIds",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "resultIds"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "papers": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "citations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "format": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "format",
                "text"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "downloadLinks": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "format": {
                  "type": "string"
                },
                "link": {
                  "type": "string"
                }
              },
              "required": [
                "format",
                "link"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "resultId": {
            "type": "string"
          }
        },
        "required": [
          "resultId",
          "citations",
          "downloadLinks"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "papers"
  ],
  "type": "object"
}
```

## Related tools

Other Google Scholar tools that this tool refers to, or that refer to it.

- [`getCitedByPapers`](https://kirha.com/providers/googlescholar/getCitedByPapers.md)
- [`getPaperVersions`](https://kirha.com/providers/googlescholar/getPaperVersions.md)
- [`searchPapers`](https://kirha.com/providers/googlescholar/searchPapers.md)

-----

[All Google Scholar tools](https://kirha.com/providers/googlescholar.md) · [< Back to tools list](https://kirha.com/tools.md)