Integrations
Plugs into the tools
you already use.
The CSV is the contract, so anything that reads a CSV works on day one. Here are ready-to-paste recipes for the destinations LaReg is most likely to use. Click any code block's copy button.
Google Drive / Dropbox
The brief's delivery target. The folder tree uploads as is, and incremental runs only add new files, so syncing stays cheap.
Snowflake
documents.csv maps one-to-one to a table. COPY INTO is idempotent, so you can reload nightly without duplicates.
Google Sheets
IMPORTDATA for the CSV, or a 15-line Apps Script for a filtered live feed from the search API.
AI / RAG pipelines
Stable source_key and content_sha256 make chunk provenance and re-embedding on change easy. pgvector tables are ready.
Python / pandas
Plain UTF-8 CSV with typed dates. Load it in one line, filter by ISO, committee or meeting date.
Alerts
Each incremental run lists exactly what's new, ready to post a digest to email, Slack or Teams.
Snowflake · stage, table, COPY INTO
-- 1 · a stage over the delivered folder (S3 / Azure / GCS, or PUT from local)
CREATE STAGE lareg_iso_stage URL = 's3://lareg-iso-documents/' STORAGE_INTEGRATION = lareg_s3;
CREATE FILE FORMAT lareg_csv TYPE = CSV PARSE_HEADER = TRUE
FIELD_OPTIONALLY_ENCLOSED_BY = '"' ENCODING = 'UTF8' EMPTY_FIELD_AS_NULL = TRUE;
-- 2 · the table mirrors documents.csv one-to-one
CREATE TABLE IF NOT EXISTS ISO_DOCUMENTS (
SOURCE_ISO STRING, SOURCE_KEY STRING, SOURCE_URL STRING, FILE_NAME STRING,
FILE_EXTENSION STRING, FILE_SIZE_BYTES NUMBER, CONTENT_SHA256 STRING, TITLE STRING,
POSTING_DATE DATE, CONTAINER_ID STRING, CONTAINER_PATH STRING, MEETING_DATE DATE,
PARENT_ZIP STRING, LOCAL_PATH STRING, CRAWL_TIMESTAMP TIMESTAMP_TZ,
PRIMARY KEY (SOURCE_KEY, CONTENT_SHA256));
-- 3 · idempotent load: Snowflake skips files it has already loaded
COPY INTO ISO_DOCUMENTS FROM @lareg_iso_stage/documents.csv
FILE_FORMAT = lareg_csv MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE ON_ERROR = ABORT_STATEMENT;Google Sheets · IMPORTDATA or Apps Script
=IMPORTDATA("https://lareg-iso-document-hub.pages.dev/downloads/LaReg_ISO_documents_sample.csv")
/* Or a nightly Apps Script trigger that pulls the live search API */
function refreshIsoDocuments() {
const url = "https://lareg-iso-document-hub.pages.dev/api/search?iso=PJM&from=2026-01-01&limit=500";
const { items } = JSON.parse(UrlFetchApp.fetch(url).getContentText());
const sh = SpreadsheetApp.getActive().getSheetByName("PJM 2026");
const head = ["posting_date", "title", "file_name", "container_path", "source_url"];
sh.clearContents().getRange(1, 1, 1, head.length).setValues([head]);
if (items.length) sh.getRange(2, 1, items.length, head.length)
.setValues(items.map(r => head.map(h => r[h] ?? "")));
}Python · pandas
import pandas as pd
docs = pd.read_csv("documents.csv", dtype=str, parse_dates=["posting_date", "meeting_date"])
pdfs = docs[(docs.file_extension == "pdf") & docs.parent_zip.isna()]
# everything new from PJM's Markets & Reliability Committee this quarter
mrc = docs[(docs.container_id == "mrc") & (docs.posting_date >= "2026-10-01")]
# feed a RAG pipeline: one record per file, with provenance for citations
records = [{"path": r.local_path, "metadata": r._asdict()} for r in pdfs.itertuples(index=False)]AI · semantic search with pgvector
-- the ai schema is ready for embeddings (pgvector, 1536-d)
select d.title, d.posting_date, c.page_from, c.content,
1 - (c.embedding <=> $1::vector) as similarity
from ai.document_chunks c
join iso.document_versions v on v.id = c.version_id
join iso.documents d on d.id = v.document_id
where d.source_code = 'SPP' and d.posting_date >= '2025-01-01'
order by c.embedding <=> $1::vector
limit 8;Live API
Read-only endpoints on this portal
GET/api/search?q=tariff&iso=SPP&from=2025-01-01&ext=pdf&limit=50
Full-text search over titles and file names with ISO, type, category and date filters
GET/api/stats
Catalogue totals by ISO, category, file type and month, plus run history
GET/api/health
Liveness and database round-trip check for monitoring
The whole sample catalogue as compact JSON (columns + rows)
GET/downloads/LaReg_ISO_documents_sample.csv
The sample documents.csv, exactly as the collector writes it
Responses are JSON, cached at the edge for two minutes, and rate-limited by Cloudflare. A production deployment can add API keys per consumer.