Return Properties for Your Most Accurate Traits

A GET method that returns a list of your most influential (accurate) traits.

Request

GET https://api.demdex.com/v1/models/<model-id>/runs/latest/traits/

Optional Query Parameters

You can use these optional parameters with API methods that return all properties for an object. Set these options in the request string when passing that query in to the API. See also Optional Parameters.
Parameter Description
page Returns results by page number. Numbering starts at 0.
pageSize Sets the number of response results returned by the request (10 is default).
sortBy Sorts and returns results according to the specified JSON property.
descending Sorts and returns results in descending order. Ascending is default.
search Returns results based on the specified string you want to use as a search parameter. For example, let's say you want to find results for all models that have the word "Test" in any of the value fields for that item. Your sample request could look like this:

GET https://api.demdex.com/v1/models/?search=Test.

You can search on any value returned by a "get all" method.

folderId Returns all the IDs for traits inside the specified folder. Not available to all methods.
Sample Response
{
   "total": 2,
   "page": 0,
   "pageSize": 10,
   "list": [
        {
          "sid": 914,
          "pid": 1,
          "name": "sample rule",
          "description": "hello world, i am your rule.. err",
          "traitRuleVersion": 0,
          "ttl": 0,
          "crUID": 3,
          "upUID": 3,
          "createTime": 1346790825000,
          "updateTime": 1346790825000,
          "dataSourceId": 3,
          "folderId": 10,
          "traitType": "RULE_BASED_TRAIT",
          "uniques7Day": 213930,
          "uniques14Day": 415599,
          "uniques30Day": 770717,
          "uniques60Day": 9,
          "count7Day": 657,
          "count14Day": 626,
          "count30Day": 5201, 
          "count60Day": 149,
          "weight": 67,
          "rank": 1
        },
       {
          "sid": 9,
          "pid": 1,
          "name": "trait2",
          "description": "new trait 2",
          "comments": "",
          "integrationCode": "",
          "traitRule": "",
          "traitRuleVersion": 0,
          "ttl": 0,
          "crUID": 3,
          "upUID": 3,
          "createTime": 1344277873000,
          "updateTime": 1344277873000,
          "type": 1,
          "dataSourceId": 1,
          "folderId": 10,
          "traitType": 3,
          "uniques7Day": 113632,
          "uniques14Day": 210777,
          "uniques30Day": 393718,
          "uniques60Day": 77,
          "count7Day": 85502,
          "count14Day": 977684,
          "count30Day": 3755,
          "count60Day": 18517223,
          "weight": 37,
          "rank": 2
        }
   ]
}