Skip to content

Diamonds in the Rough (DITR)#

In the following example you will retrieve all the upcoming NBA player performance predictions that are considered Diamonds in the Rough (DITR). Players are on the DITR if their prediction reaches a particular prediction threshold that they haven't hit in a given number of games (varies by sport)

Related Sports Data APIS

Method Description Availability
GET /{sport}/v2/performances/diamonds All Leagues

Start By querying the /{sport}/v2/performances/diamonds endpoint.

GET https://api.quarter4.io/american-football/performances/diamonds

The result includes all player performance results for upcoming games where the performance prediction is being considered a Diamond in the Rough Performance. For example:

{
  "links": {
    "self": "\/basketball\/v2\/performances\/diamonds"
  },
  "meta": {
    "totalItems": 33
  },
  "data": [
    {
      "id": "\/basketball\/v2\/performances\/b2402982-2a2a-3d67-8709-f1709f124028",
      "type": "Performance",
      "attributes": {
        "uuid": "b2402982-2a2a-3d67-8709-f1709f124028",
        "minutesPlayed": 36.302,
        "totalSecondsPlayed": 2178.132,
        "flagrantFouls": null,
        "foulsReceived": null,
        "blocksReceived": null,
        "plusMinus": null,
        "fieldGoalsMade": 7.733,
        "fieldGoalsAttempted": 17.227,
        "freeThrowsMade": 4.092,
        "freeThrowsAttempted": 5.823,
        "threePointFieldGoalsMade": 1.967,
        "threePointFieldGoalsAttempted": 4.881,
        "points": 21.525,
        "reboundsOffensive": 1.302,
        "reboundsDefensive": 6.502,
        "reboundsTotal": 7.804,
        "assists": 5.278,
        "steals": 1.304,
        "blockedShots": 0.894,
        "turnovers": 2.91,
        "personalFouls": 3.027,
        "technicalFouls": null,
        "gameScore": 16.232,
        "prob4plusThreePoints": 0.141,
        "prob30plusPoints": 0.052,
        "prob10plusAssists": 0,
        "prob10plusRebounds": 0.148,
        "probDoubleDouble": 0.135,
        "probTripleDouble": 0
      },
      "relationships": {
        "player": {
          "data": {
            "type": "Player",
            "id": "\/basketball\/v2\/players\/0575c08f-055e-46fa-8fa1-9beb39b3168b"
          }
        },
        "event": {
          "data": {
            "type": "Event",
            "id": "\/basketball\/v2\/events\/63a35569-9169-43fa-8919-189526d05f08"
          }
        },
        "team": {
          "data": {
            "type": "Team",
            "id": "\/basketball\/v2\/teams\/d4c5d92a-43dd-40f9-96cc-c23f68733736"
          }
        }
      }
    },
    ...cut...
  }
}

The resulting performance entities give you various player related pre-game probabilities depending on the league and/or sport.