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

# export_data

> Export completed task data as JSON or CSV.

<Info>
  Use this tool when a task has already completed and you want to retrieve its data.
</Info>

<Steps>
  <Step title="When to use">
    Use this when a task has already completed and you want to retrieve its data.
  </Step>

  <Step title="What it returns">
    Collected records in JSON or CSV when task data is available.
  </Step>

  <Step title="Common failure cases">
    * The task has not completed yet
    * The task ID is invalid
    * The account does not have permission to access the task data
  </Step>
</Steps>

#### Example prompt

<Card>
  *"Export the results from my last completed task as CSV"*
</Card>
