GET /api/:space/events

Description:

Returns a list of Events as modified by CompetitionsLabs based on the supplied Adjustment Factor.

This assumes that Events have first been uploaded via a POST request otherwise no data will be returned and the value of the "totalRecordsFound" variable in metadata will be 0.

GET responses can be filtered out based on the Events parameters to narrow down the results.

Resource URL:

https://<apphost>.competitionlabs.com/api/<your-space>/events

Request header

KeyValueRequired
X-API-KEY

Yes
Content-Type
application/jsonYes

Request URL parameter

Parameter
Type
Required
Description
space
StringYesThis is the space name which is linked to the account


Example:

Request
curl
--header "X-API-KEY: <your-api-key>"
--request GET https://app.competitionlabs.com/api/<your-space>/events?_limit=100&_skip=0&action=BET&memberId=ct_k3GgBypEEz9Hm7G2E&entityId=zoFYKW0Be43iAGUCWY4S&transactionTimestamp>==2019-11-20T14:29:30.662&transactionTimestamp<==2022-11-20T14:29:30.662&_sortByFields=transactionTimestamp:asc
Response
{
    "meta": {
        "totalRecordsFound": 1247007,
        "skip": 0,
        "limit": 20
    },
    "data": [
        	{
			"jsonClass": "Event",
			"accountId": "YM2azG4BcalO_y8q1gR0",
			"memberId": "oTN6zXYB1pYecFBkIrLs",
			"action": "BET",
			"entityId": "eRDpdXIBh0WUdv3VkifL",
			"sourceValue": 0.2,
			"points": 0.2,
			"transactionTimestamp": "2021-01-04T12:59:05.000+0000",
			"relatesTo": [],
			"relatesToExternal": ["123", "200261"],
			"metadata": [],
			"created": "2021-01-04T12:59:05.875+0000",
			"id": "73OvzXYBnc5ov9NVqj21",
			"origin": 1
		},
        ...
        ...
        ...
    ]
}