{"openapi":"3.1.0","info":{"title":"WarIntel API","version":"1.0.0","description":"Read-only access to WarIntel's classified, geolocated conflict reports. Reports carry WarIntel's structured fields and a link to the original source; outlet headlines and text are not included. Limits apply per account, across all its keys. Developer (free): 30 requests/minute, 1,000/day, last 7 days, non-commercial, attribution required. API Pro: 120 requests/minute, 250,000/month, full history, commercial use. Call the API from your server; keep keys out of browsers and apps."},"servers":[{"url":"https://api.war-intel.com"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Authorization: Bearer wi_live_…"}},"schemas":{"Event":{"type":"object","properties":{"id":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"reportedAt":{"type":"string","format":"date-time","description":"When WarIntel stored the report"},"precedence":{"type":"string","enum":["FLASH","IMMEDIATE","PRIORITY","ROUTINE"]},"category":{"type":["string","null"],"example":"AIRSTRIKES"},"country":{"type":["string","null"],"description":"ISO 3166-1 alpha-2"},"place":{"type":["string","null"]},"location":{"type":["object","null"],"properties":{"lat":{"type":"number"},"lng":{"type":"number"}}},"theatre":{"type":["string","null"]},"verified":{"type":"boolean"},"source":{"type":"object","properties":{"name":{"type":["string","null"]},"type":{"type":["string","null"]},"url":{"type":["string","null"]}}},"link":{"type":"string","description":"The report on war-intel.com"}}}}},"paths":{"/v1/events":{"get":{"summary":"List reports, newest first","parameters":[{"name":"country","in":"query","schema":{"type":"string"},"description":"ISO alpha-2, e.g. LB"},{"name":"category","in":"query","schema":{"type":"string"},"description":"e.g. AIRSTRIKES, MILITARY_OPS, NAVAL_OPS"},{"name":"precedence","in":"query","schema":{"type":"string","enum":["FLASH","IMMEDIATE","PRIORITY","ROUTINE"]}},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"until","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"meta.nextCursor from the previous page"}],"responses":{"200":{"description":"Reports","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"meta":{"type":"object","properties":{"nextCursor":{"type":["string","null"]}}}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/v1/events/{id}":{"get":{"summary":"One report, with the outlets that reported the same story","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Report","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"corroboration":{"type":"object","properties":{"outlets":{"type":"integer"},"names":{"type":"array","items":{"type":"string"}}}}}}]}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/v1/summary":{"get":{"summary":"The last 24 hours compared with the day before, by precedence, category and country","responses":{"200":{"description":"Summary"},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}}}