-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathisports-api-basketball-common-api-api-openapi.yml
More file actions
355 lines (340 loc) · 15.6 KB
/
Copy pathisports-api-basketball-common-api-api-openapi.yml
File metadata and controls
355 lines (340 loc) · 15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
openapi: 3.2.0
info:
title: iSports Basketball Common API
version: '2026-08-09'
description: 'Key-authenticated REST/HTTP data feeds for football (soccer) and basketball: livescores, schedules and results, match events, lineups, live text, statistics, standings, player and team profiles, transfers, referees, multi-language name packs, live-animation feeds, and pre-match / in-play / historical odds across 200+ bookmakers.'
termsOfService: https://www.isportsapi.com/en/home/terms.html
contact:
name: iSports API
url: https://www.isportsapi.com/en/
x-derived-by: API Evangelist enrichment pipeline
x-derived-from: https://www.isportsapi.com/en/docs.html
x-derived-on: '2026-08-09'
servers:
- url: https://api.isportsapi.com
description: Primary API host
- url: https://api2.isportsapi.com
description: Alternate host, documented for when the primary host is slow or unreachable
security:
- apiKeyQuery: []
tags:
- name: Basketball Common API
paths:
/sport/basketball/schedule/modify:
get:
operationId: getBasketballScheduleModify
summary: Match Modify Record
description: '• This API endpoint returns records of schedule deletions and match time modifications from the past 24 hours.
• You can use it with the Schedule & Results (Basic) endpoint to keep locally stored match data in sync.
• Tips: You have access to all the basketball Common API endpoints with any valid paid basketball plans.'
tags:
- Basketball Common API
responses:
'200':
description: Standard iSports envelope. `code` 0 indicates success; a non-zero `code` carries the error in `message` (HTTP status is 200 in both cases).
content:
application/json:
schema:
type: object
properties:
code:
type: integer
description: 0 on success; 2 on invalid/illegal api_key
message:
type: string
description: '"success" on success; otherwise the error message'
data:
type: array
items:
type: object
properties:
matchId:
type: string
description: Unique ID of the match.
type:
type: string
description: "modify: match time was modified \n delete: match was deleted"
matchTime:
type: integer
description: "Match scheduled time (Unix timestamp, GMT+0). \n \n Returns 0 if type is delete."
modifyTime:
type: integer
description: Time the modification or deletion was recorded (Unix timestamp, GMT+0).
externalDocs:
description: iSports API documentation
url: https://www.isportsapi.com/en/docs.html?id=34
x-documentation:
- https://www.isportsapi.com/en/docs.html?id=34
x-rate-limit: This interface is limited to 60 seconds/call;
x-recommended-call-frequency: 90 seconds/call
x-plan-products:
- Live Data
- Odds
- Stats
x-doc-modified: '2026-07-09'
/sport/basketball/schedule/basic:
get:
operationId: getBasketballScheduleBasic
summary: Schedule & Results (Basic)
description: '• This API endpoint returns basic schedule and result information for basketball matches. You can use it with the Match Modify Record endpoint to track any post-publication corrections to match data.
• One of the following parameters is required: date, leagueId, or matchId — these three cannot be used together in the same request. The season parameter can only be used in combination with leagueId, to retrieve matches for a specific season; if omitted, the current season is returned by default.
• Tips: You have access to all the basketball Common API endpoints with any valid paid basketball plans.'
tags:
- Basketball Common API
parameters:
- name: date
in: query
required: false
schema:
type: string
description: Match date, format yyyy-MM-dd, e.g. 2026-07-01.
- name: leagueId
in: query
required: false
schema:
type: string
description: Filter by a specific league or cup ID.
- name: season
in: query
required: false
schema:
type: string
description: "Used together with leagueId to retrieve matches for a specific season, e.g. 25-26. \n \n \n\nReturns the current season by default."
- name: matchId
in: query
required: false
schema:
type: string
description: Filter by a specific match ID. Only matches from the current season are supported.
responses:
'200':
description: Standard iSports envelope. `code` 0 indicates success; a non-zero `code` carries the error in `message` (HTTP status is 200 in both cases).
content:
application/json:
schema:
type: object
properties:
code:
type: integer
description: 0 on success; 2 on invalid/illegal api_key
message:
type: string
description: '"success" on success; otherwise the error message'
data:
type: array
items:
type: object
properties:
matchId:
type: string
description: Unique ID of the match.
leagueId:
type: string
description: Unique ID of the league or cup.
leagueName:
type: string
description: Short name of the league or cup, e.g. NBA.
quarterCount:
type: integer
description: "Number of quarters in the match. \n\n 2: 2-quarter format 4: 4-quarter format"
matchTime:
type: integer
description: Scheduled match time (Unix timestamp, GMT+0).
status:
type: integer
description: "0: Not started \n 1: First quarter \n 2: Second quarter \n 3: Third quarter \n 4: Fourth quarter \n 5: First OT \n 6: Second OT \n 7: Third OT \n 50: Half-time \n -1: Finished \n -2: TBD \n -3: Interrupted \n -4: Cancelled \n -5: Postponed"
homeId:
type: string
description: Unique ID of the home team.
homeName:
type: string
description: Name of the home team.
awayId:
type: string
description: Unique ID of the away team.
awayName:
type: string
description: Name of the away team.
homeScore:
type: integer
description: Final or current score of the home team.
awayScore:
type: integer
description: Final or current score of the away team.
explain:
type: string
description: 'The latest live-text event description for the match, e.g. [Spurs] [SAS] Team Timeout: Regular.'
neutral:
type: boolean
description: "true: match is played at a neutral venue \n false: match is not played at a neutral venue"
externalDocs:
description: iSports API documentation
url: https://www.isportsapi.com/en/docs.html?id=48
x-documentation:
- https://www.isportsapi.com/en/docs.html?id=48
x-rate-limit: This interface is limited to 60 seconds/call;
x-recommended-call-frequency: 12 hours/call
x-plan-products:
- Live Data
- Odds
- Stats
x-doc-modified: '2026-07-09'
/sport/basketball/league/basic:
get:
operationId: getBasketballLeagueBasic
summary: League & Cup Profile (Basic)
description: '• This API endpoint returns basic information for leagues and cups. Optionally filter by a specific leagueId; if omitted, the endpoint returns basic information for all leagues and cups. Click here to view all leagues & cups.
• Tips: You have access to all the basketball Common API endpoints with any valid paid basketball plans.'
tags:
- Basketball Common API
parameters:
- name: leagueId
in: query
required: false
schema:
type: string
description: Filter by a specific league or cup ID. If omitted, returns information for all leagues and cups.
responses:
'200':
description: Standard iSports envelope. `code` 0 indicates success; a non-zero `code` carries the error in `message` (HTTP status is 200 in both cases).
content:
application/json:
schema:
type: object
properties:
code:
type: integer
description: 0 on success; 2 on invalid/illegal api_key
message:
type: string
description: '"success" on success; otherwise the error message'
data:
type: array
items:
type: object
properties:
leagueId:
type: string
description: Unique ID of the league or cup.
leagueName:
type: string
description: Full name, e.g. National Basketball Association.
leagueShortName:
type: string
description: Short name, e.g. NBA.
leagueKind:
type: string
description: '1: League
2: Cup'
externalDocs:
description: iSports API documentation
url: https://www.isportsapi.com/en/docs.html?id=50
x-documentation:
- https://www.isportsapi.com/en/docs.html?id=50
x-rate-limit: This interface is limited to 1,800 seconds/call;
x-recommended-call-frequency: 1 day/call
x-plan-products:
- Live Data
- Odds
- Stats
x-doc-modified: '2026-07-09'
/sport/basketball/country:
get:
operationId: getBasketballCountry
summary: List of Countries
description: '• This API endpoint returns a list of all countries covered by iSports API, along with each country''s unique ID.
• The countryId can be used to filter or reference country-specific data across other Basketball endpoints.'
tags:
- Basketball Common API
responses:
'200':
description: Standard iSports envelope. `code` 0 indicates success; a non-zero `code` carries the error in `message` (HTTP status is 200 in both cases).
content:
application/json:
schema:
type: object
properties:
code:
type: integer
description: 0 on success; 2 on invalid/illegal api_key
message:
type: string
description: '"success" on success; otherwise the error message'
data:
type: array
items:
type: object
properties:
countryId:
type: integer
description: Unique ID of the country, used to reference this country in other endpoints
country:
type: string
description: Country name
externalDocs:
description: iSports API documentation
url: https://www.isportsapi.com/en/docs.html?id=224
x-documentation:
- https://www.isportsapi.com/en/docs.html?id=224
x-rate-limit: This interface is limited to 1,800 seconds/call;
x-plan-products:
- Live Data
x-doc-modified: '2026-07-09'
/sport/basketball/bookmaker:
get:
operationId: getBasketballBookmaker
summary: List of Agencies
description: '• This API endpoint returns a list of all bookmakers supported by iSports Basketball API, along with their corresponding bookmaker IDs.
• Note that companyIdEu, companyIdMainSpread, and companyIdMainTotal belong to three independent ID systems used by different odds endpoints — the same bookmaker may have different IDs across these three fields, and they should not be used interchangeably.'
tags:
- Basketball Common API
responses:
'200':
description: Standard iSports envelope. `code` 0 indicates success; a non-zero `code` carries the error in `message` (HTTP status is 200 in both cases).
content:
application/json:
schema:
type: object
properties:
code:
type: integer
description: 0 on success; 2 on invalid/illegal api_key
message:
type: string
description: '"success" on success; otherwise the error message'
data:
type: array
items:
type: object
properties:
companyIdEu:
type: integer
description: Bookmaker ID used in the Money Line (80+ Bookmakers) API.
companyName:
type: string
description: Name of the bookmaker.
companyIdMainSpread:
type: integer
description: "Bookmaker ID used for Spread and Money Line in the Odds API (excluding the Money Line (80+ Bookmakers) API). \n\n Returns 0 if this bookmaker's data is not provided in that API."
companyIdMainTotal:
type: integer
description: "Bookmaker ID used for Total in the Odds API (excluding the Money Line (80+ Bookmakers) API). \n\n Returns 0 if this bookmaker's data is not provided in that API."
externalDocs:
description: iSports API documentation
url: https://www.isportsapi.com/en/docs.html?id=225
x-documentation:
- https://www.isportsapi.com/en/docs.html?id=225
x-rate-limit: This interface is limited to 1,800 seconds/call;
x-plan-products:
- Live Data
x-doc-modified: '2026-07-09'
components:
securitySchemes:
apiKeyQuery:
type: apiKey
in: query
name: api_key
description: Personal API key issued from the iSports account settings page and passed on every request as the `api_key` query parameter.
externalDocs:
description: iSports API documentation
url: https://www.isportsapi.com/en/docs.html