espn-brackets
espn-brackets copied to clipboard
Team Ids
Thanks for making this project. I was hoping to get this year's teams, how did you compile that list?
hi @michael-dunn, i didn't do much checking but looking at a bracket page, i would guess these are the team IDs for this year (espn.fantasy.maxpart.config.scoreboard_teams)
:
full list
[
{
"eid": 2250,
"a": "GONZ",
"r": "26-0",
"s": 1,
"c": "002967",
"e": false,
"sl": 0,
"bpi": "1",
"id": 1,
"n": "Gonzaga"
},
{
"eid": 2450,
"a": "NORF",
"r": "16-7",
"s": 16,
"c": "046546",
"e": true,
"sl": 1,
"bpi": "206",
"id": 2,
"n": "Norfolk St"
},
{
"eid": 201,
"a": "OU",
"r": "15-10",
"s": 8,
"c": "7b0000",
"e": false,
"sl": 2,
"bpi": "30",
"id": 3,
"n": "Oklahoma"
},
{
"eid": 142,
"a": "MIZ",
"r": "16-9",
"s": 9,
"c": "000000",
"e": true,
"sl": 3,
"bpi": "50",
"id": 4,
"n": "Missouri"
},
{
"eid": 156,
"a": "CREI",
"r": "20-8",
"s": 5,
"c": "13299e",
"e": false,
"sl": 4,
"bpi": "13",
"id": 5,
"n": "Creighton"
},
{
"eid": 2540,
"a": "UCSB",
"r": "22-4",
"s": 12,
"c": "1D1160",
"e": true,
"sl": 5,
"bpi": "61",
"id": 6,
"n": "UCSB"
},
{
"eid": 258,
"a": "UVA",
"r": "18-6",
"s": 4,
"c": "f84c1e",
"e": true,
"sl": 6,
"bpi": "11",
"id": 7,
"n": "Virginia"
},
{
"eid": 195,
"a": "OHIO",
"r": "16-7",
"s": 13,
"c": "295A29",
"e": false,
"sl": 7,
"bpi": "98",
"id": 8,
"n": "Ohio"
},
{
"eid": 30,
"a": "USC",
"r": "22-7",
"s": 6,
"c": "AE2531",
"e": false,
"sl": 8,
"bpi": "16",
"id": 9,
"n": "USC"
},
{
"eid": 2181,
"a": "DRKE",
"r": "25-4",
"s": 11,
"c": "004477",
"e": true,
"sl": 9,
"bpi": "62",
"id": 10,
"n": "Drake"
},
{
"eid": 2305,
"a": "KU",
"r": "20-8",
"s": 3,
"c": "0022B4",
"e": false,
"sl": 10,
"bpi": "20",
"id": 11,
"n": "Kansas"
},
{
"eid": 331,
"a": "EWU",
"r": "16-7",
"s": 14,
"c": "a10022",
"e": true,
"sl": 11,
"bpi": "103",
"id": 12,
"n": "E Washington"
},
{
"eid": 2483,
"a": "ORE",
"r": "20-6",
"s": 7,
"c": "044520",
"e": false,
"sl": 12,
"bpi": "34",
"id": 13,
"n": "Oregon"
},
{
"eid": 2670,
"a": "VCU",
"r": "19-7",
"s": 10,
"c": "929292",
"e": true,
"sl": 13,
"bpi": "55",
"id": 14,
"n": "VCU"
},
{
"eid": 2294,
"a": "IOWA",
"r": "21-8",
"s": 2,
"c": "000000",
"e": false,
"sl": 14,
"bpi": "5",
"id": 15,
"n": "Iowa"
},
{
"eid": 2253,
"a": "GCU",
"r": "17-6",
"s": 15,
"c": "522398",
"e": true,
"sl": 15,
"bpi": "74",
"id": 16,
"n": "Grand Canyon"
},
{
"eid": 130,
"a": "MICH",
"r": "20-4",
"s": 1,
"c": "00274c",
"e": false,
"sl": 16,
"bpi": "6",
"id": 17,
"n": "Michigan"
},
{
"eid": 2640,
"a": "TXSO",
"r": "16-8",
"s": 16,
"c": "6A0403",
"e": true,
"sl": 17,
"bpi": "203",
"id": 18,
"n": "Texas Southern"
},
{
"eid": 99,
"a": "LSU",
"r": "18-9",
"s": 8,
"c": "2B0D57",
"e": false,
"sl": 18,
"bpi": "24",
"id": 19,
"n": "LSU"
},
{
"eid": 179,
"a": "SBU",
"r": "16-4",
"s": 9,
"c": "70261D",
"e": true,
"sl": 19,
"bpi": "28",
"id": 20,
"n": "St. Bonaventure"
},
{
"eid": 38,
"a": "COLO",
"r": "22-8",
"s": 5,
"c": "d1c57e",
"e": false,
"sl": 20,
"bpi": "17",
"id": 21,
"n": "Colorado"
},
{
"eid": 46,
"a": "GTWN",
"r": "13-12",
"s": 12,
"c": "110E42",
"e": true,
"sl": 21,
"bpi": "63",
"id": 22,
"n": "Georgetown"
},
{
"eid": 52,
"a": "FSU",
"r": "16-6",
"s": 4,
"c": "782F40",
"e": false,
"sl": 22,
"bpi": "21",
"id": 23,
"n": "Florida State"
},
{
"eid": 2430,
"a": "UNCG",
"r": "21-8",
"s": 13,
"c": "003559",
"e": true,
"sl": 23,
"bpi": "89",
"id": 24,
"n": "UNC Greensboro"
},
{
"eid": 252,
"a": "BYU",
"r": "20-6",
"s": 6,
"c": "001E4C",
"e": true,
"sl": 24,
"bpi": "29",
"id": 25,
"n": "BYU"
},
{
"eid": 26,
"a": "UCLA",
"r": "17-9",
"s": 11,
"c": "005C8E",
"e": false,
"sl": 25,
"bpi": "42",
"id": 26,
"n": "UCLA"
},
{
"eid": 251,
"a": "TEX",
"r": "19-7",
"s": 3,
"c": "EE7524",
"e": true,
"sl": 26,
"bpi": "22",
"id": 27,
"n": "Texas"
},
{
"eid": 2000,
"a": "ACU",
"r": "23-4",
"s": 14,
"c": "4e2683",
"e": false,
"sl": 27,
"bpi": "82",
"id": 28,
"n": "Abil Christian"
},
{
"eid": 41,
"a": "CONN",
"r": "15-7",
"s": 7,
"c": "001d40",
"e": true,
"sl": 28,
"bpi": "15",
"id": 29,
"n": "UConn"
},
{
"eid": 120,
"a": "MD",
"r": "16-13",
"s": 10,
"c": "D5002B",
"e": false,
"sl": 29,
"bpi": "43",
"id": 30,
"n": "Maryland"
},
{
"eid": 333,
"a": "ALA",
"r": "24-6",
"s": 2,
"c": "690014",
"e": false,
"sl": 30,
"bpi": "9",
"id": 31,
"n": "Alabama"
},
{
"eid": 314,
"a": "IONA",
"r": "12-5",
"s": 15,
"c": "8c001a",
"e": true,
"sl": 31,
"bpi": "138",
"id": 32,
"n": "Iona"
},
{
"eid": 239,
"a": "BAY",
"r": "22-2",
"s": 1,
"c": "004834",
"e": false,
"sl": 32,
"bpi": "2",
"id": 33,
"n": "Baylor"
},
{
"eid": 42,
"a": "HART",
"r": "15-8",
"s": 16,
"c": "d60008",
"e": true,
"sl": 33,
"bpi": "170",
"id": 34,
"n": "Hartford"
},
{
"eid": 153,
"a": "UNC",
"r": "18-10",
"s": 8,
"c": "99bfe5",
"e": true,
"sl": 34,
"bpi": "25",
"id": 35,
"n": "North Carolina"
},
{
"eid": 275,
"a": "WISC",
"r": "17-12",
"s": 9,
"c": "A00002",
"e": false,
"sl": 35,
"bpi": "19",
"id": 36,
"n": "Wisconsin"
},
{
"eid": 222,
"a": "VILL",
"r": "16-6",
"s": 5,
"c": "123d7C",
"e": false,
"sl": 36,
"bpi": "7",
"id": 37,
"n": "Villanova"
},
{
"eid": 2737,
"a": "WIN",
"r": "23-1",
"s": 12,
"c": "9e0b0e",
"e": true,
"sl": 37,
"bpi": "85",
"id": 38,
"n": "Winthrop"
},
{
"eid": 2509,
"a": "PUR",
"r": "18-9",
"s": 4,
"c": "B89D29",
"e": true,
"sl": 38,
"bpi": "26",
"id": 39,
"n": "Purdue"
},
{
"eid": 249,
"a": "UNT",
"r": "17-9",
"s": 13,
"c": "00853D",
"e": false,
"sl": 39,
"bpi": "68",
"id": 40,
"n": "North Texas"
},
{
"eid": 2641,
"a": "TTU",
"r": "17-10",
"s": 6,
"c": "C80025",
"e": false,
"sl": 40,
"bpi": "8",
"id": 41,
"n": "Texas Tech"
},
{
"eid": 328,
"a": "USU",
"r": "20-8",
"s": 11,
"c": "003263",
"e": true,
"sl": 41,
"bpi": "49",
"id": 42,
"n": "Utah State"
},
{
"eid": 8,
"a": "ARK",
"r": "22-6",
"s": 3,
"c": "9c1831",
"e": false,
"sl": 42,
"bpi": "14",
"id": 43,
"n": "Arkansas"
},
{
"eid": 2142,
"a": "COLG",
"r": "14-1",
"s": 14,
"c": "8B011D",
"e": true,
"sl": 43,
"bpi": "44",
"id": 44,
"n": "Colgate"
},
{
"eid": 57,
"a": "FLA",
"r": "14-9",
"s": 7,
"c": "0021A5",
"e": false,
"sl": 44,
"bpi": "32",
"id": 45,
"n": "Florida"
},
{
"eid": 259,
"a": "VT",
"r": "15-6",
"s": 10,
"c": "74232D",
"e": true,
"sl": 45,
"bpi": "39",
"id": 46,
"n": "Virginia Tech"
},
{
"eid": 194,
"a": "OSU",
"r": "21-8",
"s": 2,
"c": "de3129",
"e": true,
"sl": 46,
"bpi": "10",
"id": 47,
"n": "Ohio State"
},
{
"eid": 198,
"a": "ORU",
"r": "16-10",
"s": 15,
"c": "002955",
"e": false,
"sl": 47,
"bpi": "155",
"id": 48,
"n": "Oral Roberts"
},
{
"eid": 356,
"a": "ILL",
"r": "22-6",
"s": 1,
"c": "f77329",
"e": true,
"sl": 48,
"bpi": "4",
"id": 49,
"n": "Illinois"
},
{
"eid": 2182,
"a": "DREX",
"r": "12-7",
"s": 16,
"c": "020260",
"e": true,
"sl": 49,
"bpi": "130",
"id": 50,
"n": "Drexel"
},
{
"eid": 2350,
"a": "LUC",
"r": "24-4",
"s": 8,
"c": "9d1244",
"e": false,
"sl": 50,
"bpi": "23",
"id": 51,
"n": "Loyola Chicago"
},
{
"eid": 59,
"a": "GT",
"r": "17-8",
"s": 9,
"c": "00223e",
"e": true,
"sl": 51,
"bpi": "35",
"id": 52,
"n": "Georgia Tech"
},
{
"eid": 2633,
"a": "TENN",
"r": "18-8",
"s": 5,
"c": "EE9627",
"e": true,
"sl": 52,
"bpi": "12",
"id": 53,
"n": "Tennessee"
},
{
"eid": 204,
"a": "ORST",
"r": "17-12",
"s": 12,
"c": "c34500",
"e": false,
"sl": 53,
"bpi": "87",
"id": 54,
"n": "Oregon State"
},
{
"eid": 197,
"a": "OKST",
"r": "20-8",
"s": 4,
"c": "FF6500",
"e": false,
"sl": 54,
"bpi": "36",
"id": 55,
"n": "Oklahoma State"
},
{
"eid": 2335,
"a": "LIB",
"r": "23-5",
"s": 13,
"c": "071740",
"e": true,
"sl": 55,
"bpi": "76",
"id": 56,
"n": "Liberty"
},
{
"eid": 21,
"a": "SDSU",
"r": "23-4",
"s": 6,
"c": "BF2C37",
"e": true,
"sl": 56,
"bpi": "18",
"id": 57,
"n": "San Diego State"
},
{
"eid": 183,
"a": "SYR",
"r": "16-9",
"s": 11,
"c": "F37321",
"e": false,
"sl": 57,
"bpi": "33",
"id": 58,
"n": "Syracuse"
},
{
"eid": 277,
"a": "WVU",
"r": "18-9",
"s": 3,
"c": "FFC600",
"e": false,
"sl": 58,
"bpi": "27",
"id": 59,
"n": "West Virginia"
},
{
"eid": 2413,
"a": "MORE",
"r": "23-7",
"s": 14,
"c": "094FA3",
"e": true,
"sl": 59,
"bpi": "154",
"id": 60,
"n": "Morehead State"
},
{
"eid": 228,
"a": "CLEM",
"r": "16-7",
"s": 7,
"c": "F66733",
"e": true,
"sl": 60,
"bpi": "38",
"id": 61,
"n": "Clemson"
},
{
"eid": 164,
"a": "RUTG",
"r": "15-11",
"s": 10,
"c": "d21034",
"e": false,
"sl": 61,
"bpi": "45",
"id": 62,
"n": "Rutgers"
},
{
"eid": 248,
"a": "HOU",
"r": "24-3",
"s": 2,
"c": "C90822",
"e": false,
"sl": 62,
"bpi": "3",
"id": 63,
"n": "Houston"
},
{
"eid": 325,
"a": "CLEV",
"r": "19-7",
"s": 15,
"c": "006633",
"e": true,
"sl": 63,
"bpi": "186",
"id": 64,
"n": "Cleveland State"
}
]
i noticed the scraping links are all different now. what endpoints did you end up using to get groups?
i saw this endpoint which might be one could iterate 0...15,000,000 https://fantasy.espncdn.com/tournament-challenge-bracket/2021/en/api/findGroups?type_access=1&type_group=0&type_lock=0&type_dropWorst=0&start=0&num=1000
@Bekt I ended up getting all matchups through : https://fantasy.espncdn.com/tournament-challenge-bracket/${year}/en/api/matchups And then I sorted the matchups by id to get their pick string id. I used https://fantasy.espncdn.com/tournament-challenge-bracket/${year}/en/api/v7/group?groupID=${groupId}&sort=-1&start=0&length=50&periodPoints=true to get the group that I'm in. I created an app for viewing the matchups of my group with more understanding of the group level per matchup rather than just seeing whatever bracket was open.
if it's ready to use let me know! i struggle with this in the ESPN app Bracketcast as well.
I'm using Angular to make it happen. It's rough for now, but you can find it in my repos. Then just npm install angular and cd into the app folder and run ng serve --open