Spiral gives your agent every tool with one account. Browse the tools →

n8n · Listings

How to Use San Francisco building permit search in n8n

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.

Prompts to try with San Francisco building permit search in n8n

Copy an example into n8n, or ask in your own words.

Every morning, use San Francisco building permit search for ZIP code 94103 with the most recently changed records first, and summarize differences from the previous report.

San Francisco building permit searchn8n
Try asking
  • Every morning, use San Francisco building permit search for office work in ZIP code 94105 issued during the past seven days, and report permit numbers absent from the previous report.

  • Every Monday at 9am: 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 n8n

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

Use the Spiral skill

  1. Send n8n 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 Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run San Francisco building permit search in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds San Francisco building permit search, prices it and runs it each time the step fires.

Use the Spiral CLI

  1. 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

  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.

    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: n8n finds San Francisco building permit search on Spiral, shows the price and runs it.

San Francisco building permit search providers and prices

Spiral runs San Francisco building permit search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaListings
DataSF open data portal · Search permits
data-sf-gov/building-permits/search_permits

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Sortissued_desc, applied_desc, updated_desc, or valuation_descissued_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.

Limit1 to 10025

Records per page.

Min valuationa number from 0

Only permits whose DBI cost estimate is at least this many USD.

Every API field of DataSF open data portal · Search permits is on its tool page: open its card above.

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

Maintain a recurring San Francisco construction brief with permit changes and contractor activity. A scheduled agent can compare successive results and select individual records for closer review after the city's nightly permit upload.

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.

Questions about San Francisco building permit search in n8n

Can n8n use San Francisco building permit search?

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

How much does San Francisco building permit search cost in n8n?

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

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

You need no Alexandria account. n8n 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 n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while San Francisco building permit search runs?

San Francisco building permit search runs in the background. n8n 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.

Get started

Start using San Francisco building permit search in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options