# NBA Teams Directory Extractor

**Use case:** 

Extract NBA team IDs, names, abbreviations, logos, colors, and ESPN links for sports apps and AI tools.

## Input

```json
{
  "tool": "get_teams",
  "league": "basketball/nba",
  "date": "20250907",
  "maxItems": 50,
  "includeRaw": false
}
```

## Output

```json
{
  "recordType": {
    "label": "Type",
    "format": "text"
  },
  "tool": {
    "label": "Tool",
    "format": "text"
  },
  "league": {
    "label": "League",
    "format": "text"
  },
  "eventId": {
    "label": "Event ID",
    "format": "text"
  },
  "name": {
    "label": "Name",
    "format": "text"
  },
  "shortName": {
    "label": "Short name",
    "format": "text"
  },
  "date": {
    "label": "Date",
    "format": "date"
  },
  "statusDetail": {
    "label": "Status",
    "format": "text"
  },
  "venue": {
    "label": "Venue",
    "format": "text"
  },
  "homeTeam": {
    "label": "Home",
    "format": "text"
  },
  "homeScore": {
    "label": "Home score",
    "format": "number"
  },
  "awayTeam": {
    "label": "Away",
    "format": "text"
  },
  "awayScore": {
    "label": "Away score",
    "format": "number"
  },
  "winner": {
    "label": "Winner",
    "format": "text"
  },
  "teamName": {
    "label": "Team",
    "format": "text"
  },
  "abbreviation": {
    "label": "Abbr.",
    "format": "text"
  },
  "rank": {
    "label": "Rank",
    "format": "number"
  },
  "wins": {
    "label": "Wins",
    "format": "number"
  },
  "losses": {
    "label": "Losses",
    "format": "number"
  },
  "ties": {
    "label": "Ties",
    "format": "number"
  },
  "label": {
    "label": "Label",
    "format": "text"
  },
  "value": {
    "label": "Value",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "date"
  }
}
```

## About this Actor

This example demonstrates how to use [ESPN Sports MCP Server](https://apify.com/automation-lab/espn-sports-mcp-server) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/espn-sports-mcp-server) to learn more, explore other use cases, and run it yourself.