{"id":22558908,"url":"https://github.com/aydenjahola/tracker-gg-api","last_synced_at":"2025-07-23T19:34:13.680Z","repository":{"id":263680539,"uuid":"866033024","full_name":"aydenjahola/tracker-gg-api","owner":"aydenjahola","description":"This API allows you to fetch statistics for Valorant, CS2 and TFT players, including current and all-time statistics. The API is built using FastAPI and utilizes web scraping to gather player data from Tracker.gg","archived":false,"fork":false,"pushed_at":"2025-01-28T00:10:14.000Z","size":87,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T11:43:51.195Z","etag":null,"topics":["api","counter-strike","counter-strike-2","cs","cs2","scrape","scraper","tft","tracker","tracker-gg","valorant"],"latest_commit_sha":null,"homepage":"https://tracker-api.aydenjahola.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aydenjahola.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":"2024-10-01T14:32:12.000Z","updated_at":"2025-01-28T00:10:17.000Z","dependencies_parsed_at":"2025-01-28T01:22:40.398Z","dependency_job_id":"a55c217f-6b95-4344-9787-8c910948a187","html_url":"https://github.com/aydenjahola/tracker-gg-api","commit_stats":null,"previous_names":["aydenjahola/tracker-gg-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aydenjahola/tracker-gg-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydenjahola%2Ftracker-gg-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydenjahola%2Ftracker-gg-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydenjahola%2Ftracker-gg-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydenjahola%2Ftracker-gg-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aydenjahola","download_url":"https://codeload.github.com/aydenjahola/tracker-gg-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydenjahola%2Ftracker-gg-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266738345,"owners_count":23976417,"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-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","counter-strike","counter-strike-2","cs","cs2","scrape","scraper","tft","tracker","tracker-gg","valorant"],"created_at":"2024-12-07T20:18:07.398Z","updated_at":"2025-07-23T19:34:13.659Z","avatar_url":"https://github.com/aydenjahola.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tracker.gg Stats API\r\n\r\nThis API allows you to fetch statistics for Valorant, CS2 and TFT players, including current and all-time statistics. The API is built using FastAPI and utilizes web scraping to gather player data from [Tracker.gg](https://tracker.gg/).\r\n\r\n## Table of Contents\r\n\r\n- [Features](#features)\r\n- [Getting Started](#getting-started)\r\n  - [Prerequisites](#prerequisites)\r\n  - [Installation](#installation)\r\n  - [Environment Variables](#environment-variables)\r\n- [API Endpoints](#api-endpoints)\r\n  - [Valorant](#Valorant)\r\n    - [Get Current Act Stats](#get-current-act-stats)\r\n    - [Get All Seasons Stats](#get-all-seasons-stats)\r\n  - [CS2](#cs2)\r\n    - [Gel All Time Player's Stats](#get-all-time-player-stats)\r\n- [Response Model](#response-model)\r\n- [Error Handling](#error-handling)\r\n- [License](#license)\r\n\r\n## Features\r\n\r\n- Fetch current act statistics for a given Valorant player.\r\n- Fetch all-time statistics across seasons for a given Valorant player.\r\n- Fetch all player's statistics for CS2\r\n- API key authentication for secure access.\r\n\r\n## Getting Started\r\n\r\n### Prerequisites\r\n\r\n- Python 3.7 or higher\r\n\r\n### Installation\r\n\r\n1. Clone the repository:\r\n\r\n```bash\r\ngit@github.com:aydenjahola/tracker-gg-api.git\r\ncd tracker-gg-api.git\r\n```\r\n\r\n2. Create virtual environment\r\n\r\n```bash\r\npython3 -m venv vevn\r\n```\r\n\r\n3. Actiave the virtual environemnt\r\n\r\n```bash\r\nsource venv/bin/activate # For Linux\r\nsource venv/Scripts/Actiave # For Windows\r\n```\r\n\r\n4. Install the required packages:\r\n\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n### Environment Variables\r\n\r\nCreate a `.env` file in the root of the project directory and add your API keys:\r\n\r\n```env\r\nAPI_KEYS=your_api_key,your_api_key2 # Create a new key using the openssl command\r\nSTEAM_API_KEY=your_steam_api_key\r\nFLARESOLVERR_URL=your_flare_solver_url\r\n```\r\n\r\nMake sure to replace `your_api_key1,your_api_key2` with your actual API keys.\r\n\r\n## API Endpoints\r\n\r\n### Valorant\r\n\r\n#### Get Current Act Stats\r\n\r\n**Endpoint:** `GET /valorant/player/{username}/current`\r\n\r\n**Description:** Fetch the current act statistics for a given Valorant player.\r\n\r\n**Parameters:**\r\n\r\n- `username`: The Riot username of the player (eg. Shitter#1234).\r\n- `X-API-Key`: Your API key (header).\r\n\r\n#### Get All Seasons Stats\r\n\r\n**Endpoint:** `GET /valorant/player/{username}/all`\r\n\r\n**Description:** Fetch all seasons' statistics for a given Valorant player.\r\n\r\n**Parameters:**\r\n\r\n- `username`: The Riot username of the player (eg. Shitter#1234).\r\n- `X-API-Key`: Your API key (header).\r\n\r\n### CS2\r\n\r\n#### Get All Time Player Stats\r\n\r\n**Endpoint:** `GET /cs2/player/{steam_id}`\r\n\r\n**Description:** Fetch all player's stats for CS2.\r\n\r\n**Parameters:**\r\n\r\n- `steamid`: The steam id of the player.\r\n- `X-API-Key`: Your API key (header).\r\n\r\n## Error Handling\r\n\r\n- **403 Forbidden:** If the API key is invalid.\r\n- **404 Not Found:** If the player's stats cannot be found.\r\n\r\n## License\r\n\r\nThis project is licensed under the [GPL-3.0 license ](./LICENSE). See the LICENSE file for details.\r\n\r\n---\r\n\r\nFeel free to reach out for any questions or contributions to the project!\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydenjahola%2Ftracker-gg-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faydenjahola%2Ftracker-gg-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydenjahola%2Ftracker-gg-api/lists"}