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

# export

## export\_records

```python theme={null}
def export_records(project_id: str,
                   root_type: RootType=RootType.TRACE,
                   filters: Optional[list[FilterType]]=None,
                   sort: LogRecordsSortClause=LogRecordsSortClause(column_id='created_at', ascending=False),
                   export_format: LLMExportFormat=LLMExportFormat.JSONL,
                   log_stream_id: Optional[str]=None,
                   experiment_id: Optional[str]=None,
                   column_ids: Optional[list[str]]=None,
                   redact: bool=True) -> Iterator[dict[str, Any]]
```

Exports records from a Galileo project.

Defaults to the first logstream if `log_stream_id` and `experiment_id` are not provided.

**Arguments**

* `project_id`: The unique identifier of the project.
* `root_type`: The type of records to export.
* `export_format`: The desired format for the exported data.
* `log_stream_id`: Filter records by a specific run ID.
* `experiment_id`: Filter records by a specific experiment ID.
* `filters`: A list of filters to apply to the export.
* `column_ids`: A list of column IDs to include in the export.
* `sort`: A sort clause to order the exported records.
* `redact`: Redact sensitive data from the response.

**Returns**

* `An iterator that yields each record as a dictionary.`:
