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

# Export traffic data to CSV

> Exports traffic data to a CSV file based on the provided date range and proxy account.



## OpenAPI

````yaml /openapi.json get /api/traffics/export
openapi: 3.1.0
info:
  title: AnyIP.io API documentation
  description: >-
    The anyIP REST API allows you to programmatically manage proxy accounts,
    monitor traffic, and access geographic data. Authenticate using your API
    key.
  version: 1.0.0
servers:
  - url: https://dashboard.anyip.io
    description: anyIP Production API
security:
  - apiHeader: []
tags: []
paths:
  /api/traffics/export:
    get:
      tags:
        - Traffic
      summary: Export traffic data to CSV
      description: >-
        Exports traffic data to a CSV file based on the provided date range and
        proxy account.
      operationId: api_trafficsexport.__format_get_collection
      parameters:
        - name: date[after]
          in: query
          description: Start date for the date range filter (inclusive).
          required: false
          deprecated: false
          schema:
            type: string
            format: date-time
          style: form
          explode: false
          allowReserved: false
        - name: date[before]
          in: query
          description: End date for the date range filter (inclusive).
          required: false
          deprecated: false
          schema:
            type: string
            format: date-time
          style: form
          explode: false
          allowReserved: false
        - name: proxy_account
          in: query
          description: Filter by proxy account.
          required: false
          deprecated: false
          schema:
            type: string
          style: form
          explode: false
          allowReserved: false
        - name: date[strictly_before]
          in: query
          description: ''
          required: false
          deprecated: false
          schema:
            type: string
          style: form
          explode: false
          allowReserved: false
        - name: date[strictly_after]
          in: query
          description: ''
          required: false
          deprecated: false
          schema:
            type: string
          style: form
          explode: false
          allowReserved: false
        - name: proxy_account[]
          in: query
          description: ''
          required: false
          deprecated: false
          schema:
            type: array
            items:
              type: string
          style: form
          explode: true
          allowReserved: false
        - name: date
          in: query
          description: Date range
          required: false
          deprecated: false
          schema:
            type: array
            properties:
              after:
                type: string
              before:
                type: string
          style: form
          explode: false
          allowReserved: false
      responses:
        '200':
          description: CSV file containing the exported traffic data.
          headers:
            Content-Disposition:
              description: attachment; filename="export.csv"
              schema:
                type: string
            Content-Type:
              description: text/csv
              schema:
                type: string
          content:
            text/csv:
              schema:
                type: string
                format: binary
        '404':
          description: No data found for the given filters.
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    apiHeader:
      type: apiKey
      description: Value for the api-key header parameter.
      name: api-key
      in: header

````