Skip to content

Instantly share code, notes, and snippets.

@akeaswaran
Last active April 19, 2024 01:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save akeaswaran/2323cbc5615367ff531896a3bc4202d5 to your computer and use it in GitHub Desktop.
Save akeaswaran/2323cbc5615367ff531896a3bc4202d5 to your computer and use it in GitHub Desktop.
MLS Web API
@nelgin
Copy link

nelgin commented Mar 6, 2024

Thank you for putting this together. I've been looking for something like this for a few hours. It finally come up. Here's an addition for you:

standings
https://sportapi.mlssoccer.com/api/standings/live?isLive=true&seasonId=2024&competitionId=98

I have been looking through the mls webpages and found this diamond. This is going to help you find what values could be contained in certain places. For example, if you're going to want to know all the period types, you can search for "switch (period)" and you'll find a list, FirstHalf, SecondHalf, FullTime90, ExtraFirstHalf etc etc.

I'm sure it doesn't cover everything but lots of useful information
https://www.mlssoccer.com/assets/js/scripts_react_shared_api_variables_js-scripts_react_shared_utils_js.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment