# ContraX

> Find building permits in your ContraX jurisdictions and see who is doing the work.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/contrax

## Actions

### Get permit

Get one building permit by its ContraX ID.

**Inputs**

- Permit ID (`id`, text, required): The permit's ContraX ID, from List permits.

**Outputs**

- `data` (object): The response from ContraX.

**Example output**

```json
{
  "data": {
    "permit": {
      "address": "123 SE 5th Ave",
      "applied_at": "2026-01-05T00:00:00.000Z",
      "city": "Cape Coral",
      "company_name": "Sunshine Roofing LLC",
      "contractor": "Sunshine Roofing LLC",
      "county": "Lee",
      "description": "Reroof single family home",
      "finalized_at": "2026-02-20T00:00:00.000Z",
      "id": "cape_coral_0002a652c9c188af",
      "issued_at": "2026-01-12T00:00:00.000Z",
      "jurisdiction": "cape_coral",
      "latitude": 26.56,
      "longitude": -81.94,
      "parcel": "12-45-23-C1-00001.0010",
      "permit_number": "RES24-001234",
      "permit_type": "Roofing",
      "state": "FL",
      "status": "Issued",
      "value": 18500,
      "work_class": "Alteration",
      "zip": "33990"
    }
  }
}
```

### Get permit facets

List the statuses, permit types, work classes, companies and ZIP codes found in a jurisdiction's permits.

**Inputs**

- Jurisdiction (`jurisdiction`, text, required): The jurisdiction to read. Pick one, or use a jurisdiction ID from List jurisdictions.
- Facets (`fields`, list): Which lists to return. Leave empty for all five. One or more of: `status`, `permit_type` (Permit type), `work_class` (Work class), `company`, `zip` (ZIP code).
- Status (`status`, list): Only permits with one of these statuses, exactly as ContraX writes them, such as Issued.
- Permit type (`permit_type`, list): Only permits whose type contains one of these words, such as Roofing.
- Company (`company`, list): Only permits for one of these companies or contractors, by full name.
- ZIP code (`zip`, text): Only permits at this ZIP code.
- Minimum value (`min_value`, number): Only permits worth at least this many dollars. At least 0.
- Maximum value (`max_value`, number): Only permits worth at most this many dollars. At least 0.
- Issued on or after (`issued_after`, date): Only permits issued on or after this day.
- Issued on or before (`issued_before`, date): Only permits issued on or before this day.

**Outputs**

- `data` (object): The response from ContraX.

**Example output**

```json
{
  "data": {
    "facets": {
      "company": [
        "Sunshine Roofing LLC"
      ],
      "permit_type": [
        "Roofing"
      ],
      "status": [
        "Issued"
      ],
      "work_class": [
        "Alteration"
      ],
      "zip": [
        "33990"
      ]
    },
    "truncated": []
  }
}
```

### Get permit totals

Count and total a jurisdiction's permits by week, type, status, company and ZIP code.

**Inputs**

- Jurisdiction (`jurisdiction`, text, required): The jurisdiction to read. Pick one, or use a jurisdiction ID from List jurisdictions.
- Status (`status`, list): Only permits with one of these statuses, exactly as ContraX writes them, such as Issued.
- Permit type (`permit_type`, list): Only permits whose type contains one of these words, such as Roofing.
- Company (`company`, list): Only permits for one of these companies or contractors, by full name.
- ZIP code (`zip`, text): Only permits at this ZIP code.
- Minimum value (`min_value`, number): Only permits worth at least this many dollars. At least 0.
- Maximum value (`max_value`, number): Only permits worth at most this many dollars. At least 0.
- Issued on or after (`issued_after`, date): Only permits issued on or after this day.
- Issued on or before (`issued_before`, date): Only permits issued on or before this day.

**Outputs**

- `data` (object): The response from ContraX.

**Example output**

