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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Get Head-to-Head Fixtures

> Get Head-to-Head Fixtures

## Request contract

* **Method and path:** POST /apis/v1/api-sports/get-fixtures-headtohead
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/api-sports/get-fixtures-headtohead`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/api-sports.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "api-sports.get-fixtures-headtohead",
  "method": "POST",
  "path": "/apis/v1/api-sports/get-fixtures-headtohead",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "date": {
              "description": "Filter fixtures by a specific date in YYYY-MM-DD format",
              "examples": [
                "2020-01-01"
              ],
              "type": "string"
            },
            "from": {
              "description": "Start date for filtering (YYYY-MM-DD)",
              "examples": [
                "2020-01-01"
              ],
              "type": "string"
            },
            "h2h": {
              "description": "Team IDs in 'ID-ID' format, e.g., '33-34'",
              "examples": [
                "33-34"
              ],
              "pattern": "^\\d+-\\d+$",
              "type": "string"
            },
            "last": {
              "description": "Number of most recent past fixtures to retrieve",
              "type": "integer"
            },
            "league": {
              "description": "League ID to filter fixtures",
              "type": "integer"
            },
            "next": {
              "description": "Number of upcoming fixtures to retrieve",
              "type": "integer"
            },
            "season": {
              "description": "Season year in YYYY format, e.g., 2020",
              "type": "integer"
            },
            "status": {
              "description": "Filter fixtures by status code, e.g., 'FT'",
              "type": "string"
            },
            "timezone": {
              "description": "Specify IANA timezone, e.g., 'Europe/London'",
              "type": "string"
            },
            "to": {
              "description": "End date for filtering (YYYY-MM-DD)",
              "examples": [
                "2020-12-31"
              ],
              "type": "string"
            }
          },
          "required": [
            "h2h"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.000384 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/api-sports.json POST /apis/v1/api-sports/get-fixtures-headtohead
openapi: 3.1.0
info:
  description: ''
  title: API-Sports
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    api-sports:
      description: ''
      title: API-Sports
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 79c3a316fdeba0e2a5966a14b3bd8b262de8099a119b3fcdb47de874db1aed3e
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/api-sports/get-afl-games
    - /apis/v1/api-sports/get-afl-games-statistics-players
    - /apis/v1/api-sports/get-afl-seasons
    - /apis/v1/api-sports/get-afl-standings
    - /apis/v1/api-sports/get-baseball-games-h2h
    - /apis/v1/api-sports/get-basketball-bets
    - /apis/v1/api-sports/get-basketball-bookmakers
    - /apis/v1/api-sports/get-basketball-games
    - /apis/v1/api-sports/get-basketball-games-statistics-players
    - /apis/v1/api-sports/get-basketball-standings
    - /apis/v1/api-sports/get-basketball-statistics
    - /apis/v1/api-sports/get-coachs
    - /apis/v1/api-sports/get-countries
    - /apis/v1/api-sports/get-fighters-records
    - /apis/v1/api-sports/get-fixtures
    - /apis/v1/api-sports/get-fixtures-events
    - /apis/v1/api-sports/get-fixtures-headtohead
    - /apis/v1/api-sports/get-fixtures-lineups
    - /apis/v1/api-sports/get-fixtures-players
    - /apis/v1/api-sports/get-fixtures-rounds
    - /apis/v1/api-sports/get-fixtures-statistics
    - /apis/v1/api-sports/get-games-events
    - /apis/v1/api-sports/get-games-quarters
    - /apis/v1/api-sports/get-games-statistics-teams
    - /apis/v1/api-sports/get-injuries
    - /apis/v1/api-sports/get-leagues
    - /apis/v1/api-sports/get-leagues-seasons
    - /apis/v1/api-sports/get-mma-categories
    - /apis/v1/api-sports/get-mma-fighters
    - /apis/v1/api-sports/get-mma-fights
    - /apis/v1/api-sports/get-mma-fights-results
    - /apis/v1/api-sports/get-mma-fights-statistics-fighters
    - /apis/v1/api-sports/get-nba-games-statistics
    - /apis/v1/api-sports/get-nba-players-statistics
    - /apis/v1/api-sports/get-odds
    - /apis/v1/api-sports/get-odds-bets
    - /apis/v1/api-sports/get-odds-bookmakers
    - /apis/v1/api-sports/get-odds-live
    - /apis/v1/api-sports/get-odds-live-bets
    - /apis/v1/api-sports/get-odds-mapping
    - /apis/v1/api-sports/get-players
    - /apis/v1/api-sports/get-players-profiles
    - /apis/v1/api-sports/get-players-seasons
    - /apis/v1/api-sports/get-players-squads
    - /apis/v1/api-sports/get-players-statistics
    - /apis/v1/api-sports/get-players-teams
    - /apis/v1/api-sports/get-players-top-assists
    - /apis/v1/api-sports/get-players-top-red-cards
    - /apis/v1/api-sports/get-players-top-scorers
    - /apis/v1/api-sports/get-players-top-yellow-cards
    - /apis/v1/api-sports/get-predictions
    - /apis/v1/api-sports/get-sidelined
    - /apis/v1/api-sports/get-standings-stages
    - /apis/v1/api-sports/get-teams
    - /apis/v1/api-sports/get-teams-seasons
    - /apis/v1/api-sports/get-teams-statistics
    - /apis/v1/api-sports/get-timezone
    - /apis/v1/api-sports/get-transfers
    - /apis/v1/api-sports/get-trophies
    - /apis/v1/api-sports/get-venues
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:ab8cc24e81e914c8e82fbc7116768475da96e58acdbe2d4e1c67d2e3d4d67b5c
    facts_hash: 79c3a316fdeba0e2a5966a14b3bd8b262de8099a119b3fcdb47de874db1aed3e
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: api-sports
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/api-sports/get-fixtures-headtohead:
    post:
      tags:
        - API-Sports
      summary: Get Head-to-Head Fixtures
      operationId: api-sports.get-fixtures-headtohead
      requestBody:
        content:
          application/json:
            schema:
              properties:
                date:
                  description: Filter fixtures by a specific date in YYYY-MM-DD format
                  examples:
                    - '2020-01-01'
                  type: string
                from:
                  description: Start date for filtering (YYYY-MM-DD)
                  examples:
                    - '2020-01-01'
                  type: string
                h2h:
                  description: Team IDs in 'ID-ID' format, e.g., '33-34'
                  examples:
                    - 33-34
                  pattern: ^\d+-\d+$
                  type: string
                last:
                  description: Number of most recent past fixtures to retrieve
                  type: integer
                league:
                  description: League ID to filter fixtures
                  type: integer
                next:
                  description: Number of upcoming fixtures to retrieve
                  type: integer
                season:
                  description: Season year in YYYY format, e.g., 2020
                  type: integer
                status:
                  description: Filter fixtures by status code, e.g., 'FT'
                  type: string
                timezone:
                  description: Specify IANA timezone, e.g., 'Europe/London'
                  type: string
                to:
                  description: End date for filtering (YYYY-MM-DD)
                  examples:
                    - '2020-12-31'
                  type: string
              required:
                - h2h
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request POST \
              --url https://api.aisa.one/apis/v1/api-sports/get-fixtures-headtohead \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "h2h": "33-34"
            }'
components:
  schemas:
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__16ad86826e1aeeeb
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__16ad86826e1aeeeb:
      properties:
        errors:
          anyOf:
            - items:
                type: string
              type: array
            - additionalProperties:
                type: string
              type: object
        get:
          type: string
        paging:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__f284f27db6478322
        parameters:
          anyOf:
            - items:
                type: string
              type: array
            - additionalProperties:
                type: string
              type: object
        response:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__345545c1bfc42523
          type: array
        results:
          type: integer
      required:
        - get
        - errors
        - results
        - paging
        - response
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__f284f27db6478322:
      properties:
        current:
          type: integer
        total:
          type: integer
      required:
        - current
        - total
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__345545c1bfc42523:
      properties:
        fixture:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__66962072f3b2abc3
        goals:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__35105e64c2d81bee
        league:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__837e0440fd9e59c1
        score:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__99c793dded8725e1
        teams:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__67ff0e500730397d
      required:
        - fixture
        - league
        - teams
        - goals
        - score
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__66962072f3b2abc3:
      properties:
        date:
          type: string
        id:
          type: integer
        periods:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__2729ae48372c7b70
        referee:
          type: string
        status:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__e83326c749332272
        timestamp:
          type: integer
        timezone:
          type: string
        venue:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__b41373aca3716aa4
      required:
        - id
        - timezone
        - date
        - timestamp
        - periods
        - venue
        - status
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__35105e64c2d81bee:
      properties:
        away:
          type: integer
        home:
          type: integer
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__837e0440fd9e59c1:
      properties:
        country:
          type: string
        flag:
          type: string
        id:
          type: integer
        logo:
          type: string
        name:
          type: string
        round:
          type: string
        season:
          type: integer
        standings:
          type: boolean
      required:
        - id
        - name
        - country
        - logo
        - season
        - round
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__99c793dded8725e1:
      properties:
        extratime:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__c0d78d9d22b4985b
        fulltime:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__c0d78d9d22b4985b
        halftime:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__c0d78d9d22b4985b
        penalty:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__c0d78d9d22b4985b
      required:
        - halftime
        - fulltime
        - extratime
        - penalty
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__67ff0e500730397d:
      properties:
        away:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__5a5d75cf7df8e8e1
        home:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__5a5d75cf7df8e8e1
      required:
        - home
        - away
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__2729ae48372c7b70:
      properties:
        first:
          type: integer
        second:
          type: integer
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__e83326c749332272:
      properties:
        elapsed:
          type: integer
        extra:
          type: integer
        long:
          type: string
        short:
          type: string
      required:
        - long
        - short
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__b41373aca3716aa4:
      properties:
        city:
          type: string
        id:
          type: integer
        name:
          type: string
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__c0d78d9d22b4985b:
      properties:
        away:
          type: integer
        home:
          type: integer
      type: object
    Response576A0Ea506F3_connect_API_SPORTS_GET_FIXTURES_HEADTOHEAD__output__5a5d75cf7df8e8e1:
      properties:
        id:
          type: integer
        logo:
          type: string
        name:
          type: string
        winner:
          type: boolean
      required:
        - id
        - name
        - logo
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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