# Map San Francisco Construction Permit Data

**Use case:** 

Collect recent San Francisco building permit records for an urban planning map. Results can include latitude, longitude, address, neighborhood, status, and filed date when available. Change maxItems to adjust the number of records returned.

## Input

```json
{
  "mode": "search",
  "permitNumbers": [],
  "permitType": "",
  "status": "",
  "neighborhood": "",
  "supervisorDistrict": "",
  "zipcode": "",
  "existingUse": "",
  "proposedUse": "",
  "existingConstructionType": "",
  "proposedConstructionType": "",
  "primaryPriority": "",
  "tidfCompliance": "",
  "nearRadiusMeters": 500,
  "aduOnly": false,
  "fireOnlyPermitOnly": false,
  "sitePermitOnly": false,
  "structuralNotificationOnly": false,
  "voluntarySoftStoryRetrofitOnly": false,
  "reroofOnly": false,
  "sortBy": "filedDateDesc",
  "includeContacts": false,
  "maxItems": 50
}
```

## Output

```json
{
  "permitNumber": {
    "label": "Permit number"
  },
  "permitTypeDefinition": {
    "label": "Permit type definition"
  },
  "status": {
    "label": "Status"
  },
  "fullAddress": {
    "label": "Full address"
  },
  "neighborhood": {
    "label": "Neighborhood"
  },
  "filedDate": {
    "label": "Filed date"
  },
  "issuedDate": {
    "label": "Issued date"
  },
  "estimatedCost": {
    "label": "Estimated cost"
  },
  "description": {
    "label": "Description"
  },
  "sourceUrl": {
    "label": "Source url"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The San Francisco Building Permit Lookup Scraper Actor is ready to run with the inputs already set for "Map San Francisco Construction Permit Data". [Sign up or log in](https://console.apify.com/create-task-from-example/BIfsQB0CCQ9rjKZ1q) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Map San Francisco Construction Permit Data" task

The San Francisco Building Permit Lookup Scraper Actor will start running based on the input automatically. You can also change all the input fields, like mode, permit numbers (mode=bypermitnumber), and more, to match your specific use case.

### 3. Receive the "Map San Francisco Construction Permit Data" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as permit number, permit type definition, status, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Map San Francisco Construction Permit Data" task via API](https://apify.com/crawlyth-forge/san-francisco-building-permit-lookup-scraper.md).

## FAQ

### How can I get San Francisco construction permit data for a map?

The San Francisco permits task searches building permit records and can return latitude, longitude, address and neighborhood when available.

### Which San Francisco building permits does the search return first?

The San Francisco permits task is set to search records sorted by filed date, newest first.

### What details are included in San Francisco building permit records?

Records from the San Francisco permits task can include permit number, status, filed date, estimated cost, work description and a source link.

### Can I see the ZIP code and district for a San Francisco permit?

ZIP code and supervisor district can appear in records from the San Francisco permits task when available.

### How many San Francisco permit records can I get in one run?

Up to 50 records are returned by default in the San Francisco permits task. Change maxItems to set a limit from 1 to 10,000.

### Can I change the sort order for San Francisco permit records?

Choose a filed date, issued date, status date or estimated cost sort order in the San Francisco permits task, ascending or descending.

### How much does it cost to run the San Francisco permit search?

On the Free plan, the San Francisco permits task charges $0.10 per Actor Start event and up to $0.05 for 50 results. Start events depend on memory, and platform compute is extra.

### Is there a San Francisco API for building permit records?

San Francisco publishes building permit records through its open-data API. The San Francisco permits task includes a source link to the exact record when available.

### How can I monitor San Francisco permits every week?

Set a weekly schedule in Apify Schedules for the San Francisco permits task. It can also run through the Apify API or supported integrations.

## About this Actor

This example demonstrates how to use [San Francisco Building Permit Lookup Scraper](https://apify.com/crawlyth-forge/san-francisco-building-permit-lookup-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/crawlyth-forge/san-francisco-building-permit-lookup-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/crawlyth-forge/san-francisco-building-permit-lookup-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
