# SofaScore team API

Get SofaScore Team data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as output, raw, team_id, and retrieve structured data including sofaScore team identifier, three-letter scoreboard team code, team country, current team manager name, and id to build club profile headers, and show next and previous fixtures.

Documentation: https://openany.si/sofascore/sofascore-team-api/d8e15d5e-e618-4adb-bee6-2c74c4d4bf26/
API ID: d8e15d5e-e618-4adb-bee6-2c74c4d4bf26
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/team
Page update time: 2026-12-03T02:55:26.293Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:25.753Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## SofaScore Team API

Pass team\_id as a SofaScore numeric ID or team link to fetch full club metadata. The response includes identity fields (name, full\_name, code, country, founded, logo), manager, venue, pregame\_form, primary\_tournament, next\_event and previous\_event.

## What You Can Build

- **Build club profile headers**: Display logo, full\_name, country, founded year, manager and home venue in one call.
- **Show next and previous fixtures**: Read next\_event and previous\_event directly without an extra schedule lookup.
- **Chain into squad and transfer feeds**: Pass the same team\_id into Team Squad, Team Matches and Team Transfers APIs.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | SofaScore team identifier |
| `name` | Short display name of the team |
| `full_name` | Full official club or team name |
| `code` | Three-letter scoreboard team code |
| `country` | Team country |
| `founded` | Year or date the club was founded |
| `manager.name` | Current team manager name |
| `next_event.id` | SofaScore event ID for the next scheduled fixture |
| `pregame_form.avgRating` | Recent average SofaScore team rating |
| `pregame_form.form` | Recent W/D/L match form sequence |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore team API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "team_id": {
          "type": "string",
          "description": "SofaScore team id or a team link (sofascore.com/football/team/arsenal/42). 42 = Arsenal."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "team_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "code": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "founded": {
      "type": "null"
    },
    "full_name": {
      "type": "string"
    },
    "gender": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "logo": {
      "type": "string"
    },
    "manager": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "name": {
      "type": "string"
    },
    "national": {
      "type": "boolean"
    },
    "next_event": {
      "type": "object",
      "properties": {
        "away_score": {
          "type": "null"
        },
        "away_team": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "country": {
              "type": "null"
            },
            "id": {
              "type": "integer"
            },
            "logo": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "short_name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "category": {
          "type": "object",
          "properties": {
            "country_code": {
              "type": "string"
            },
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            }
          }
        },
        "custom_id": {
          "type": "string"
        },
        "home_score": {
          "type": "null"
        },
        "home_team": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "country": {
              "type": "null"
            },
            "id": {
              "type": "integer"
            },
            "logo": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "short_name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "id": {
          "type": "integer"
        },
        "round": {
          "type": "integer"
        },
        "season": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "year": {
              "type": "string"
            }
          }
        },
        "slug": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "start_time": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "status_code": {
          "type": "integer"
        },
        "status_description": {
          "type": "string"
        },
        "tournament": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            }
          }
        },
        "url": {
          "type": "string"
        },
        "winner": {
          "type": "null"
        }
      }
    },
    "pregame_form": {
      "type": "object",
      "properties": {
        "avgRating": {
          "type": "string"
        },
        "form": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "position": {
          "type": "integer"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "previous_event": {
      "type": "object",
      "properties": {
        "away_score": {
          "type": "integer"
        },
        "away_team": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "country": {
              "type": "null"
            },
            "id": {
              "type": "integer"
            },
            "logo": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "short_name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "category": {
          "type": "object",
          "properties": {
            "country_code": {
              "type": "string"
            },
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            }
          }
        },
        "custom_id": {
          "type": "string"
        },
        "home_score": {
          "type": "integer"
        },
        "home_team": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "country": {
              "type": "null"
            },
            "id": {
              "type": "integer"
            },
            "logo": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "short_name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "id": {
          "type": "integer"
        },
        "round": {
          "type": "integer"
        },
        "season": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "year": {
              "type": "string"
            }
          }
        },
        "slug": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "start_time": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "status_code": {
          "type": "integer"
        },
        "status_description": {
          "type": "string"
        },
        "tournament": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            }
          }
        },
        "url": {
          "type": "string"
        },
        "winner": {
          "type": "string"
        }
      }
    },
    "primary_tournament": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "short_name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "tournaments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      }
    },
    "url": {
      "type": "string"
    },
    "venue": {
      "type": "object",
      "properties": {
        "capacity": {
          "type": "integer"
        },
        "city": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/sofascore/v1/team?output=json&raw=0&team_id=42' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "code": "ARS",
  "country": "England",
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:23:11.111Z",
  "founded": null,
  "full_name": "Arsenal",
  "gender": "M",
  "id": 42,
  "logo": "https://img.sofascore.com/api/v1/team/42/image",
  "manager": {
    "id": 794075,
    "name": "Mikel Arteta"
  },
  "name": "Arsenal",
  "national": false,
  "next_event": {
    "away_score": null,
    "away_team": {
      "code": "ARS",
      "country": null,
      "id": 42,
      "logo": "https://img.sofascore.com/api/v1/team/42/image",
      "name": "Arsenal",
      "short_name": "Arsenal",
      "slug": "arsenal",
      "url": "https://www.sofascore.com/football/team/arsenal/42"
    },
    "category": {
      "country_code": "EN",
      "id": 1,
      "name": "England"
    },
    "custom_id": "Ardc",
    "home_score": null,
    "home_team": {
      "code": "NEW",
      "country": null,
      "id": 39,
      "logo": "https://img.sofascore.com/api/v1/team/39/image",
      "name": "Newcastle United",
      "short_name": "Newcastle",
      "slug": "newcastle-united",
      "url": "https://www.sofascore.com/football/team/newcastle-united/39"
    },
    "id": 16363662,
    "round": 11,
    "season": {
      "id": 96668,
      "name": "Premier League 26/27",
      "year": "26/27"
    },
    "slug": "arsenal-newcastle-united",
    "sport": "football",
    "start_time": "2026-11-21T17:30:00.000Z",
    "status": "notstarted",
    "status_code": 0,
    "status_description": "Not started",
    "tournament": {
      "id": 17,
      "name": "Premier League",
      "slug": "premier-league"
    },
    "url": "https://www.sofascore.com/football/match/arsenal-newcastle-united/Ardc#id:16363662",
    "winner": null
  },
  "pregame_form": {
    "avgRating": "7.83",
    "form": [
      "W",
      "W",
      "D",
      "W"
    ],
    "position": 3,
    "value": "10"
  },
  "previous_event": {
    "away_score": 0,
    "away_team": {
      "code": "HUL",
      "country": null,
      "id": 96,
      "logo": "https://img.sofascore.com/api/v1/team/96/image",
      "name": "Hull City",
      "short_name": "Hull",
      "slug": "hull-city",
      "url": "https://www.sofascore.com/football/team/hull-city/96"
    },
    "category": {
      "country_code": "EN",
      "id": 1,
      "name": "England"
    },
    "custom_id": "RsWb",
    "home_score": 1,
    "home_team": {
      "code": "ARS",
      "country": null,
      "id": 42,
      "logo": "https://img.sofascore.com/api/v1/team/42/image",
      "name": "Arsenal",
      "short_name": "Arsenal",
      "slug": "arsenal",
      "url": "https://www.sofascore.com/football/team/arsenal/42"
    },
    "id": 16363911,
    "round": 10,
    "season": {
      "id": 96668,
      "name": "Premier League 26/27",
      "year": "26/27"
    },
    "slug": "hull-city-arsenal",
    "sport": "football",
    "start_time": "2026-11-07T15:00:00.000Z",
    "status": "finished",
    "status_code": 100,
    "status_description": "Ended",
    "tournament": {
      "id": 17,
      "name": "Premier League",
      "slug": "premier-league"
    },
    "url": "https://www.sofascore.com/football/match/hull-city-arsenal/RsWb#id:16363911",
    "winner": "home"
  },
  "primary_tournament": {
    "id": 17,
    "name": "Premier League"
  },
  "short_name": "Arsenal",
  "slug": "arsenal",
  "sport": "football",
  "tournaments": [
    {
      "id": 7,
      "name": "UEFA Champions League",
      "slug": "uefa-champions-league"
    },
    {
      "id": 17,
      "name": "Premier League",
      "slug": "premier-league"
    },
    {
      "id": 21,
      "name": "EFL Cup",
      "slug": "efl-cup"
    },
    {
      "id": 346,
      "name": "Community Shield",
      "slug": "community-shield"
    },
    {
      "id": 1295,
      "name": "Emirates Cup",
      "slug": "emirates-cup"
    }
  ],
  "url": "https://www.sofascore.com/football/team/arsenal/42",
  "venue": {
    "capacity": 60704,
    "city": "London",
    "id": 624,
    "name": "Emirates Stadium"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Can team_id be a SofaScore team URL?
Yes. Pass either a numeric team ID such as 42 or a SofaScore team link.

### Does this endpoint include the team's next scheduled match?
Yes. next_event and previous_event summarize the team's upcoming and most recent fixtures.

### Does Team API return the full player roster?
No. Use the SofaScore Team Squad API for the complete player roster, shirt numbers and market values.

### How do I find a team's SofaScore ID?
Use the SofaScore Search API with type=teams or extract team IDs from Standings or Matches endpoints.

### How do I refresh manager or form details immediately?
Pass fresh=1 to skip the 24-hour cache.

### Can I trim payload size or export CSV?
Output is JSON only. Pass raw=0 to omit raw blocks or use fields to request specific keys.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-team-api/d8e15d5e-e618-4adb-bee6-2c74c4d4bf26/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
