Program Accuracy Stats

View as Markdown
## Overview The **Program Accuracy Statistics API** provides program-level accuracy metrics for supported airline loyalty programs. This endpoint allows clients to retrieve the current accuracy score for a specific program, enabling transparency into data reliability and operational performance. Accuracy metrics are calculated continuously based on internal validation and monitoring systems and are intended to help partners assess data quality for routing, analytics, and decision-making workflows. --- ## Authentication All requests must include a valid `api_key`. --- ## Request ### Request Body ``` json { "program": "AA", "api_key": "YOUR_API_KEY" } ``` ### Request Fields | Field | Type | Required | Description | | --- | --- | --- | --- | | `program` | String | Yes | Airline loyalty program code (e.g., `AA`, `DL`, `UA`). | | `api_key` | String | Yes | API key used to authenticate the request. | --- ## Response ### Successful Response ``` json { "accuracy": "99.77614326830829", "machine": "APP_PLATFORM", "status": 200 } ``` ### Response Fields | Field | Type | Description | | --- | --- | --- | | `accuracy` | String | Accuracy percentage for the specified program. | | `machine` | String | Source system or platform used to compute the metric. | | `status` | Number | HTTP-like status code indicating request success. | **Note:** Accuracy values are expressed as percentages and may change over time as new data is processed. --- ## Error Handling | Status | Description | | --- | --- | | 400 | Invalid or missing request parameters | | 401 | Invalid API key | | 404 | Program not supported | | 500 | Internal server error | --- ## Usage Notes - Accuracy metrics are **program-specific** and should be interpreted independently. - This endpoint is intended for **monitoring, analytics, and transparency**, not for real-time availability decisions. - Accuracy values are informational and may vary as systems and airline sources change. --- ## Example Use Cases - Display program reliability indicators in partner dashboards - Filter or weight award search results based on program accuracy - Monitor data quality trends over time

Headers

authoritystringOptional
sec-ch-uastringOptional

Request

This endpoint expects an object.
programstringRequired
api_keystringRequired