[Integrations](https://spiral.ai/integrations) › [Muse](https://spiral.ai/integrations/muse) › [San Francisco building permit search](https://spiral.ai/integrations/muse/san-francisco-building-permit-search)

# How to Use San Francisco building permit search in Muse

Returns matching San Francisco building permits with work descriptions, dates, status, and published valuations. Use it to find projects at a site or compare construction activity before opening individual permit records.

|  |  |
| --- | --- |
| Model | San Francisco building permit search |
| Available through | Alexandria |
| Category | Listings |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with San Francisco building permit search in Muse

- Use San Francisco building permit search to find permits at Salesforce Tower, 415 Mission Street, and summarize the published work descriptions and statuses.
- Use San Francisco building permit search to find office permits in ZIP code 94105 issued since January 1, 2026, with the newest issued permits first.
- Use San Francisco building permit search to look this up and give me the result as a table.
- Pull the latest numbers from San Francisco building permit search and tell me what changed since last week.
- Check San Francisco building permit search and summarize what you find in three bullet points.

## How to set up San Francisco building permit search in Muse

Pick the way that suits you. Each takes about two minutes.

### Use the Muse connector

1. **Create an API key**: Create one under API keys in the Spiral console.

2. **Send Muse this message**: Muse reads Spiral's skill and asks for an API key.

```text
set up https://spiral.ai/SKILL.md
```

3. **Give Muse the key**: Paste the key when Muse asks for it, never in the chat itself.

### Use the Spiral skill

1. **Send Muse this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run San Francisco building permit search**: One request; the result comes back by polling or a webhook.

```bash
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": "data-sf-gov/building-permits/search_permits",
    "input": {
      "zip": "<zip>"
    }
  }'
```

Then paste one of the prompts above: Muse finds San Francisco building permit search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse

## San Francisco building permit search tools and prices

- [DataSF open data portal · Search permits](https://spiral.ai/tools/alexandria/data-sf-gov/building-permits/search_permits) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| zip |  | — | ZIP code of the address (94110). Pattern: ^[0-9]{5}$. |
| sort | issued_desc, applied_desc, updated_desc, valuation_desc | issued_desc | issued_desc: newest issued first (unissued last); applied_desc: newest filed first; updated_desc: most recently added or changed first; valuation_desc: largest cost estimate first. |
| limit | 1 to 100 | 25 | Records per page. |
| cursor |  | — | next_cursor from the previous page; repeat the same filters with it. Pattern: ^[0-9]{1,7}$. |
| status |  | — | Case-insensitive substring of the status: issued, complete, filed, expired, cancelled. |
| address |  | — | Case-insensitive substring of the site address, street number and name (1940 Broadway, 3865 19th St). Anything after a comma and units (#2, Unit 2) are ignored; Street, Avenue, Boulevard and similar become DBI's St, Av, Bl, and 3rd becomes 03rd. Searches every address of a permit. |

## What can you do with San Francisco building permit search in Muse?

Create a research brief about San Francisco construction activity and the firms connected to it. A chat agent can explain the recorded work and distinguish a contractor ranking from evidence in individual permits.

### Build a contractor shortlist

Identify firms with recorded activity for the intended work, find their permits, and examine project descriptions and associated businesses before requesting proposals.

### Write a neighborhood construction brief

Summarize permits in a San Francisco ZIP code, identify active contracting firms, and inspect notable records for the descriptions and dates behind the brief.

### Research commercial renovation examples

Find office or retail work, identify firms associated with those permits, and review individual records to assemble examples relevant to a planned renovation.

### Compare construction market activity

Combine contractor rankings with permit searches and selected record reviews to compare recorded work across San Francisco ZIP codes. Keep permit counts separate from address and contact counts.

### Research a public venue's alterations

Find permits at a museum, theater, or other public venue and examine the published scope, dates, and associated professional firms for a building research brief.

### Check a firm's recorded project experience

Use contractor activity to identify firms worth examining, search their published permit associations, and inspect selected projects for evidence of relevant work.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse guides](https://spiral.ai/integrations/muse)

## San Francisco building permit search in other agents

- [Amp](https://spiral.ai/integrations/amp/san-francisco-building-permit-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/san-francisco-building-permit-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/san-francisco-building-permit-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/san-francisco-building-permit-search)
- [Cline](https://spiral.ai/integrations/cline/san-francisco-building-permit-search)
- [Codex](https://spiral.ai/integrations/codex/san-francisco-building-permit-search)
- [Cursor](https://spiral.ai/integrations/cursor/san-francisco-building-permit-search)
- [Devin](https://spiral.ai/integrations/devin/san-francisco-building-permit-search)
- [dots](https://spiral.ai/integrations/dots/san-francisco-building-permit-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/san-francisco-building-permit-search)
- [Gemini](https://spiral.ai/integrations/gemini/san-francisco-building-permit-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/san-francisco-building-permit-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/san-francisco-building-permit-search)
- [goose](https://spiral.ai/integrations/goose/san-francisco-building-permit-search)
- [Grok](https://spiral.ai/integrations/grok/san-francisco-building-permit-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/san-francisco-building-permit-search)
- [Hermes](https://spiral.ai/integrations/hermes/san-francisco-building-permit-search)
- [Instinct](https://spiral.ai/integrations/instinct/san-francisco-building-permit-search)
- [Manus](https://spiral.ai/integrations/manus/san-francisco-building-permit-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/san-francisco-building-permit-search)
- [n8n](https://spiral.ai/integrations/n8n/san-francisco-building-permit-search)
- [Notion](https://spiral.ai/integrations/notion/san-francisco-building-permit-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/san-francisco-building-permit-search)
- [opencode](https://spiral.ai/integrations/opencode/san-francisco-building-permit-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/san-francisco-building-permit-search)
- [Raycast](https://spiral.ai/integrations/raycast/san-francisco-building-permit-search)
- [VS Code](https://spiral.ai/integrations/vscode/san-francisco-building-permit-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/san-francisco-building-permit-search)
- [Zapier](https://spiral.ai/integrations/zapier/san-francisco-building-permit-search)

## More Muse guides

- [San Francisco building permit details](https://spiral.ai/integrations/muse/san-francisco-building-permit-details)
- [San Francisco contractor permit activity](https://spiral.ai/integrations/muse/san-francisco-contractor-permit-activity)
- [San Antonio permit details](https://spiral.ai/integrations/muse/san-antonio-permit-details)
- [San José building permit details](https://spiral.ai/integrations/muse/san-jos-building-permit-details)
- [San Antonio contractor permit activity](https://spiral.ai/integrations/muse/san-antonio-contractor-permit-activity)
- [San José building permit search](https://spiral.ai/integrations/muse/san-jos-building-permit-search)

## Questions about San Francisco building permit search in Muse

**Can Muse use San Francisco building permit search?**

Yes. Add Spiral to Muse as an MCP server, and Muse can find and run San Francisco building permit search like any built-in tool.

**How much does San Francisco building permit search cost in Muse?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse plan is separate.

**Do I need an Alexandria account to use San Francisco building permit search in Muse?**

You need no Alexandria account. Muse uses one Spiral API key for every tool, and Spiral runs San Francisco building permit search on its own Alexandria account.

**How long does it take to set up San Francisco building permit search in Muse?**

About two minutes: create an API key, then send Muse this message, then give Muse the key.

**Does Muse wait while San Francisco building permit search runs?**

San Francisco building permit search runs in the background. Muse starts the run, checks on it and gives you the json when it's ready.

**What area and permit records does this source cover?**

These records cover building permit applications filed with San Francisco's Department of Building Inspection. That coverage boundary is city building permits, rather than a statewide construction database.

**How fresh are the building permit records?**

DBI says it uploads the building permit dataset nightly. A permit filed or changed during the day may therefore appear after the next overnight upload.

**Can I count each published row as a separate project?**

A single permit can have several contacts or addresses, creating repeated permit applications in combined records. Count distinct permit numbers when measuring permits, and keep addresses and contacts as separate related records.

**What business contact information is public?**

The city publishes permit contact records that can contain a contact name, address, license number, and firm or company. The provider can return contractors, architects, and engineers associated with a permit.

**How should I interpret a permit's current status?**

The city's column documentation says to read current status together with the approved, issued, and completed dates. Use those dates when distinguishing application activity from issued or completed work.

