# Oregon Open Data Portal · Search contractors

Search property, job and marketplace listings with Oregon Open Data Portal · Search contractors from Alexandria through one Spiral API key. Find an Oregon contractor by business or person name, licence number, city, ZIP, county or licence type, or poll CCB for licences and endorsements registered since a date. Call get_license with a record's license_number and source for its source rows. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Listings
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `data-oregon-gov/licenses/search_contractors`
- Page: https://spiral.ai/tools/alexandria/data-oregon-gov/licenses/search_contractors

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `zip` | text |  | — | Five-digit ZIP code; also matches ZIP+4 entries. Pattern: ^[0-9]{5}$. |
| `city` | text |  | — | City, exact and case-insensitive (`Portland`). |
| `name` | text |  | — | Case-insensitive substring of the licensee name; ccb also matches the responsible managing individual, bcd also DBA names. Must not contain % or _. |
| `limit` | number | 1 to 100 | 25 | Licences per page. |
| `county` | text |  | — | County, exact and case-insensitive; a trailing `County` is ignored. CCB also uses `Out of State`. |
| `cursor` | text |  | — | next_cursor from a previous call with the same filters. |
| `source` | one of | ccb, bcd | ccb | `ccb`: Construction Contractors Board active licences (g77e-6bhs, daily). `bcd`: Building Codes Division active trade licences and certifications (vhbr-cuaq, monthly). |
| `specialty` | text |  | — | Case-insensitive substring. ccb: endorsement name (`Residential General`, `Home Inspector`). bcd: profession (Electrical, Plumbing, Boiler, Elevator, Prefab, Certification, Combo License, RV and Manuf Dwellings). |
| `issued_since` | text |  | — | ccb only. Licences with an endorsement first registered on or after this date, YYYY-MM-DD. Results are newest registration first, so this polls for new licences and endorsements. Both datasets are reloaded wholesale, so per-row update times cannot track changes. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `license_type` | text |  | — | Case-insensitive substring. ccb: endorsement code, e.g. RGC (residential general), RSC (residential specialty), CGC1/CGC2 (commercial general), CSC1/CSC2, RLC, LBPR (lead-based paint), OCHI (home inspector), OCLS (locksmith). bcd: licence type, e.g. `Plumbing Contractor`, `JP-Journeyman Plumber`, `C-Electrical Contractor`. |
| `expires_after` | text |  | — | Only licences with an endorsement (ccb) or licence (bcd) expiring after this date, YYYY-MM-DD. BCD rows without an expiration (most certifications) are excluded. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `license_number` | text |  | — | Licence number, exact (CCB `28417` or `5001OCLS`, BCD `26-45C`); case-insensitive. Pattern: ^[A-Za-z0-9-]+$. |

## Example

```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-oregon-gov/licenses/search_contractors",
    "input": {
      "zip": "<zip>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=data-oregon-gov%2Flicenses%2Fsearch_contractors

## Common questions

### Oregon Open Data Portal · Search contractors

**How much does Oregon Open Data Portal · Search contractors cost?**

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

**How do I use Oregon Open Data Portal · Search contractors through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "data-oregon-gov/licenses/search_contractors"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use Oregon Open Data Portal · Search contractors?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Oregon Open Data Portal · Search contractors?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

