Skip to content

Exporting CSV data from API

WARNING

This feature is not available in the Free & Lite plan

Our receipt API provides export tools for your data in CSV.

When accessing the API route, you will receive a ZIP archive containing CSV files.

Usage

First, you need to be authenticated to our API.

Export your data for a given campaign

shell
GET https://api.omen-data.io/v2/campaigns/{campaignId}/export
Authorization: Bearer {your_access_token}
GET https://api.omen-data.io/v2/campaigns/{campaignId}/export
Authorization: Bearer {your_access_token}

Export your data for a given endpoint:

shell
GET https://api.omen-data.io/v2/endpoints/{endpointsId}/export
Authorization: Bearer {your_access_token}
GET https://api.omen-data.io/v2/endpoints/{endpointsId}/export
Authorization: Bearer {your_access_token}

You should get an answer like this:

shell
HTTP/1.1 200 OK
Content-Disposition: attachment;filename="export_csv_2020_08_31_11_29_32.zip"
Content-Type: application/zip
Date: Mon, 31 Aug 2020 11:29:38 GMT
Transfer-Encoding: chunked
HTTP/1.1 200 OK
Content-Disposition: attachment;filename="export_csv_2020_08_31_11_29_32.zip"
Content-Type: application/zip
Date: Mon, 31 Aug 2020 11:29:38 GMT
Transfer-Encoding: chunked

INFO

For more information on API Usage check the dedicated documentation.

Check the CSV fields details page for more info about what you can download.