> ## Documentation Index
> Fetch the complete documentation index at: https://docs.smooth.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# File Download

> Learn how to use Smooth to download files

## Overview

The following demonstrates how to instruct Smooth to download and return files from the web.

<CodeGroup>
  ```python Python theme={null}
  # pip install smooth-py
  from smooth import SmoothClient

  smooth_client = SmoothClient(api_key="cmzr-YOUR_API_KEY")
  task = smooth_client.run("Go to https://pdfobject.com/examples/passing-element-styled.html and download the pdf file.")

  print(f"Agent response: {task.result()}")
  print(f"Downloaded file archive URL: {task.downloads_url()}")
  ```
</CodeGroup>

Downloaded files are automatically deleted from our servers after 24 hours.
