CoolFace
Apppublic

hardik1231312/conflictData

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
App README

ConflictIQ API ๐ŸŒ

Real-time global conflict intelligence API โ€” powered by FastAPI, spaCy NER, and live RSS/GDELT ingestion.

Endpoints

MethodPathDescription
GET/healthHealth check + DB status
GET/api/v1/conflictsList conflict events (filterable)
GET/api/v1/conflicts/recentLast N days of events
GET/api/v1/conflicts/country/{iso3}By country ISO3 code
GET/api/v1/conflicts/nearNear a lat/lon radius
GET/api/v1/conflicts/{event_id}Single event detail
GET/api/v1/statsAggregated statistics
GET/api/v1/active-conflictsActive conflict zones
WS/api/v1/wsLive WebSocket stream

Tech Stack

  • โ€”FastAPI โ€” async REST API
  • โ€”spaCy โ€” NER-based geolocation extraction from news
  • โ€”APScheduler โ€” automated background polling (RSS every 2min, GDELT every 5min)
  • โ€”Neon (PostgreSQL + PostGIS) โ€” cloud-native geospatial database
  • โ€”Upstash (Redis) โ€” serverless caching layer