📚 Kalakram API

A free, read-only public API for Kalakram's Nepal history dataset (400 CE–present) — the same data behind kalakram.org's interactive atlas. No API key, no rate limit beyond fair use. Generated 2026-12-01T18:05:22.546Z.

Query parameters

Every list resource (/v1/<resource>) accepts the same parameters, applied consistently across all of them:

ParamMeaningExample
yearItems whose date (or date range) includes this year?year=1816
from / toItems overlapping this year range (either bound optional)?from=1800&to=1900
districtItems tied to this district (exact name, case-insensitive)?district=Kathmandu
qCase-insensitive substring search across every text field?q=earthquake
sortField to sort by; prefix with - for descending?sort=-year
limit / offsetPagination (default limit 100, max 500)?limit=20&offset=40

A filter that doesn't apply to a resource (e.g. year on /v1/provinces, which has no dates) simply matches nothing on that field rather than erroring.

Example

curl https://api.kalakram.org/v1/wars?from=1814&to=1816
curl https://api.kalakram.org/v1/districts/Kathmandu
curl https://api.kalakram.org/v1/disasters?district=Kathmandu&sort=-year

Response shape

List endpoints: { key, label, description, pagination: { total, limit, offset, returned }, items: [...] }.
Single-item endpoints (/v1/<resource>/:id, /v1/districts/:name): the item itself, no envelope.
Every bilingual field is split into an _en/_ne pair (e.g. name_en/name_ne); a null means no Nepali text exists yet for that field.

Districts

/v1/districts lists all 79 of the atlas's districts (75 current Nepali districts plus 4 unadministered regions shown at the historical "Greater Nepal" extent). /v1/districts/:name returns one district's full record — its shape, population history, and a related map of ids into every other resource that names it (wars fought there, heritage sites, etc.) — so a client can fetch everything about one place with a single extra round trip per related resource, instead of filtering all 40 resources client-side.

All resources

EndpointLabelSizeDescription
/v1/rulersRulers152 itemsIndividual rulers and officeholders, 400-2026 CE, each tied to one ruling polity.
/v1/erasEras7 itemsNepal's named historical periods (Licchavi, Thakuri, Malla, unification, Rana, republic).
/v1/snapshotsSnapshots22 itemsOne dated snapshot of which polity ruled which districts, for every year the atlas's map can be set to.
/v1/eventsEvents128 itemsTurning-point events on the atlas's timeline.
/v1/treatiesTreaties24 itemsTreaties and international agreements affecting Nepal.
/v1/practicesPractices18 itemsDocumented social/legal practices and customs, with their own in-force timeline.
/v1/constitutionsConstitutions6 itemsNepal's successive constitutions and governing charters.
/v1/provincesProvinces8 itemsNepal's 7 federal provinces (plus unadministered claimed territory), in force since 2015.
/v1/highwaysHighways7 itemsMajor highways, gated by construction status over time.
/v1/pilgrimagesPilgrimage routes1 itemsMulti-district pilgrimage trails.
/v1/warsWars8 itemsWars and military campaigns involving Nepal.
/v1/disastersDisasters19 itemsEarthquakes, floods, landslides, storms, famines and droughts.
/v1/heritageHeritage sites65 itemsHeritage sites and monuments, each tied to one district and a built year.
/v1/universitiesUniversities14 itemsNotable universities, each tied to one district and a founding year.
/v1/mythologyMythology & religion13 itemsMythological and religious-history entries, each tied to one district.
/v1/current-affairsCurrent affairs5 itemsRecent current-affairs entries.
/v1/institutionsNotable institutions8 itemsNotable institutional firsts (post, telecom, aviation, etc.).
/v1/notable-peopleNotable people8 itemsNotable people, each with a field of note and the year they became notable for it.
/v1/sportsSports8 itemsSports organized in Nepal, with their governing body and current status.
/v1/pmsPrime ministers51 itemsEvery Nepali prime minister's term, 1951-present.
/v1/presidentsPresidents3 itemsEvery Nepali president's term, 2008-present.
/v1/electionsNational elections8 itemsNepal's national general elections.
/v1/local-electionsLocal elections2 itemsNationwide local-election tallies.
/v1/metro-mayorsMetro mayor races12 itemsMayoral race results for Nepal's metropolitan/sub-metropolitan cities.
/v1/changelogChangelog77 itemsDated changelog of additions to the atlas itself.
/v1/populationNational population12 itemsNational population readings over time.
/v1/literacyLiteracy8 itemsNational literacy rate readings over time.
/v1/life-expectancyLife expectancy6 itemsNational life expectancy readings over time.
/v1/gdpGDP per capita14 itemsNational GDP per capita (USD) readings over time.
/v1/povertyPoverty rate2 itemsNational poverty-rate readings over time.
/v1/remittancesRemittances9 itemsRemittances as a share of GDP, over time.
/v1/tourismTourism arrivals9 itemsAnnual international tourist arrivals.
/v1/hydropowerHydropower capacity5 itemsInstalled hydropower capacity (MW) over time.
/v1/internetInternet adoption2 itemsInternet adoption rate readings over time.
/v1/electricity-accessElectricity access4 itemsShare of population with electricity access, over time.
/v1/vaccinationVaccination coverage4 itemsMeasles vaccination coverage readings over time.
/v1/schoolsSchools2 itemsSchool-count readings (community schools) over time.
/v1/collegesColleges2 itemsCollege/campus-count readings by type over time.
/v1/religionReligion census3 itemsNational religion-census breakdowns over time.
/v1/ethnicityEthnicity census2 itemsNational ethnicity-census breakdowns (constitutional inclusion categories) over time.
/v1/agri-calendarAgricultural calendarsingle objectNepal's 12-month farming calendar by ecological zone (Terai/Hill/Mountain).
/v1/forestsForest coversingle objectPer-district ecological zone tags plus national/CFUG forest-cover readings over time.

Licensing & attribution

This is historical reference data, most of it drawn from Wikipedia and the published sources documented in each item's own source field. It is not a peer-reviewed academic source — treat it as a way to find questions, not as something to cite directly. If you build something with it, a link back to kalakram.org is appreciated but not required.