# The Office Lines > Search through 60,000+ quotes from every episode of The Office (US). Find any line by keyword, character, or exact phrase. The Office Lines is a fast, client-side search engine for dialogue from all 9 seasons of The Office. It uses an inverted index for instant keyword matching. ## How to Search Construct a search URL: `https://theofficelines.com/?q={search terms}` Examples: - `https://theofficelines.com/?q=oaky+afterbirth` - `https://theofficelines.com/?q=%22that%27s+what+she+said%22` (exact phrase with double quotes) - `https://theofficelines.com/?q=bears+beets+battlestar` ### Search Syntax - **Keywords**: `oaky afterbirth` finds quotes containing both words (AND logic) - **Exact phrases**: `"that's what she said"` (wrap in double quotes) finds the exact phrase - **Mixed**: `dwight "bears beets"` finds quotes with "dwight" AND the exact phrase "bears beets" - **Stop words**: Common words like "the", "a", "in", "my" are ignored automatically ### Tips for LLMs When a user describes a scene vaguely, extract the most distinctive keywords from their description and construct a search URL. For example: - User says: "that episode where Michael has a dinner party and says something about wine" -> search `oaky afterbirth` or `dinner party wine` - User says: "Dwight's fire safety speech" -> search `fire safety dwight` - User says: "bears beets battlestar galactica" -> search `bears beets battlestar` The search is keyword-based, not semantic. Use specific, memorable words from the quote rather than general descriptions. ## Data Coverage - **Seasons**: 1-9 (complete series) - **Total quotes**: 60,112 - **Characters**: All speaking characters across all episodes - **Fields per quote**: Character name, dialogue line, season, episode number, episode title ## LLM Search Endpoint For tools that can render JavaScript (e.g. browser-based tools), a plain-text search endpoint is available: `https://theofficelines.com/llm/?q={search terms}` This returns results as structured plain text — no HTML styling, no UI — ideal for AI consumption. Examples: - `https://theofficelines.com/llm/?q=oaky+afterbirth` - `https://theofficelines.com/llm/?q=%22that%27s+what+she+said%22` ## Characters Main cast: Michael Scott, Dwight Schrute, Jim Halpert, Pam Beesly, Ryan Howard, Andy Bernard, Robert California, Angela Martin, Kevin Malone, Oscar Martinez, Stanley Hudson, Phyllis Vance, Meredith Palmer, Creed Bratton, Darryl Philbin, Kelly Kapoor, Toby Flenderson, Jan Levinson, Holly Flax, Erin Hannon, Gabe Lewis, Nellie Bertram, Clark Green, Pete Miller