• API Reference

Raw Data

Airbridge's data export feature allows you to select and extract raw data from your marketing campaigns into a .csv file. Begin exporting via [Raw Data > Data Export]. Raw Data Export is available for App and Web in a separate section.


Request Raw Data Export

POST

https://api.airbridge.io/log-export/api/v3/apps/{app_name}/{type}/request

Request a Raw Data Export.

rate limit: 100 requests per day.

Request

Body Params

dateRange
Requiredobject

Set the data export period.

events
Requiredstring[]

The event to be extracted. (App Event KeyWeb Event Key)

properties
Requiredstring[]

The Property to be extracted. (App Event PropertiesWeb Event Properties)

filters
object[]

The filter for providing 'group by' items.

Request
curl -X POST 'https://api.airbridge.io/log-export/api/v3/apps/{app_name}/{type}/request' \ -d '{"dateRange":{"start":"2023-01-01 01:00:00","end":"2023-01-07 01:00:00"},"events":["app_install"],"properties":["channel"]}'
Payload
{ "dateRange": { "start": "2023-01-01 01:00:00", "end": "2023-01-07 01:00:00" }, "events": [ "app_install" ], "properties": [ "channel" ]}

Response

200SUCCESS

404ERROR

Response
{ "at": 1541410684717, "data": { "reportID": 2500 }}
Response
{ "type": "about:blank", "title": "Not Found", "status": 404, "traceId": "1-000000-000000000000000"}

Get Raw Data Export

GET

https://api.airbridge.io/log-export/api/v3/apps/{app_name}/request/{report_id}

Gets the URL where the results of the raw data export can be downloaded.

Request

Headers

Accept-Language
string

You can specify the language to use for API requests and responses. It follows the ISO-639-1 format.

Content-Type
string

Represents the media type of the resource. Defaults to application/json.

Authorization
string

The key value to use for API requests. Instructions for getting API keys are in "how to generate API Keys".

Path Params

app_name
Requiredstring

Airbridge App Name. (Unique ID)

Request
curl -X GET 'https://api.airbridge.io/log-export/api/v3/apps/{app_name}/request/{report_id}' \ -H 'Accept-Language: ko' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {AIRBRIDGE-API-TOKEN}'

Response

200SUCCESS

Response
{ "data": { "url": "https://ab180-athena.s3.amazonaws.com/workgroup/..." }}