fynntimes / praytime-api

Simple Ja'fari prayer times API.

Home Page:https://api.faizaan.dev/times

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrayTime API

This is a very simple prayer times API that I spun up to support the SIJPA app. It uses the PrayTimes.org library and just wraps a nice REST endpoint around it.

At this time, the API does not allow you to change calculation school; it defaults to "Jafari". If anyone happens across this project and wants a setting to change this, make an issue and I'll happily add it.

To get prayer times for a particular day.

GET https://api.faizaan.dev/times?lat={latitude}&lon={longitude}&m={month (1-12)}&y={4-digit year}&d={day}

To get prayer times for a whole month.

(Omit the &d= parameter.)

GET https://api.faizaan.dev/times?lat={latitude}&lon={longitude}&m={month (1-12)}&y={4-digit year}

This repository is licensed under the MIT License. The praytime.js library is licensed under the LGPL license; see src/praytime.js for info.

About

Simple Ja'fari prayer times API.

https://api.faizaan.dev/times

License:MIT License


Languages

Language:JavaScript 76.6%Language:TypeScript 18.6%Language:HTML 3.0%Language:CSS 1.8%