Legislation Services, APIs, and data types

Legislative, Meetings, FOIA & Open Data Systems (APIs + Detection + Ingest Strategy)
Vendor / System Primary Use Public API / Data Access Known URL Patterns & Tips Data Endpoint / Exposure Type How to Detect It (Fast) Best Ingest Strategy Notes / Source Links
Granicus – Legistar Legislation, agendas, meetings, minutes Legistar Web API
Examples
Help / endpoints
  • API base: https://webapi.legistar.com/v1/{Client}/
  • Common endpoints: events, matters, agendaitems, attachments
  • Portal pages often: /Calendar.aspx, /Legislation.aspx, /MeetingDetail.aspx?ID=###
  • Tip: attachments are separate URLs; capture + hash raw files on ingest
Official JSON REST API + separate file/attachment URLs
  • DevTools → Network: look for webapi.legistar.com/v1/
  • Search HTML for Calendar.aspx or “Legistar”
  • Primary: API pull (events/matters/agendaitems), incremental by updated timestamps/IDs
  • Secondary: Download + hash attachments/PDF packets, store URL + content hash
  • Resilience: Fall back to portal scrape only if API blocked
API home
Data.gov (CKAN catalog) Open data discovery (metadata index) Data.gov API page
CKAN API docs
  • Catalog base: https://catalog.data.gov/api/3/action/
  • Search: package_search?q=police
  • Dataset metadata: package_show?id={dataset-id}
  • Tip: catalog “resources” link out to the real host (agency systems, S3, Socrata, etc.)
CKAN Action API (JSON) for metadata catalog
  • Detect CKAN: /api/3/action/ exists on the domain
  • Try: .../action/status_show (JSON)
  • Primary: Harvest metadata via package_search + package_show
  • Secondary: Follow resource URLs and ingest from the source-of-truth hosting platform
  • Governance: Persist dataset identifiers + resource URLs so you can diff/refresh
GSA Data.gov API notes
MuckRock (FOIA platform) FOIA requests, correspondence, released documents API docs
API v2 schema
  • API base: https://www.muckrock.com/api_v2/
  • Objects (see schema): requests, communications, files, agencies, jurisdictions
  • Tip: auth varies; still useful for public metadata and released files
Official JSON API (v2) + file downloads
  • Detect via URLs containing muckrock.com/foi/
  • Try base: GET https://www.muckrock.com/api_v2/
  • Primary: API pull for request/file metadata (paging + updated filters where available)
  • Secondary: Download released files and hash at ingest
  • Linking: Join files ↔ requests ↔ agencies for clean provenance chains
Docs
DocumentCloud Hosted document libraries, searchable PDFs, embeds API docs
  • Embeds often: embed.documentcloud.org
  • Stable document IDs + rich metadata
  • Tip: used by newsrooms and civic groups as “public records libraries”
Custom JSON API + document files + embed tooling
  • Detect embedded iframes/scripts referencing documentcloud
  • Search page source for “documentcloud” / “embed.documentcloud.org”
  • Primary: API pull for document metadata and search queries
  • Secondary: Download PDFs; hash at ingest
  • Search: Use full-text where helpful; store doc IDs + canonical URLs
API guide
Granicus – NovusAGENDA Agenda/meeting publishing portal Public portal pages; no universal public API guarantee
  • Common root: https://{org}.novusagenda.com/agendapublic/
  • Often: MeetingsResponsive.aspx listing
  • Typical outputs: agenda pages + agenda/minutes PDFs
HTML listings + PDF downloads; sometimes hidden JSON behind UI
  • Detect: domain contains novusagenda.com
  • Look for /agendapublic/ + “Agenda PDF” links
  • Primary: Portal scrape for meeting index + meeting detail pages
  • Secondary: Download PDFs/attachments; hash at ingest
  • Optional: If the UI uses XHR JSON, prefer that for structured agenda items
