{"id":16986698,"url":"https://github.com/abdulrcs/daily-prayer-time-api","last_synced_at":"2025-10-17T11:08:33.393Z","repository":{"id":65110967,"uuid":"330322607","full_name":"abdulrcs/Daily-Prayer-Time-API","owner":"abdulrcs","description":"It’s an easy to use API to get today’s prayer time based on Muslim Pro 🌙","archived":false,"fork":false,"pushed_at":"2024-03-11T15:26:35.000Z","size":18,"stargazers_count":89,"open_issues_count":1,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T05:46:19.080Z","etag":null,"topics":["api","beautiful-soup","prayer-times"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdulrcs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-17T05:37:54.000Z","updated_at":"2025-03-31T03:58:49.000Z","dependencies_parsed_at":"2024-10-27T12:48:10.334Z","dependency_job_id":"cdea7ce1-dd57-42cc-8b31-d9dc19a143aa","html_url":"https://github.com/abdulrcs/Daily-Prayer-Time-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abdulrcs/Daily-Prayer-Time-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulrcs%2FDaily-Prayer-Time-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulrcs%2FDaily-Prayer-Time-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulrcs%2FDaily-Prayer-Time-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulrcs%2FDaily-Prayer-Time-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdulrcs","download_url":"https://codeload.github.com/abdulrcs/Daily-Prayer-Time-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulrcs%2FDaily-Prayer-Time-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320254,"owners_count":24068527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","beautiful-soup","prayer-times"],"created_at":"2024-10-14T02:46:37.721Z","updated_at":"2025-10-17T11:08:33.308Z","avatar_url":"https://github.com/abdulrcs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Daily Prayer Time API 🌙\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://abdulrahman.id/_next/image?url=https%3A%2F%2Fimagizer.imageshack.com%2Fa%2Fimg924%2F3623%2FZbOifo.png\u0026w=1920\u0026q=75\"\u003e\n\u003c/p\u003e  \n\nIt's an easy to use API to get today's (and tomorrow!) prayer time for your next project! (based on **Muslim Pro**)  \nWritten in Python using _Flask, Beautiful Soup, and duckduckgo_search_.\n### Example Response:\n```json\n{\n  \"city\": \"Mecca\",\n  \"date\": \"25 March 2024\",\n  \"today\": {\n    \"Fajr\": \"05:04\",\n    \"Sunrise\": \"06:20\",\n    \"Dhuhr\": \"12:27\",\n    \"Asr\": \"15:52\",\n    \"Maghrib\": \"18:34\",\n    \"Isha'a\": \"20:04\"\n  },\n  \"tomorrow\": {\n    \"Date\": \"Fri 26 Mar\",\n    \"Fajr\": \"05:03\",\n    \"Sunrise\": \"06:19\",\n    \"Dhuhr\": \"12:27\",\n    \"Asr\": \"15:52\",\n    \"Maghrib\": \"18:34\",\n    \"Isha'a\": \"20:04\"\n  }\n}\n```\n## Get Started\nTo use the API, you can simply fetch the data using the public API in  \nhttps://dailyprayer.abdulrcs.repl.co/api/ (City Name)  \n\n\u003e note: currently the `dailyprayer.abdulrcs.repl.co/api/` doesn't work since Repl.it has migrated it's link to a new one\n\u003e but you can always still fork the repo, spin up the main.py yourself, and self-host the Daily Prayer Time API yourself :) \n\n\n## Here's an example 😉\n### Print the Data in Python:\n```python\nimport requests\nimport json\n\nurl = \"https://dailyprayer.abdulrcs.repl.co/api/singapore\"\nresponse = requests.get(url)\ndata = response.json()\nprint(data['city'])\nprint(data['date'])\nfor prayer in data[\"today\"]:\n  print(prayer + \": \" + data[\"today\"][prayer])  \n# If you want to request for tomorrow prayer's time:\n# for prayer in data[\"tomorrow\"]:\n#  print(prayer + \": \" + data[\"tomorrow\"][prayer])\n```\n\n### Print the Data in Node.js:\n```javascript\nconst https = require('https');\nlet url = \"https://dailyprayer.abdulrcs.repl.co/api/singapore\";\n\nhttps.get(url,(res) =\u003e {\n    let body = \"\";\n\n    res.on(\"data\", (chunk) =\u003e {\n        body += chunk;\n    });\n\n    res.on(\"end\", () =\u003e {\n        try {\n            let json = JSON.parse(body);\n            console.log(json[\"city\"])\n            console.log(json[\"date\"])\n            for(prayer in json[\"today\"])\n              console.log(prayer + \": \" + json[\"today\"][prayer])\n        } catch (error) {\n            console.error(error.message);\n        };\n    });\n\n}).on(\"error\", (error) =\u003e {\n    console.error(error.message);\n});\n```\n### Output:\n```\nSingapore\n17 January 2024\nFajr: 05:52\nSunrise: 07:14\nDhuhr: 13:17\nAsr: 16:40\nMaghrib: 19:17\nIsha'a: 20:31\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulrcs%2Fdaily-prayer-time-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdulrcs%2Fdaily-prayer-time-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulrcs%2Fdaily-prayer-time-api/lists"}