{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soccer-data-co/json-schema/soccer-data-co-get-teams-response-schema.json",
  "title": "GetTeamsResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/soccer-data-co-openapi-generated.yml#/components/schemas/GetTeamsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "Array of team objects."
    },
    "data[].id": {
      "type": "string",
      "description": "The team's id. Pass it as team_id to other endpoints."
    },
    "data[].name": {
      "type": "string",
      "description": "The team's full name."
    },
    "data[].short_name": {
      "type": "string",
      "description": "A shorter name for tight spaces."
    },
    "data[].country": {
      "type": "string",
      "description": "The team's country."
    },
    "data[].is_mens_team": {
      "type": "boolean",
      "description": "true for a men's team, false for a women's team, null when unknown."
    },
    "data[].primary_competition": {
      "type": "object",
      "description": "The main competition the team plays in. Can be null."
    },
    "data[].primary_competition.id": {
      "type": "string",
      "description": "That competition's id."
    },
    "data[].primary_competition.name": {
      "type": "string",
      "description": "That competition's name."
    },
    "meta.page": {
      "type": "integer",
      "description": "The page you're on."
    },
    "meta.per_page": {
      "type": "integer",
      "description": "Results per page."
    },
    "meta.total": {
      "type": "integer",
      "description": "Matching teams across all pages."
    },
    "meta.total_pages": {
      "type": "integer",
      "description": "How many pages there are."
    }
  }
}