> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parsagon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get bill text version

> Retrieve a single version of a bill's text, with its full extracted text.

Returns a single version of a bill's text, with its full extracted text.

Parsagon extracts the text after collecting the version. Until then, `text` is `null`. To check whether the text is available without retrieving it, use the `has_text` field from [List bill text versions](https://docs.parsagon.io/api-reference/legislative/list-texts.md).

## Path parameters

**bill\_id** `string` *required*

The `id` of the bill.

**text\_id** `string` *required*

The `id` of the text version, from [List bill text versions](https://docs.parsagon.io/api-reference/legislative/list-texts.md).

## Response

Returns the same fields as [List bill text versions](https://docs.parsagon.io/api-reference/legislative/list-texts.md), plus `text`.

**id** `string`

UUID of the text version.

**external\_id** `string`

The text version's ID in the legislature's own system.

**title** `string`

Title of the text version, such as `"HL Bill 57"`. Empty if unavailable.

**publication\_type** `string`

Type of publication, as given by the legislature. Empty if unavailable.

**publication\_date** `string | null`

When the text version was published (ISO 8601).

**is\_current** `boolean`

Whether this is the bill's current text.

**pdf\_url** `string`

URL of the PDF version on the legislature's website. Empty if unavailable.

**html\_url** `string`

URL of the HTML version on the legislature's website. Empty if unavailable.

**download\_url** `string`

URL that Parsagon downloaded the text from. Empty if unavailable.

**source** `string | null`

`uuid` of the `"LEGISLATION"` source that holds the extracted text. `null` until the text is extracted.

**has\_text** `boolean`

Whether the extracted text is available.

**text** `string | null`

Full extracted text of the version. `null` until the text is extracted.

## Errors

| Status | Meaning |
| - | - |
| `403 Forbidden` | Your account doesn't have a valid subscription or hasn't accepted the Terms of Service. |
| `404 Not Found` | No bill has this `id`, the bill belongs to a jurisdiction you can't access, or the text version doesn't belong to this bill. |

```json Example response theme={null}
{
  "id": "6f3b8d21-0e4a-4b7c-95d6-8a2c1f9e4b03",
  "external_id": "68079",
  "title": "HL Bill 57",
  "publication_type": "Bill",
  "publication_date": "2026-10-14T00:00:00Z",
  "is_current": true,
  "pdf_url": "https://bills.parliament.uk/publications/68079/documents/8898",
  "html_url": "https://bills.parliament.uk/publications/68079/documents/8900",
  "download_url": "https://bills.parliament.uk/publications/68079/documents/8898",
  "source": "9a7e6b14-2c5d-4f80-b3e1-7d2c8f05a6b9",
  "has_text": true,
  "text": "Courts and Tribunals Bill\n\n[AS BROUGHT FROM THE COMMONS]\n\nCONTENTS\n\n..."
}
```

```bash cURL theme={null}
curl -X GET "https://parsagon.io/api/legislative/v1/bills/b8e2d4f0-1a3c-4e5b-8d7f-6c9a0b2e4d61/texts/6f3b8d21-0e4a-4b7c-95d6-8a2c1f9e4b03/" \
  -H "Authorization: Token YOUR_API_KEY_HERE"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.