> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# A SofaScore team with matches, squad and transfers

> Fetches a team from sofascore.com (tennis players and other individual competitors are teams there too): `team` (name, short name, code, country, category, main tournament, manager, venue with capacity, foundation date, followers, url) plus the `include` sections: `last_matches` (most recent first) and `next_matches` (soonest first) in the events shape, `squad` (players with position, shirt number, birth date, height, foot, country, market value, contract), `tournaments` the team plays and `transfers` (in and out with fee and date). `team` takes an id, a link or a name.



## OpenAPI

````yaml /api-reference/openapi.json post /sports/sofascore-team
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Documented here:
    page-source extraction, Google SERP scraping, image fetch, and the dedicated
    plugin endpoints (search engines, marketplaces, reviews, travel, social and
    more). All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /sports/sofascore-team:
    post:
      tags:
        - Plugins
      summary: A SofaScore team with matches, squad and transfers
      description: >-
        Fetches a team from sofascore.com (tennis players and other individual
        competitors are teams there too): `team` (name, short name, code,
        country, category, main tournament, manager, venue with capacity,
        foundation date, followers, url) plus the `include` sections:
        `last_matches` (most recent first) and `next_matches` (soonest first) in
        the events shape, `squad` (players with position, shirt number, birth
        date, height, foot, country, market value, contract), `tournaments` the
        team plays and `transfers` (in and out with fee and date). `team` takes
        an id, a link or a name.
      operationId: sofascore_team_sports_sofascore_team_post
      parameters:
        - name: team
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The team (or a tennis player, MMA fighter and other individual
              competitors): its id (e.g. 2829), a sofascore.com team link, or a
              name such as 'Real Madrid' (best search match).
            title: Team
          description: >-
            The team (or a tennis player, MMA fighter and other individual
            competitors): its id (e.g. 2829), a sofascore.com team link, or a
            name such as 'Real Madrid' (best search match).
        - name: sport
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The sport: football, basketball, tennis, ice-hockey,
              american-football, baseball, handball, volleyball, cricket, rugby,
              futsal, table-tennis, esports, darts, snooker, mma, aussie-rules,
              waterpolo, floorball, bandy, badminton, beach-volley,
              minifootball, padel, motorsport, cycling (soccer, hockey, nba, nfl
              and the like are accepted). Optional; narrows the search or name
              lookup to one sport.
            title: Sport
          description: >-
            The sport: football, basketball, tennis, ice-hockey,
            american-football, baseball, handball, volleyball, cricket, rugby,
            futsal, table-tennis, esports, darts, snooker, mma, aussie-rules,
            waterpolo, floorball, bandy, badminton, beach-volley, minifootball,
            padel, motorsport, cycling (soccer, hockey, nba, nfl and the like
            are accepted). Optional; narrows the search or name lookup to one
            sport.
        - name: include
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Sections to add, comma separated: last_matches, next_matches,
              squad, tournaments, transfers (or all / none). Default
              last_matches,next_matches.
            title: Include
          description: >-
            Sections to add, comma separated: last_matches, next_matches, squad,
            tournaments, transfers (or all / none). Default
            last_matches,next_matches.
      responses:
        '200':
          description: JSON with the `team` and the asked-for sections.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters.
        '404':
          description: No such team.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: SofaScore refused every attempt or did not answer in time.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.