Prayer Times API
A comprehensive REST API for accessing accurate Islamic prayer times data for locations in Kerala, India. Free, fast, and reliable.
API Overview
Everything you need to know to get started with our Prayer Times API
Features
- Accurate prayer times for locations in Kerala
- Daily, monthly, and yearly data formats
- RESTful JSON API with consistent responses
- No authentication required
- Fast and reliable service
- CORS enabled for web applications
Quick Start
Base URL
Authentication
No Authentication Required
This API is completely open and does not require any API keys, tokens, or authentication headers. Simply make requests to the endpoints directly and start integrating immediately.
API Endpoints
Explore all available endpoints and their usage
Get Available Locations
GETReturns an array of all available location identifiers that you can use for fetching prayer times.
Response Example
Get Today's Prayer Times
GETParameters
{location}
- Location identifier with underscores instead of spaces
Response Example
Get Month's Prayer Times
GETReturns prayer times for the current month as an array of objects.
Response Example
Get Year's Prayer Times
GETReturns prayer times for the entire current year as an array of objects.
Response Format
Data Formats
-
Time:12-hour format (hh:mm AM/PM) -
Date:DD-MM-YYYY format -
Location:Underscore separated identifiers
Error Responses
Code Examples
Integration examples in different programming languages
JavaScript (Fetch)
cURL
Python (Requests)
Node.js (Axios)
Interactive API Playground
Test the API endpoints directly from your browser
Request Details
API Response
Best Practices
Usage Guidelines
- Cache responses to reduce API calls
- Use appropriate time period endpoints
- Handle 404 errors gracefully
- Validate location names before requests