{"id":24877417,"url":"https://github.com/usefmahmud/next-salah-api","last_synced_at":"2026-05-01T01:31:37.072Z","repository":{"id":269118355,"uuid":"906481360","full_name":"usefmahmud/next-salah-api","owner":"usefmahmud","description":"Personal API for getting information about salah timing, upcoming salah, and the time left befire it.","archived":false,"fork":false,"pushed_at":"2025-02-01T05:00:32.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T03:44:24.965Z","etag":null,"topics":["fastapi","python","salah"],"latest_commit_sha":null,"homepage":"https://next-salah-api.vercel.app","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/usefmahmud.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":"2024-12-21T03:02:26.000Z","updated_at":"2025-02-01T05:00:36.000Z","dependencies_parsed_at":"2024-12-21T04:23:12.878Z","dependency_job_id":"435d3a06-f587-47b8-b4c4-429108b3985b","html_url":"https://github.com/usefmahmud/next-salah-api","commit_stats":null,"previous_names":["usefmahmud/next-salah-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usefmahmud/next-salah-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fnext-salah-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fnext-salah-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fnext-salah-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fnext-salah-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usefmahmud","download_url":"https://codeload.github.com/usefmahmud/next-salah-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usefmahmud%2Fnext-salah-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fastapi","python","salah"],"created_at":"2025-02-01T09:17:00.300Z","updated_at":"2026-05-01T01:31:37.053Z","avatar_url":"https://github.com/usefmahmud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next Salah API\n\n## Overview\n\nNext Salah API is a simple and personal project designed to provide the next prayer time for Muslims.\nThis API calculates time left before the upcoming Salah (prayer) time based on the user's location.\n\n## Features\n- Retrieves all prayer times for a given day.\n- Provides the next prayer time based on the user's location.\n\n## Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/usefmahmud/next-salah-api.git\n    ```\n2. Navigate to the project directory:\n    ```bash\n    cd next-salah-api\n    ```\n3. Install the required dependencies:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. Run the FastAPI development server:\n    ```bash\n    uvicorn main:app --reload\n    ```\n\n## API Endpoints\n\n\n### Get All Salah Times\n\n#### `GET /all_salah`\n\nRetrieves all prayer times for a given day based on the provided address.\n\n**Parameters:**\n- address: The address to get the prayer times for. Default is 'Cairo, Egypt'.\n- date: The date to get the prayer times for. Default is today's date.\n\n**Response:**\n```json\n[\n    {\n        \"name\": \"Fajr\",\n        \"time\": \"05:00\"\n    },\n    {\n        \"name\": \"Dhuhr\",\n        \"time\": \"12:00\"\n    },\n    {\n        \"name\": \"Asr\",\n        \"time\": \"15:00\"\n    },\n    {\n        \"name\": \"Maghrib\",\n        \"time\": \"18:00\"\n    },\n    {\n        \"name\": \"Isha\",\n        \"time\": \"20:00\"\n    }\n]\n```\n\n### Get Next Salah Time\n\n#### `GET /next_salah`\n\nRetrieves the next prayer time based on the provided address.\n\n**Parameters:**\n- address: The address to get the next prayer time for. Default is 'Cairo, Egypt'.\n\n**Response:**\n```json\n{\n    \"next\": {\n        \"name\": \"Dhuhr\",\n        \"time\": \"12:00\"\n    },\n    \"time_left\": 3600\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusefmahmud%2Fnext-salah-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusefmahmud%2Fnext-salah-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusefmahmud%2Fnext-salah-api/lists"}