```json
{
  "data": {
    "by_company": [
      {
        "company_name": "Sunshine Roofing LLC",
        "count": 1,
        "value": 18500
      }
    ],
    "by_permit_type": [
      {
        "count": 1,
        "permit_type": "Roofing"
      }
    ],
    "by_status": [
      {
        "count": 1,
        "status": "Issued"
      }
    ],
    "by_week": [
      {
        "count": 1,
        "week": "2026-01-12"
      }
    ],
    "by_work_class": [
      {
        "count": 1,
        "work_class": "Alteration"
      }
    ],
    "by_zip": [
      {
        "count": 1,
        "value": 18500,
        "zip": "33990"
      }
    ],
    "metrics": {
      "total_permits": 1,
      "total_value": 18500,
      "unique_contractors": 1,
      "unique_zips": 1
    }
  }
}
```

### List jurisdictions

List the jurisdictions your ContraX plan covers, with their IDs.

**Inputs**: None.

**Outputs**

- `data` (object): The response from ContraX.

**Example output**

```json
{
  "data": {
    "jurisdictions": [
      {
        "county": "Lee",
        "id": "cape-coral",
        "name": "Cape Coral",
        "state": "FL"
      }
    ]
  }
}
```

### List permits

List one page of a jurisdiction's building permits, filtered and sorted as you choose.

**Inputs**

- Jurisdiction (`jurisdiction`, text, required): The jurisdiction to read. Pick one, or use a jurisdiction ID from List jurisdictions.
- Status (`status`, list): Only permits with one of these statuses, exactly as ContraX writes them, such as Issued.
- Permit type (`permit_type`, list): Only permits whose type contains one of these words, such as Roofing.
- Company (`company`, list): Only permits for one of these companies or contractors, by full name.
- ZIP code (`zip`, text): Only permits at this ZIP code.
- Minimum value (`min_value`, number): Only permits worth at least this many dollars. At least 0.
- Maximum value (`max_value`, number): Only permits worth at most this many dollars. At least 0.
- Issued on or after (`issued_after`, date): Only permits issued on or after this day.
- Issued on or before (`issued_before`, date): Only permits issued on or before this day.
- Contractor contains (`contractor`, text): Only permits whose contractor's name contains this.
- Address contains (`address`, text): Only permits whose address contains this.
- Parcel contains (`parcel`, text): Only permits whose parcel number contains this.
- Applied on or after (`applied_after`, date): Only permits applied for on or after this day.
- Applied on or before (`applied_before`, date): Only permits applied for on or before this day.
- Sort by (`sort`, text): Which date to sort by. Leave empty for ContraX's own order. One of: `issued_at` (Date issued), `applied_at` (Date applied).
- Order (`order`, text): Newest or oldest first, when sorting. One of: `desc` (Newest first), `asc` (Oldest first).
- Page size (`limit`, number): How many permits a page holds. Your plan caps it at 100 or 250. From 1 to 250.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from ContraX.

**Example output**

```json
{
  "data": {
    "limit": 50,
    "next_cursor": "",
    "permits": [
      {
        "address": "123 SE 5th Ave",
        "applied_at": "2026-01-05T00:00:00.000Z",
        "city": "Cape Coral",
        "company_name": "Sunshine Roofing LLC",
        "contractor": "Sunshine Roofing LLC",
        "county": "Lee",
        "description": "Reroof single family home",
        "finalized_at": "2026-02-20T00:00:00.000Z",
        "id": "cape_coral_0002a652c9c188af",
        "issued_at": "2026-01-12T00:00:00.000Z",
        "jurisdiction": "cape_coral",
        "latitude": 26.56,
        "longitude": -81.94,
        "parcel": "12-45-23-C1-00001.0010",
        "permit_number": "RES24-001234",
        "permit_type": "Roofing",
        "state": "FL",
        "status": "Issued",
        "value": 18500,
        "work_class": "Alteration",
        "zip": "33990"
      }
    ]
  }
}
```
