Belgeler — Tennis API
Giriş Yap API Anahtarı Al

tenis API Belgeleri

Basit REST API. API anahtarınızı sorgu parametresi olarak gönderin — başlık gerekmez.

Temel URL: https://live-tennis-api.com/api/v2

Kimlik Doğrulama

Her istek URL'ine api_key ekleyin. Ücretsiz hesap oluşturarak anahtar alabilirsiniz.

https://live-tennis-api.com/api/v2/<endpoint>?api_key=YOUR_KEY
API anahtarınızı herkese açık istemci kodunda veya açık repolarda paylaşmayın.

Krediler

Her API çağrısı kredinizden düşer. Krediler hiç sona ermez. Yeni hesaplara 100 ücretsiz kredi verilir.

Kalan bakiye her yanıtta credits_remaining alanında ve X-Credits-Remaining başlığında döner.

Hatalar

Tüm hatalar code ve message içeren JSON döner:

{ "error": "Invalid API key.", "code": 401 }
KodAnlam
401Eksik veya geçersiz api_key
402Yetersiz kredi
400Geçersiz parametre (örn. hatalı tarih formatı)
503Kaynak veri servisi erişilemez

GET /matches

Belirtilen tarihteki tenis maçlarını döner. Takım ve lig adlarını isteğe bağlı çevirebilirsiniz.

GET /api/v2/matches 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvet—API anahtarınız
dateHayırBugünYYYY-MM-DD formatında maç tarihi
langHayırenYanıt dili: en tr de ru (en, tr, de, ru)

Örnek istekler

# Today's matches (English) https://live-tennis-api.com/api/v2/matches?api_key=YOUR_KEY
curl "https://live-tennis-api.com/api/v2/matches?api_key=YOUR_KEY"
const data = await (await fetch('https://live-tennis-api.com/api/v2/matches?api_key=YOUR_KEY')).json();
<?php $data = json_decode(file_get_contents('https://live-tennis-api.com/api/v2/matches?api_key=YOUR_KEY'), true);
import requests data = requests.get('https://live-tennis-api.com/api/v2/matches', params={'api_key': 'YOUR_KEY'}).json()

Yanıt

{
  "status": "ok",
  "date": "2026-09-13",
  "count": 23,
  "matches": [
    {
      "id": "2e2f3c81-eef9-63ec-5373-b9751f43d68e",
      "start_time": "2026-09-12 21:15:00",
      "status": "Played",
      "player1": {
        "players": [
          {
            "id": "1cb0df81-3d4f-60e1-2cd4-d9d6f869fa2e",
            "name": "A. Candiotto",
            "country_id": "1bf74acb-d76d-f7e7-cb1d-d9409981d57b",
            "photo": "https://live-tennis-api.com/image/v2/players/1cb0df81-3d4f-60e1-2cd4-d9d6f869fa2e.png",
            "flag": "https://live-tennis-api.com/image/v2/flags/1bf74acb-d76d-f7e7-cb1d-d9409981d57b.png"
          }
        ],
        "position": 1,
        "seed": null
      },
      "player2": {
        "players": [
          {
            "id": "9fbc11c4-b65f-3df7-8632-6fbc7da4c756",
            "name": "C. Brace",
            "country_id": "c7a13592-8281-736f-2dba-f6fa53248df1",
            "photo": "https://live-tennis-api.com/image/v2/players/9fbc11c4-b65f-3df7-8632-6fbc7da4c756.png",
            "flag": "https://live-tennis-api.com/image/v2/flags/c7a13592-8281-736f-2dba-f6fa53248df1.png"
          }
        ],
        "position": 2,
        "seed": 6
      },
      "tournament": {
        "id": "cf9ef0d6-70c6-780e-d77b-376ad2a98812",
        "name": "Sao Paulo wta",
        "country": "Brazil",
        "category": "Womens Singles"
      },
      "round": "Qualifying 1st Round",
      "sets": [
        { "set": 1, "games": [3, 6] },
        { "set": 2, "games": [4, 6] }
      ],
      "score": { "sets_won": [0, 2] },
      "winner": "player2",
      "result_type": "Win",
      "has_broadcast": false,
      "has_broadcast": false
    }
  ],
  "credits_remaining": 97
}

