# Calgary Electrical Permits and Inspections: Contractors (`buildingsignal/calgary-electrical-permits-inspections`) Actor

Electrical permits and their inspections from the City of Calgary, Alberta: permit number, type, work class, status, issue date, inspection type, outcome and completion date, site address, community, applicant and contractor. One record per inspection. Updated daily.

- **URL**: https://apify.com/buildingsignal/calgary-electrical-permits-inspections.md
- **Developed by:** [BuildingSignal](https://apify.com/buildingsignal) (community)
- **Categories:** Real estate, Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Calgary Electrical Permits and Inspections: Contractors

Electrical permits issued by the City of Calgary with every inspection and its outcome, the applicant and the contractor. Updated daily.

**Price:** $0.018 per result on the Apify Free plan, down to $0.015 on higher plans, plus $0.003 per run start. 100 results cost about $1.80. An example record is shown below.

### What you get

| Field | Description |
|---|---|
| `permitnum` | Permit number |
| `permittype` | Permit type |
| `workclassgroup` | Work class |
| `statuscurrent` | Permit status |
| `issueddate` | Issue date |
| `completeddate` | Inspection completed date |
| `inspectiontype` | Inspection type |
| `outcome` | Inspection outcome |
| `originaladdress` | Site address |
| `communityname` | Community |
| `applicant` | Applicant |
| `applicanttype` | Applicant type |
| `contractor` | Contractor |
| `id` | Inspection record id |
| `servicetypename` | Service type |
| `objectdefdescription` | Object description |

### Example output

A real permit from a recent run (City of Calgary open data):

```json
{
  "permitnum": "EP2026-35474",
  "permittype": "Contractor's Electrical Permit",
  "workclassgroup": "Improvement",
  "statuscurrent": "Issued Permit",
  "issueddate": "2026-11-26",
  "completeddate": null,
  "inspectiontype": "Rough",
  "outcome": null,
  "originaladdress": "143 EDGEHILL CO NW",
  "communityname": "EDGEMONT",
  "applicant": "RESTORE ELECTRIC",
  "applicanttype": "Contractor",
  "contractor": "RESTORE ELECTRIC",
  "id": "EP2026-35474-714601881",
  "servicetypename": "Contractor's Electrical Permit",
  "objectdefdescription": "Perform Electrical Inspection",
  "city": "Calgary",
  "province": "AB",
  "country": "CA",
  "source": "City of Calgary open data",
  "observedAt": "2026-11-27T21:47:17.871Z"
}
```

### Filters

- Issued in the last N days, or an exact date range.
- Keyword in the work description.
- Contractor name and community.

Results come newest first.

### Example input

```json
{
    "withinDays": 30,
    "maxRecords": 200
}
```

### Use cases

- Electrical contractors and suppliers tracking competitor jobs by community.
- Inspectors, insurers and property managers following inspection outcomes.
- Analysts measuring trade activity across Calgary.

### Pricing

You pay per permit delivered. A run with no match returns one explanation row and is not charged for results. Free Apify plans get up to 10 results per run.

### FAQ

#### What data is included?

One row per permit with 21 fields, including `permitnum`, `permittype`, `workclassgroup`, `statuscurrent`, `issueddate`, `inspectiontype`, `originaladdress`, `communityname`. The table and example above show real values.

#### How many permits can I get?

Set `maxRecords` (default 100) to the number of permits you want. Free Apify plans get up to 10 permits per run.

#### How fresh is the data?

Each run reads the register as it is published at the time of the run. Every row has `observedAt`, the time it was read.

#### Can I filter the results?

Yes, by issued within (days), issued from, issued to, keyword, contractors and communities. Filters can be combined.

#### Which export formats are available?

You can download the results as JSON, CSV, Excel, XML or HTML from the run's dataset in Apify Console.

#### What happens if nothing matches?

The run ends with one explanation row saying no permits matched, and no result is charged.

Something not working, or a field you need is missing? Open an Issue on this actor's page. If the data is useful to you, a short review helps other users find it.

# Actor input Schema

## `withinDays` (type: `integer`):

Only permits issued in the last N days. 0 means no limit. Ignored when a start date is set.

## `issuedFrom` (type: `string`):

YYYY-MM-DD. Overrides the days filter.

## `issuedTo` (type: `string`):

YYYY-MM-DD.

## `keyword` (type: `string`):

Word in the work description, for example service, solar, EV.

## `contractors` (type: `array`):

Part of a contractor name.

## `communities` (type: `array`):

For example BELTLINE, BRIDGELAND/RIVERSIDE.

## `maxRecords` (type: `integer`):

Maximum permits to return. Free Apify plans are limited to 10 per run.

## Actor input object example

```json
{
  "withinDays": 30,
  "maxRecords": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "withinDays": 30,
    "maxRecords": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("buildingsignal/calgary-electrical-permits-inspections").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "withinDays": 30,
    "maxRecords": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("buildingsignal/calgary-electrical-permits-inspections").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "withinDays": 30,
  "maxRecords": 50
}' |
apify call buildingsignal/calgary-electrical-permits-inspections --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,buildingsignal/calgary-electrical-permits-inspections"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/h33YYKAxNN96LMAVU/builds/qGDxh8hceeotDC7qX/openapi.json