Deployed broadly as *.novusagenda.com
Diligent – BoardDocs Boards/schools: agendas, minutes, packets, policies Public portal pages; no universal public API claim
  • Common patterns:
  • https://go.boarddocs.com/{state}/{org}/Board.nsf/...
  • https://www.boarddocs.com/{state}/{org}/Board.nsf/...
  • Agenda items typically link attachments directly
HTML portal + linked attachments (PDF/DOC/etc.)
  • Detect: boarddocs.com + path contains /Board.nsf
  • Branding: “BoardDocs” header/footer is common
  • Primary: Portal scrape (meeting listing + agenda item pages)
  • Secondary: Download linked attachments; hash at ingest
  • Stability: Prefer IDs in URLs over scraping page text for references
BoardDocs product
Socrata (Tyler) – Open Data Portals City/county open data portals (datasets + APIs) SODA API docs
  • Dataset endpoint: /resource/{four-four}.json
  • Catalog: /api/catalog/v1 (often available)
  • Tip: consistent query language, paging, and formats
SODA API (JSON/CSV) + portal UI
  • Detect: dataset IDs look like abcd-1234
  • Search HTML for “socrata” or “SODA”
  • Primary: API pull with paging + incremental pulls (where timestamps exist)
  • Governance: Store dataset ID + last seen row ID/time
  • Fallback: Portal scrape only if API is restricted
Docs
CKAN (generic platform) Open data catalog (sometimes includes DataStore) CKAN API docs
  • Fingerprint: /api/3/action/
  • Quick checks: status_show, package_search
  • Optional: DataStore for tabular query endpoints
CKAN Action API (JSON); optional DataStore
  • Try: https://{portal}/api/3/action/status_show
  • If JSON returns, it’s CKAN
  • Primary: Harvest metadata via CKAN action API
  • Secondary: Ingest DataStore tables if enabled (structured tabular pulls)
  • Otherwise: Follow resource URLs to source systems/files
API guide
Agency FOIA Libraries / Reading Rooms Released records (PDFs, logs, “FOIA library” pages) Varies by agency; usually pages + files, sometimes feeds/APIs
  • Search on-domain for: “FOIA library”, “reading room”, “FOIA log”
  • PDF repositories often have stable URLs (good long-term targets)
  • Some agencies expose JSON feeds or search APIs
HTML + PDFs; sometimes JSON feeds/search APIs
  • Detect by headers/titles containing “FOIA”
  • Look for bulk downloads, year/month directories, or sitemap hints
  • Primary: Page scrape to discover document URLs + metadata
  • Secondary: Download PDFs; hash at ingest; store provenance URL
  • Optional: If an on-site search endpoint exists, treat it like an API
Example: DHS FOIA Library

Ingest Strategy Legend

  • API Pull – Use the vendor’s official REST endpoint (JSON/CSV). Prefer incremental updates (timestamps, IDs). Most stable and scalable.
  • Portal Scrape – Parse structured HTML meeting lists and detail pages when no official API exists.
  • File Scrape – Download linked PDFs/DOC files directly from public portals or FOIA libraries.
  • Catalog Harvest – Pull metadata from a catalog (e.g., CKAN/Data.gov) and then follow resource links to the true source system.

Data Integrity & Transparency Contract

  • Hash at Ingest: Generate and store a cryptographic hash (e.g., SHA-256) for every raw file or payload at the moment it enters the system.
  • Preserve Source URL: Store the original canonical URL alongside the record.
  • Never Mutate Raw: Parsed/normalized records should reference the raw artifact; raw content remains immutable.
  • Attachment First-Class: PDFs, agenda packets, minutes, and exhibits are treated as primary source records, not secondary metadata.
  • Reproducibility: Given stored endpoint + parameters + timestamp, the pull should be repeatable.
  • Graceful Degradation: If an API disappears, fall back to portal or file scraping without breaking the historical chain.

Principle: Prefer official APIs when available. When they are not, treat public portals as structured data systems. When only documents exist, treat the document as the source of truth and preserve it intact.