> ## 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.

# Request an async traffic data export to CSV

> Queues a background export of traffic data. Returns immediately with a 202 response. The user receives an email with a download link once the export is ready. Date range cannot exceed 30 days.



## OpenAPI

````yaml /openapi.json get /api/traffics/export
openapi: 3.1.0
info:
  title: AnyIP.io API documentation
  description: API documentation
  version: 1.0.0
servers:
  - url: /
    description: ''
security:
  - apiHeader: []
tags:
  - name: Export
    description: Export operations
  - name: IPWhitelist
    description: Supplementary IP whitelist operations
  - name: Payment
    description: Team payment invoice download
  - name: ProxyAccount
    description: Resource 'ProxyAccount' operations.
  - name: ProxyProfile
    description: Supplementary proxy profile operations
  - name: Tag
    description: Core tag operations
  - name: Team
    description: NOWPayments subscription operations
  - name: Traffic
    description: Resource 'Traffic' operations.
  - name: User
    description: Deprecated user subscription and payment operations
paths:
  /api/traffics/export:
    get:
      tags:
        - Traffic
      summary: Request an async traffic data export to CSV
      description: >-
        Queues a background export of traffic data. Returns immediately with a
        202 response. The user receives an email with a download link once the
        export is ready. Date range cannot exceed 30 days.
      operationId: traffics_get_export
      parameters:
        - name: date
          in: query
          description: Date range
          required: false
          deprecated: false
          schema:
            type: array
            properties:
              after:
                type: string
              before:
                type: string
          style: form
          explode: true
        - name: proxy_account
          in: query
          description: Proxy accounts to include (empty = all)
          required: false
          deprecated: false
          schema:
            type: array
            items:
              type: string
          style: form
          explode: true
        - name: date[after]
          in: query
          description: >-
            Start of range (inclusive). Must be after -91 days and before
            `date[before]`.
          required: true
          deprecated: false
          schema:
            type: string
            format: date-time
          style: form
          explode: true
        - name: date[before]
          in: query
          description: End of range (inclusive). Must be ≤ now and after `date[after]`.
          required: true
          deprecated: false
          schema:
            type: string
            format: date-time
          style: form
          explode: true
        - name: interval
          in: query
          description: Chart aggregation interval. Omit to infer from the date range.
          required: false
          deprecated: false
          schema:
            type: string
            enum:
              - hourly
              - daily
              - daily_week
          style: form
          explode: true
      responses:
        '202':
          description: Export request accepted
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/Traffic.jsonld-export.read'
            application/json:
              schema:
                $ref: '#/components/schemas/Traffic-export.read'
            text/html:
              schema:
                $ref: '#/components/schemas/Traffic.html-export.read'
        '403':
          description: Forbidden
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/Error.jsonld'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          links: {}
        '404':
          description: Not found
          content:
            application/ld+json:
              schema:
                $ref: '#/components/schemas/Error.jsonld'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          links: {}
        '429':
          description: Too many export requests in progress; retry later
      security:
        - bearerAuth: []
components:
  schemas:
    Traffic.jsonld-export.read:
      allOf:
        - $ref: '#/components/schemas/HydraItemBaseSchema'
        - type: object
      description: Request an async traffic data export to CSV.
    Traffic-export.read:
      type: object
      description: Request an async traffic data export to CSV.
    Traffic.html-export.read:
      type: object
      description: Request an async traffic data export to CSV.
    Error.jsonld:
      allOf:
        - $ref: '#/components/schemas/HydraItemBaseSchema'
        - type: object
          properties:
            title:
              readOnly: true
              description: A short, human-readable summary of the problem.
              type:
                - string
                - 'null'
            detail:
              readOnly: true
              description: >-
                A human-readable explanation specific to this occurrence of the
                problem.
              type:
                - string
                - 'null'
            status:
              type:
                - integer
                - 'null'
              examples:
                - 404
              default: 400
            instance:
              readOnly: true
              description: >-
                A URI reference that identifies the specific occurrence of the
                problem. It may or may not yield further information if
                dereferenced.
              type:
                - string
                - 'null'
            type:
              readOnly: true
              description: A URI reference that identifies the problem type
              type: string
            description:
              readOnly: true
              type:
                - string
                - 'null'
      description: A representation of common errors.
    Error:
      type: object
      description: A representation of common errors.
      properties:
        title:
          readOnly: true
          description: A short, human-readable summary of the problem.
          type:
            - string
            - 'null'
        detail:
          readOnly: true
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          type:
            - string
            - 'null'
        status:
          type:
            - integer
            - 'null'
          examples:
            - 404
          default: 400
        instance:
          readOnly: true
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem. It may or may not yield further information if
            dereferenced.
          type:
            - string
            - 'null'
        type:
          readOnly: true
          description: A URI reference that identifies the problem type
          type: string
    HydraItemBaseSchema:
      type: object
      properties:
        '@context':
          oneOf:
            - type: string
            - type: object
              properties:
                '@vocab':
                  type: string
                hydra:
                  type: string
                  enum:
                    - http://www.w3.org/ns/hydra/core#
              required:
                - '@vocab'
                - hydra
              additionalProperties: true
        '@id':
          type: string
        '@type':
          type: string
      required:
        - '@id'
        - '@type'
  securitySchemes:
    apiHeader:
      type: apiKey
      description: Value for the api-key header parameter.
      name: api-key
      in: header

````