Developer docs
LoanChecker API
The Worker API powers URL-first lender analysis, country configuration, deterministic scoring, reports, monetization config, and deletion workflows.
Local development
Start the Worker from the API directory:
cd worker
npm install --ignore-scripts --no-audit --no-fund
npm run dev
Android app default base URL:
https://loanchecker-api.ximalaya10086.workers.dev
Android emulator local Worker URL:
http://10.0.2.2:8787
Core endpoints
| GET | /health | Service health. |
|---|---|---|
| GET | /v1/config | Remote feature flags. |
| GET | /v1/questions | Quick or deep check questions. |
| POST | /v1/url/analyze | Analyze a website or Play Store listing. |
| POST | /v1/assessments | Calculate and optionally store a result. |
| POST | /v1/reports/generate | Create a deterministic user report. |
| POST | /v1/users/delete | Delete server-side anonymous user records. |
URL analysis example
{
"anonymous_user_id": "anon_01",
"country": "GLOBAL",
"locale": "en",
"url": "https://play.google.com/store/apps/details?id=com.example.loan"
}
Assessment example
{
"anonymous_user_id": "anon_01",
"country": "GLOBAL",
"locale": "en",
"assessment_type": "quick",
"app_profile": {
"app_name": "Fast Cash",
"company_name": "",
"website": "",
"store_link": ""
},
"answers": {
"advance_fee": true,
"sensitive_permissions": true
},
"evidence": {
"screenshot_count": 1,
"contract_text_present": false
}
}
Production gates
- Enable billing only after Google Play Developer API verification is complete.
- Enable evidence upload only after R2 retention and deletion controls are complete.
- Enable AI only after schema validation, quota enforcement, and safe prompt routing are complete.
- Trust rewarded credits only after AdMob server-side verification is active.