Giriş Yap API Anahtarı Al

Basketbol API Belgeleri

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

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

Kimlik Doğrulama

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

https://live-basketball-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

Returns basketball matches for a given date, grouped by area and competition. Optionally translate team and competition names.

GET /api/v2/matches 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
dateHayırBugünMatch date in YYYY-MM-DD format
langHayırenResponse language (en, tr, de, ru)

Örnek istekler

https://live-basketball-api.com/api/v2/matches?api_key=YOUR_KEY
curl "https://live-basketball-api.com/api/v2/matches?api_key=YOUR_KEY"

Yanıt

{
  "status": "ok",
  "date": "2026-09-14",
  "count": 52,
  "matches": [
    {
      "id": "1eqn6tjzbimqz9hmlx4nce1as",
      "start_time": "2026-09-13 22:00:00",
      "status": "Playing",
      "period": "Third Quarter",
      "clock": { "minute": 0, "second": 365 },
      "team1": { "id": "ebcguhyffr8em9ift0qwt7llg", "name": "Santos U23", "short_name": "SAN", "logo": "https://live-basketball-api.com/image/v2/teams/ebcguhyffr8em9ift0qwt7llg.png" },
      "team2": { // same shape },
      "competition": { "id": "...", "name": "1a Divisão Sub-23", "area": { "id": "...", "name": "Brazil", "flag": "https://live-basketball-api.com/image/v2/flags/....png" } },
      "round": "1st Round",
      "quarters": [ { "quarter": 1, "score": [20, 20] } ],
      "score": { "final": [50, 50] },
      "winner": null,
      "is_awarded": false,
      "has_broadcast": false
    }
  ],
  "credits_remaining": 99
}

GET /match/details

Returns full details for a single match: quarter-by-quarter score, teams, competition, season, round and venue.

GET /api/v2/match/details 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
match_idEvetMatch ID from /matches
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/match/details?api_key=YOUR_KEY&match_id=1eqn6tjzbimqz9hmlx4nce1as

GET /match/form

Returns each team's last 5 results (recent form) leading into this match, with opponent and score for each.

GET /api/v2/match/form 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
match_idEvetMatch ID from /matches
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/match/form?api_key=YOUR_KEY&match_id=1eqn6tjzbimqz9hmlx4nce1as

GET /team/players

Returns a team's full roster with per-player season stats (games played, points, assists, rebounds).

GET /api/v2/team/players 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
team_idEvetTeam ID
season_idHayıractive seasonSeason ID (from the seasons list in this endpoint's response) — roster differs by season
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/team/players?api_key=YOUR_KEY&team_id=dk1qmybcn1uls9bfgy65e1dug

GET /team/matches

Returns a team's competition standings table and grouped fixture schedule.

GET /api/v2/team/matches 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
team_idEvetTeam ID
season_idHayıractive seasonSeason ID (from the seasons list in this endpoint's response) — fixtures/standings differ by season
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/team/matches?api_key=YOUR_KEY&team_id=dk1qmybcn1uls9bfgy65e1dug

GET /competition/details

Returns competition info (seasons, area), the standings table for league-format competitions (null for cups/friendlies that don't have one), plus its full round-by-round schedule and results.

GET /api/v2/competition/details 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
competition_idEvetCompetition ID
season_idHayıractive seasonSeason ID (from the seasons list in this endpoint's response) — defaults to the active season
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/competition/details?api_key=YOUR_KEY&competition_id=cyohiao9118myq8vhllxvnliy

Searches for basketball players by name. Results are already filtered to basketball only — the underlying feed covers every sport, so any player from another sport is dropped before it reaches you.

GET /api/v2/player/search 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
qEvetSearch text (player name)
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/player/search?api_key=YOUR_KEY&q=lebron%20james

Yanıt

{
  "status": "ok",
  "query": "lebron james",
  "players": [
    { "id": "1ryu7mdwimohk0gin1u89b6x", "name": "LeBron James", "photo": "https://live-basketball-api.com/image/v2/players/....png", "area": { "id": "...", "name": "USA" } }
  ]
}

Searches for basketball teams by name. Results are already filtered to basketball only.

GET /api/v2/team/search 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
qEvetSearch text (team name)
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/team/search?api_key=YOUR_KEY&q=boston%20celtics

Yanıt

{
  "status": "ok",
  "query": "boston celtics",
  "teams": [
    { "id": "...", "name": "Boston", "logo": "https://live-basketball-api.com/image/v2/teams/....png", "area": { "id": "...", "name": "USA" } }
  ]
}

Searches for basketball competitions/leagues by name. Use the returned id with GET /competition/details to get standings and fixtures.

GET /api/v2/league/search 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
qEvetSearch text (league/competition name)
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/league/search?api_key=YOUR_KEY&q=Türkiye%20Sigorta%20BSL

Yanıt

{
  "status": "ok",
  "query": "Türkiye Sigorta BSL",
  "leagues": [
    { "id": "c744bzsdcz9n7pz90phxoxuh9", "name": "Türkiye Sigorta BSL", "area": { "id": "...", "name": "Türkiye" } }
  ]
}

GET /player/details

Returns a player's profile (position, height, weight, nationality, current club) plus their full club and international career history, broken down by team, season and competition (games played, points, assists).

GET /api/v2/player/details 1 credit

Parametreler

ParametreZorunluVarsayılanAçıklama
api_keyEvetAPI anahtarınız
player_idEvetPlayer ID, from /player/search or a roster in /team/players
langHayırenResponse language (en, tr, de, ru)
https://live-basketball-api.com/api/v2/player/details?api_key=YOUR_KEY&player_id=1ryu7mdwimohk0gin1u89b6x

Yanıt

{
  "status": "ok",
  "player": {
    "id": "1ryu7mdwimohk0gin1u89b6x", "name": "L. James", "first_name": "LeBron", "last_name": "James",
    "photo": "https://live-basketball-api.com/image/v2/players/....png",
    "nationality": "USA", "position": "Forward", "height": "206 cm", "weight": "113 kg",
    "birthdate": "1984-12-30", "current_club": "Philadelphia", "shirt_number": "23"
  },
  "club_career": [
    {
      "team": { "id": "2ja1jlnhsy0ksuvvxzff3ky9e", "name": "LA Lakers", "logo": "https://live-basketball-api.com/image/v2/teams/....png" },
      "date_start": "2018-07-09Z", "date_end": "2026-07-25Z",
      "seasons": [
        { "name": "2025/2026", "competitions": [
          { "competition": { "id": "...", "name": "NBA" }, "games_played": 70, "points": 1488, "avg_points": 21.3, "assists": 507 }
        ] }
      ]
    }
  ],
  "international_career": [ // same shape, national team stints ]
}