Skip to main content
POST
/
matches
/
head2head
Search Head to Head Matches
curl --request POST \
  --url https://padelapi.org/api/matches/head2head \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "team_1": [
    123
  ],
  "team_2": [
    123
  ]
}
'
{
  "data": [
    {
      "id": 123,
      "self": "<string>",
      "name": "<string>",
      "url": "<string>",
      "category": "<string>",
      "round": 123,
      "round_name": "<string>",
      "index": 123,
      "played_at": "<string>",
      "schedule_label": "<string>",
      "court": "<string>",
      "court_order": 123,
      "status": "<string>",
      "score": "<string>",
      "winner": "<string>",
      "started_time": "<string>",
      "duration": "<string>",
      "players": {
        "team_1": "<array>",
        "team_2": "<array>"
      },
      "connections": "<string>"
    }
  ],
  "links": {
    "first": "<string>",
    "last": "<string>",
    "prev": "<string>",
    "next": "<string>"
  },
  "meta": {
    "current_page": 123,
    "from": 123,
    "last_page": 123,
    "links": [
      {
        "url": "<string>",
        "label": "<string>",
        "active": true
      }
    ],
    "path": "<string>",
    "per_page": 123,
    "to": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
team_1
integer[]
required
Required array length: 1 - 2 elements
team_2
(integer | null)[] | null
Required array length: 1 - 2 elements

Response

Paginated set of MatchResource

data
MatchResource ยท object[]
required
meta
object
required