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

# Export Events

> Export events in CSV, GeoJSON, JSON, ACLED, flat, or partner_ngmfa format.

Uses streaming to handle large datasets without timeouts.
Results are intersected with this API key's scope if one is configured.



## OpenAPI

````yaml /api-reference/corpus-product-openapi.json get /v1/events/export
openapi: 3.1.0
info:
  title: Intrace Corpus Product API
  version: 1.0.0
  description: >-
    Professional API for accessing events, actors, locations, and metadata from
    the Intrace corpus database.
servers:
  - url: https://api.corpus.intrace.ai
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/events/export:
    get:
      tags:
        - Events
      summary: Export Events
      description: >-
        Export events in CSV, GeoJSON, JSON, ACLED, flat, or partner_ngmfa
        format.


        Uses streaming to handle large datasets without timeouts.

        Results are intersected with this API key's scope if one is configured.
      operationId: export_events_v1_events_export_get
      parameters:
        - name: format
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ExportFormat'
            description: Export format
            default: csv
          description: Export format
        - name: country
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            description: Filter by country (repeatable)
            default: []
            title: Country
          description: Filter by country (repeatable)
        - name: event_type
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            description: Filter by event type (repeatable)
            default: []
            title: Event Type
          description: Filter by event type (repeatable)
        - name: event_category
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            description: Filter by event category (repeatable)
            default: []
            title: Event Category
          description: Filter by event category (repeatable)
        - name: event_subtype
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            description: Filter by event subtype (repeatable)
            default: []
            title: Event Subtype
          description: Filter by event subtype (repeatable)
        - name: date_from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: Date From
        - name: date_to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: Date To
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Search
        - name: salience_score_min
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: Minimum salience score
            title: Salience Score Min
          description: Minimum salience score
        - name: salience_score_max
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: Maximum salience score
            title: Salience Score Max
          description: Maximum salience score
        - name: article_count_min
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            description: Minimum article count
            title: Article Count Min
          description: Minimum article count
        - name: article_count_max
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            description: Maximum article count
            title: Article Count Max
          description: Maximum article count
        - name: actor_count_min
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            description: Minimum actor count
            title: Actor Count Min
          description: Minimum actor count
        - name: actor_count_max
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            description: Maximum actor count
            title: Actor Count Max
          description: Maximum actor count
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            description: Sort column
            default: event_date
            title: Sort By
          description: Sort column
        - name: sort_order
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/SortOrder'
            description: Sort direction
            default: desc
          description: Sort direction
        - name: api_key
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Corpus API key
            title: Api Key
          description: Corpus API key
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Corpus API key
            title: X-Api-Key
          description: Corpus API key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ExportFormat:
      type: string
      enum:
        - csv
        - geojson
        - json
        - acled
        - flat
        - partner_ngmfa
      title: ExportFormat
      description: Supported export formats for the corpus API.
    SortOrder:
      type: string
      enum:
        - asc
        - desc
      title: SortOrder
      description: Sort direction for API queries.
    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:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````