# getZenodoFileUrl

**Identifier:** `zenodo_getZenodoFileUrl`

**Provider:** [Zenodo](https://kirha.com/providers/zenodo.md)

Get direct download URL for a specific file from a Zenodo record. Validates the file exists.

## Run it with the CLI

```bash
kirha tools run zenodo_getZenodoFileUrl \
  --input '{
    "recordId": "<recordId>",
    "filename": "<filename>"
  }'
```

`--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": "zenodo_getZenodoFileUrl",
  "input": {
    "recordId": "<recordId>",
    "filename": "<filename>"
  }
}'
```

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": {
    "filename": {
      "description": "Exact filename to download. Get from getZenodoRecord tool.",
      "type": "string"
    },
    "recordId": {
      "description": "Zenodo record ID. Get from searchZenodo or getZenodoRecord tool.",
      "type": "string"
    }
  },
  "required": [
    "recordId",
    "filename"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "accessRight": {
      "type": "string"
    },
    "canDownload": {
      "type": "boolean"
    },
    "checksum": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "downloadUrl": {
      "type": "string"
    },
    "filename": {
      "type": "string"
    },
    "recordId": {
      "type": "string"
    },
    "size": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "recordId",
    "filename",
    "downloadUrl",
    "size",
    "accessRight",
    "canDownload"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getZenodoRecord`](https://kirha.com/providers/zenodo/getZenodoRecord.md)
- [`searchZenodo`](https://kirha.com/providers/zenodo/searchZenodo.md)

-----

[All Zenodo tools](https://kirha.com/providers/zenodo.md) · [< Back to tools list](https://kirha.com/tools.md)