ViewsExport View Data as CSV

Export View Data as CSV

Export all data from a specific view as a CSV file

curl -X GET "https://api.nexus.usehardal.com/analytics/views/John Doe/data/csv?timeframe=today&startDate=example_string&endDate=example_string&timezone=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY"
{}
GET
/analytics/views/{name}/data/csv
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Authorization)
Authorizationstring
Required

API key (sent in header)

query
timeframestring
Required

Required preset timeframe for the query. Use custom together with startDate and endDate when querying a custom date range.

Options: today, yesterday, last7days, last30days, custom
query
startDatestring

Start date (YYYY-MM-DD)

query
endDatestring

End date (YYYY-MM-DD)

query
timezonestring

Timezone for date filtering (default: Europe/Istanbul)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

Query Parameters

timeframestring
Required

Required preset timeframe for the query. Use custom together with startDate and endDate when querying a custom date range.

Allowed values:todayyesterdaylast7dayslast30dayscustom
startDatestring

Start date (YYYY-MM-DD)

endDatestring

End date (YYYY-MM-DD)

timezonestring

Timezone for date filtering (default: Europe/Istanbul)

Responses

CSV export generated successfully.