---
title: "Get report as plain text"
description: "Returns the report content stripped of all HTML tags as plain text, along with word count and estimated reading time. Requires the `reports:read` scope. Accepts a bearer API key or [x402 payment](https://y2.dev/docs/api/x402). Without a key, read the `402` challenge in `PAYMENT-REQUIRED`. Retry with `PAYMENT-SIGNATURE`."
canonical: https://y2.dev/docs/api/reference/reports/getReportText/
---

Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports)

# Get report as plain text

Returns the report content stripped of all HTML tags as plain text, along with word count and estimated reading time. Requires the \`reports:read\` scope. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`.

`GET https://api.y2.dev/api/v1/reports/{reportId}/text`

- Operation ID: `getReportText`
- Required scopes: `reports:read`
- Accepts x402 pay-per-request payment
- Contract: https://y2.dev/openapi.json

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | Plain text report content | `ReportTextResponse` |
| 401 | Missing or invalid API key |  |
| 402 | x402 payment required | `X402PaymentRequiredResponse` |
| 403 | Insufficient permissions or access denied |  |
| 404 | Report not found |  |
| 429 | Rate limit exceeded (per-key or per-account aggregate) |  |
| 500 | Internal server error |  |

### 200 response fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | object |  |
| `data.text` | string | Report content as plain text (HTML stripped) |
| `data.wordCount` | integer | Total word count |
| `data.readingTimeMinutes` | integer | Estimated reading time in minutes (~200 wpm) |
