# getPaperVersions

**Identifier:** `googlescholar_getPaperVersions`

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

Find all versions of a paper across different sources — published version, preprints, repository copies. Use clusterId from searchPapers. Useful for finding free/open-access versions of paywalled papers.

## Run it with the CLI

```bash
kirha tools run googlescholar_getPaperVersions \
  --input '{
    "clusterId": "<clusterId>"
  }'
```

`--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_getPaperVersions",
  "input": {
    "clusterId": "<clusterId>"
  }
}'
```

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": {
    "clusterId": {
      "description": "From searchPapers",
      "type": "string"
    },
    "numResults": {
      "default": 10,
      "maximum": 20,
      "minimum": 1,
      "type": "number"
    }
  },
  "required": [
    "clusterId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "authorIds": {
      "description": "Author IDs for use with getAuthorProfile",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "citesIds": {
      "description": "Cited-by IDs for use with getCitedByPapers",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "clusterIds": {
      "description": "Cluster IDs for use with getPaperVersions",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "papers": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "authors": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "authorId": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "citedByCount": {
            "type": "number"
          },
          "citesId": {
            "type": "string"
          },
          "clusterId": {
            "type": "string"
          },
          "link": {
            "type": "string"
          },
          "pdfLink": {
            "type": "string"
          },
          "publicationSummary": {
            "type": "string"
          },
          "resultId": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "versionCount": {
            "type": "number"
          },
          "year": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "resultIds": {
      "description": "Paper result IDs for use with getCitations",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalResults": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "papers",
    "resultIds",
    "citesIds",
    "clusterIds",
    "authorIds"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getAuthorProfile`](https://kirha.com/providers/googlescholar/getAuthorProfile.md)
- [`getCitedByPapers`](https://kirha.com/providers/googlescholar/getCitedByPapers.md)
- [`getCitations`](https://kirha.com/providers/googlescholar/getCitations.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)