# House — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Watch live legislative events from the Texas House of Representatives by accessing the broadcast schedule for committee hearings and other proceedings. Plan your viewing by retrieving detailed information about upcoming livestreams and their scheduled times.

**Category:** Government & Public Data | **Website:** [www.house.texas.gov/videos](https://www.house.texas.gov/videos) | **Docs:** [parse.bot/marketplace/4ed5688e-0c46-4087-80b1-48ef979036c6/house-texas-gov-api](https://parse.bot/marketplace/4ed5688e-0c46-4087-80b1-48ef979036c6/house-texas-gov-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/house/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get broadcast schedule

Returns all currently scheduled, live, and completed broadcast events from the Texas House of Representatives video page. Each event includes title, date, time, computed UTC start time, status, location, channel, type, and video page URL. Results are returned as a single unpaginated list of all events the site currently publishes.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/house/get-broadcast-schedule \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get schedule

Returns scheduled, live, and completed broadcast events from the Texas House of Representatives video page. Each event includes title, date, time, computed UTC start time, status, a nested location object (room and channel), type, video page URL, and the m3u8 HLS stream URL when a video is available. When the optional date parameter is provided, only events on that date are returned; otherwise all currently published events are returned as a single unpaginated list.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Filter events to a specific date. Accepts YYYY-MM-DD (e.g. 2026-08-17) or YYYYMMDD (e.g. 20260817) format. When omitted, all events are returned. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/house/get-schedule \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.