{"id":26854233,"url":"https://github.com/imjyotiraditya/lyrichub","last_synced_at":"2025-05-05T20:08:53.844Z","repository":{"id":284265620,"uuid":"954038015","full_name":"imjyotiraditya/lyrichub","owner":"imjyotiraditya","description":"A centralized API hub for retrieving lyrics from multiple music platforms including Genius and Spotify","archived":false,"fork":false,"pushed_at":"2025-04-06T08:53:03.000Z","size":20,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T20:08:50.370Z","etag":null,"topics":["fastapi","genius","lyrics","spotify","vercel"],"latest_commit_sha":null,"homepage":"https://lyrichub.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imjyotiraditya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-24T13:21:43.000Z","updated_at":"2025-05-02T04:21:24.000Z","dependencies_parsed_at":"2025-03-25T18:44:44.468Z","dependency_job_id":null,"html_url":"https://github.com/imjyotiraditya/lyrichub","commit_stats":null,"previous_names":["imjyotiraditya/slapi","imjyotiraditya/lyricspot","imjyotiraditya/lyrichub"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjyotiraditya%2Flyrichub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjyotiraditya%2Flyrichub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjyotiraditya%2Flyrichub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjyotiraditya%2Flyrichub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imjyotiraditya","download_url":"https://codeload.github.com/imjyotiraditya/lyrichub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252569645,"owners_count":21769517,"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","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","genius","lyrics","spotify","vercel"],"created_at":"2025-03-30T23:19:06.556Z","updated_at":"2025-05-05T20:08:53.827Z","avatar_url":"https://github.com/imjyotiraditya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LyricHub\n\nA centralized API hub for retrieving lyrics from multiple music platforms.\n\n## Supported Platforms\n\n- Genius: Standard formatted lyrics (using official Genius API)\n- Spotify: Time-synchronized lyrics\n- More platforms coming soon\n\n## Features\n\n- Search for songs by artist and title\n- Retrieve lyrics from different music platforms\n- Clean JSON responses with song metadata\n- Platform-specific API endpoints\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.9+\n- Genius API client (for Genius authentication)\n- Spotify account (for Spotify authentication)\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/imjyotiraditya/lyrichub.git\n   cd lyrichub\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Configure your environment:\n   ```bash\n   cp .env.example .env\n   ```\n\n5. Edit `.env` and add your credentials:\n   ```\n   SPOTIFY_DC=your_spotify_dc_cookie_value\n   GENIUS_ACCESS_TOKEN=your_genius_access_token\n   ```\n\n   To get your Genius access token:\n   - Create an API client at [Genius API Clients](https://genius.com/api-clients)\n   - Generate an access token in your client settings\n   - Copy the access token\n\n   To get your `sp_dc` cookie:\n   - Log in to [Spotify Web Player](https://open.spotify.com)\n   - Open browser developer tools (F12)\n   - Go to Application/Storage \u003e Cookies \u003e https://open.spotify.com\n   - Find the `sp_dc` cookie and copy its value\n\n### Running the API\n\nStart the development server:\n\n```bash\nuvicorn api.main:app --reload\n```\n\nThe API will be available at http://localhost:8000\n\n## API Usage\n\n### Endpoints\n\n- `GET /api/genius?query=your+search+query` - Get lyrics from Genius\n- `GET /api/spotify?query=your+search+query` - Get lyrics from Spotify\n- Additional platforms may be added in future versions\n\n### Example Request\n\n```bash\ncurl \"http://localhost:8000/api/genius?query=swim+chase+atlantic\"\n```\n\n### Response Format\n\nAll endpoints return the same JSON structure:\n\n```json\n{\n  \"title\": \"Song Title\",\n  \"artist\": \"Artist Name\",\n  \"cover\": \"https://cover-image-url.jpg\",\n  \"lyrics\": \"Lyrics content...\"\n}\n```\n\nNote: Different platforms provide lyrics in different formats:\n- Genius: Standard text lyrics with formatting\n- Spotify: Time-synchronized lyrics with timestamps (e.g., `[00:12.79]Lyrics line`)\n\n## Deployment\n\nThis project includes configuration for deployment on Vercel:\n\n```bash\nvercel\n```\n\nFor Vercel deployment, make sure to set the environment variables:\n- `GENIUS_ACCESS_TOKEN`\n- `SPOTIFY_DC`\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Disclaimer\n\nThis project is for educational purposes only. Use of the music platforms' APIs (listed under Supported Platforms) may be subject to their respective terms of service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjyotiraditya%2Flyrichub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimjyotiraditya%2Flyrichub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjyotiraditya%2Flyrichub/lists"}