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

# Export transactions as CSV

> Exports transactions for a specific address as a CSV file.



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/addresses/{address_hash_param}/transactions/csv
openapi: 3.0.0
info:
  contact:
    email: info@blockscout.com
  title: Blockscout
  version: 11.0.3
servers:
  - url: http://localhost/api
    variables: {}
security: []
tags:
  - name: blocks
  - name: transactions
  - name: addresses
  - name: internal-transactions
  - name: tokens
  - name: token-transfers
  - name: smart-contracts
  - name: config
  - name: main-page
  - name: search
  - name: stats
  - name: csv-export
  - name: account-abstraction
  - name: withdrawals
  - name: advanced-filters
  - name: arbitrum
  - name: legacy
  - name: optimism
  - name: mud
  - name: celo
  - name: scroll
  - name: zilliqa
paths:
  /v2/addresses/{address_hash_param}/transactions/csv:
    get:
      tags:
        - addresses
      summary: Export transactions as CSV
      description: Exports transactions for a specific address as a CSV file.
      operationId: BlockScoutWeb.API.V2.CsvExportController.transactions_csv
      parameters:
        - description: API key for rate limiting or for sensitive endpoints
          in: query
          name: apikey
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Secret key for getting access to restricted resources
          in: query
          name: key
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Address hash in the path
          in: path
          name: address_hash_param
          required: true
          schema:
            $ref: '#/components/schemas/AddressHash'
        - description: Start of the time period (ISO 8601 format) in CSV export
          in: query
          name: from_period
          required: true
          schema:
            anyOf:
              - nullable: false
                pattern: >-
                  ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$
                type: string
                x-struct: null
                x-validate: null
              - $ref: '#/components/schemas/NullString'
            x-struct: null
            x-validate: null
        - description: End of the time period (ISO 8601 format) In CSV export
          in: query
          name: to_period
          required: true
          schema:
            anyOf:
              - nullable: false
                pattern: >-
                  ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$
                type: string
                x-struct: null
                x-validate: null
              - $ref: '#/components/schemas/NullString'
            x-struct: null
            x-validate: null
        - description: Filter type in CSV export
          in: query
          name: filter_type
          required: false
          schema:
            anyOf:
              - enum:
                  - address
                nullable: true
                type: string
                x-struct: null
                x-validate: null
              - $ref: '#/components/schemas/NullString'
            x-struct: null
            x-validate: null
        - description: Filter value in CSV export
          in: query
          name: filter_value
          required: false
          schema:
            anyOf:
              - enum:
                  - to
                  - from
                nullable: true
                type: string
                x-struct: null
                x-validate: null
              - $ref: '#/components/schemas/NullString'
            x-struct: null
            x-validate: null
      responses:
        '200':
          content:
            application/csv: {}
          description: CSV file of transactions.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      callbacks: {}
components:
  schemas:
    AddressHash:
      nullable: false
      pattern: ^0x([A-Fa-f0-9]{40})$
      title: AddressHash
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.AddressHash
      x-validate: null
    NullString:
      pattern: ^null$
      title: NullString
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.NullString
      x-validate: null
    NotFoundResponse:
      description: Response returned when the requested resource is not found
      properties:
        message:
          description: Error message indicating the requested resource was not found
          example: Resource not found
          type: string
          x-struct: null
          x-validate: null
      title: NotFoundResponse
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.ErrorResponses.NotFoundResponse
      x-validate: null
    JsonErrorResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: null value where string expected
                type: string
                x-struct: null
                x-validate: null
              source:
                properties:
                  pointer:
                    example: /data/attributes/petName
                    type: string
                    x-struct: null
                    x-validate: null
                required:
                  - pointer
                type: object
                x-struct: null
                x-validate: null
              title:
                example: Invalid value
                type: string
                x-struct: null
                x-validate: null
            required:
              - title
              - source
              - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      required:
        - errors
      title: JsonErrorResponse
      type: object
      x-struct: Elixir.OpenApiSpex.JsonErrorResponse
      x-validate: null

````