# getVersion

**Identifier:** `depsdev_getVersion`

**Provider:** [deps.dev](https://kirha.com/providers/depsdev.md)

Get detailed version information including licenses, security advisories, and links. Use getPackage first to find available versions.

## Run it with the CLI

```bash
kirha tools run depsdev_getVersion \
  --input '{
    "system": "npm",
    "packageName": "<packageName>",
    "version": "<version>"
  }'
```

`--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": "depsdev_getVersion",
  "input": {
    "system": "npm",
    "packageName": "<packageName>",
    "version": "<version>"
  }
}'
```

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": {
    "packageName": {
      "type": "string"
    },
    "system": {
      "description": "Package manager (e.g., 'npm', 'pypi', 'maven')",
      "enum": [
        "npm",
        "pypi",
        "maven",
        "cargo",
        "go",
        "nuget",
        "rubygems"
      ],
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "required": [
    "system",
    "packageName",
    "version"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "advisoryIds": {
      "description": "Security advisory IDs, use getAdvisory for details",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "isDefault": {
      "type": "boolean"
    },
    "licenses": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "links": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "url"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "name": {
      "type": "string"
    },
    "publishedAt": {
      "type": "string"
    },
    "relatedProjects": {
      "description": "Related project IDs (e.g., github.com/user/repo)",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "system": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "name",
    "system",
    "version",
    "isDefault",
    "licenses",
    "advisoryIds",
    "links",
    "relatedProjects"
  ],
  "type": "object"
}
```

## Related tools

Other deps.dev tools that this tool refers to, or that refer to it.

- [`getPackage`](https://kirha.com/providers/depsdev/getPackage.md)
- [`getAdvisory`](https://kirha.com/providers/depsdev/getAdvisory.md)

-----

[All deps.dev tools](https://kirha.com/providers/depsdev.md) · [< Back to tools list](https://kirha.com/tools.md)