Open data

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.

Addresses

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.

Addresses of the open data files
AddressFormatWhat it holds
/data/v1/index.jsonJSONEvery dataset with its files, fields, sources and check dates
/data/v1/holidays/index.jsonJSONPublic holidays 2027: the list of country files
/data/v1/holidays/{country}-{year}.jsonJSONPublic holidays 2027: one country and year
/data/v1/holidays/{country}-{year}.csvCSVPublic holidays 2027: one country and year
/data/v1/working-days/index.jsonJSONWorking days 2027: the list of country files
/data/v1/working-days/{country}-{year}.jsonJSONWorking days 2027: one country and year
/data/v1/working-days/{country}-{year}.csvCSVWorking days 2027: one country and year
/data/v1/compliance-deadlines.jsonJSONGulf compliance deadlines 2027
/data/v1/compliance-deadlines.csvCSVGulf compliance deadlines 2027
/data/v1/compliance-deadlines.icsiCalendarGulf compliance deadlines 2027
/data/v1/labour-rules.jsonJSONLabour rules by country
/data/v1/labour-rules.csvCSVLabour rules by country
/data/v1/e-invoicing-timelines.jsonJSONE-invoicing timelines
/data/v1/e-invoicing-timelines.csvCSVE-invoicing timelines
/data/v1/currency-pegs.jsonJSONGulf currency pegs
/data/v1/currency-pegs.csvCSVGulf currency pegs
/data/v1/schema/{dataset}.schema.jsonJSON SchemaThe JSON Schema of each dataset’s JSON file
/data/v1/openapi.jsonOpenAPI 3.1OpenAPI 3.1 description of every address

Open the OpenAPI description (openapi.json)

Rules

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.
Examples

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'])
Fields

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

Questions

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.

Use the data

Use and share this page

Free to use. If you quote it in an article, a report or a class, please credit Tempaxis with a link. Copy this line:

Questions? Talk to our team.

In Arabic or English. Ask about projects, billing, people and compliance, or about plans, and we will answer.

Keyboard shortcuts

These keys work on every page. Single-key shortcuts do nothing while you type in a field.

Keyboard shortcuts
/Open search
Ctrl KOpen or close search (⌘ K on a Mac)
?Show this list
g then hGo to the home page
g then tGo to the free tools
↑ ↓In search: move between the box and the results
EnterIn search: open the first result
EscClose search, this list, the menus and the language menu
← →On a row of tabs: the previous or next tab

Turn them off if they get in the way of a screen reader or speech software. Ctrl K keeps working. The choice is kept in this browser only.