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"
{
"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..."
}
Bill records
Get bill text version
Retrieve a single version of a bill’s text, with its full extracted text.
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"
{
"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..."
}
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.
Path parameters
The
id of the text version, from List bill text versions.Response
Returns the same fields as List bill text versions, plustext.
uuid of the "LEGISLATION" source that holds the extracted text. 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. |
{
"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..."
}
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"