# Live NBA scores and results from Flashscore

**Use case:** 

NBA games from today and yesterday, live and finished, with quarter scores and status. Schedule it every minute with Only changed on and it returns just the games whose score moved.

## Input

```json
{
  "sports": [
    "basketball"
  ],
  "days": [
    "0",
    "-1"
  ],
  "timezone": "UTC",
  "statuses": [
    "live",
    "finished"
  ],
  "competitions": [
    "USA: NBA"
  ],
  "topLeaguesOnly": false,
  "includeIncidents": false,
  "includeStatistics": false,
  "includeLineups": false,
  "includeMissingPlayers": false,
  "includeOdds": false,
  "oddsCountry": "GB",
  "oddsScopes": [
    "FULL_TIME"
  ],
  "includeH2H": false,
  "h2hLimit": 10,
  "includePointByPoint": false,
  "includeStandings": false,
  "includeMarkdown": false,
  "maxItems": 100,
  "maxMatchesPerLeague": 200,
  "onlyChanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 8,
  "maxRetries": 5
}
```

## Output

```json
{
  "sport": {
    "label": "Sport",
    "format": "string"
  },
  "competition": {
    "label": "Competition",
    "format": "string"
  },
  "homeTeam": {
    "label": "Home",
    "format": "string"
  },
  "homeScore": {
    "label": "Home score",
    "format": "integer"
  },
  "awayScore": {
    "label": "Away score",
    "format": "integer"
  },
  "awayTeam": {
    "label": "Away",
    "format": "string"
  },
  "statusDetail": {
    "label": "Status detail",
    "format": "string"
  },
  "live": {
    "label": "Live state",
    "format": "object"
  },
  "changeType": {
    "label": "Change since last run",
    "format": "string"
  },
  "changedFields": {
    "label": "Changed fields",
    "format": "array"
  },
  "url": {
    "label": "Match URL",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Flashscore Scraper: Live Scores, Results & Odds Actor is ready to run with the inputs already set for "Live NBA scores and results from Flashscore". [Sign up or log in](https://console.apify.com/create-task-from-example/j7rwAO8TmgaOeVDNm) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Live NBA scores and results from Flashscore" task

The Flashscore Scraper: Live Scores, Results & Odds Actor will start running based on the input automatically. You can also change all the input fields, like sports, days, and more, to match your specific use case.

### 3. Receive the "Live NBA scores and results from Flashscore" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as sport, competition, home, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Live NBA scores and results from Flashscore" task via API](https://apify.com/panix/flashscore-scraper.md).

## FAQ

### How do I get only score changes?

Turn on Only changed, give it a monitor name and run the task on a schedule. Games whose score did not change are free and not returned.

### Can I use another sport or league?

Yes. Change the sport and the competition, for example hockey with USA: NHL or football with England: Premier League.

## About this Actor

This example demonstrates how to use [Flashscore Scraper: Live Scores, Results & Odds](https://apify.com/panix/flashscore-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/panix/flashscore-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/panix/flashscore-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`).
