muslimsalat
菜单
选择地点
选择语言

推荐

所有语言

API

把地点写进路径,再加 .json 或 .ics。这些是接口一直使用的地址,现有应用无需任何改动。

接口本身及其地址和返回内容为英文。

GET /{location}.json
GET /{location}/{daily|weekly|monthly|yearly|ramadan}.json
GET /{location}/{times}/{dd-mm-yyyy}.json
GET /{location}/monthly.ics                  calendar (webcal:// to subscribe)
GET /daily.json                              place found from the caller's IP
GET /qibla_compass/{size}/{degrees}.png      ?style=classic|astrolabe|enamel|silver
GET /qibla_compass/{size}/{degrees}.svg      the astrolabe, animated
GET /code/qibla?city={city}                  live Qibla finder, for an iframe
GET /{location}/{monthly|ramadan}.pdf        ?design=astrolabe|illuminated|night|wall  &paper=letter

参数

名称作用
key您的 API 密钥,新应用和新网站必填。免费获取。
method按编号指定时间表(见 /api/methods.json)或旧编号 1–7。留空则使用该地点的当地时间表。
asrasr 取 hanafi 或 shafi。两个值始终包含在 asr 和 asr_hanafi 中。
fajr, isha自定义方法:fajr=18、isha=17 或 isha=90min。
ramadan1 给每一天加上 imsak 和 iftar(斋月期间始终包含)。
jsoncallbackJSONP 包装函数。

试一试


  
…

today_weather 字段:天气数据来自 Open-Meteo.com。其他来源:数据与鸣谢。

常见问题

需要密钥吗?

需要,每个新应用、网站或小组件都要。密钥免费:登录后复制。原先已在使用 MuslimSalat 的应用和网站无需密钥照常运行。

返回哪些时间?

每个地点返回当地机构或主要清真寺公布的时间表。计算方法。

有限制吗?

合理使用;限额随密钥设定。

还有其他问题?

联系我们。