{"id":49591312,"url":"https://github.com/manucabral/rocketleaguestatsapi","last_synced_at":"2026-05-05T02:01:11.730Z","repository":{"id":354479213,"uuid":"1223819371","full_name":"manucabral/RocketLeagueStatsAPI","owner":"manucabral","description":"Rocket League Stats API Library in Python.","archived":false,"fork":false,"pushed_at":"2026-04-28T19:03:11.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T19:35:00.951Z","etag":null,"topics":["rlstats","rocketleague","rocketleagueastatsapi","sockets"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/rlstatsapi","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/manucabral.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-28T17:26:46.000Z","updated_at":"2026-04-28T19:03:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/manucabral/RocketLeagueStatsAPI","commit_stats":null,"previous_names":["manucabral/rocketleaguestatsapi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/manucabral/RocketLeagueStatsAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucabral%2FRocketLeagueStatsAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucabral%2FRocketLeagueStatsAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucabral%2FRocketLeagueStatsAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucabral%2FRocketLeagueStatsAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manucabral","download_url":"https://codeload.github.com/manucabral/RocketLeagueStatsAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucabral%2FRocketLeagueStatsAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32590466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"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":["rlstats","rocketleague","rocketleagueastatsapi","sockets"],"created_at":"2026-05-04T01:01:10.782Z","updated_at":"2026-05-05T02:01:11.712Z","avatar_url":"https://github.com/manucabral.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"600\" alt=\"rlstatsapi-logo\" src=\"https://github.com/manucabral/RocketLeagueStatsAPI/blob/main/docs/assets/social-preview.png\" /\u003e\n\n# Rocket League Stats API\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![PyPI version](https://img.shields.io/pypi/v/rlstatsapi.svg)](https://pypi.org/project/rlstatsapi/) [![Pylint](https://github.com/manucabral/RocketLeagueStatsAPI/actions/workflows/pylint.yml/badge.svg)](https://github.com/manucabral/RocketLeagueStatsAPI/actions/workflows/pylint.yml)\n![Downloads](https://img.shields.io/pypi/dm/rlstatsapi)\n\n`rlstatsapi` is a small Python client for reading live Rocket League Stats API events over a local TCP socket.\n\n- Full docs: [manucabral.github.io/RocketLeagueStatsAPI](https://manucabral.github.io/RocketLeagueStatsAPI/)\n- Release history: [CHANGELOG.md](CHANGELOG.md)\n\n## Install\n\nFrom [PyPI](https://pypi.org/project/rlstatsapi/):\n\n```bash\npip install rlstatsapi\n```\n\nFrom GitHub:\n\n```bash\npip install git+https://github.com/manucabral/RocketLeagueStatsAPI.git\n```\n\n## Rocket League setup\n\nAutomatic setup from Python:\n\n```python\nfrom rlstatsapi import configure_stats_api\n\nconfigure_stats_api(enabled=True, port=49123, packet_send_rate=30)\n```\n\nManual setup:\n\n`Documents\\My Games\\Rocket League\\TAGame\\Config\\TAStatsAPI.ini`\n\n```ini\n[TAGame.MatchStatsExporter_TA]\nPort=49123\nPacketSendRate=30\n```\n\nIn both cases, restart Rocket League after changing the config file.\n\nConfig discovery is currently Windows-first and targets common user config locations.\n\n## Quick start\n\n```python\nimport asyncio\nfrom rlstatsapi import StatsClient\n\n\nasync def main() -\u003e None:\n    async with StatsClient() as client:\n        client.on_any(lambda msg: print(msg.event, msg.data))\n        await asyncio.Event().wait()\n\n\nasyncio.run(main())\n```\n\n## Demos\n\n### All events\n\n![All events demo](docs/videos/allevents.gif)\n\n### UI\n\n![UI demo](docs/videos/ui.gif)\n\n## CLI\n\n```bash\nrlstatsapi status\nrlstatsapi enable --port 49123 --rate 30\nrlstatsapi listen --event GoalScored\n```\n\nYou can also listen to multiple events:\n\n```bash\nrlstatsapi listen --event GoalScored --event MatchEnded --event MatchCreated\n```\n\n## Typing\n\nFor the best editor experience, use `cast_event_data(...)` or `msg.as_type(...)`.\n\n```python\nfrom rlstatsapi.models import EventMessage\nfrom rlstatsapi.types import GoalScoredPayload, cast_event_data\n\n\ndef on_goal(msg: EventMessage) -\u003e None:\n    data: GoalScoredPayload = cast_event_data(\"GoalScored\", msg.data)\n    print(data.get(\"Scorer\", {}).get(\"Name\"))\n```\n\n## More\n\n- Full docs: [manucabral.github.io/RocketLeagueStatsAPI](https://manucabral.github.io/RocketLeagueStatsAPI/)\n- Examples: [examples/](examples)\n- Release history: [CHANGELOG.md](CHANGELOG.md)\n\n## Notes\n\n- In current Rocket League builds this endpoint behaves like a TCP JSON stream in practice.\n- Some fields, such as `MatchGuid`, are only present in online/LAN contexts.\n\n## Disclaimer\n\nThis project is an independent, community-made library and is **not affiliated with, endorsed by, or sponsored by Psyonix or Epic Games**.\n\nRocket League and related trademarks are the property of their respective owners.  \nUse this library at your own risk and in compliance with Rocket League’s terms and policies.\n\n## Contributors\n\n\u003ca href=\"https://github.com/manucabral/RocketLeagueStatsAPI/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=manucabral/RocketLeagueStatsAPI\" alt=\"Contributors\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanucabral%2Frocketleaguestatsapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanucabral%2Frocketleaguestatsapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanucabral%2Frocketleaguestatsapi/lists"}