> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "Export event markets"
description: "Export all markets belonging to an event as a CSV or TSV file download. Columns: marketid, platform, question, latestprice, totalvolume."
api: "GET /api/v1/export/events/{id}/markets.{ext}"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```bash title="cURL" lines=false
    curl -X GET "https://api.adjacent.markets/api/v1/export/events/<id>/markets.csv" \
      -H "Authorization: Bearer <token>"
    ```
  </RequestExample>
</Aside>

<OpenAPIEndpoint {...{"method":"get","path":"/api/v1/export/events/{id}/markets.{ext}","summary":"Export event markets","description":"Export all markets belonging to an event as a CSV or TSV file download. Columns: market_id, platform, question, latest_price, total_volume.","parameters":[{"name":"id","in":"path","required":true,"description":"Event ID","schema":{"type":"string"}},{"name":"ext","in":"path","required":true,"description":"Export file format","schema":{"type":"string","enum":["csv","tsv"]}}],"responses":[{"status":"200","description":"CSV/TSV file of the event's markets","examples":[]},{"status":"400","description":"Invalid format (ext must be csv or tsv)","schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}},"examples":[]},{"status":"404","description":"Event not found","schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}},"examples":[]}],"security":[{"name":"bearerAuth","type":"http","scheme":"bearer","in":"header","description":"Clerk JWT Bearer token"}],"servers":[{"url":"https://api.adjacent.markets","description":"API server"}]}} />
