salah

FREE
By Javad
Updated 5 months ago
-/10
Popularity Score
-
Latency
-
Success Rate

salah API Documentation

Calculate muslim prayertimes via an simple to use api, apparently the api docs does not render so i would recommend checking out our github at https://github.com/javadsm/salah.

Logo By Palauenc05 - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=49088088

View API Details
GETgettimes
GETgettimes

Only api endpoint, gets times for current date

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
latNUMBER
REQUIREDLatitude
lngNUMBER
REQUIREDLongitude
timezoneNUMBER
REQUIREDCurrent timezone in hours
dateSTRING
REQUIREDFormat is {month} {day} {year}, you can use any delimiter you want such as - / or :
Optional Parameters
methodSTRING
OPTIONALDefault is MWL see API documentation for more
Code Snippet
unirest.get("https://javad-salah-v1.p.rapidapi.com/{lat}/{lng}/{timezone}/?method={method}&date=%7Bmonth%7D%20%7Bday%7D%20%7Byear%7D")
.header("X-RapidAPI-Host", "javad-salah-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://javad-salah-v1.p.rapidapi.com/{lat}/{lng}/{timezone}/?method={method}&date={date}
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://javad-salah-v1.p.rapidapi.com/{lat}/{lng}/{timezone}/?method={method}&date=%7Bmonth%7D%20%7Bday%7D%20%7Byear%7D")
.header("X-RapidAPI-Host", "javad-salah-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication