Local API · included with your plan
Your searches.
Your scripts.
Turn on the API tab in the app and every search becomes a REST endpoint on your own PC — companies, people, email scraping, verification and CSV export. It runs on 127.0.0.1 only, while the app is open.
Free with your plan
Where is the key? Open the app → API tab → tick Enable local API. The key is shown there; copy it, and use it as
Authorization: Bearer <key> on every request.
Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /v1/health | Server + version check |
| GET | /v1/scans | List saved scans (for saved-data queries) |
| POST | /v1/companies/search | Live scan, or {"mode":"saved"} over your data |
| POST | /v1/people/search | Live people search (or search_id for saved) |
| POST | /v1/emails/scrape | Job: find emails on a list of websites |
| POST | /v1/emails/verify | Job: verify a list of addresses |
| GET | /v1/jobs/<id> | Status, phase, live counters |
| GET | /v1/jobs/<id>/results | Paginated JSON results |
| GET | /v1/jobs/<id>/export.csv | Same results as CSV |
| DELETE | /v1/jobs/<id> | Stop a running job |
| GET | /v1/usage | Requests, jobs and rows this session |
Long searches return job_id immediately. Poll the job, then page the results — no result cap, paging comes straight from the local database.
Examples
Companies — live scan
curl.exe -s -H "Authorization: Bearer %KEY%" ^
-H "Content-Type: application/json" ^
-d "{\"what\":\"plumber\",\"where\":\"Durban\",\"radius_km\":10}" ^
http://127.0.0.1:8765/v1/companies/search
→ {"job_id":"companies_ab12","status":"running"}
curl.exe -s -H "Authorization: Bearer %KEY%" ^
http://127.0.0.1:8765/v1/jobs/companies_ab12
curl.exe -s -H "Authorization: Bearer %KEY%" ^
"http://127.0.0.1:8765/v1/jobs/companies_ab12/results?page=1&page_size=50"
A live scan also scrapes and verifies emails for every company it finds, exactly like the app.
People — live search
curl.exe -s -H "Authorization: Bearer %KEY%" ^
-H "Content-Type: application/json" ^
-d "{\"country\":\"ZA\",\"city\":\"Durban\",\"industry\":\"Construction\",\"title\":\"owner\"}" ^
http://127.0.0.1:8765/v1/people/search
→ {"job_id":"people_cd34","status":"running"}
GET /v1/jobs/people_cd34/results?page=1&page_size=50
People jobs run the full pipeline: fetch, company-email scrape, verification and Find Personal Emails.
Email scraping and verification
curl.exe -s -H "Authorization: Bearer %KEY%" ^
-H "Content-Type: application/json" ^
-d "{\"websites\":[\"https://example.com\"]}" ^
http://127.0.0.1:8765/v1/emails/scrape
curl.exe -s -H "Authorization: Bearer %KEY%" ^
-H "Content-Type: application/json" ^
-d "{\"emails\":[\"[email protected]\",\"[email protected]\"]}" ^
http://127.0.0.1:8765/v1/emails/verify
CSV export
curl.exe -s -H "Authorization: Bearer %KEY%" ^ http://127.0.0.1:8765/v1/jobs/companies_ab12/export.csv ^ -o companies.csv
The API and its CSV export are included free with your plan. Sending email or contact forms remains the paid part of CompanyScout.
Set the key once in cmd.exe
set KEY=cs_your_key_here curl.exe -s -H "Authorization: Bearer %KEY%" http://127.0.0.1:8765/v1/health
Good to know
- Localhost only. Nothing is exposed to the internet; the server stops when the app closes.
- Paid plan required to enable the API tab. The API itself and CSV export are included.
- Real searches, real quotas. Live company and people jobs use the same engines and provider limits as the app.
- Jobs are in memory. Keep the app open while scripts poll them.
- No result cap. Results page from the database; use
pageandpage_size.
The app's API tab contains the same documentation in drop-downs, plus your key, port, usage counters and copy-paste examples.