Open data API
Every dataset is a static file at a stable address. Read it with a plain GET request from a browser, a script or a server, with no key and no account.
Licence CC BY 4.0. A guide, not legal or tax advice.
One pattern for every file.
Every address starts with https://tempaxis.com/data/v1/. A country file is named after the country and the year, as each index file lists them.
| Address | Format | What it holds |
|---|---|---|
/data/v1/index.json | JSON | Every dataset with its files, fields, sources and check dates |
/data/v1/holidays/index.json | JSON | Public holidays 2027: the list of country files |
/data/v1/holidays/{country}-{year}.json | JSON | Public holidays 2027: one country and year |
/data/v1/holidays/{country}-{year}.csv | CSV | Public holidays 2027: one country and year |
/data/v1/working-days/index.json | JSON | Working days 2027: the list of country files |
/data/v1/working-days/{country}-{year}.json | JSON | Working days 2027: one country and year |
/data/v1/working-days/{country}-{year}.csv | CSV | Working days 2027: one country and year |
/data/v1/compliance-deadlines.json | JSON | Gulf compliance deadlines 2027 |
/data/v1/compliance-deadlines.csv | CSV | Gulf compliance deadlines 2027 |
/data/v1/compliance-deadlines.ics | iCalendar | Gulf compliance deadlines 2027 |
/data/v1/labour-rules.json | JSON | Labour rules by country |
/data/v1/labour-rules.csv | CSV | Labour rules by country |
/data/v1/e-invoicing-timelines.json | JSON | E-invoicing timelines |
/data/v1/e-invoicing-timelines.csv | CSV | E-invoicing timelines |
/data/v1/currency-pegs.json | JSON | Gulf currency pegs |
/data/v1/currency-pegs.csv | CSV | Gulf currency pegs |
/data/v1/schema/{dataset}.schema.json | JSON Schema | The JSON Schema of each dataset’s JSON file |
/data/v1/openapi.json | OpenAPI 3.1 | OpenAPI 3.1 description of every address |
What stays the same.
- Versioning
- Addresses under /data/v1/ stay as they are. Within v1, fields can be added but are never renamed or removed, and each field keeps its meaning. A change that would break a reader is published under /data/v2/, and the v1 files stay.
- Formats
- JSON is UTF-8. CSV is UTF-8 with a byte order mark, comma-separated, with a header row and quotes around values that hold a comma, as RFC 4180 describes; a list in one cell is separated by spaces. The calendar file follows RFC 5545.
- Values
- Dates are YYYY-MM-DD, countries ISO 3166-1 alpha-2 codes and currencies ISO 4217 codes. A value that does not apply is null in JSON and empty in CSV.
- Browsers
- Files under /data/ are sent with the header Access-Control-Allow-Origin: *, so a script on any website can read them.
- Each JSON file
- An object with the dataset’s id, version, licence, check dates, sources and scope (the country and year of a country file), the field names in CSV order, and the rows.
- Caching
- A file changes only when the site is built again. Keep a copy on your side, and read the check dates to see how current a rule is.
- Licence
- CC BY 4.0: credit Tempaxis with a link. Each file names its official sources.
Read a file in a few lines.
Each example reads the public holidays of the UAE in 2027 and prints the first one.
Command line (curl)
curl -s https://tempaxis.com/data/v1/holidays/uae-2027.json | jq '.rows[0]'JavaScript (browser or Node.js)
const res = await fetch('https://tempaxis.com/data/v1/holidays/uae-2027.json');
const data = await res.json();
console.log(data.rows[0].name, data.rows[0].start);Python (standard library)
import json, urllib.request
url = 'https://tempaxis.com/data/v1/holidays/uae-2027.json'
with urllib.request.urlopen(url) as r:
data = json.load(r)
print(data['rows'][0]['name'], data['rows'][0]['start'])The fields of each dataset.
The same names in JSON and CSV, in this order. The JSON Schema of each dataset gives their types and what each one holds.
Public holidays 2027
startenddaysnamename_arexpectedhijrinote
JSON Schema /data/v1/schema/holidays.schema.json
Working days 2027
monthcalendar_daysweekend_daysholidays_on_working_daysworking_daysworking_hours
JSON Schema /data/v1/schema/working-days.schema.json
Gulf compliance deadlines 2027
datecountry_codecountrycountry_arkindtitletitle_arnotenote_armoved_fromsourceschecked
JSON Schema /data/v1/schema/compliance-deadlines.schema.json
Labour rules by country
country_codecountrycountry_artopicrulerule_arapplies_toarticlearticle_arlawlaw_arpagesourceschecked
JSON Schema /data/v1/schema/labour-rules.schema.json
E-invoicing timelines
datekindjurisdiction_codejurisdictionjurisdiction_areventevent_arapplies_toapplies_to_arwavethresholdthreshold_currencyyears_countedwindow_starteu_statussourceschecked
JSON Schema /data/v1/schema/e-invoicing-timelines.schema.json
Gulf currency pegs
codenamename_arunits_per_usdusd_per_unitdecimalscentral_bankcentral_bank_arsourcechecked
JSON Schema /data/v1/schema/currency-pegs.schema.json
Common questions about the API.
Do I need an API key?
No. The files are public and static. There is no key, no account and no sign-up.
Can I ask for one date or one country?
The API serves whole files, not queries. Choose the country file, or read a file and filter it in your code; the files are small.
Will an address change?
No. A v1 address keeps working. A change that would break a reader gets a v2 address, and the v1 file stays where it is.
Can a web page read the files directly?
Yes. The files under /data/ allow requests from any website (CORS), so fetch() in the browser works without a proxy.
Read the files from code or a spreadsheet.
- Open dataHolidays, deadlines and work rules as JSON and CSV files
- Open data in spreadsheetsExcel Power Query and Google Sheets IMPORTDATA, step by step
- Public holidays 202717 countries, with long weekends and calendar files
- Gulf compliance calendar 2027Salary, VAT, e-invoicing and holiday dates for six Gulf countries
- E-invoicing deadline trackerZATCA waves, UAE phases and EU dates, with a countdown
- Gulf currency converterDollar, dirham, riyals and dinars at the official pegs
Questions? Talk to our team.
In Arabic or English. Ask about projects, billing, people and compliance, or about plans, and we will answer.