# Download File

> Windows | Cross-platform

## Project compatibility

Windows | Cross-platform

## Overview

| Description | API Method | API Path |
| --- | --- | --- |
| The Download File activity retrieves the file from a GitHub repository at a specified path and reference. | GET | /repos/{owner}/{repo}/contents/{path} |

## Input

| Parameter | Description | Data Type |
| --- | --- | --- |
| Repository | Repository containing the file; name is case‑insensitive. | string |
| Path | File or directory path within the repository (for example, `src/app/settings.json`). | string |
| Reference | Optional commit, branch, or tag name; defaults to the repository’s default branch. | string |

## Output

| Parameter | Description | Data Type |
| --- | --- | --- |
| Download File | File content for the requested path.  The downloaded file/attachment can be used as input in other Upload file/attachment activities of systems such as GitHub, Zendesk, Google Drive, OneDrive, Box, etc. In order to use the file, you must store it in a remote directory like Google Drive, OneDrive, etc. It is not possible to store the file in local directory. | file (IResource) |

:::note
* In API workflows, a single
response object is returned as the output. Any required fields can be extracted directly from this object.
* In RPA workflows, some output
parameters may differ, but the necessary values can still be retrieved from the response object even if they are not explicitly exposed.
:::
