tennisdatabaseAPI

Tennis API documentation

Ctrl K
DocsDoublesDoubles pair
Doubles

Doubles pair

MCP tool doubles_pair
GEThttps://api.tennisdatabaseapi.com/v1/doubles/pairs/{id}

A doubles pair, their record together and every match they played, newest first.

Free key not includedLive includedArchive includedComplete included
Try itRuns against the live API with your key. Your key stays in this browser.API
GEThttps://api.tennisdatabaseapi.com/v1/doubles/pairs/dp_f2yzf9vk?per_page=2

1Parameters

NameInTypeWhat it is
idrequiredpathidAn id from another answer, such as dp_ and 8 characters. Ids are our own and never change.
page, per_pagequeryintegerPaging: 50 a page unless you ask, at most 50. See Paging.
cursorquerystringThe meta.next_cursor of the page before, to walk a long list.

Anything else in the address answers 422 unknown_parameter, with the list of parameters this endpoint takes.

2Request

curl -H "Authorization: Bearer $TDA_KEY" \
  "https://api.tennisdatabaseapi.com/v1/doubles/pairs/dp_f2yzf9vk?per_page=2"

The code follows the form in Try it, with your key in it once you have entered one. Without a key it reads $TDA_KEY.

3Answer

{
  "data": {
    "pair": {
      "id": "dp_f2yzf9vk",
      "players": [
        { "id": "pl_n92mxrer", "name": "Bernard A.", "country": "USA" },
        { "id": "pl_a6k8b4wz", "name": "Aguilera Guerrero E.", "country": "Mexico" }
      ]
    },
    "tour": "men",
    "first_match": "2026-11-17",
    "last_match": "2026-11-17",
    "record": { "won": 1, "lost": 0 },
    "matches": [
      {
        "id": "dm_wkms22nv",
        "date": "2026-11-17",
        "tour": "men",
        "event_type": "doubles",
        "has_statistics": true,
        "has_point_by_point": true,
        "tournament": {
          "id": "tn_6tp28yp7",
          "name": "Men's ITF, event not recorded",
          "tier": "itf",
          "season": 2026,
          "surface": null
        },
        "round": "final",
        "winners": {
          "id": "dp_f2yzf9vk",
          "players": [
            { "id": "pl_n92mxrer", "name": "Bernard A.", "country": "USA" },
            { "id": "pl_a6k8b4wz", "name": "Aguilera Guerrero E.", "country": "Mexico" }
          ],
          "seed": null
        },
        "losers": {
          "id": "dp_k1h80z60",
          "players": [
            { "id": "pl_wtxnww97", "name": "Magadan A.", "country": "Mexico" },
            { "id": "pl_n261h927", "name": "Salazar A.", "country": "Mexico" }
          ],
          "seed": null
        },
        "score": "4-6 6-3 10-6",
        "status": "completed",
        "odds": {
          "closing": { "winners": 2.34, "losers": 1.52 }
        }
      }
    ]
  },
  "meta": {
    "count": 1,
    "next_cursor": null,
    "page": 1,
    "per_page": 2,
    "total": 1,
    "total_pages": 1,
    "next_page": null,
    "prev_page": null
  }
}

Real answers from the API, made 2026-11-18. Long lists are cut to three items here.

4Fields

FieldTypeWhat it holds
pair, tour, first_match, last_matchmixedThe pair and when they played together
recordobjectwon and lost together
matchesarrayTheir matches, newest first, as in Doubles on a day

5Errors

400bad_requestA value out of range, such as a date or a tier that is not one of the list.
401unauthorizedNo key, or a key that is unknown or revoked.
403upgrade_requiredThe free key: this endpoint is on the Live plan and above.
404not_foundNo such id.
422unknown_parameterA parameter this endpoint does not take.
429rate_limitedToo many calls this minute, or the allowance used (quota_exceeded).