# Flsenate — 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 the Florida Senate's daily livestream schedule to find out when legislative sessions and committee meetings are being broadcast. Plan your viewing by checking the current day's scheduled video broadcasts and their times.

**Category:** Government & Public Data | **Website:** [www.flsenate.gov/Media/VideoSchedule](https://www.flsenate.gov/Media/VideoSchedule) | **Docs:** [parse.bot/marketplace/926eb894-87e8-4759-869d-db2737fafd84/flsenate-gov-api](https://parse.bot/marketplace/926eb894-87e8-4759-869d-db2737fafd84/flsenate-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/flsenate/`
**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 schedule

Returns the Florida Senate's video broadcast schedule. The site only serves today's schedule; when a date matching today is provided or date is omitted, returns the current day's livestreams. When a non-today date is provided, returns an empty livestreams array since the site does not support historical or future schedules. Each livestream includes time, chamber, event name, status, and Roku link if available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYYMMDD format (e.g. 20260811). When omitted, returns today's schedule. |

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

### Get video

Returns full metadata for a single Florida Senate video including title, description, duration, date, category, and the HLS (m3u8) stream URL when available. Accepts a numeric video ID (from search_videos results) or a full VideoPlayer URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `video_id` | string | Yes | Numeric video ID (e.g. '6345') or full detail page URL (e.g. 'https://www.flsenate.gov/media/VideoPlayer/6345'). Video IDs are returned by search_videos in the video_id field. |

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

### Search videos

Browse and filter the Florida Senate video archive. Returns paginated results (25 per page) with optional date range and chamber/category filters. The site does not support keyword text search; filtering is limited to date range and committee/session type. Results are ordered newest first.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Filter by committee or session type. Values include 'Senate Session', 'House Session', 'Joint Session', or a numeric committee ID (e.g. '6807' for Appropriations). When omitted, returns all video types. |
| `date_from` | string | No | Start of date range in M/D/YYYY format (e.g. 6/1/2026). When omitted or empty, no start date filter is applied. |
| `date_to` | string | No | End of date range in M/D/YYYY format (e.g. 6/30/2026). When omitted or empty, no end date filter is applied. |
| `page` | integer | No | Page number for pagination (1-indexed). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/flsenate/search-videos \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","date_from":"<string>","date_to":"<string>","page":"<integer>"}'
```

## 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.