# PrimeGov Council Agendas, Minutes and Video Scraper (`talcoe/primegov-agendas`) Actor

Pull city council and committee meetings from PrimeGov portals with agenda, minutes and video links, filtered by year, title keyword and video, at a fixed price per result.

- **URL**: https://apify.com/talcoe/primegov-agendas.md
- **Developed by:** [M Usama](https://apify.com/talcoe) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does PrimeGov Council Agendas, Minutes and Video Scraper do?

It pulls city council and committee meetings from PrimeGov portals. Each record has the meeting title, date, location, a link to the agenda PDF, a link to the minutes or journal, the video link, a cancelled flag and the full list of published documents. Filter by year, title keyword or video, so you pay only for the meetings you want. Pricing is per result.

### Data source

The Actor reads the public JSON API that every PrimeGov portal serves (lacity.primegov.com by default). Data is live at run time, and upcoming meetings are always included.

### Why use it?

- Track a council or committee for lobbying, land use or procurement work without opening each agenda by hand.
- Build a feed of new agendas and minutes for a newsroom, a law firm or a civic watch group.
- Collect video links for transcription or meeting search.
- Replace copy and paste from the portal calendar.

### How to use it

1. Open the Actor and set the portal, years and filters.
2. Click Start. Download results as JSON, CSV or Excel, or read them through the API.
3. Add a Schedule and an Integration (Slack, Google Sheets, webhook) to get new meetings automatically.

### Input

| Field | Description |
|---|---|
| `portals` | PrimeGov hosts or subdomains. `lacity` and `lacity.primegov.com` both work. Default: lacity.primegov.com. |
| `years` | Calendar years to pull. Default: 2026. |
| `titleKeywords` | Keep meetings whose title contains any of these words, such as Planning or Housing. |
| `onlyWithVideo` | Keep only meetings with a video link. |
| `includeCancelled` | Keep meetings that carry a cancellation notice. Default: on. |
| `maxResults` | Hard stop for the run. You are billed per result, so this caps the cost. |
| `proxyConfiguration` | Apify proxy is recommended for larger runs. |

Example input:

```json
{
  "portals": ["lacity.primegov.com"],
  "years": ["2026"],
  "titleKeywords": ["Planning"],
  "maxResults": 50
}
```

### Output

Every record has the same shape (trimmed here):

```json
{
  "id": "lacity.primegov.com:23790",
  "portal": "lacity.primegov.com",
  "meetingId": 23790,
  "title": "Civil Rights, Immigration, Social Services and Neighborhoods Committee",
  "dateTime": "2026-10-23T08:30:00",
  "agendaUrl": "https://lacity.primegov.com/Public/CompiledDocument/91919",
  "minutesUrl": "https://lacity.primegov.com/Public/CompiledDocument/92248",
  "videoUrl": "https://youtube.com/watch?v=xeXSgAzEd7c",
  "isCancelled": false,
  "documentCount": 3
}
```

| Field | Meaning |
|---|---|
| `id` | Stable key (portal and meeting id), safe for deduplication between runs |
| `title`, `dateTime`, `location` | Meeting name, local start time without time zone, and venue when published |
| `agendaUrl`, `minutesUrl` | PDF links, or the HTML view when no PDF exists. Minutes are the portal's minutes or journal document |
| `videoUrl` | Video link when the city published one |
| `isCancelled` | True when a cancellation notice is attached |
| `documents` | Every published document with name, kind, format, URL and publish time |
| `meetingUrl` | The meeting page on the portal |

### Pricing

Pay per event: a small fee when a run starts, then a fixed price per result returned. You only pay for records that pass your filters. Set `maxResults` to cap any run.

### Limitations

- It works on PrimeGov portals and no other agenda system.
- You need to know the portal host. Most cities use `cityname.primegov.com`.
- Document text is not extracted. You get the links.
- Agendas and minutes appear only after the city publishes them.

### FAQ

**Is this legal?** The Actor reads listings the site publishes for any visitor without a login and stores only business information published for that purpose. You are responsible for how you use the data.

**Something is missing or broken?** Open an issue in the Issues tab. Response time is usually under a day.

# Actor input Schema

## `portals` (type: `array`):

PrimeGov portal hosts or subdomains, for example lacity.primegov.com or just lacity.

## `years` (type: `array`):

Calendar years to pull. Upcoming meetings are always included.

## `titleKeywords` (type: `array`):

Keep meetings whose title contains any of these words, for example Planning or Housing. Empty keeps all.

## `onlyWithVideo` (type: `boolean`):

Keep only meetings that have a video link.

## `includeCancelled` (type: `boolean`):

Keep meetings that carry a cancellation notice.

## `maxResults` (type: `integer`):

Hard stop for the run. You are billed per result, so this caps the cost.

## `proxyConfiguration` (type: `object`):

Apify proxy is recommended for larger runs.

## Actor input object example

```json
{
  "portals": [
    "lacity.primegov.com"
  ],
  "years": [
    "2026"
  ],
  "titleKeywords": [],
  "onlyWithVideo": false,
  "includeCancelled": true,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "portals": [
        "lacity.primegov.com"
    ],
    "years": [
        "2026"
    ],
    "titleKeywords": [],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("talcoe/primegov-agendas").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "portals": ["lacity.primegov.com"],
    "years": ["2026"],
    "titleKeywords": [],
    "maxResults": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("talcoe/primegov-agendas").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "portals": [
    "lacity.primegov.com"
  ],
  "years": [
    "2026"
  ],
  "titleKeywords": [],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call talcoe/primegov-agendas --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,talcoe/primegov-agendas"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BEp2N6S8jUAAb6FrL/builds/AjiNTDmFKa6rJEGIr/openapi.json
