versus
Versus results between two teams ⬜ 🟨 🟦 🟩
GET
https://api.soccerfootball.info/v1/teams/versus/?x=IDX&y=IDY
This endpoint returns with all matches between two teams and its results
You can define two teams, one with x
and another with y
With parameter w
you can define the time lapse "all" (from 2017 01 01), "1y" last year, "6m" last 6 months.
The parameter l
must be a language code getted from languages/list endpoint.
Some elements such as championship and team names can be translated.
Format response can be "json" or "csv" (Default "json")
Query Parameters
Name | Type | Description |
---|---|---|
t | string | Your API Token |
f | string | Format response can be "json" or "csv" (default "csv") |
x | string | ID of X TEAM |
y | string | ID of Y TEAM |
w | string | When get time can be "all", "1y", "6m" (default value is "6m") |
l | string | Language code (default value is "en_US") |
Headers
Name | Type | Description |
---|---|---|
X-RapidAPI-Key | string | Your API token |
X-RapidAPI-Host | string | soccerfootballinfo.rapidapi.com |
Example of code for direct API
Example of code for RapidAPI
More example of code on rapidAPI
Last updated