# Read accuracy measurements

Retrieve the numeric engine's measured results on its evaluation corpus.

Documentation index: https://webcite.co/llms.txt
Canonical page: https://webcite.co/api-docs/accuracy
API origin: https://api.webcite.co
Authentication: x-api-key header. Keep keys on your server.

## When to use it

These measurements describe a specific evaluation corpus. They are not a guarantee of accuracy for your documents. Keep the corpus context with any reported score.

## Request

GET /api/v1/accuracy

1 credit.

### curl

```curl
curl --fail-with-body -X GET 'https://api.webcite.co/api/v1/accuracy' \
  -H "x-api-key: $WEBCITE_API_KEY"
```

### Node.js

```javascript
const response = await fetch("https://api.webcite.co/api/v1/accuracy", {
  method: "GET",
  headers: {
    "x-api-key": process.env.WEBCITE_API_KEY,
  },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
```

### python

```python
import os
import requests

response = requests.get(
    "https://api.webcite.co/api/v1/accuracy",
    headers={"x-api-key": os.environ["WEBCITE_API_KEY"]},
    timeout=(10, 300),
)
response.raise_for_status()
print(response.json())
```

## Response

Returns corpus measurements for conflict detection and recomputation. The public contract does not define all response fields.

## Errors

For 400, check the request fields and source identifiers. For 401, check your API key. For 429, wait for the retry interval. See the errors guide before retrying a billable request.

## OpenAPI operation

```json
{
  "path": "/api/v1/accuracy",
  "method": "GET",
  "operation": {
    "description": "The engine's measured accuracy against a gold-set corpus: conflict detection recall and precision, and recompute correctness. Reproducible and gated on every build — an accuracy regression cannot ship.\n\n**Cost: 1 credit.** No LLM calls; the report runs the deterministic gold-set eval on the server, so it is subject to your plan's rate limits.",
    "operationId": "ApiV1Controller_accuracy",
    "parameters": [],
    "responses": {
      "200": {
        "description": "Corpus accuracy report"
      },
      "401": {
        "description": "Unauthorized - API key required"
      },
      "429": {
        "description": "Rate limit exceeded"
      }
    },
    "security": [
      {
        "x-api-key": []
      },
      {
        "bearer": []
      }
    ],
    "summary": "Measured numeric-accuracy report",
    "tags": [
      "Public API"
    ]
  },
  "schemas": {}
}
```
