---
title: "Export Csv"
method: GET
path: "/api/reports/export/csv"
tags: ["reports"]
---

# Export Csv

`GET /api/reports/export/csv`

## Request

- Base URL: `https://api.halalterminal.com`
- URL: `https://api.halalterminal.com/api/reports/export/csv`
- Auth: API key in header `X-API-Key`

Export all cached screening results as a downloadable CSV file.

Returns a CSV file containing the most recent screening results for all
previously screened stocks. The file is served as a streaming download
with the filename ``screening_results.csv``.

**curl example:**
```bash
curl -X GET "http://localhost:8000/api/reports/export/csv" -o screening_results.csv
```

**Python requests example:**
```python
import requests

resp = requests.get("http://localhost:8000/api/reports/export/csv")
with open("screening_results.csv", "w") as f:
    f.write(resp.text)
```

## Response `200`

CSV file with screening results

- unknown

## Other responses

- `401`: Authentication required
- `404`: Resource not found
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/halalterminal/apis/halal-terminal-api.md) · [All operations](https://skmtc.dev/halalterminal/apis/halal-terminal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/halalterminal/apis/halal-terminal-api/revisions/78768b250943?raw)
