{
  "data": {
    "id": "oDXiFEe6U4kFMI9b7",
    "actId": "dOuBlkPvUD9a1Us54",
    "userId": "zq8lKbpLzTjGDayPC",
    "startedAt": "2026-11-30T15:14:54.735Z",
    "finishedAt": "2026-11-30T15:15:05.776Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"MLS & North American Soccer Input\",\n  \"description\": \"Collect teams, squads, players, fixtures, results, tables and match details from TheSportsDB's public soccer database.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"What to collect\",\n      \"description\": \"Choose a league roster, a club profile, player profiles, season matches, a league table, one match, or the league directory.\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"teams\",\n        \"team\",\n        \"players\",\n        \"games\",\n        \"standings\",\n        \"event\",\n        \"leagues\"\n      ],\n      \"enumTitles\": [\n        \"League teams\",\n        \"Team profile & squad\",\n        \"Player search\",\n        \"Season matches\",\n        \"League table\",\n        \"Match details\",\n        \"League directory\"\n      ],\n      \"default\": \"teams\",\n      \"prefill\": \"teams\"\n    },\n    \"league\": {\n      \"title\": \"League\",\n      \"description\": \"Competition used by the teams, games, standings and team-name lookup modes.\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"mls\",\n        \"usl\",\n        \"nwsl\",\n        \"liga_mx\",\n        \"concacaf\",\n        \"epl\",\n        \"bundesliga\",\n        \"serie_a\",\n        \"la_liga\",\n        \"ligue_1\"\n      ],\n      \"enumTitles\": [\n        \"MLS (Major League Soccer)\",\n        \"USL Championship\",\n        \"NWSL (Women's Soccer)\",\n        \"Liga MX (Mexico)\",\n        \"CONCACAF Champions Cup\",\n        \"English Premier League\",\n        \"German Bundesliga\",\n        \"Italian Serie A\",\n        \"Spanish La Liga\",\n        \"French Ligue 1\"\n      ],\n      \"default\": \"mls\",\n      \"prefill\": \"mls\"\n    },\n    \"searchQueries\": {\n      \"title\": \"Player names, IDs or profile URLs\",\n      \"description\": \"One or more players for the player search mode. A name, a numeric player ID, or a thesportsdb.com/player/... URL all work.\",\n      \"type\": \"array\",\n      \"editor\": \"stringList\",\n      \"default\": [\n        \"Lorenzo Insigne\"\n      ],\n      \"prefill\": [\n        \"Lorenzo Insigne\"\n      ]\n    },\n    \"teamQueries\": {\n      \"title\": \"Team names, IDs or team URLs\",\n      \"description\": \"One or more clubs for the team profile mode. A name, a numeric team ID, or a thesportsdb.com/team/... URL all work.\",\n      \"type\": \"array\",\n      \"editor\": \"stringList\",\n      \"default\": [\n        \"Inter Miami\"\n      ],\n      \"prefill\": [\n        \"Inter Miami\"\n      ]\n    },\n    \"eventQueries\": {\n      \"title\": \"Event IDs or match URLs\",\n      \"description\": \"One or more matches for the match details mode. Use a numeric event ID or a thesportsdb.com/event/... URL.\",\n      \"type\": \"array\",\n      \"editor\": \"stringList\",\n      \"default\": [\n        \"2627210\"\n      ],\n      \"prefill\": [\n        \"2627210\"\n      ]\n    },\n    \"season\": {\n      \"title\": \"Season\",\n      \"description\": \"Season year or range, for example 2025. MLS, USL, NWSL, Liga MX and CONCACAF use a single year; the five European leagues accept a start year (2025 becomes 2025-2026) or a full range.\",\n      \"type\": \"string\",\n      \"editor\": \"textfield\",\n      \"default\": \"2026\",\n      \"prefill\": \"2026\"\n    },\n    \"round\": {\n      \"title\": \"Round filter\",\n      \"description\": \"Optional round number for season matches, for example 10 or r10. Leave empty for the whole season.\",\n      \"type\": \"string\",\n      \"editor\": \"textfield\"\n    },\n    \"teamFilter\": {\n      \"title\": \"Team filter for matches\",\n      \"description\": \"Optional club name or team ID. Only matches involving that club are returned.\",\n      \"type\": \"string\",\n      \"editor\": \"textfield\"\n    },\n    \"eventWindow\": {\n      \"title\": \"Match window\",\n      \"description\": \"Return the whole season, only future fixtures, or only completed matches.\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"all\",\n        \"upcoming\",\n        \"recent\"\n      ],\n      \"enumTitles\": [\n        \"Whole season\",\n        \"Upcoming fixtures\",\n        \"Recent results\"\n      ],\n      \"default\": \"all\",\n      \"prefill\": \"all\"\n    },\n    \"includeSquad\": {\n      \"title\": \"Include squad\",\n      \"description\": \"For team profiles, also return the club's player list.\",\n      \"type\": \"boolean\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeEventDetails\": {\n      \"title\": \"Include match lineups & stats\",\n      \"description\": \"For season matches, also return lineups, statistics and timeline for each returned match. This costs extra requests.\",\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxItems\": {\n      \"title\": \"Max records\",\n      \"description\": \"Hard cap on returned records. A high value requests a full season (about 380 matches in a European league); the shared free key can stop a long round walk early, in which case the run returns what it collected.\",\n      \"type\": \"integer\",\n      \"minimum\": 1,\n      \"maximum\": 5000,\n      \"default\": 20,\n      \"prefill\": 3\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# MLS & North American Soccer Teams, Players & Results\n\nCollect soccer clubs, squads, player profiles, season fixtures, final scores, league tables and match details across Major League Soccer, USL Championship, NWSL, Liga MX, the CONCACAF Champions Cup and the top five European leagues.\n\nEverything comes from TheSportsDB's public sports database. No cookies, no login, no API key from you and no proxy setup.\n\n## What this actor does\n\n- **League teams** — every club in a chosen competition, with venue, city, colours, competitions, badge and social links\n- **Team profiles** — one club in depth: venue capacity and location, current squad, next fixture and last result\n- **Player search** — search by name, player ID or profile URL and get the full biography, birth details, position, shirt number, team, honours, former clubs and season stat lines\n- **Season matches** — fixtures and results with scores, dates, rounds, venues and badges; filter by round, team or upcoming/recent (large seasons are best-effort because the shared free key is rate-limited)\n- **League tables** — the source's official top rows, plus a calculated full table for European seasons when the shared key allows the full round walk\n- **Match details** — one match with lineups, statistics and goal/card timeline\n- **League directory** — the ten covered competitions with current season, country, badge, banner and description\n\n## Output per record\n\nEvery record includes `recordType`, `scrapedAt` (ISO 8601 UTC) and source IDs where available. Empty fields are omitted, never sent as `null`.\n\n**Team** (`recordType` = `<league>_team` in league mode, `team` in profile mode)\n- `teamId`, `teamName`, `shortName`, `alternateName`\n- `city`, `stadium`, `stadiumId`, `country`, `formedYear`\n- `sport`, `league`, `leagueId`, `division`, `gender`, `keywords`\n- `colours`, `competitions`\n- `website`, `facebook`, `twitter`, `instagram`, `youtube`, `rss`\n- `description`, `logoUrl`, `bannerUrl`, `equipmentUrl`, `teamUrl`\n- Profile mode adds `venue` (capacity, location, timezone, architect, cost, map, images), `squad` (up to 10 players), `squadReturned`, `nextEvent`, `lastEvent`\n\n**Player** (`recordType` = `<league>_player`)\n- `playerId`, `playerName`, `alternateName`, `lastName`\n- `team`, `teamId`, `nationalTeam`, `nationality`, `position`, `status`\n- `gender`, `ethnicity`, `sport`, `height`, `weight`\n- `birthDate`, `birthLocation`, `deathDate`, `deathLocation`\n- `teamNumber`, `side`, `kit`, `outfitter`, `wage`, `signing`, `dateSigned`, `agent`, `college`\n- `creativeCommons`, `description`\n- `imageUrl`, `thumbUrl`, `cutoutUrl`, `renderUrl`, `posterUrl`, `bannerUrl`, `profileUrl`\n- `website`, `facebook`, `twitter`, `instagram`\n- `honours` (up to 5), `formerTeams` (up to 5), `stats` (up to 10)\n\n**Match** (`recordType` = `<league>_game` in season mode, `event` in match mode)\n- `eventId`, `eventName`, `alternateName`, `filename`\n- `homeTeam`, `awayTeam`, `homeTeamId`, `awayTeamId`, `homeTeamBadge`, `awayTeamBadge`\n- `homeScore`, `awayScore`, `homeScoreExtra`, `awayScoreExtra`\n- `season`, `matchDate`, `localDate`, `matchTime`, `localTime`, `timestamp`\n- `round`, `group`, `venue`, `venueId`, `city`, `country`, `status`, `postponed`, `result`\n- `sport`, `league`, `leagueName`, `leagueId`, `leagueBadge`\n- `spectators`, `officials`, `weather`, `description`\n- `videoUrl`, `thumbUrl`, `posterUrl`, `bannerUrl`, `squareUrl`, `fanartUrl`, `eventUrl`\n- Match mode adds `lineup` (up to 5 players), `statistics` (up to 5 rows) and `timeline` (up to 5 events)\n\n**Standing** (`recordType` = `standing`)\n- `rank`, `teamId`, `teamName`, `group`, `form`, `description`\n- `played`, `wins`, `draws`, `losses`, `goalsFor`, `goalsAgainst`, `goalDifference`, `points`\n- `badgeUrl`, `league`, `leagueName`, `season`, `tableSource`, `updatedAt`\n\n**League** (`recordType` = `league`)\n- `leagueId`, `leagueName`, `alternateName`, `sport`, `country`, `currentSeason`\n- `formedYear`, `firstEventDate`, `gender`, `division`, `cup`\n- `badgeUrl`, `bannerUrl`, `logoUrl`, `posterUrl`, `trophyUrl`, `fanart`\n- `description`, `website`, `facebook`, `twitter`, `instagram`, `youtube`, `rss`\n- `tvRights`, `leagueUrl`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | select | `teams` | `teams`, `team`, `players`, `games`, `standings`, `event` or `leagues` |\n| `league` | select | `mls` | MLS, USL Championship, NWSL, Liga MX, CONCACAF Champions Cup, Premier League, Bundesliga, Serie A, La Liga, Ligue 1 |\n| `searchQueries` | string list | `[\"Lorenzo Insigne\"]` | Player names, IDs or profile URLs for `players` |\n| `teamQueries` | string list | `[\"Inter Miami\"]` | Team names, IDs or team URLs for `team` |\n| `eventQueries` | string list | `[\"2627210\"]` | Event IDs or match URLs for `event` |\n| `season` | text | `2026` | Single year for MLS/USL/NWSL/Liga MX/CONCACAF; start year or range for European leagues |\n| `round` | text | — | Optional round filter for `games`, e.g. `10` or `r10` |\n| `teamFilter` | text | — | Optional club name or team ID for `games` |\n| `eventWindow` | select | `all` | `all`, `upcoming` or `recent` for `games` |\n| `includeSquad` | boolean | `true` | Add the squad to team profiles |\n| `includeEventDetails` | boolean | `false` | Add lineups, statistics and timeline to every returned match |\n| `maxItems` | integer | `20` | Records to return, 1-5,000 |\n\nSaved tasks that still send the old single `searchQuery` field keep working: the actor reads it and maps it onto `searchQueries`.\n\n### Examples\n\nCurrent MLS clubs:\n\n```json\n{\n  \"mode\": \"teams\",\n  \"league\": \"mls\",\n  \"season\": \"2026\",\n  \"maxItems\": 30\n}\n```\n\nInter Miami with its venue and squad:\n\n```json\n{\n  \"mode\": \"team\",\n  \"league\": \"mls\",\n  \"teamQueries\": [\"Inter Miami\"],\n  \"includeSquad\": true\n}\n```\n\nA player profile:\n\n```json\n{\n  \"mode\": \"players\",\n  \"searchQueries\": [\"Lionel Messi\"]\n}\n```\n\nOne European round:\n\n```json\n{\n  \"mode\": \"games\",\n  \"league\": \"epl\",\n  \"season\": \"2024-2025\",\n  \"round\": \"10\",\n  \"maxItems\": 12\n}\n```\n\nA full European season (walked round by round; best-effort under the shared rate limit):\n\n```json\n{\n  \"mode\": \"games\",\n  \"league\": \"epl\",\n  \"season\": \"2024-2025\",\n  \"maxItems\": 500\n}\n```\n\nA calculated table (best-effort; falls back to the official top five):\n\n```json\n{\n  \"mode\": \"standings\",\n  \"league\": \"epl\",\n  \"season\": \"2024-2025\",\n  \"maxItems\": 25\n}\n```\n\nOne match with lineups and stats:\n\n```json\n{\n  \"mode\": \"event\",\n  \"eventQueries\": [\"https://www.thesportsdb.com/event/2627210-columbus-crew-vs-inter-miami\"]\n}\n```\n\nThe league directory:\n\n```json\n{\n  \"mode\": \"leagues\",\n  \"maxItems\": 10\n}\n```\n\n## Use cases\n\n- **Club directories** — build a current league roster with stadiums, badges and social links\n- **Squad research** — pull a club's players, positions and shirt numbers\n- **Player cards** — biography, birth details, honours, former clubs and stat lines for apps or editorial\n- **Season archives** — collect a competition's fixtures and final scores, filtered by round or club\n- **Table dashboards** — use the official top rows, or the complete calculated table for a European season\n- **Match pages** — lineups, statistics and goal timelines for individual fixtures\n- **Metadata and artwork** — badges, banners, player images and league artwork come attached to the same records\n\n## FAQ\n\n**Where does the data come from?** TheSportsDB's public sports database, through its official free API. The actor is not affiliated with or endorsed by TheSportsDB, MLS, USL, NWSL, Liga MX, CONCACAF, UEFA or any league or club named here.\n\n**Do I need an API key, cookies or a proxy?** No. The actor uses the public free key, sends requests at a polite pace and needs no user credentials. A proxy is never configured or required.\n\n**Why is a calendar-year season sometimes partial?** The free API returns at most 10 matches per round. European leagues have 9-10 matches per round, so walking rounds can reconstruct the whole season. MLS, USL, NWSL, Liga MX and CONCACAF can have 12-17 matches per round, so those seasons can be incomplete. The shared free key is also throttled globally: a long round walk may stop early, and the run status message then says the result is partial.\n\n**Why does the league table sometimes have only five rows?** The free API caps its official table at five rows. For European leagues the actor reads the season's matches round by round, calculates the full table and checks its top five against the official top five; only a match unlocks the complete table. For calendar-year leagues the official five rows are returned. If the shared key throttles the round walk before validation, the official five rows are returned with a partial-run note.\n\n**Why are there only 10 players in a squad, or 5 actors in a lineup?** The free API caps those endpoints at 10 and 5 records. The actor reports the returned count rather than inventing data.\n\n**Why did my large run take a while?** The free API allows 30 requests per minute. Full-season and calculated-table requests walk many rounds, so the actor spaces requests and may take a minute or two. If the shared key is throttled, the actor stops, returns what it already collected and tells you to re-run later. A large full-season request can therefore be partial; run a single round at a time if you need every match.\n\n**Are live scores included?** No. Livescores and video highlights are premium-only in the source. Season results are whatever the source has recorded at run time.\n\n**Can I use IDs or URLs instead of names?** Yes. Team, player and event inputs accept a numeric ID or a `thesportsdb.com/...` URL, as well as a name where search is supported.\n\n**Why is the season field a text box?** Seasons are a single year for some leagues and a two-year range for others, and the archive goes back more than a decade. The actor accepts either form and converts a European start year automatically.\n\n## Data source and attribution\n\nData and artwork are provided by TheSportsDB (TheDataDB Ltd). Please credit TheSportsDB as the source when you publish the data. Artwork licences are set by the individual image, not by the dataset; check the `creativeCommons` flag on player records before republishing images.\n\n## Limitations\n\n- The free API returns at most 15 events from a season endpoint and 10 events per round.\n- Calendar-year league seasons can be partial; European seasons are complete only when the shared key allows the full round walk, otherwise the run states it is partial.\n- Official league tables are capped at 5 rows; calculated full tables are best-effort and available for European leagues when validation succeeds.\n- Squads, lineups, event stats, timelines, honours and former-team lists are capped at 5-10 records by the free tier.\n- Live scores, video highlights and the v2 API require a paid source subscription and are not used.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "mls-and-north-american-soccer-teams-players",
      "title": "MLS & North American Soccer Teams, Players & Results",
      "description": "List current teams, search players, or pull season match results across MLS, USL, NWSL, Liga MX, CONCACAF, and the top five European leagues, with club details, player bios, and final scores.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# MLS & North American Soccer Teams, Players & Results\n\nCollect soccer clubs, squads, player profiles, season fixtures, final scores, league tables and match details across Major League Soccer, USL Championship, NWSL, Liga MX, the CONCACAF Champions Cup and the top five European leagues.\n\nEverything comes from TheSportsDB's public sports database. No cookies, no login, no API key from you and no proxy setup.\n\n## What this actor does\n\n- **League teams** — every club in a chosen competition, with venue, city, colours, competitions, badge and social links\n- **Team profiles** — one club in depth: venue capacity and location, current squad, next fixture and last result\n- **Player search** — search by name, player ID or profile URL and get the full biography, birth details, position, shirt number, team, honours, former clubs and season stat lines\n- **Season matches** — fixtures and results with scores, dates, rounds, venues and badges; filter by round, team or upcoming/recent (large seasons are best-effort because the shared free key is rate-limited)\n- **League tables** — the source's official top rows, plus a calculated full table for European seasons when the shared key allows the full round walk\n- **Match details** — one match with lineups, statistics and goal/card timeline\n- **League directory** — the ten covered competitions with current season, country, badge, banner and description\n\n## Output per record\n\nEvery record includes `recordType`, `scrapedAt` (ISO 8601 UTC) and source IDs where available. Empty fields are omitted, never sent as `null`.\n\n**Team** (`recordType` = `<league>_team` in league mode, `team` in profile mode)\n- `teamId`, `teamName`, `shortName`, `alternateName`\n- `city`, `stadium`, `stadiumId`, `country`, `formedYear`\n- `sport`, `league`, `leagueId`, `division`, `gender`, `keywords`\n- `colours`, `competitions`\n- `website`, `facebook`, `twitter`, `instagram`, `youtube`, `rss`\n- `description`, `logoUrl`, `bannerUrl`, `equipmentUrl`, `teamUrl`\n- Profile mode adds `venue` (capacity, location, timezone, architect, cost, map, images), `squad` (up to 10 players), `squadReturned`, `nextEvent`, `lastEvent`\n\n**Player** (`recordType` = `<league>_player`)\n- `playerId`, `playerName`, `alternateName`, `lastName`\n- `team`, `teamId`, `nationalTeam`, `nationality`, `position`, `status`\n- `gender`, `ethnicity`, `sport`, `height`, `weight`\n- `birthDate`, `birthLocation`, `deathDate`, `deathLocation`\n- `teamNumber`, `side`, `kit`, `outfitter`, `wage`, `signing`, `dateSigned`, `agent`, `college`\n- `creativeCommons`, `description`\n- `imageUrl`, `thumbUrl`, `cutoutUrl`, `renderUrl`, `posterUrl`, `bannerUrl`, `profileUrl`\n- `website`, `facebook`, `twitter`, `instagram`\n- `honours` (up to 5), `formerTeams` (up to 5), `stats` (up to 10)\n\n**Match** (`recordType` = `<league>_game` in season mode, `event` in match mode)\n- `eventId`, `eventName`, `alternateName`, `filename`\n- `homeTeam`, `awayTeam`, `homeTeamId`, `awayTeamId`, `homeTeamBadge`, `awayTeamBadge`\n- `homeScore`, `awayScore`, `homeScoreExtra`, `awayScoreExtra`\n- `season`, `matchDate`, `localDate`, `matchTime`, `localTime`, `timestamp`\n- `round`, `group`, `venue`, `venueId`, `city`, `country`, `status`, `postponed`, `result`\n- `sport`, `league`, `leagueName`, `leagueId`, `leagueBadge`\n- `spectators`, `officials`, `weather`, `description`\n- `videoUrl`, `thumbUrl`, `posterUrl`, `bannerUrl`, `squareUrl`, `fanartUrl`, `eventUrl`\n- Match mode adds `lineup` (up to 5 players), `statistics` (up to 5 rows) and `timeline` (up to 5 events)\n\n**Standing** (`recordType` = `standing`)\n- `rank`, `teamId`, `teamName`, `group`, `form`, `description`\n- `played`, `wins`, `draws`, `losses`, `goalsFor`, `goalsAgainst`, `goalDifference`, `points`\n- `badgeUrl`, `league`, `leagueName`, `season`, `tableSource`, `updatedAt`\n\n**League** (`recordType` = `league`)\n- `leagueId`, `leagueName`, `alternateName`, `sport`, `country`, `currentSeason`\n- `formedYear`, `firstEventDate`, `gender`, `division`, `cup`\n- `badgeUrl`, `bannerUrl`, `logoUrl`, `posterUrl`, `trophyUrl`, `fanart`\n- `description`, `website`, `facebook`, `twitter`, `instagram`, `youtube`, `rss`\n- `tvRights`, `leagueUrl`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | select | `teams` | `teams`, `team`, `players`, `games`, `standings`, `event` or `leagues` |\n| `league` | select | `mls` | MLS, USL Championship, NWSL, Liga MX, CONCACAF Champions Cup, Premier League, Bundesliga, Serie A, La Liga, Ligue 1 |\n| `searchQueries` | string list | `[\"Lorenzo Insigne\"]` | Player names, IDs or profile URLs for `players` |\n| `teamQueries` | string list | `[\"Inter Miami\"]` | Team names, IDs or team URLs for `team` |\n| `eventQueries` | string list | `[\"2627210\"]` | Event IDs or match URLs for `event` |\n| `season` | text | `2026` | Single year for MLS/USL/NWSL/Liga MX/CONCACAF; start year or range for European leagues |\n| `round` | text | — | Optional round filter for `games`, e.g. `10` or `r10` |\n| `teamFilter` | text | — | Optional club name or team ID for `games` |\n| `eventWindow` | select | `all` | `all`, `upcoming` or `recent` for `games` |\n| `includeSquad` | boolean | `true` | Add the squad to team profiles |\n| `includeEventDetails` | boolean | `false` | Add lineups, statistics and timeline to every returned match |\n| `maxItems` | integer | `20` | Records to return, 1-5,000 |\n\nSaved tasks that still send the old single `searchQuery` field keep working: the actor reads it and maps it onto `searchQueries`.\n\n### Examples\n\nCurrent MLS clubs:\n\n```json\n{\n  \"mode\": \"teams\",\n  \"league\": \"mls\",\n  \"season\": \"2026\",\n  \"maxItems\": 30\n}\n```\n\nInter Miami with its venue and squad:\n\n```json\n{\n  \"mode\": \"team\",\n  \"league\": \"mls\",\n  \"teamQueries\": [\"Inter Miami\"],\n  \"includeSquad\": true\n}\n```\n\nA player profile:\n\n```json\n{\n  \"mode\": \"players\",\n  \"searchQueries\": [\"Lionel Messi\"]\n}\n```\n\nOne European round:\n\n```json\n{\n  \"mode\": \"games\",\n  \"league\": \"epl\",\n  \"season\": \"2024-2025\",\n  \"round\": \"10\",\n  \"maxItems\": 12\n}\n```\n\nA full European season (walked round by round; best-effort under the shared rate limit):\n\n```json\n{\n  \"mode\": \"games\",\n  \"league\": \"epl\",\n  \"season\": \"2024-2025\",\n  \"maxItems\": 500\n}\n```\n\nA calculated table (best-effort; falls back to the official top five):\n\n```json\n{\n  \"mode\": \"standings\",\n  \"league\": \"epl\",\n  \"season\": \"2024-2025\",\n  \"maxItems\": 25\n}\n```\n\nOne match with lineups and stats:\n\n```json\n{\n  \"mode\": \"event\",\n  \"eventQueries\": [\"https://www.thesportsdb.com/event/2627210-columbus-crew-vs-inter-miami\"]\n}\n```\n\nThe league directory:\n\n```json\n{\n  \"mode\": \"leagues\",\n  \"maxItems\": 10\n}\n```\n\n## Use cases\n\n- **Club directories** — build a current league roster with stadiums, badges and social links\n- **Squad research** — pull a club's players, positions and shirt numbers\n- **Player cards** — biography, birth details, honours, former clubs and stat lines for apps or editorial\n- **Season archives** — collect a competition's fixtures and final scores, filtered by round or club\n- **Table dashboards** — use the official top rows, or the complete calculated table for a European season\n- **Match pages** — lineups, statistics and goal timelines for individual fixtures\n- **Metadata and artwork** — badges, banners, player images and league artwork come attached to the same records\n\n## FAQ\n\n**Where does the data come from?** TheSportsDB's public sports database, through its official free API. The actor is not affiliated with or endorsed by TheSportsDB, MLS, USL, NWSL, Liga MX, CONCACAF, UEFA or any league or club named here.\n\n**Do I need an API key, cookies or a proxy?** No. The actor uses the public free key, sends requests at a polite pace and needs no user credentials. A proxy is never configured or required.\n\n**Why is a calendar-year season sometimes partial?** The free API returns at most 10 matches per round. European leagues have 9-10 matches per round, so walking rounds can reconstruct the whole season. MLS, USL, NWSL, Liga MX and CONCACAF can have 12-17 matches per round, so those seasons can be incomplete. The shared free key is also throttled globally: a long round walk may stop early, and the run status message then says the result is partial.\n\n**Why does the league table sometimes have only five rows?** The free API caps its official table at five rows. For European leagues the actor reads the season's matches round by round, calculates the full table and checks its top five against the official top five; only a match unlocks the complete table. For calendar-year leagues the official five rows are returned. If the shared key throttles the round walk before validation, the official five rows are returned with a partial-run note.\n\n**Why are there only 10 players in a squad, or 5 actors in a lineup?** The free API caps those endpoints at 10 and 5 records. The actor reports the returned count rather than inventing data.\n\n**Why did my large run take a while?** The free API allows 30 requests per minute. Full-season and calculated-table requests walk many rounds, so the actor spaces requests and may take a minute or two. If the shared key is throttled, the actor stops, returns what it already collected and tells you to re-run later. A large full-season request can therefore be partial; run a single round at a time if you need every match.\n\n**Are live scores included?** No. Livescores and video highlights are premium-only in the source. Season results are whatever the source has recorded at run time.\n\n**Can I use IDs or URLs instead of names?** Yes. Team, player and event inputs accept a numeric ID or a `thesportsdb.com/...` URL, as well as a name where search is supported.\n\n**Why is the season field a text box?** Seasons are a single year for some leagues and a two-year range for others, and the archive goes back more than a decade. The actor accepts either form and converts a European start year automatically.\n\n## Data source and attribution\n\nData and artwork are provided by TheSportsDB (TheDataDB Ltd). Please credit TheSportsDB as the source when you publish the data. Artwork licences are set by the individual image, not by the dataset; check the `creativeCommons` flag on player records before republishing images.\n\n## Limitations\n\n- The free API returns at most 15 events from a season endpoint and 10 events per round.\n- Calendar-year league seasons can be partial; European seasons are complete only when the shared key allows the full round walk, otherwise the run states it is partial.\n- Official league tables are capped at 5 rows; calculated full tables are best-effort and available for European leagues when validation succeeds.\n- Squads, lineups, event stats, timelines, honours and former-team lists are capped at 5-10 records by the free tier.\n- Live scores, video highlights and the v2 API require a paid source subscription and are not used.\n",
      "input": {
        "title": "MLS & North American Soccer Input",
        "description": "Collect teams, squads, players, fixtures, results, tables and match details from TheSportsDB's public soccer database.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "What to collect",
            "description": "Choose a league roster, a club profile, player profiles, season matches, a league table, one match, or the league directory.",
            "type": "string",
            "editor": "select",
            "enum": [
              "teams",
              "team",
              "players",
              "games",
              "standings",
              "event",
              "leagues"
            ],
            "enumTitles": [
              "League teams",
              "Team profile & squad",
              "Player search",
              "Season matches",
              "League table",
              "Match details",
              "League directory"
            ],
            "default": "teams",
            "prefill": "teams"
          },
          "league": {
            "title": "League",
            "description": "Competition used by the teams, games, standings and team-name lookup modes.",
            "type": "string",
            "editor": "select",
            "enum": [
              "mls",
              "usl",
              "nwsl",
              "liga_mx",
              "concacaf",
              "epl",
              "bundesliga",
              "serie_a",
              "la_liga",
              "ligue_1"
            ],
            "enumTitles": [
              "MLS (Major League Soccer)",
              "USL Championship",
              "NWSL (Women's Soccer)",
              "Liga MX (Mexico)",
              "CONCACAF Champions Cup",
              "English Premier League",
              "German Bundesliga",
              "Italian Serie A",
              "Spanish La Liga",
              "French Ligue 1"
            ],
            "default": "mls",
            "prefill": "mls"
          },
          "searchQueries": {
            "title": "Player names, IDs or profile URLs",
            "description": "One or more players for the player search mode. A name, a numeric player ID, or a thesportsdb.com/player/... URL all work.",
            "type": "array",
            "editor": "stringList",
            "default": [
              "Lorenzo Insigne"
            ],
            "prefill": [
              "Lorenzo Insigne"
            ]
          },
          "teamQueries": {
            "title": "Team names, IDs or team URLs",
            "description": "One or more clubs for the team profile mode. A name, a numeric team ID, or a thesportsdb.com/team/... URL all work.",
            "type": "array",
            "editor": "stringList",
            "default": [
              "Inter Miami"
            ],
            "prefill": [
              "Inter Miami"
            ]
          },
          "eventQueries": {
            "title": "Event IDs or match URLs",
            "description": "One or more matches for the match details mode. Use a numeric event ID or a thesportsdb.com/event/... URL.",
            "type": "array",
            "editor": "stringList",
            "default": [
              "2627210"
            ],
            "prefill": [
              "2627210"
            ]
          },
          "season": {
            "title": "Season",
            "description": "Season year or range, for example 2025. MLS, USL, NWSL, Liga MX and CONCACAF use a single year; the five European leagues accept a start year (2025 becomes 2025-2026) or a full range.",
            "type": "string",
            "editor": "textfield",
            "default": "2026",
            "prefill": "2026"
          },
          "round": {
            "title": "Round filter",
            "description": "Optional round number for season matches, for example 10 or r10. Leave empty for the whole season.",
            "type": "string",
            "editor": "textfield"
          },
          "teamFilter": {
            "title": "Team filter for matches",
            "description": "Optional club name or team ID. Only matches involving that club are returned.",
            "type": "string",
            "editor": "textfield"
          },
          "eventWindow": {
            "title": "Match window",
            "description": "Return the whole season, only future fixtures, or only completed matches.",
            "type": "string",
            "editor": "select",
            "enum": [
              "all",
              "upcoming",
              "recent"
            ],
            "enumTitles": [
              "Whole season",
              "Upcoming fixtures",
              "Recent results"
            ],
            "default": "all",
            "prefill": "all"
          },
          "includeSquad": {
            "title": "Include squad",
            "description": "For team profiles, also return the club's player list.",
            "type": "boolean",
            "default": true,
            "prefill": true
          },
          "includeEventDetails": {
            "title": "Include match lineups & stats",
            "description": "For season matches, also return lineups, statistics and timeline for each returned match. This costs extra requests.",
            "type": "boolean",
            "default": false,
            "prefill": false
          },
          "maxItems": {
            "title": "Max records",
            "description": "Hard cap on returned records. A high value requests a full season (about 380 matches in a European league); the shared free key can stop a long round walk early, in which case the run returns what it collected.",
            "type": "integer",
            "minimum": 1,
            "maximum": 5000,
            "default": 20,
            "prefill": 3
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "MLS & North American Soccer Output",
        "description": "Dataset of soccer teams, squads, player profiles, season matches, league tables, match details and league metadata across MLS, USL, NWSL, Liga MX, CONCACAF and five European leagues.",
        "properties": {
          "results": {
            "type": "string",
            "title": "Soccer records",
            "description": "Dataset containing the scraped teams, players, matches, standings or leagues.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "MLS & Soccer Records",
              "transformation": {
                "fields": [
                  "recordType",
                  "teamName",
                  "playerName",
                  "homeTeam",
                  "awayTeam",
                  "matchDate",
                  "league",
                  "points"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}