---
title: "SofaScore event head-to-head"
method: GET
path: "/sofascore/event-h2h"
tags: ["SofaScore"]
---

# SofaScore event head-to-head

`GET /sofascore/event-h2h`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/sofascore/event-h2h`
- Auth: API key in header `x-api-key`

Returns the historical head-to-head win/draw record between a match's two teams (and managers, when available) from SofaScore.

## Query parameters

- `id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreEventH2HResponseDoc
  - `code` integer
  - `data` SofascoreEventH2HResponse
    - `event_id` integer: SofaScore event id the record belongs to.
    - `fetched_at` string: Time the data was fetched, in UTC (RFC 3339).
    - `manager_duel` SofascoreTeamDuel
      - `away_wins` integer: Past meetings won by the away side of this match.
      - `draws` integer: Past meetings that ended in a draw.
      - `home_wins` integer: Past meetings won by the home side of this match.
    - `source_url` string: SofaScore URL the data was read from.
    - `team_duel` SofascoreTeamDuel
      - `away_wins` integer: Past meetings won by the away side of this match.
      - `draws` integer: Past meetings that ended in a draw.
      - `home_wins` integer: Past meetings won by the home side of this match.
  - `msg` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
