User Activity Data API

Overview

Netcore CE provides the API to enable the client to support GDPR requests when the Data Subject has exercised Right of access by the data subject under Art. 15 GDPR.

Through this API, the client can get the user's data.

📘

Date Range Limitation

The date range for exporting reports using these APIs is limited to seven days.

Base URL

US IDC:
https://api.netcoresmartech.com/apiv2?type=export_data&activity=get_user_activity_data&apikey=<API_KEY>

Indian IDC:
https://apiin.netcoresmartech.com/apiv2?type=export_data&activity=get_user_activity_data&apikey=<API_KEY>

Europe IDC:
https://jsonapi.eu-north-1.eu.netcoresmartech.com/apiv2?type=export_data&activity=get_user_activity_data&apikey=<API_KEY>

HTTP Method

POST

Body Parameters

ParameterDetailTypeIs MandatoryExample Value
dataPass the as JSONJSON StringYesdata will be JSON string. The below key : value param will be acceptable

primary_key (PK of user)
fromdata (ddmmyyyy)
todate (ddmmyyyy)
activityid (pass activity id)
batchsize (pass number of records)
batch_number (offset)

API Response

Response Example - In the Success case

{
    "status": "success",
    "result": {
        "activity_data": [
          	// array of activity data
        ],
        "total_count": 18,
        "primary_key": "[email protected]",
        "from_date": "<from_date>",
        "to_date": "<to_date>",
        "batch_size": 10,
        "batch_number": 1
    },
    "details": "Data fetched successfully."
}

Response Sample

{
    "status": "success",
    "result": {
        "activity_data": [
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "current_url": "https://url.com/qa10/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 14:58:40"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "previous_url": "https://url.com/qa10/",
                "current_url": "https://url.com/qa10/my-account/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 14:58:49"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "previous_url": "https://url.com/qa10/my-account/",
                "current_url": "https://url.com/qa10/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 14:58:53"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "previous_url": "https://url.com/qa10/product-category/electronics/",
                "current_url": "https://url.com/qa10/product-category/posters/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 14:59:11"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "previous_url": "https://url.com/qa10/product-category/electronics/",
                "current_url": "https://url.com/qa10/product-category/posters/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 15:04:13"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "current_url": "https://url.com/qa10/?__sta=jo.hg.lbhgmljxlzwskqsksv.kqlcbsq%7CYTV&__stm_medium=bpn&__stm_source=smartech",
                "event_type": "web",
                "activity_date_time": "2018-07-19 15:47:05"
            },
            {
                "operating_system": "JAVA",
                "event_type": "app",
                "activity_date_time": "2018-07-19 15:47:50"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "current_url": "https://url.com/qa10/cart/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 16:18:15"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "previous_url": "https://url.com/qa10/cart/",
                "current_url": "https://url.com/qa10/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 16:18:57"
            },
            {
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
                "ip": "192.168.41.50",
                "previous_url": "https://url.com/qa10/",
                "current_url": "https://url.com/qa10/product/happy-ninja-1-2/",
                "event_type": "web",
                "activity_date_time": "2018-07-19 16:19:04"
            }
        ],
        "total_count": 18,
        "primary_key": "[email protected]",
        "from_date": "15072018",
        "to_date": "19072018",
        "batch_size": 10,
        "batch_number": 1
    },
    "details": "Data fetched successfully."
}