Muslim Salat

FREE
By muslim
Updated 4 months ago
Data
9.1/10
Popularity Score
612ms
Latency
97%
Success Rate

Muslim Salat API Documentation

Prayer times for around the world by MuslimSalat.com

View API Details
GETPrayer Times
GETPrayer Times for a location
GETPrayer Times

This will fetch the prayer time based on the location you request for with the given parameters. All following parameters are optional, you can set as you wish. If you wish to set two or more parameters, then you have to set url in the order the parameter is given below.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
daylightBOOLEAN
OPTIONALDaylight saving for the user, if true then hours are incremented by 1+
methodSTRING
OPTIONALMethod to use for calculation of the timing. If method is provided invalid based on the country, it will give incorrect timing. 1 = Egyptian General Authority of Survey 2 = University Of Islamic Sciences, Karachi (Shafi) 3 = University Of Islamic Sciences, Karachi (Hanafi) 4 = Islamic Circle of North America 5 = Muslim World League 6 = Umm Al-Qura 7 = Fixed Isha
timesSTRING
OPTIONALLimit the prayer times by the value. Daily, weekly, monthly or yearly
dateSTRING
OPTIONALGet the prayer times for the given date, please make sure the date is further head or current date. Heads up! Previous dates will be deprecated from the api.
locationSTRING
OPTIONALName of the location where user is at or his state name or his country name or with his latitude and longitude .
Code Snippet
unirest.get("https://muslimsalat.p.rapidapi.com/(location)/(times)/(date)/(daylight)/(method).json?method=5&times=daily&date=11-07-2013&location=london")
.header("X-RapidAPI-Host", "muslimsalat.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://muslimsalat.p.rapidapi.com/(location)/(times)/(date)/(daylight)/(method).json
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://muslimsalat.p.rapidapi.com/(location)/(times)/(date)/(daylight)/(method).json?method=5&times=daily&date=11-07-2013&location=london")
.header("X-RapidAPI-Host", "muslimsalat.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