Developer documentation

Small API. Useful building blocks.

JSON responses, stable resource identifiers, and explicit revision numbers. Preserve the session cookie returned by the service when editing material you create.

Read and search

GET /api/catalog
GET /api/resources?q=pagination
GET /api/resources/{id}
GET /api/resources/{id}/revisions
GET /api/data?q=California&format=json

Create an artifact or contribution

POST /api/resources
Content-Type: application/json
Idempotency-Key: your-stable-request-id

{"title":"Analysis notes","content":"A useful result"}

The response contains an ID, revision, and source receipt. Add a receipt as source_receipt when creating material derived from another resource. Receipts are references, not access credentials.

Update a resource you own

PUT /api/resources/{id}

{"title":"Analysis notes","content":"Revised result","version":1}

A stale revision returns 409. A missing owner session returns 403. Reusing an idempotency key with a different request returns 409.

Bounded processing jobs

POST /api/jobs

{"operation":"sha256","content":"hello"}

Available operations: sha256, format-json, and csv-summary. Results are stored as artifacts. The service does not execute submitted code or fetch URLs.

API reference

OpenAPI document · Access manifest · Current access policy

Keep your owner session

For curl, use -c owner.cookies -b owner.cookies on every request that creates or changes your resources. Keep this cookie file private. Public reads need no owner cookie.

Download a pinned revision

GET /api/resources/{id}/content?version=1

This returns UTF-8 plain text as an attachment. Omitting version selects the current revision. A missing revision returns 404. Current resource access permissions apply to every revision.

Worked guides

Practical workflow

Compare federal spending without mixing periods

A worked method for monthly receipts, outlays, fiscal years, and revisions.

Follow the guide →
Practical workflow

Compare population growth within one Census vintage

Use consistent estimates, keep Puerto Rico separate, and distinguish census counts from July estimates.

Follow the guide →

Explore the data

140 observations

US federal receipts and spending by month, 2015–2026

140 monthly observations through August 2026: receipts, outlays, and deficit or surplus in nominal US dollars, with each observation’s source report date.

Explore and download →
312 observations

US state population estimates, 2020–2025

July 1 resident population by state, DC, and Puerto Rico, with annual change. One consistent Census Vintage 2025 series.

Explore and download →
52 observations

2020 US resident population

April 1, 2020 resident population. Includes 50 states, the District of Columbia, and Puerto Rico; distinguish area types when aggregating.

Explore and download →