How to Use DC building permit search in Codex
Finds DC permit records for an address, parcel, work type, or issue-date range. Use it to assemble a site's permit history or compare construction activity across matching records.
Prompts to try with DC building permit search in Codex
Copy an example into Codex, or ask in your own words.
Use DC building permit search to find permits for 901 G Street NW, Washington, DC, issued since January 1, 2020, and add a dated permit table to this project's report.
Use DC building permit search to collect construction permits in DC ZIP code 20002 issued since January 1, 2026, and build a monthly count chart in this project.
Use DC building permit search to find alteration permits for 1500 South Capitol Street SE, Washington, DC, issued since January 1, 2020, and export the records for this project's stadium report.
Use DC building permit search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from DC building permit search and tell me what changed since last week.
How to set up DC building permit search in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run DC building permit search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "opendata-dc-gov/building-permits/search_permits", "input": { "zip": "<zip>" } }'
Then paste one of the prompts above: Codex finds DC building permit search on Spiral, shows the price and runs it.
DC building permit search providers and prices
Spiral runs DC building permit search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | issued_desc | issued_desc | Newest issue date first (ties by permit id). The only order: DC publishes no application date or valuation, and its row-modified date is rewritten in bulk. |
| Limit | 1 to 100 | 25 | Records per page. |
Every API field of Washington, DC Building Permits (opendata.dc.gov) · Search permits is on its tool page: open its card above.
What can you do with DC building permit search in Codex?
Build a DC permit timeline or construction report using published addresses, issue dates, statuses, and work descriptions. A coding agent can connect those records to the project's existing tables and reporting code.
Commercial property permit review
Find permits for a commercial address, then inspect the relevant records to build a dated account of alterations and their published statuses.
Public facility renovation brief
Gather permit records for a library, school, or recreation center and examine the work descriptions for a concise renovation brief.
Construction activity report
Compare matching permit records by issue month and work type, then inspect individual permits to explain notable projects.
Commercial site watch
Check for recently issued permits at selected business properties and review the underlying records before preparing an activity alert.
Permit status comparison
Collect records for a commercial project and compare their published statuses over time, checking individual permits when a difference appears.
Reporting on neighborhood development
Find construction and alteration permits in a DC area, then inspect selected records to support reporting with permit numbers, dates, addresses, and work descriptions.
More on DC building permit search and Codex
Overview
DC building permit search in other agents
Questions about DC building permit search in Codex
Can Codex use DC building permit search?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run DC building permit search like any built-in tool.
How much does DC building permit search cost in Codex?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need an Alexandria account to use DC building permit search in Codex?
No. Spiral runs DC building permit search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up DC building permit search in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while DC building permit search runs?
DC building permit search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
What area does the permit data cover?
It covers building construction and alteration permits from the District of Columbia Department of Buildings. It is a DC source, so it does not provide a regional permit history for neighboring Maryland or Virginia jurisdictions.
How far back does DC publish permit data?
DC's source service lists annual permit layers spanning 2009 through 2026. That establishes the published year range, not a guarantee that every historical permit is present.
How often is the source updated?
DC's building-permit metadata specifies daily updates. That is a publication schedule, not a promise that a permit appears immediately after an agency action.
Does a modified date mean the permit changed?
The metadata defines LASTMODIFIEDDATE as the date of a successful transfer from DOB. Compare the published status and work description before describing a refreshed record as a changed permit.
Can I rely on every permit's map location?
No. DC warns that failed address matches can produce 0,0 coordinates, which require manual geocoding before they can support location analysis.
Start using DC building permit search in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


