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

# Export report as CSV

> Download a CSV export of the report's widget data. Each widget that exposes tabular data (stat_card, table, line_chart, bar_chart, donut_chart) contributes one section to the CSV, labelled with the widget title and page name. Static text widgets are omitted from the export. Useful for sharing report data with clients or importing into spreadsheets.



## OpenAPI

````yaml https://api.surnex.io/openapi.json get /v1/projects/{project_id}/reports/{report_id}/export/csv
openapi: 3.1.0
info:
  title: Surnex API
  description: |-
    Surnex SEO Platform API — api.surnex.io

    Provides the complete backend for the Surnex SEO dashboard including:
    - Multi-tenant organization management
    - Project tracking (domains)
    - Keyword rank tracking (Phase 1+)
    - Backlink analysis (Phase 3+)
    - Site auditing (Phase 4+)
    - Stripe billing integration
    - MCP endpoint for AI agents at /mcp
  version: 0.1.0
servers: []
security: []
paths:
  /v1/projects/{project_id}/reports/{report_id}/export/csv:
    get:
      tags:
        - Reports
      summary: Export report as CSV
      description: >-
        Download a CSV export of the report's widget data. Each widget that
        exposes tabular data (stat_card, table, line_chart, bar_chart,
        donut_chart) contributes one section to the CSV, labelled with the
        widget title and page name. Static text widgets are omitted from the
        export. Useful for sharing report data with clients or importing into
        spreadsheets.
      operationId: >-
        export_report_csv_v1_projects__project_id__reports__report_id__export_csv_get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: report_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Report Id
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````