接入教程
https://timor.tech/api/holiday/info/2026-10-01https://timor.tech/api/holiday/year/2026https://timor.tech/api/holiday/batch?d=2026-01-01&d=2026-10-011. 查询指定日期是否为节假日:
2. 查询整年节假日数据:
3. 批量查询多个日期:
4. 返回JSON包含holiday布尔值、名称、薪资倍数等。
5. 该接口免费且无需Key,适合开发日历与排班功能。
Python 查询节假日
python
import requests
r = requests.get("https://timor.tech/api/holiday/info/2026-10-01")
print(r.json()["holiday"])
PHP 查询节假日
php
<?php
$data = json_decode(file_get_contents('https://timor.tech/api/holiday/info/2026-10-01'), true);
var_export($data['holiday']);
JavaScript 查询节假日
javascript
fetch('https://timor.tech/api/holiday/info/2026-10-01')
.then(r => r.json())
.then(d => console.log(d.holiday));
常见问题
需要Key吗?
不需要,Timor节假日API完全免费且无需注册。
能查询调休吗?
可以,返回结果包含调休补班信息与薪资倍数。
Aitishiku.com