Conventions
- Every file has
dataset,updated(the date its figures were last checked against the source) andsources(a list of{ "title", "url" };urlis optional). - Rates are percentages:
13means 13%, and0.015means 0.015%. - Amounts are whole rupees (NPR). An upper bound of
nullmeans the slab has no upper limit. - Shares with no exact decimal are fractions in a string, such as
"1/3". - Dates are AD, as
YYYY-MM-DD. Fiscal-year files also give the start of the year in Bikram Sambat:"starts": { "bs": "2083-04-01", "ad": "2026-07-17" }. - Each fiscal year is its own file and is never changed afterwards except to fix a mistake, so a calculation for a past year keeps working. A change that would break existing readers goes in
/v2/. - Responses can be cached for up to 10 minutes. Any website can fetch the files: they are sent with
Access-Control-Allow-Origin: *. - Python's built-in
urllibis turned away unless it sends its ownUser-Agentheader, as in the Python examples below. Other clients work as they are.
Calendar feeds
Two calendar feeds, built from the Bikram Sambat calendar, put the BS date on every day in Google Calendar, Apple Calendar or Outlook. Subscribe once and your calendar app keeps them up to date.
| Feed | Address | Each day reads |
|---|---|---|
| Nepali | https://data.rupeshbhandari.com.np/calendar/nepali.ics | कात्तिक ५; the first of each month adds the year, कात्तिक १, २०८३. |
| English | https://data.rupeshbhandari.com.np/calendar/english.ics | Kartik 5; the first of each month adds the year, Kartik 1, 2083. |
Subscribe
- Google Calendar: in the left column, Other calendars → + → From URL, and paste an address above.
- Apple Calendar (Mac, iPhone, iPad): open the Nepali feed or the English feed and confirm.
- Outlook: Add calendar → Subscribe from web, and paste an address above.
What's in them
- One all-day event per day, marked free so it never blocks your time. All-day dates don't shift for people outside Nepal.
- The event's description gives the weekday and full date, such as
बिहीबार, ५ कात्तिक २०८३orThursday, Kartik 5, 2083 BS. - The feeds start from the year before the current year and run to the end of the calendar file. Days in
"projected"years say so in their description, since those dates can still change. - When a date is corrected, the event changes in place. Calendar apps refresh subscribed feeds every 12 to 24 hours.
Errors
An address with no file behind it, such as a fiscal year that isn't published yet, returns 404 with GitHub Pages' HTML error page rather than JSON. Check res.ok (or the status code) before parsing, and use index.json to see which files exist.
Figures are copied from the sources named in each file. Check them against the Inland Revenue Department, SEBON or NEPSE before relying on them; this is not tax or investment advice. Source on GitHub.