> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.datafortennis.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.datafortennis.com/_mcp/server.

# Read retained immutable prediction history

GET https://api.datafortennis.com/v1/matches/{matchId}/predictions

Limited engineering preview. Canonical own IDs; raw commentary and provider endpoints are private. No statistical quality or live SLA claim.

Reference: https://docs.datafortennis.com/api-reference/list-prediction-history

## Authentication

- `Authorization` header (bearer token, required) — Private development credential: keyId.secret; rotate/revoke through the offline operations CLI.

## Request

### Path parameters

- `matchId` (string, required)

### Query parameters

- `limit` (string, optional)
- `cursor` (string, optional)
- `point_id` (string, optional)
- `score_revision` (string, optional)

## Response

### 200

Canonical observed data

- `data` (list of PredictionRecord, required)
- `meta` (V1MatchesMatchIdPredictionsGetResponsesContentApplicationJsonSchemaMeta, required)
- `page` (V1MatchesMatchIdPredictionsGetResponsesContentApplicationJsonSchemaPage, required)
- `error` (V1MatchesMatchIdPredictionsGetResponsesContentApplicationJsonSchemaError, required, nullable)

## Errors

### 400 Bad Request Error

Request rejected or operational discovery unavailable

- `data` (ErrorData, required, nullable)
- `meta` (ErrorMeta, required, nullable)
- `page` (ErrorPage, required, nullable)
- `error` (ErrorError, required)

### 401 Unauthorized Error

Request rejected or operational discovery unavailable

- `data` (ErrorData, required, nullable)
- `meta` (ErrorMeta, required, nullable)
- `page` (ErrorPage, required, nullable)
- `error` (ErrorError, required)

### 403 Forbidden Error

Request rejected or operational discovery unavailable

- `data` (ErrorData, required, nullable)
- `meta` (ErrorMeta, required, nullable)
- `page` (ErrorPage, required, nullable)
- `error` (ErrorError, required)

### 503 Service Unavailable Error

Request rejected or operational discovery unavailable

- `data` (ErrorData, required, nullable)
- `meta` (ErrorMeta, required, nullable)
- `page` (ErrorPage, required, nullable)
- `error` (ErrorError, required)

## Types

### PredictionRecord

- `prediction_id` (string, required, nullable)
- `match_id` (string, required)
- `player_ids` (list of string, required)
- `state_revision` (string, required)
- `score_revision` (string, required, nullable)
- `point_id` (string, required, nullable)
- `point_sequence` (integer, required, nullable)
- `history_sequence` (string, required)
- `model_version` (string, required, nullable)
- `model_generation` (string, required, nullable)
- `probabilities` (list of double, required, nullable)
- `quality` (PredictionRecordQuality, required)
- `score_observed_at` (string, required, nullable)
- `score_received_at` (string, required, nullable)
- `enrichment_received_at` (string, required, nullable)
- `prediction_requested_at` (string, required, nullable)
- `computed_at` (string, required, nullable)
- `point_revision` (string, optional, nullable)
- `source_observed_at` (string, optional, nullable)
- `source_last_observed_at` (string, optional, nullable)
- `expires_at` (string, optional, nullable)
- `supersedes_prediction_id` (string, optional, nullable)

### V1MatchesMatchIdPredictionsGetResponsesContentApplicationJsonSchemaMeta

- `scope` (enum, required)
  - Allowed values: `observed_live`, `prediction_history`
- `pagination` (enum, optional)
  - Allowed values: `dynamic`
- `retention_days` (enum, optional)
  - Allowed values: `180`

### V1MatchesMatchIdPredictionsGetResponsesContentApplicationJsonSchemaPage

- `limit` (integer, required)
- `next_cursor` (string, required, nullable)

### V1MatchesMatchIdPredictionsGetResponsesContentApplicationJsonSchemaError

### ErrorData

### ErrorMeta

### ErrorPage

### ErrorError

- `code` (string, required)
- `message` (string, required)
- `request_id` (string, required)

### PredictionRecordQuality

- `features_used` (integer, required, nullable)
- `features_total` (enum, required, nullable)
  - Allowed values: `77`
- `qualification` (enum, required)
  - Allowed values: `shadow`
- `enrichment` (enum, optional)
  - Allowed values: `legacy`, `score_only`, `point_by_point`

## Examples

**Response**

```json
{
  "data": [
    {
      "prediction_id": "string",
      "match_id": "string",
      "player_ids": [
        "string"
      ],
      "state_revision": "string",
      "score_revision": "string",
      "point_id": "string",
      "point_sequence": 1,
      "history_sequence": "string",
      "model_version": "string",
      "model_generation": "string",
      "probabilities": [
        0.5
      ],
      "quality": {
        "features_used": 1,
        "features_total": 77,
        "qualification": "shadow",
        "enrichment": "legacy"
      },
      "score_observed_at": "string",
      "score_received_at": "string",
      "enrichment_received_at": "string",
      "prediction_requested_at": "string",
      "computed_at": "string",
      "point_revision": "string",
      "source_observed_at": "string",
      "source_last_observed_at": "string",
      "expires_at": "string",
      "supersedes_prediction_id": "string"
    }
  ],
  "meta": {
    "scope": "observed_live",
    "pagination": "dynamic",
    "retention_days": 180
  },
  "page": {
    "limit": 1,
    "next_cursor": "string"
  },
  "error": {}
}
```

**SDK Code**

```python
import requests

url = "https://api.datafortennis.com/v1/matches/matchId/predictions"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.datafortennis.com/v1/matches/matchId/predictions';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.datafortennis.com/v1/matches/matchId/predictions"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.datafortennis.com/v1/matches/matchId/predictions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.datafortennis.com/v1/matches/matchId/predictions")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.datafortennis.com/v1/matches/matchId/predictions', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.datafortennis.com/v1/matches/matchId/predictions");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.datafortennis.com/v1/matches/matchId/predictions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```