# Civic Stream — 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 government proceedings from state legislatures, city councils, and national feeds directly through Civic Stream. Check the schedule to plan when you want to tune into your elected representatives at work.

**Category:** Government & Public Data | **Website:** [civicstream.tv/category/state/](https://civicstream.tv/category/state/) | **Docs:** [parse.bot/marketplace/b7f50d43-d7e1-43a3-b28d-f5ab5ca8603b/civicstream-tv-api](https://parse.bot/marketplace/b7f50d43-d7e1-43a3-b28d-f5ab5ca8603b/civicstream-tv-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-civicstream-tv-api-b7f50d43/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_schedule

Returns the current live government streams listed on Civic Stream. Results are paginated at 12 streams per page. Each stream includes its title, URL, thumbnail image, live status, and the actual embedded video/playback URL (HLS m3u8 or YouTube). Fetches each stream's detail page to extract the playback source, so response time scales with the number of streams on the page (up to 12 sub-requests). The total number of pages and streams is included in the response.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. Each page contains up to 12 streams. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-civicstream-tv-api-b7f50d43/get_schedule \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```
