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

# Export market analysis keywords to CSV

> Export keywords for a market analysis to CSV format.

Args:
    analysis_id: The market analysis ID
    include_unselected: Whether to include unselected keywords (default: False)
    user: The authenticated user

Returns:
    StreamingResponse with CSV content



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/market-analysis/analyses/{analysis_id}/keywords/export
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/market-analysis/analyses/{analysis_id}/keywords/export:
    get:
      tags:
        - Market Analysis
      summary: Export market analysis keywords to CSV
      description: |-
        Export keywords for a market analysis to CSV format.

        Args:
            analysis_id: The market analysis ID
            include_unselected: Whether to include unselected keywords (default: False)
            user: The authenticated user

        Returns:
            StreamingResponse with CSV content
      operationId: >-
        export_market_analysis_keywords_csv_api_v1_market_analysis_analyses__analysis_id__keywords_export_get
      parameters:
        - name: analysis_id
          in: path
          required: true
          schema:
            type: integer
            title: Analysis Id
        - name: include_unselected
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Include Unselected
      responses:
        '200':
          description: CSV file with keyword data
          content:
            application/json:
              schema: {}
            text/csv: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````