{"id":51229899,"url":"https://github.com/victorratts13/rattsports","last_synced_at":"2026-06-28T15:02:07.861Z","repository":{"id":45982077,"uuid":"311184396","full_name":"victorratts13/rattsports","owner":"victorratts13","description":"Official repository for Rattsports online","archived":false,"fork":false,"pushed_at":"2021-02-18T13:37:09.000Z","size":294,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T03:02:06.481Z","etag":null,"topics":["1xbet","apirest","bet","bet365","betfair","bot"],"latest_commit_sha":null,"homepage":"https://rattsports.online","language":null,"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/victorratts13.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}},"created_at":"2020-11-09T00:35:25.000Z","updated_at":"2024-02-01T17:19:41.000Z","dependencies_parsed_at":"2022-07-18T12:48:08.950Z","dependency_job_id":null,"html_url":"https://github.com/victorratts13/rattsports","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorratts13/rattsports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorratts13%2Frattsports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorratts13%2Frattsports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorratts13%2Frattsports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorratts13%2Frattsports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorratts13","download_url":"https://codeload.github.com/victorratts13/rattsports/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorratts13%2Frattsports/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34892547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":["1xbet","apirest","bet","bet365","betfair","bot"],"created_at":"2026-06-28T15:02:07.134Z","updated_at":"2026-06-28T15:02:07.852Z","avatar_url":"https://github.com/victorratts13.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://github.com/victorratts13/rattsports/blob/main/asset/img/ratts.jpg?raw=true)\n![api](https://img.shields.io/badge/API-v1-green) ![env](https://img.shields.io/badge/env-json-yellowgreen)\n\n# introduction\n\nthe ratts api was developed to meet the need for systems to consume an open sports api. It consists of fetching data from bet365 \u0026 copy; and use metrics to create simple statistics.\n\nThe complete system returns data such as:\n\n- team information\n- live matches\n- pre-games\n- historic\n- alloys\n- goals\n- corners\n- events in games\n- statistical metrics\n\n# api\napi flames can be made through the endpoint `` https: // rattsports.online / api``, the flames are processed in real time by vercel servers, where rattsports is hosted, making a triangulation for the bet365 \u0026 copy website ;\nSee the main call endpoints below.\n## getting all data (getall)\n\nto obtain all data without previous formatting, the endpoint `` https: //rattsports.online/api? call = getall`` can be used.\nthat returns:\n``` json\n{\n    \"id\": \"818212\",\n    \"league\": {\n        \"i\": \"2949\",\n        \"zc\": \"0\",\n        \"jc\": \"0\",\n        \"bd\": \"0\",\n        \"n\": \"SYR D2\",\n        \"fn\": \"Syria Division 2\",\n        \"ls\": \"S\",\n        \"sbn\": \"\",\n        \"stn\": \"\",\n        \"ci\": \"64\",\n        \"cn\": \"Syria\",\n        \"cs\": \"X\"\n    },\n    \"host\": {\n        \"i\": \"34226\",\n        \"n\": \"Al Tadamon Latakia\",\n        \"sbn\": \"\",\n        \"stn\": \"\"\n    },\n    \"guest\": {\n        \"i\": \"42115\",\n        \"n\": \"Efrin\",\n        \"sbn\": \"\",\n        \"stn\": \"\"\n    },\n    \"heh\": 1,\n    \"lvc\": 0,\n    \"rcn\": 0,\n    \"zhanyi\": \"0\",\n    \"sd\": {\n        \"f\": {\n            \"hrf\": \"+1.75\",\n            \"hdx\": \"3.0\",\n            \"hcb\": null\n        },\n        \"H\": {\n            \"hrf\": \"+0.75\",\n            \"hdx\": \"1.25\",\n            \"hcb\": null\n        }\n    },\n    \"rtime\": \"2021/02/18 20:00\",\n    \"events\": [],\n    \"events_graph\": {\n        \"events\": [],\n        \"ml\": 0,\n        \"status\": 0\n    },\n    \"ss\": \"\",\n    \"status\": \"NS\",\n    \"f_ld\": {\n        \"hrf\": \"+1.75\",\n        \"hrfsp\": \"2,000\",\n        \"grfsp\": \"1,800\",\n        \"rft\": \"2\",\n        \"rf\": [\n            {\n                \"hrf\": \"+1.75\",\n                \"hrfsp\": \"2,000\",\n                \"grfsp\": \"1,800\",\n                \"rft\": \"2\",\n                \"ps\": \"0\"\n            },\n            {\n                \"hrf\": \"+1.75\",\n                \"hrfsp\": \"1,950\",\n                \"grfsp\": \"1,850\",\n                \"rft\": \"100\",\n                \"ps\": \"0\"\n            }\n        ],\n        \"hdx\": \"3.0\",\n        \"hdxsp\": \"1,800\",\n        \"gdxsp\": \"2,000\",\n        \"dxt\": \"100\",\n        \"dx\": [\n            {\n                \"hdx\": \"3.0\",\n                \"hdxsp\": \"1,800\",\n                \"gdxsp\": \"2,000\",\n                \"dxt\": \"100\",\n                \"ps\": \"0\"\n            }\n        ]\n    }\n}\n\n```\n\n\n\n\n## getting game status (getGameStatus)\n\nto get basic information about game status and leagues, the endpoint `` https: //rattsports.online/api? call = getGameStatus`` can be used.\nthat returns:\n\n``` json\n{\n    \"id\": \"818278\",\n    \"league\": \"Egypt Division 2\",\n    \"shortname\": \"EGY D2\",\n    \"game\": \"El Alameen v Kima Aswan\",\n    \"timestatus\": \"2021/02/18 20:30\",\n    \"timestart\": \"0:00\",\n    \"country\": \"Egypt\",\n    timestamp: 1613649963143,\n    \"utc\": \"Thu, 18 Feb 2021 12:06:03 GMT\",\n    \"callback\": \"success\"\n}\n```\n\n## getting data from a live game (getGameByEvent)\n\nfor complete information about a live game, the endpoint `` https://rattsports.online/api?call=getGameByEvent\u0026id= [id_from_event] '' can be used. Where the `` id_from_event`` can be obtained through the `` getGameStatus`` method\nthat returns:\n\n``` json\n{\n    \"id\": \"818264\",\n    \"league\": {\n        \"id\": \"2465\",\n        \"shortname\": \"IRN U23\",\n        \"name\": \"Iran U23 League\",\n        \"country\": \"Iran\",\n        \"countryId\": \"74\"\n    },\n    \"game\": \"Sepahan Isfahan U23 v Mes Rafsanjan U23\",\n    \"host\": {\n        \"id\": \"37571\",\n        \"name\": \"Sepahan Isfahan U23\",\n        \"goals\": \"1\",\n        \"redcards\": \"1\",\n        \"yellowcard\": \"0\",\n        \"corners\": \"1\"\n    },\n    \"guest\": {\n        \"id\": \"30090\",\n        \"name\": \"Mes Rafsanjan U23\",\n        \"goals\": \"1\",\n        \"redcards\": \"3\",\n        \"yellowcard\": \"0\",\n        \"corners\": \"1\"\n    },\n    \"handevent\": 1,\n    \"livecorner\": 0,\n    \"gamestats\": {\n        \"ftime\": {\n            \"corners\": null,\n            \"handcap\": \"2.5\",\n            \"handcapstats\": \"-0.75\"\n        },\n        \"htime\": {\n            \"corners\": null,\n            \"handcap\": \"1.0\",\n            \"handcapstats\": \"-0.25\"\n        }\n    },\n    \"allcornerstats\": null,\n    \"events\": [\n        {\n            \"type\": \"gyc\",\n            \"description\": \"79 '- 4th Yellow Card - (Mes Rafsanjan U23)\"\n        },\n        {\n            \"type\": \"gc\",\n            \"description\": \"78 '- 2nd Corner - Mes Rafsanjan U23\"\n        },\n        {\n            \"type\": \"gyc\",\n            \"description\": \"69 '- 3rd Yellow Card - (Mes Rafsanjan U23)\"\n        },\n        {\n            \"type\": \"hyc\",\n            \"description\": \"64 '- 2nd Yellow Card - (Sepahan Isfahan U23)\"\n        },\n        {\n            \"type\": \"hc\",\n            \"description\": \"59' - 1st Corner - Sepahan Isfahan U23\"\n        },\n        {\n            \"type\": \"gp\",\n            \"description\": \"50' - 2nd Goal -   (Mes Rafsanjan U23) - Penalty\"\n        },\n        {\n            \"type\": \"h\",\n            \"description\": \"Score After First Half - 1-0\"\n        },\n        {\n            \"type\": \"it\",\n            \"description\": \"First Half Injury Time: 2 Mins\"\n        },\n        {\n            \"type\": \"hg\",\n            \"description\": \"26' - 1st Goal -   (Sepahan Isfahan U23) \"\n        },\n        {\n            \"type\": \"gyc\",\n            \"description\": \"22' - 1st Yellow Card -  (Mes Rafsanjan U23)\"\n        },\n        {\n            \"type\": \"cd\",\n            \"description\": \"Pitch: GOOD\"\n        },\n        {\n            \"type\": \"tq\",\n            \"description\": \"Weather: GOOD\"\n        }\n    ],\n    \"placegame\": [\n        {\n            \"timestatus\": \"26\",\n            \"type\": \"hg\",\n            \"content\": \"26' - 1st Goal -   (Sepahan Isfahan U23) \"\n        },\n        {\n            \"timestatus\": \"50\",\n            \"type\": \"gp\",\n            \"content\": \"50' - 2nd Goal -   (Mes Rafsanjan U23) - Penalty\"\n        },\n        {\n            \"timestatus\": \"59\",\n            \"type\": \"hc\",\n            \"content\": \"59' - 1st Corner - Sepahan Isfahan U23\"\n        },\n        {\n            \"timestatus\": \"78\",\n            \"type\": \"gc\",\n            \"content\": \"78' - 2nd Corner - Mes Rafsanjan U23\"\n        }\n    ],\n    \"endgame\": \"90\",\n    \"timegame\": 79\n}\n```\n\n## obtendo tabela dinamica (tablematch)\n\npara obter tabela de jogos, pode ser ultilizado o endpoint ``https://rattsports.online/api?call=tablematch``.\nque retorna:\n\n```json\n{\n    \"id\": \"\u003ca href=\\\"/play/818213\\\" class=\\\"btn btn-sm btn-success\\\"\u003e818213\u003c/a\u003e\",\n    \"status\": \"25Min\",\n    \"game\": \"Al-Dumair FC v Al-Nabek\",\n    \"league\": \"Syria Division 2\",\n    \"country\": \"Syria\",\n    \"lastevent\": \"25' - 2nd Corner - Al-Dumair FC\",\n    \"winodd\": \"1.750\",\n    \"steam\": \"\u003ci class=\\\"fas fa-circle text-success\\\"\u003e\u003c/i\u003e\",\n    \"win\": \"Al-Dumair FC\",\n    \"nextcorner\": \"Al-Dumair FC\"\n}\n```\n\n## obtendo ligas (leagues)\n\npara obter o nome das atuais ligas, pode ser ultilizado o endpoint ``https://rattsports.online/api?call=leagues``.\nque retorna:\n\n```json\n{\n    \"league\": \"Iran U23 League\"\n}\n```\n\n# dados e estatisticas\n\nEm qualquer end-point dessa lista, os valores ``language`` e ``region`` podem ser definidos atraves de url-query. Caso não sejam inseridos, os padrões ``language=en`` e ``region=Europe:Berlin`` serão mantidos.\n\n## obtendo lista de esportes (games)\n\npara obter a lista de esportes, pode ser ultilizado o endpoint ``https://rattsports.online/api/sports?call=games``.\nque retorna:\n\n```json\n{\n    \"type\": \"sport\",\n    \"id\": 1,\n    \"name\": \"Soccer\",\n    \"skill\": false\n}\n```\n\n## obtendo informações de esportes (getsports)\n\npara obter dados detalhados de esportes, pode ser ultilizado o endpoint ``https://rattsports.online/api/selectsport?call=getsports\u0026id=[id_from_sport]``. Onde o ``id_from_sport`` pode ser obtido pelo metodo ``sports?call=games`` \n\n\u003e- NOTA: caso o id do esporte seja indefinido ou nulo, o valor padrão é definido como 1\n\nque retorna:\n\n```json\n{\n    \"type\": \"sport\",\n    \"id\": 1,\n    \"name\": \"Soccer\",\n    \"categ\": [\n        {\n            \"type\": \"realcategory\",\n            \"id\": 257,\n            \"sid\": 1,\n            \"name\": \"Albania\",\n            \"country\": {\n                \"type\": \"countrycode\",\n                \"id\": 2,\n                \"simple\": \"al\",\n                \"full\": \"Albania\",\n                \"code\": \"ALB\",\n                \"codeline\": \"ALB\",\n                \"continent\": \"Europe\",\n                \"population\": 2800000\n            },\n            \"tournaments\": [],\n            \"uniquetournaments\": []\n        }\n    ]\n}\n```\n\n## obtendo informações de país (bycountry)\n\npara obter dados detalhados de esportes, pode ser ultilizado o endpoint ``https://rattsports.online/api/country?call=bycountry\u0026id=[id_from_country]``. Onde o ``id_from_country`` pode ser obtido pelo metodo ``selectsport?call=getsports`` \n\nque retorna:\n\n```json\n{\n  \"type\": \"realcategory\",\n  \"id\": 1,\n  \"sid\": 1,\n  \"name\": \"England\",\n  \"country\": {\n    \"type\": \"countrycode\",\n    \"id\": 240,\n    \"simple\": \"en\",\n    \"full\": \"England\",\n    \"code\": \"ENG\",\n    \"codeline\": \"ENG\",\n    \"continent\": \"Europe\",\n    \"population\": 51500000\n  }\n}\n```\n\n## obtendo informações de país (bycountry)\n\npara obter dados detalhados de ligas, pode ser ultilizado o endpoint ``https://rattsports.online/api/selectleague?call=select\u0026id=[id_from_sport]\u0026placeid=[id_from_country]``. Onde o ``id_from_country`` pode ser obtido pelo metodo ``selectsport?call=getsports`` e o ``id_from_sport`` pode ser obtido pelo metodo ``sports?call=games``\n\n\u003e- NOTA: caso o id do esporte e id do país seja indefinido ou nulo, o valor padrão é definido como 1 \n\nque retorna:\n\n```json\n{\n    \"type\": \"sport\",\n    \"id\": 1,\n    \"name\": \"Soccer\",\n    \"categ\": [\n        {\n            \"type\": \"realcategory\",\n            \"id\": 1,\"sid\": 1,\n            \"name\": \"England\",\n            \"country\": {\n                \"type\": \"countrycode\",\n                \"id\": 240,\n                \"simple\": \"en\",\n                \"full\": \"England\",\n                \"code\": \"ENG\",\n                \"codeline\": \"ENG\",\n                \"continent\": \"Europe\",\n                \"population\": 51500000\n            },\n            \"tournaments\": [\n                {\n                    \"seasonid\": 77179,\n                    \"currentseason\": 77179,\n                    \"name\": \"Premier League\",\n                    \"roundbyround\": true\n                }\n            ],\n            \"uniquetournaments\": {\n                \"17\": {\n                    \"_doc\": \"uniquetournament\",\n                    \"_id\": 17,\n                    \"_utid\": 17,\n                    \"_sid\": 1,\n                    \"_rcid\": 1,\n                    \"name\": \"Premier League\",\n                    \"currentseason\": 77179,\n                    \"friendly\": false,\n                    \"tournamentlevelorder\": 1,\n                    \"_sk\": false\n                }\n            }\n        }\n    ]\n}\n```\n\n## complementation\n\nall data returns a json in apiRest with solicited information, if you like more details, you can send email for suporte@rattsports.online or can contact me on telegram: @victorRatts\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorratts13%2Frattsports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorratts13%2Frattsports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorratts13%2Frattsports/lists"}