Get Head To Head [V1]

Returns the historical head-to-head record between two teams in a single competition. The response includes the two teams' current positions in the league table, alongside previous matches.

The number of matches is limited by the limit parameter (max. 10)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
Defaults to opta

The provider that the data was received from

string

Used when returning images and for usage tracking. If no client ID is passed, will draw from the global stock images, when a client ID is passed, it will attempt to use a client's version of those images

int64
required

The competition ID to retrieve match data for.

integer

The season to filter out matches for

int64
required

The first Team ID for comparison purposes

int64
required

The second Team ID for comparison purposes

boolean
Defaults to false

Include images for competition and team badges. Used in combination with clientId to indicate whether to use the global image library use a client's images

integer
≤ 10
Defaults to 4

How many previous matches to return

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json