{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"6e7247de-f8fb-4d94-acb8-e2ecb33c8663","name":"Aladhan API","description":"# Aladhan API Documentation\n\nThis document provides a comprehensive guide to the Aladhan API (v1) endpoints.\n\n**Base URL:** `https://api.aladhan.com/v1/`\n\n## 🕌 Prayer Times\n\nThese endpoints provide daily prayer timings.\n\n### 1\\. Timings by Coordinates\n\nGets prayer times for a specific date and latitude/longitude.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/timings/{date}`\n    \n- **Example URL:** `https://api.aladhan.com/v1/timings/11-08-2025?latitude=51.508515&longitude=-0.125487`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/timings/11-08-2025?latitude=51.508515&longitude=-0.125487'`\n    \n\n**Parameters:**\n\n- `{date}` (Path, required): The date for the prayer times. Can be a timestamp or a `DD-MM-YYYY` string.\n    \n- `latitude` (Query, required): The latitude of the location.\n    \n- `longitude` (Query, required): The longitude of the location.\n    \n- `method` (Query, optional): A number representing the calculation method. See the \"Get Calculation Methods\" endpoint for a list.\n    \n- `school` (Query, optional): `0` for Shafi (default), `1` for Hanafi.\n    \n- `midnightMode` (Query, optional): `0` for Standard (Mid Sunset to Sunrise), `1` for Jafari (Mid Sunset to Fajr).\n    \n- `latitudeAdjustmentMethod` (Query, optional): `1` for Middle of the Night, `2` for One Seventh, `3` for Angle Based.\n    \n- `tune` (Query, optional): Comma-separated list of prayer time adjustments in minutes.\n    \n\n### 2\\. Timings by City\n\nGets prayer times for a specific date by city and country.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/timingsByCity`\n    \n- **Example URL:** `https://api.aladhan.com/v1/timingsByCity?city=London&country=United+Kingdom&method=2`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/timingsByCity?city=London&country=United Kingdom&method=2'`\n    \n\n### 3\\. Timings by Address\n\nGets prayer times for a specific date using a geocoded address string.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/timingsByAddress`\n    \n- **Example URL:** `https://api.aladhan.com/v1/timingsByAddress?address=Regents+Park+Mosque,+London,+UK`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/timingsByAddress?address=Regents+Park+Mosque,+London,+UK'`\n    \n\n## 📅 Calendar\n\nThese endpoints provide prayer timings for a full month or year.\n\n### 1\\. Calendar by Coordinates\n\nGets a calendar of prayer times for a specific month/year and latitude/longitude.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/calendar`\n    \n- **Example URL:** `https://api.aladhan.com/v1/calendar?latitude=51.508515&longitude=-0.125487&month=8&year=2025`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/calendar?latitude=51.508515&longitude=-0.125487&month=8&year=2025'`\n    \n\n### 2\\. Calendar by City\n\nGets a calendar of prayer times for a specific month/year by city and country.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/calendarByCity`\n    \n- **Example URL:** `https://api.aladhan.com/v1/calendarByCity?city=Mecca&country=Saudi+Arabia&month=9&year=1447&hijri=true`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/calendarByCity?city=Mecca&country=Saudi Arabia&month=9&year=1447&hijri=true'`\n    \n\n### 3\\. Calendar by Address\n\nGets a calendar of prayer times using a geocoded address string.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/calendarByAddress`\n    \n- **Example URL:** `https://api.aladhan.com/v1/calendarByAddress?address=Al-Masjid+an-Nabawi,+Medina,+Saudi+Arabia&year=2025&month=4`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/calendarByAddress?address=Al-Masjid+an-Nabawi,+Medina,+Saudi+Arabia&year=2025&month=4'`\n    \n\n## 🕋 Qibla Direction\n\n### 1\\. Qibla by Coordinates\n\nCalculates the direction of the Qibla from a given latitude and longitude.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/qibla/{latitude}/{longitude}`\n    \n- **Example URL:** `https://api.aladhan.com/v1/qibla/51.508515/-0.125487`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/qibla/51.508515/-0.125487'`\n    \n\n## ☪️ Islamic Date & Calendar\n\nThese endpoints help with Hijri date conversions and provide information about special Islamic days.\n\n### 1\\. Convert Gregorian to Hijri\n\nConverts a Gregorian date to its corresponding Hijri date.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/gToH/{date}`\n    \n- **Example URL:** `https://api.aladhan.com/v1/gToH/11-08-2025`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/gToH/11-08-2025'`\n    \n\n### 2\\. Convert Hijri to Gregorian\n\nConverts a Hijri date to its corresponding Gregorian date.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/hToG/{date}`\n    \n- **Example URL:** `https://api.aladhan.com/v1/hToG/15-02-1447`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/hToG/15-02-1447'`\n    \n\n### 3\\. Islamic Month Info\n\nProvides information about a specific month in the Hijri calendar for a given year.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/hijriCalendar/{month}/{year}`\n    \n- **Example URL:** `https://api.aladhan.com/v1/hijriCalendar/9/1447`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/hijriCalendar/9/1447'`\n    \n\n### 4\\. Get Islamic Holidays\n\nProvides a list of Islamic holidays for a given Hijri year.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/holidays/{year}`\n    \n- **Example URL:** `https://api.aladhan.com/v1/holidays/1447`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/holidays/1447'`\n    \n\n## ⚙️ Helper & Meta Endpoints\n\nThese endpoints provide supporting data for the API.\n\n### 1\\. Get Calculation Methods\n\nReturns a list of all available prayer time calculation methods and their details.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/methods`\n    \n- **Example URL:** `https://api.aladhan.com/v1/methods`\n    \n- **cURL:** `curl --location 'https://api.aladhan.com/v1/methods'`\n    \n\n### 2\\. Get Asma-ul-Husna (99 Names of Allah)\n\nReturns the 99 names of Allah. Can fetch all names or a specific name by its number.\n\n- **Method:** `GET`\n    \n- **Endpoint:** `/asmaAlHusna` or `/asmaAlHusna/{number}`\n    \n- **Example URL (All):** `https://api.aladhan.com/v1/asmaAlHusna`\n    \n- **cURL (All):** `curl --location 'https://api.aladhan.com/v1/asmaAlHusna'`\n    \n- **Example URL (Specific):** `https://api.aladhan.com/v1/asmaAlHusna/99`\n    \n- **cURL (Specific):** `curl --location 'https://api.aladhan.com/v1/asmaAlHusna/99'`","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"9793048","team":2007835,"collectionId":"6e7247de-f8fb-4d94-acb8-e2ecb33c8663","publishedId":"2sB3BEoqSD","public":true,"publicUrl":"https://documenter-api.postman.tech/view/9793048/2sB3BEoqSD","privateUrl":"https://go.postman.co/documentation/9793048-6e7247de-f8fb-4d94-acb8-e2ecb33c8663","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"This document provides a comprehensive guide to the Aladhan API (v1) endpoints."},{"name":"title","value":"Aladhan API Postman Collection"}],"appearance":{"default":"dark","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.11.4","publishDate":"2025-08-11T20:22:20.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"Aladhan API Postman Collection","description":"This document provides a comprehensive guide to the Aladhan API (v1) endpoints."},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/a7d1186b8c6cbb9c50920b4aab742ee8b720d2ad7138f7c4bfb3a0fb38244dd9","favicon":"https://res.cloudinary.com/postman/image/upload/v1631372601/team/gvffmiwlemgth8bj38ho.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sB3BEoqSD"}