> ## 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

> Check export status and retrieve export metadata for an AgentTools task.

<Info>
  The query parameters, cURL example, and response schema are generated from the OpenAPI definition in the API panel.
</Info>

Check export status and retrieve export metadata for a task.

<Steps>
  <Step title="Use a taskId">
    Pass the `taskId` returned by `executeTask` or `searchTasks`.
  </Step>

  <Step title="Select export options">
    `exportFileType` defaults to `JSON`. `previewRows` defaults to `5`.
  </Step>

  <Step title="Follow response guidance">
    Use `retryGuidance` and `suggestedNextCall` to decide whether and when to call again.
  </Step>
</Steps>

```text theme={null}
searchTemplates -> executeTask -> exportData
searchTasks -> startOrStopTask -> exportData
```

<CardGroup cols={2}>
  <Card title="Supported formats" icon="file-code">
    `EXCEL`, `CSV`, `HTML`, `JSON`, and `XML`.
  </Card>

  <Card title="Preview rows" icon="table">
    `previewRows` accepts `0` through `20`.
  </Card>
</CardGroup>

<Warning>
  Do not assume clients should automatically download or parse `exportFileUrl`. Treat it as an export artifact reference and follow response guidance.
</Warning>

<AccordionGroup>
  <Accordion title="Status values">
    `collecting`: the task is still collecting data.

    `exporting`: export is being prepared.

    `exported`: export metadata is available.

    `no_data`, `failed`, and `invalid`: no export artifact should be assumed.
  </Accordion>

  <Accordion title="Exported response">
    When `status` is `exported`, `response.data` includes `exportFileUrl` and may include `sampleData`.
  </Accordion>

  <Accordion title="Paging fields">
    `page`, `pageSize`, and `total` are returned when paged export metadata is available.
  </Accordion>
</AccordionGroup>
