{"id":25233497,"url":"https://github.com/setscript/setscript-discord-presence-fetch","last_synced_at":"2025-09-11T05:17:35.925Z","repository":{"id":276600272,"uuid":"927336670","full_name":"setscript/SetScript-Discord-Presence-Fetch","owner":"setscript","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-04T20:27:50.000Z","size":538,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T02:11:12.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/setscript.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":"2025-02-04T19:39:35.000Z","updated_at":"2025-03-05T18:54:12.000Z","dependencies_parsed_at":"2025-02-09T10:39:31.796Z","dependency_job_id":null,"html_url":"https://github.com/setscript/SetScript-Discord-Presence-Fetch","commit_stats":null,"previous_names":["setscript/setscript-discord-presence-fetch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/setscript/SetScript-Discord-Presence-Fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setscript%2FSetScript-Discord-Presence-Fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setscript%2FSetScript-Discord-Presence-Fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setscript%2FSetScript-Discord-Presence-Fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setscript%2FSetScript-Discord-Presence-Fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setscript","download_url":"https://codeload.github.com/setscript/SetScript-Discord-Presence-Fetch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setscript%2FSetScript-Discord-Presence-Fetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274580622,"owners_count":25311210,"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-09-11T02:00:13.660Z","response_time":74,"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":[],"created_at":"2025-02-11T13:57:04.796Z","updated_at":"2025-09-11T05:17:35.920Z","avatar_url":"https://github.com/setscript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SetScript Discord Presence API\n\nDiscord kullanıcı durumlarını ve aktivitelerini gerçek zamanlı olarak takip etmek için RESTful API servisi.\n\n## 🚀 Özellikler\n\n- Kullanıcı durumu ve aktiviteleri (JSON)\n- Özelleştirilebilir presence kartı (HTML/PNG)\n- Spotify aktivite bilgisi\n- Custom status desteği\n- Emoji desteği (Discord ve Unicode)\n- Rate limiting ve DDoS koruması\n\n## 📚 API Kullanımı\n\n### Kullanıcı Bilgilerini Al (JSON)\n\n```bash\nGET http://localhost:5550/users/:userId\n```\n\nÖrnek yanıt:\n```json\n{\n  \"user\": {\n    \"id\": \"123456789\",\n    \"username\": \"username\",\n    \"tag\": \"username#0000\",\n    \"avatarURL\": \"https://cdn.discordapp.com/avatars/...\"\n  },\n  \"presence\": {\n    \"status\": \"online\",\n    \"customStatus\": {\n      \"text\": \"Hello World\",\n      \"emoji\": { ... }\n    }\n  },\n  \"spotify\": {\n    \"title\": \"Song Name\",\n    \"artist\": \"Artist Name\",\n    \"albumArtURL\": \"https://i.scdn.co/image/...\"\n  },\n  \"activities\": [ ... ]\n}\n```\n\n### Presence Kartı Al (HTML/PNG)\n\nHTML formatında:\n```bash\nGET http://localhost:5550/users/card/:userId\n```\n\nPNG formatında:\n```bash\nGET http://localhost:5550/users/card/:userId?img\n```\n\n### API Durumu\n\n```bash\nGET http://localhost:5550/health\n```\n\n### API Dokümantasyonu\n\n```bash\nGET http://localhost:5550/docs\n```\n\n## 📦 Kurulum\n\n1. Repoyu klonlayın:\n```bash\ngit clone https://github.com/setscript/SetScript-Discord-Presence-Fetch.git\n```\n\n2. Bağımlılıkları yükleyin:\n```bash\nnpm install\n```\n\n3. Uygulamayı başlatın:\n```bash\nnpm start\n```\n\n## 🔒 Rate Limiting\n\n- Her endpoint için 5 dakikada 25 istek\n- Burst limiti: 1 saniyede maksimum 10 istek\n- IP bazlı rate limiting\n\n## 📝 Örnekler\n\n### Node.js ile Kullanım\n```javascript\nconst response = await fetch('http://localhost:5550/users/123456789');\nconst data = await response.json();\nconsole.log(data.presence.status);\n```\n\n### Python ile Kullanım\n```python\nimport requests\n\nresponse = requests.get('http://localhost:5550/users/123456789')\ndata = response.json()\nprint(data['presence']['status'])\n```\n\n### HTML/JavaScript ile Kullanım\n```html\n\u003cimg src=\"http://localhost:5550/users/card/123456789?img\" alt=\"Discord Presence\"\u003e\n```\n\n## ⚠️ Notlar\n\n- API'yi kullanmak için kullanıcının Discord sunucumuzda olması gerekiyor\n- Rate limit aşımında 429 status kodu döner\n- Kullanıcı bulunamadığında 404 status kodu döner\n- Sunucu hatalarında 500 status kodu döner\n\n## 🔗 Linkler\n\n- [Discord Sunucumuz](https://setscript.com/discord)\n- [API Dokümantasyonu](https://developer.setscript.com)\n- [Website](https://setscript.com)\n\n## 📄 Lisans\n\nBu proje MIT lisansı altında lisanslanmıştır. Detaylar için [LICENSE](LICENSE) dosyasına bakın.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetscript%2Fsetscript-discord-presence-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetscript%2Fsetscript-discord-presence-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetscript%2Fsetscript-discord-presence-fetch/lists"}