# getPackage

**Identifier:** `depsdev_getPackage`

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

Get package information including all available versions and publication dates. Use this to discover versions before calling getVersion for details.

## Run it with the CLI

```bash
kirha tools run depsdev_getPackage \
  --input '{
    "system": "npm",
    "packageName": "express"
  }'
```

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

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": {
    "limit": {
      "default": 10,
      "description": "Max versions to return",
      "maximum": 50,
      "minimum": 1,
      "type": "number"
    },
    "packageName": {
      "description": "Package name (e.g., 'express', 'requests', 'lodash')",
      "type": "string"
    },
    "system": {
      "description": "Package manager (e.g., 'npm', 'pypi', 'maven')",
      "enum": [
        "npm",
        "pypi",
        "maven",
        "cargo",
        "go",
        "nuget",
        "rubygems"
      ],
      "type": "string"
    }
  },
  "required": [
    "system",
    "packageName"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "defaultVersion": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "system": {
      "type": "string"
    },
    "totalVersions": {
      "type": "number"
    },
    "versionStrings": {
      "description": "Version strings for composition with getVersion",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "versions": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "isDefault": {
            "type": "boolean"
          },
          "publishedAt": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "version",
          "isDefault"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "name",
    "system",
    "totalVersions",
    "versions",
    "versionStrings"
  ],
  "type": "object"
}
```

## Related tools

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

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

-----

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