Get started¶
Use this page together with Authentication and Get data.
Prerequisites¶
- HTTPS client (curl, fetch,
httpx, etc.). - An account created via
POST /auth/register(or credentials from your deployment). - A valid
accessTokenfrom register or login responses for all routes that require auth (see Authentication).
Secrets
Treat accessToken like a password. Do not commit tokens to source control or expose them in public client-side code without a backend-for-frontend.
Base URLs¶
| Environment | Example base URL |
|---|---|
| Local API (default in code) | http://localhost:3001 |
| Hosted / production | https://api.azscraper.com (replace with your deployment) |
All paths below are relative to that base (no /v1 prefix in the current Nest app). Swagger UI: {baseUrl}/api/docs.
Environment variables¶
Operator/self-host environment variables and ports are documented in Environment & deployment.
Minimal flow¶
- Register or login → receive
accessToken(Authentication). - Create a project →
POST /projectswith{ "name": "..." }→ notedata.id. - Create a crawl job →
POST /projects/{projectId}/jobswithtype,targets, optionalconfig. - Poll the job →
GET /jobs/{jobId}untilstatusiscompletedorfailed(Get data). - Fetch results →
GET /jobs/{jobId}/resultsor export →GET /jobs/{jobId}/export?format=jsonorformat=csv.
Rate limits and quotas¶
Usage is enforced per organization plan (monthly job count, targets, exports). Exceeding limits returns 403 with the standard error envelope (Authentication). The API may also return validation errors as 400.
Referral click endpoint
POST /referral/click is rate-limited separately; see Referral API.
Next steps¶
- Authentication — tokens, logout, handoff, errors.
- Get data — CRUD, jobs, results, export, quick reference.