934 B
934 B
ACLED
Provides conflict events, fatalities, event types, and locations.
- Auth:
ACLED_EMAILandACLED_PASSWORD.ACLED_USERorACLED_USERNAMEmay be used as aliases forACLED_EMAIL. - Flow: OAuth password grant is tried first, then cookie session fallback.
- Failure modes are classified as
no_credentials,auth_failed,access_denied, orapi_failed. - Behavior: missing, rejected, or unauthorized credentials produce degraded source health with a concise operator message.
- Secret handling: debug output never prints bearer tokens, cookies, or the configured password.
- Test: run
node --test test/acled-source.test.mjs; with real credentials, runnode apis/sources/acled.mjs, then check/api/health.
access_denied normally means the login worked but the account cannot read API data. Check that ACLED terms are accepted, required profile fields are complete, and API access is enabled for the account.