Oregon Open Data Portal · Search contractors
data-oregon-gov/licenses/search_contractorsSearch 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.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- 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 | Default | Description |
|---|---|---|---|
zip | text | — | Five-digit ZIP code; also matches ZIP+4 entries. Pattern: ^[0-9]{5}$. |
city | text | — | City, exact and case-insensitive ( |
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 |
cursor | text | — | next_cursor from a previous call with the same filters. |
source | one of ccb, bcd | ccb |
|
specialty | text | — | Case-insensitive substring. ccb: endorsement name ( |
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. |
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 |
Same request in code
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>"
}
}'Frequently asked questions
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.