ne · en
Overview JSON API · मुख्य आंकडा API
Homepage #overview KPIs as stable public JSON for newsrooms and partner portals.
नेपाली: निरज भुसाल
English: Niraj Bhusal
बुलेटिन होम · #overview dashboard.ne.json dashboard.en.json about · sources
Optional auto-redirect: api/?go=1 → bulletin #overview. This docs page stays readable by default (no instant bounce).
Endpoint
api/dashboard.json— bilingual (ne + en), primary · मृतक→सञ्चार onlyapi/dashboard.ne.json— Nepaliapi/dashboard.en.json— English
Canonical bulletin: https://nirajbhusal.github.io/rasuwa-flood-bulletin/
CORS / caching
GitHub Pages serves these as static GET files. Browser fetch() from other origins works for simple GET (no custom auth). Prefer cache: 'no-store' so portals pick up board refreshes. The site service worker already treats .json as live (no-store).
Example
fetch('https://nirajbhusal.github.io/rasuwa-flood-bulletin/api/dashboard.json', {
cache: 'no-store'
})
.then(r => r.json())
.then(data => {
// data.cards[0].value → deaths, etc.
// Always show data.credit[lang] + link to data.links.overview
console.log(data.as_of.en, data.cards.map(c => [c.id, c.value]));
});
# curl curl -sS 'https://nirajbhusal.github.io/rasuwa-flood-bulletin/api/dashboard.json' | head
Schema notes
- Eight cards in homepage order:
dead,injured,miss,rescued,police,tunnel,deploy,comms. - Do not re-sum labeled splits (especially missing / holding).
- Nepal Police card is a separate source from NDRRMA hero KPIs.
- Name-list rescue count on the names page is not the homepage rescued total.
comms.valueisnull(composite lead117 · 76); usevalue_display.- Please keep
credit/watermark/source_line/attribution_htmlandlinkvisible when republishing (attribution_required: true).
Embed widget · एम्बेड (recommended)
Required when using this API: show credit (or watermark / source_line) and link link next to the figures. Example:
fetch('https://nirajbhusal.github.io/rasuwa-flood-bulletin/api/dashboard.json')
.then(r => r.json())
.then(data => {
// render data.cards …
el.innerHTML = data.attribution_html.ne; // or data.source_line.ne + link
});
JSON cannot force a watermark on another site — the portal must render these fields. Optional iframe: embed/dashboard.html (baked-in credit).
Process note · अद्यावधिक
When the NDRRMA board (or labeled Nepal Police board) updates, refresh api/dashboard.json alongside the homepage #overview KPI cards — same numbers, same as-of stamp. Do not invent figures.
NDRRMA बोर्ड (वा नेपाल प्रहरी कार्ड) अपडेट हुँदा होमपेज #overview सँगै api/dashboard.json पनि ताजा पार्नुहोस्। अंक नबनाउनुहोस्।