GET /match/details

Tek bir maç için kort, başlangıç saati, turnuva, oyuncular ve mevcut set skoru gibi tüm detayları döner.

GET /api/v2/match/details 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvet—API anahtarınız
match_idEvet—/matches yanıtındaki maç kimliği
langHayırenYanıt dili: en tr de ru (en, tr, de, ru)

Örnek istekler

https://live-tennis-api.com/api/v2/match/details?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf
curl "https://live-tennis-api.com/api/v2/match/details?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf"
const data = await (await fetch('https://live-tennis-api.com/api/v2/match/details?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf')).json();
<?php $data = json_decode(file_get_contents('https://live-tennis-api.com/api/v2/match/details?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf'), true);
import requests data = requests.get('https://live-tennis-api.com/api/v2/match/details', params={'api_key': 'YOUR_KEY', 'match_id': 'b6d1d33d-925d-f37d-13a1-58cda25553cf'}).json()

Yanıt

{
  "status": "ok",
  "id": "b6d1d33d-925d-f37d-13a1-58cda25553cf",
  "match_status": "Fixture",
  "court": "Arthur Ashe Stadium",
  "start_time": "2026-09-13 18:00:00",
  "number_of_sets": 5,
  "player1": {
    "players": [{ "id": "d9c7059a-...", "name": "A. Zverev", "country_id": "a8298c84-...", "photo": "https://live-tennis-api.com/image/v2/players/d9c7059a-....png", "flag": "https://live-tennis-api.com/image/v2/flags/a8298c84-....png" }],
    "position": 1, "seed": 1
  },
  "player2": { // same shape },
  "tournament": {
    "id": "34740885-...", "name": "US Open", "surface": "Hard",
    "category": "Mens Singles", "round": "Final"
  },
  "tv_channels": { "tr": [{ "name": "Eurosport 1" }] },
  "sets": [],
  "score": { "sets_won": [0, 0] },
  "winner": null,
  "result_type": null,
  "credits_remaining": 98
}

GET /match/form

Bu maça girmeden önce her oyuncunun son 5 sonucunu (form durumu), her biri için rakip, tur ve skor bilgisiyle döner.

GET /api/v2/match/form 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvet—API anahtarınız
match_idEvet—/matches yanıtındaki maç kimliği
langHayırenYanıt dili: en tr de ru (en, tr, de, ru)

Örnek istekler

https://live-tennis-api.com/api/v2/match/form?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf
curl "https://live-tennis-api.com/api/v2/match/form?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf"
const data = await (await fetch('https://live-tennis-api.com/api/v2/match/form?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf')).json();
<?php $data = json_decode(file_get_contents('https://live-tennis-api.com/api/v2/match/form?api_key=YOUR_KEY&match_id=b6d1d33d-925d-f37d-13a1-58cda25553cf'), true);
import requests data = requests.get('https://live-tennis-api.com/api/v2/match/form', params={'api_key': 'YOUR_KEY', 'match_id': 'b6d1d33d-925d-f37d-13a1-58cda25553cf'}).json()

Yanıt

{
  "status": "ok",
  "match_id": "b6d1d33d-925d-f37d-13a1-58cda25553cf",
  "player1": {
    "series": "WWWWW",
    "recent_matches": [
      {
        "id": "2bc1008b-...",
        "start_time": "2026-09-11 19:20:00",
        "tournament": { "id": "34740885-...", "name": "US Open" },
        "round": "Semifinal",
        "opponent": { "id": "b03e422b-...", "name": "K. Khachanov", "country_id": "8956c473-...", "photo": "https://live-tennis-api.com/image/v2/players/b03e422b-....png", "flag": "https://live-tennis-api.com/image/v2/flags/8956c473-....png" },
        "result": "win",
        "score": { "sets_won": [3, 0] }
      }
      // ...up to 5 recent matches
    ]
  },
  "player2": { // same shape },
  "credits_remaining": 97
}