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.

    Request

    Path Params

    app_name
    Requiredstring

    Airbridge App Name. (Unique ID)

    type
    Requiredenum

    The type of raw data. It can be set to web or app.

    ENUM VALUES
    app

    Export app data.

    web

    Export web data.

    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
    12345
    curl -X POST 'https://api.airbridge.io/log-export/api/v3/apps/{app_name}/{type}/request' \
      -H 'Accept-Language: en' \
      -H 'Content-Type: application/json' \
      -H 'Authorization: Bearer {AIRBRIDGE-API-TOKEN}' \
      -d '{"dateRange":{"start":"2023-01-01 01:00:00","end":"2023-01-07 01:00:00"},"events":["app_deeklink_open"],"properties":["channel"]}'
    Payload
    123456789101112
    {
      "dateRange": {
        "start": "2023-01-01 01:00:00",
        "end": "2023-01-07 01:00:00"
      },
      "events": [
        "app_deeklink_open"
      ],
      "properties": [
        "channel"
      ]
    }

    Response

    200 SUCCESS

    404 ERROR

    Response
    123456
    {
      "at": 1541410684717,
      "data": {
        "reportID": 2500
      }
    }

    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

    Path Params

    app_name
    Requiredstring

    Airbridge App Name. (Unique ID)

    report_id
    Requiredinteger

    The report_id returned by the result of the 'Request Raw Data Export' API.

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

    Response

    200 SUCCESS

    404 ERROR

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

    Was this page helpful?

    Have any questions or suggestions?