# Get NBA team rosters with player stats

**Use case:** 

Current rosters for the Los Angeles Lakers, Boston Celtics and Golden State Warriors with each player's position, age and season stats, from Flashscore. Add any NBA, NHL or other team by name.

## Input

```json
{
  "teamUrls": [
    "https://www.flashscore.com/team/arsenal/hA1Zm19f/",
    "https://www.flashscore.com/team/los-angeles-lakers/ngegZ8bg/"
  ],
  "playerUrls": [
    "https://www.flashscore.com/player/saka-bukayo/08NLEo06/"
  ],
  "searchQueries": [
    "Los Angeles Lakers",
    "Boston Celtics",
    "Golden State Warriors"
  ],
  "searchSport": "basketball",
  "teamSections": [
    "profile",
    "squad"
  ],
  "maxResultsPerTeam": 50,
  "maxTransfersPerTeam": 50,
  "squadPerCompetition": false,
  "scrapeSquadPlayers": false,
  "playerSections": [
    "profile",
    "career",
    "lastMatches",
    "transfers",
    "injuries"
  ],
  "maxItems": 10000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "team": {
    "label": "Team",
    "format": "string"
  },
  "squadScope": {
    "label": "Scope",
    "format": "string"
  },
  "positionGroup": {
    "label": "Group",
    "format": "string"
  },
  "jerseyNumber": {
    "label": "#",
    "format": "number"
  },
  "player": {
    "label": "Player",
    "format": "string"
  },
  "nationality": {
    "label": "Nationality",
    "format": "string"
  },
  "age": {
    "label": "Age",
    "format": "number"
  },
  "matchesPlayed": {
    "label": "MP",
    "format": "number"
  },
  "minutesPlayed": {
    "label": "Min",
    "format": "number"
  },
  "goals": {
    "label": "Goals",
    "format": "number"
  },
  "assists": {
    "label": "Assists",
    "format": "number"
  },
  "yellowCards": {
    "label": "YC",
    "format": "number"
  },
  "redCards": {
    "label": "RC",
    "format": "number"
  },
  "absence": {
    "label": "Absence",
    "format": "string"
  },
  "playerUrl": {
    "label": "URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Flashscore Teams & Players: Squads, Transfers](https://apify.com/incognito_mode/flashscore-team-player-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/incognito_mode/flashscore-team-player-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/incognito_mode/flashscore-team-player-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
