Dunder Mifflin Infinity · API Edition
Scranton Branch · est. 2005

The Office API

Quotes and episode records straight from the world's best paper company. JSON for everything; printable SVG cards for the quotes. Cached at the edge on Cloudflare — fast as Stanley after 5pm.

Approved by Michael G. Scott, Regional Manager

Random Quote of the Day

FROM: The Quote Drawer  ·  TO: All Staff  ·  RE: Inspiration
Random Office quote card

Endpoints (a.k.a. The Filing Cabinet)

GET /quote/random

Pull a random Dunder Mifflin gem. Add ?responseType=svg for a paper-themed card.

query: responseType=json|svg, mode=dark|light, width, height, pretty
"That's what she said." — Michael Scott
GET /quote/:id

A specific quote by id. Filed neatly in the quote drawer.

query: responseType=json|svg, mode=dark|light, width, height, pretty
"I am Beyoncé, always."
GET /season/:id

Every episode of a season — like binge-watching, but JSON.

query: pretty
"Bears. Beets. Battlestar Galactica."
GET /season/:season_id/episode/:episode_id

A single episode. Pilot, Dinner Party, Stress Relief — pick one.

query: pretty
"It is happening."

Examples (Pretend you're Pam at reception)

# pull a specific quote
curl https://officeapi.alexraskin.workers.dev/quote/1

# random quote, light mode SVG (good for printer paper)
curl 'https://officeapi.alexraskin.workers.dev/quote/random?responseType=svg&mode=light'

# season 1 — the one with the Pilot
curl https://officeapi.alexraskin.workers.dev/season/1

# Dinner Party (S4E13). Don't drink the wine.
curl https://officeapi.alexraskin.workers.dev/season/4/episode/13

Embed a quote card on your website (or your blog about beets)

<img src="https://officeapi.alexraskin.workers.dev/quote/random?responseType=svg" />

Schrute Facts

FACT: