Repository navigation
Expand file tree
/
Copy pathclient-libraries.html
More file actions
476 lines (433 loc) · 67.8 KB
/
Copy pathclient-libraries.html
File metadata and controls
476 lines (433 loc) · 67.8 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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tennis API client libraries and SDKs | Live Tennis API</title>
<meta name="description" content="Official Live Tennis API client libraries for Python, JavaScript, Go, PHP, .NET, Dart, R and Swift, with install commands, versions and coverage.">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://docs.livetennisapi.com/client-libraries.html">
<meta property="og:type" content="article">
<meta property="og:title" content="Live Tennis API client libraries">
<meta property="og:description" content="Official Live Tennis API client libraries for Python, JavaScript, Go, PHP, .NET, Dart, R and Swift, with install commands, versions and coverage.">
<meta property="og:url" content="https://docs.livetennisapi.com/client-libraries.html">
<meta property="og:image" content="https://docs.livetennisapi.com/banner.jpg">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="favicon.ico" sizes="any">
<script type="application/ld+json">
{"@context": "https://schema.org", "@type": "TechArticle", "headline": "Live Tennis API client libraries", "description": "Official Live Tennis API client libraries for Python, JavaScript, Go, PHP, .NET, Dart, R and Swift, with install commands, versions and coverage.", "url": "https://docs.livetennisapi.com/client-libraries.html", "dateModified": "2026-11-19", "about": [{"@type": "SoftwareSourceCode", "name": "Live Tennis API Python client", "alternateName": "livetennisapi", "url": "https://pypi.org/project/livetennisapi/", "version": "1.8.0", "codeRepository": "https://github.com/livetennisapi/livetennisapi-python", "programmingLanguage": "Python", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API JavaScript and TypeScript client", "alternateName": "livetennisapi", "url": "https://www.npmjs.com/package/livetennisapi", "version": "1.10.3", "codeRepository": "https://github.com/livetennisapi/livetennisapi-js", "programmingLanguage": ["JavaScript", "TypeScript"], "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API Go client", "alternateName": "github.com/livetennisapi/livetennisapi-go", "url": "https://pkg.go.dev/github.com/livetennisapi/livetennisapi-go", "version": "1.3.0", "codeRepository": "https://github.com/livetennisapi/livetennisapi-go", "programmingLanguage": "Go", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API PHP client", "alternateName": "livetennisapi/livetennisapi", "url": "https://packagist.org/packages/livetennisapi/livetennisapi", "version": "1.2.0", "codeRepository": "https://github.com/livetennisapi/livetennisapi-php", "programmingLanguage": "PHP", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API .NET client", "alternateName": "LiveTennisApi", "url": "https://www.nuget.org/packages/LiveTennisApi", "version": "1.2.1", "codeRepository": "https://github.com/livetennisapi/livetennisapi-dotnet", "programmingLanguage": "C#", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API Dart and Flutter client", "alternateName": "livetennisapi", "url": "https://pub.dev/packages/livetennisapi", "version": "1.2.1", "codeRepository": "https://github.com/livetennisapi/livetennisapi-dart", "programmingLanguage": "Dart", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API Swift client", "alternateName": "livetennisapi-swift", "url": "https://github.com/livetennisapi/livetennisapi-swift/tags", "version": "1.2.1", "codeRepository": "https://github.com/livetennisapi/livetennisapi-swift", "programmingLanguage": "Swift", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API R client", "alternateName": "livetennisapi", "url": "https://livetennisapi.r-universe.dev/livetennisapi", "version": "0.2.1", "codeRepository": "https://github.com/livetennisapi/livetennisapi-r", "programmingLanguage": "R", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API MCP server", "alternateName": "livetennisapi-mcp", "url": "https://www.npmjs.com/package/livetennisapi-mcp", "version": "1.6.5", "codeRepository": "https://github.com/livetennisapi/livetennisapi-mcp", "programmingLanguage": "TypeScript", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API Vercel AI SDK tools", "alternateName": "livetennisapi-ai", "url": "https://www.npmjs.com/package/livetennisapi-ai", "version": "1.3.0", "codeRepository": "https://github.com/livetennisapi/livetennisapi-ai", "programmingLanguage": "TypeScript", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API Export command", "alternateName": "livetennisapi-export", "url": "https://pypi.org/project/livetennisapi-export/", "version": "0.1.0", "codeRepository": "https://github.com/livetennisapi/livetennisapi-export", "programmingLanguage": "Python", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API Laravel package", "alternateName": "livetennisapi/livetennisapi-laravel", "url": "https://packagist.org/packages/livetennisapi/livetennisapi-laravel", "version": "1.1.0", "codeRepository": "https://github.com/livetennisapi/livetennisapi-laravel", "programmingLanguage": "PHP", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API Haystack integration", "alternateName": "livetennisapi-haystack", "url": "https://pypi.org/project/livetennisapi-haystack/", "version": "0.2.0", "codeRepository": "https://github.com/livetennisapi/livetennisapi-haystack", "programmingLanguage": "Python", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API LangChain integration", "alternateName": "langchain-livetennis", "url": "https://pypi.org/project/langchain-livetennis/", "version": "0.2.0", "codeRepository": "https://github.com/livetennisapi/langchain-livetennis", "programmingLanguage": "Python", "license": "https://opensource.org/license/mit"}, {"@type": "SoftwareSourceCode", "name": "Live Tennis API LlamaIndex tools", "alternateName": "llama-index-tools-livetennisapi", "url": "https://pypi.org/project/llama-index-tools-livetennisapi/", "version": "0.1.0", "codeRepository": "https://github.com/livetennisapi/llama-index-tools-livetennisapi", "programmingLanguage": "Python", "license": "https://opensource.org/license/mit"}], "inLanguage": "en", "isPartOf": {"@type": "WebSite", "name": "Live Tennis API", "url": "https://livetennisapi.com"}, "publisher": {"@type": "Organization", "@id": "https://livetennisapi.com/#org", "name": "JSB Holdings LLC", "alternateName": "Live Tennis API", "url": "https://livetennisapi.com", "logo": "https://docs.livetennisapi.com/icon-256.png", "sameAs": ["https://rapidapi.com/contact-whTqTESH5/api/tennis-data-analytics-api3", "https://apify.com/livetennisapi/tennis-data-analytics", "https://api.market/store/live-tennis-api/tennis-data-analytics", "https://www.postman.com/livetennisapi", "https://github.com/livetennisapi", "https://pypi.org/project/livetennisapi/", "https://www.npmjs.com/package/livetennisapi", "https://www.npmjs.com/package/livetennisapi-mcp", "https://docs.livetennisapi.com", "https://x.com/livetennisapi"]}}
</script>
<link rel="preload" href="fonts/inter-latin-400.woff2" as="font" type="font/woff2" crossorigin fetchpriority="high">
<link rel="preload" href="fonts/space-grotesk-latin-700.woff2" as="font" type="font/woff2" crossorigin fetchpriority="high">
<link rel="preload" href="fonts/jetbrains-mono-latin-400.woff2" as="font" type="font/woff2" crossorigin fetchpriority="low">
<style>
/* Self-hosted webfonts (latin subsets), shared by index.html and reference.html.
Both pages previously shipped `document.fonts.size === 0` — reference.html
rendered entirely in the system UI stack and Space Grotesk, the product's
display face, appeared on neither page.
These are served from this origin, so the docs have no font dependency they
cannot verify: nothing is fetched from Google Fonts or any other third party,
and a blocked CDN cannot change how the page reads.
Family names must stay EXACTLY 'Inter' / 'Space Grotesk' / 'JetBrains Mono' —
they are the names the rest of the product's stylesheets use, and the ones
Scalar is handed via --scalar-font / --scalar-font-code.
Only the weights actually used are shipped (180 KB total):
Inter 400/500/600/700 body, UI, Scalar's semibold + bold
Space Grotesk 500/700 display: headings
JetBrains Mono 400/500 code, numerals */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
src: url('fonts/inter-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
src: url('fonts/inter-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
src: url('fonts/inter-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
src: url('fonts/inter-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
src: url('fonts/space-grotesk-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
src: url('fonts/space-grotesk-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
src: url('fonts/jetbrains-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
src: url('fonts/jetbrains-mono-latin-500.woff2') format('woff2'); }
</style>
<style>
/* Design tokens (app/services/design_tokens.py). This page used to carry the
legacy marketing palette — every one of its six dark hexes was an exact key
in design_tokens.LEGACY, i.e. a colour the token module exists to retire. */
:root {
--bg:#0e0e0e; --panel:#141414; --struct:#2a2a2a;
--text:#e4e2e1; --muted:#84967e; --accent:#00ff41;
--r:6px; /* control radius; structure is square */
color-scheme: dark; /* was "normal", which invites the UA to
render form controls and scrollbars light */
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text);
font:16px/1.65 'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
.wrap { max-width:960px; margin:0 auto; padding:40px 20px 80px; }
/* PROSE MEASURE. The wrap is 960px because the tables and code blocks need
it; running body text to that width gives ~110 characters a line, well past
the 45-75 the eye tracks comfortably. Only the prose is narrowed — tables,
pre and the endpoint sections keep the full width they need. */
main > p, main > ul:not(.toc), main > ol, .op > p, .banner > p, header > p { max-width:72ch; }
a { color:var(--accent); }
a:focus-visible, .scrollx:focus-visible, .skip-link:focus {
outline:2px solid var(--accent); outline-offset:2px; }
h1,h2,h3 { font-family:'Space Grotesk','Inter',ui-sans-serif,sans-serif; }
h1 { font-size:2rem; margin:0 0 .3em; }
h2 { margin-top:2.5em; padding-bottom:.3em; border-bottom:1px solid var(--struct); }
h3 { margin-top:2em; }
h4 { margin:1.4em 0 .4em; color:var(--muted); font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; }
code { background:var(--panel); padding:.15em .4em; border-radius:var(--r); font-size:.9em;
font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace; }
pre { background:var(--panel); border:1px solid var(--struct); padding:14px; border-radius:0;
overflow-x:auto; font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace; }
pre code { background:none; padding:0; }
/* A long URL is better wrapped than hidden behind a scrollbar: it stays
copyable and every character is on screen. */
pre.urls { white-space:pre-wrap; overflow-wrap:anywhere; }
/* An inline <code> cannot scroll — it is inline. A long token inside one
(the /ws URL) pushed the whole document 44px wider than the viewport at
390px, which is a horizontal scrollbar on the PAGE, not in a block. */
code { overflow-wrap:anywhere; }
/* Wide blocks scroll in a focusable region rather than in the table itself,
so a keyboard can reach them. */
.scrollx { overflow-x:auto; max-width:100%; }
table { width:100%; border-collapse:collapse; margin:.6em 0 1.2em; }
th,td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--struct);
vertical-align:top; font-size:.92rem; }
th { color:var(--muted); font-weight:600; }
/* Visually hidden, still announced. */
.vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0;
overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
.method { color:var(--accent); font-family:'JetBrains Mono',ui-monospace,monospace; }
.meta { color:var(--muted); font-size:.9rem; }
.summary { margin:.2em 0; }
.banner { background:var(--panel); border:1px solid var(--struct); border-left:3px solid var(--accent);
padding:14px 18px; border-radius:0; margin:1.5em 0; }
ul.toc { list-style:none; padding:0; }
ul.toc li { border-bottom:1px solid var(--struct); }
/* NAVIGATION TOUCH TARGETS. These stacked links were 19px tall and 11-12px
apart — the page's only chrome, and the hardest thing on it to hit. The two
inline links inside prose sentences are deliberately left alone: WCAG 2.5.8
exempts a link inline in a block of text, and padding them would break the
line box around them. */
ul.toc li a, .pagenav a, .footnav a {
display:flex; align-items:center; min-height:44px; padding:4px 2px; }
.pagenav, .footnav { display:flex; flex-wrap:wrap; gap:0 18px; margin:.4em 0; }
.skip-link { position:absolute; left:-9999px; top:0;
background:var(--panel); color:var(--accent); padding:12px 16px;
border:1px solid var(--struct); z-index:10; }
.skip-link:focus { left:8px; top:8px; }
/* THE TEACHING BLOCK. As a <pre> this was 62 columns wide and showed 35 of
them at 390px — every annotation sliced mid-word, which is precisely the
content a first-time reader needs most. As a two-column grid the alignment
that makes it teach survives on a wide screen, and on a narrow one the
explanation simply stacks under the code it explains. Nothing scrolls,
nothing is cut. */
.annot { display:grid; grid-template-columns:max-content 1fr; gap:2px 22px;
background:var(--panel); border:1px solid var(--struct);
padding:14px; margin:.6em 0 1.2em; overflow-x:auto; }
.annot dt { font-family:'JetBrains Mono',ui-monospace,monospace; font-size:.9em;
white-space:pre; margin:0; }
.annot dd { margin:0; color:var(--muted); font-size:.9em; align-self:center; }
@media (max-width:600px) {
.annot { grid-template-columns:1fr; gap:0; }
.annot dt { margin-top:.7em; white-space:pre-wrap; overflow-wrap:anywhere; }
.annot dt:first-child { margin-top:0; }
.annot dd { padding-bottom:.2em; }
}
/* Link-only table cells are targets, not prose, so they get the full 44px.
(The inline links inside sentences are left alone — see above.) */
.linkrow a { display:inline-flex; align-items:center; min-height:44px; }
/* SCROLL, OR WRAP. On a phone the code blocks showed as little as 54% of
their widest line, cut mid-token. Soft-wrapping them shows all of it, and
costs nothing on copy: a soft wrap is not a newline, so a copied curl
command is still byte-for-byte the command. Desktop has the room and keeps
the original hard lines. A table cannot wrap, so tables still scroll. */
@media (max-width:760px) {
pre { white-space:pre-wrap; overflow-wrap:anywhere; }
}
/* A horizontal scrollbar is invisible on touch until you already know it is
there, and the design system has no gradients to fade an edge with. So the
regions that genuinely still scroll get a scrollbar that is always drawn,
in tokens, plus a note in words. */
.scrollnote { display:none; color:var(--muted); font-size:.8rem; margin:-.4em 0 1em; }
@media (max-width:760px) {
.scrollnote { display:block; }
.scrollx { scrollbar-width:thin; scrollbar-color:var(--muted) var(--panel); }
.scrollx::-webkit-scrollbar { height:6px; -webkit-appearance:none; }
.scrollx::-webkit-scrollbar-track { background:var(--panel); }
.scrollx::-webkit-scrollbar-thumb { background:var(--muted); }
}
</style><style>
/* Documentation shares the product palette while keeping reference content compact. */
:root{--bg:#0b100e;--panel:#131c16;--struct:#2d3b31;--text:#f0f4ee;--muted:#afbeb2;--ours:#b7f875;--accent:#b7f875;--r:8px;color-scheme:dark}
*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;margin:0}a{color:var(--accent);text-underline-offset:4px}a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #d1ffa7;outline-offset:4px}img{max-width:100%}.docs-site-header{display:flex;align-items:center;gap:24px;justify-content:space-between;max-width:1280px;margin:auto;padding:22px 36px;border-bottom:1px solid var(--struct);position:relative;z-index:2}.docs-brand{font:700 17px/1.3 'Space Grotesk',Inter,sans-serif;display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);white-space:nowrap}.docs-brand span{font:400 12px/1.5 Inter,sans-serif;color:var(--muted);border-left:1px solid var(--struct);padding-left:12px;margin-left:5px}.docs-desktop-nav{display:flex;gap:26px}.docs-desktop-nav a{font-size:13px;text-decoration:none;min-height:44px;display:flex;align-items:center;color:var(--muted)}.docs-desktop-nav a:hover,.docs-desktop-nav a[aria-current=page]{color:var(--accent)}.docs-key{display:inline-flex;align-items:center;gap:20px;min-height:44px;padding:8px 15px;background:var(--accent);color:var(--bg);font-size:12px;text-decoration:none;border-radius:7px}.docs-topic-menu{max-width:1208px;margin:0 auto;border-bottom:1px solid var(--struct);color:var(--muted)}.docs-topic-menu summary{cursor:pointer;min-height:44px;padding:14px 0;font-size:12px}.docs-topic-menu nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;padding-bottom:16px}.docs-topic-menu a{display:flex;align-items:center;min-height:44px;font-size:12px;color:var(--muted);text-decoration:none}.docs-topic-menu a:hover,.docs-topic-menu a[aria-current]{color:var(--accent)}
.docs-page .wrap{max-width:1120px;padding:58px 36px 80px;min-width:0}.docs-page .wrap>header{padding-bottom:28px;margin-bottom:32px;border-bottom:1px solid var(--struct)}.docs-page h1{font:700 clamp(34px,4.2vw,58px)/1.09 'Space Grotesk',Inter,sans-serif;letter-spacing:-.05em;max-width:22ch;margin:12px 0 24px;overflow-wrap:anywhere}.docs-page h2{font-size:26px;letter-spacing:-.03em;line-height:1.25;margin-top:48px}.docs-page h3{font-size:20px;letter-spacing:-.02em;line-height:1.4;overflow-wrap:anywhere}.docs-page h4{color:var(--muted);font-size:11px;letter-spacing:.12em;margin-top:28px}.docs-page .meta,.docs-page .eyebrow{color:var(--muted);font-size:13px}.docs-page .wrap>header>.meta:first-child,.docs-page .eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:.15em;color:var(--accent)}.docs-page .wrap>header>p:not(.meta){max-width:76ch;line-height:1.8}.docs-page .pagenav{gap:8px 12px}.docs-page .pagenav a{padding:7px 12px;border:1px solid var(--struct);border-radius:6px;min-height:40px;font-size:12px;text-decoration:none}.docs-page .pagenav a:hover{background:var(--panel);border-color:#637958}.docs-page .banner{border-radius:8px;padding:18px 22px;background:var(--panel);border-color:var(--struct);border-left:3px solid var(--accent)}.docs-page .banner p{font-size:14px;margin:0;line-height:1.7}.docs-page .toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.docs-page .toc li{font-size:13px}.docs-page .toc li a{font-size:14px;min-height:46px}.docs-page .op{margin-top:42px;padding-top:4px;min-width:0}.docs-page pre{border-radius:10px;padding:22px;font-size:12px;line-height:1.8;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}.docs-page pre code{font-size:inherit}.docs-page code{overflow-wrap:anywhere;word-break:normal}.docs-page .scrollx{border:1px solid var(--struct);border-radius:8px;margin:14px 0 18px;max-width:100%;min-width:0}.docs-page .scrollx table{margin:0;min-width:540px}.docs-page table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;background:var(--panel);padding:12px 14px}.docs-page table td{font-size:13px;padding:13px 14px}.docs-page table tr:last-child td{border-bottom:0}.docs-page .annot{border-radius:8px;padding:18px}.docs-page footer{margin-top:60px}.docs-page footer hr{border:0;border-top:1px solid var(--struct);margin:20px 0}.docs-changelog article{border-top:1px solid var(--struct);padding:24px 0;max-width:80ch}.docs-changelog article h2{border:0;margin-top:0;display:flex;align-items:baseline;gap:20px;flex-wrap:wrap}.docs-changelog time{font:400 12px/1.5 Inter,sans-serif;color:var(--muted)}
/* A useful landing page stays visible before the optional explorer is loaded. */
.docs-home #static-intro{position:relative;inset:auto;max-width:1208px;max-height:none;overflow:visible;min-height:0;padding:64px 0 48px;margin:auto;background:none;z-index:0}.docs-home #static-intro[hidden]{display:none}.docs-home .docs-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:70px;align-items:center;margin-bottom:68px}.docs-home .docs-eyebrow{color:var(--accent);font-size:10px;letter-spacing:.18em;text-transform:uppercase;margin:0 0 22px}.docs-home #static-intro h1{font:700 clamp(40px,5vw,70px)/1.04 'Space Grotesk',Inter,sans-serif;letter-spacing:-.055em;color:var(--text);margin:0 0 24px}.docs-home .docs-lede{font-size:16px;line-height:1.8;color:var(--muted);max-width:55ch}.docs-home .docs-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:28px 0 14px}.docs-home #open-explorer{padding:13px 18px;font:500 13px/1.5 Inter,sans-serif;border:0;border-radius:8px;background:var(--accent);color:var(--bg);min-height:48px;cursor:pointer}.docs-home .docs-actions>a{font-size:13px;min-height:44px;display:inline-flex;align-items:center}.docs-home .docs-code{padding:24px;background:var(--panel);border:1px solid #3b4d3e;border-radius:12px;min-width:0;box-shadow:0 24px 80px #0005}.docs-home .docs-code-label{font-size:10px;letter-spacing:.14em;color:var(--muted);display:flex;justify-content:space-between;text-transform:uppercase;border-bottom:1px solid var(--struct);padding-bottom:18px;margin-bottom:22px}.docs-home .docs-code pre{font:12px/1.9 'JetBrains Mono',monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:var(--text)}.docs-home .docs-code .code-accent{color:var(--accent)}.docs-home .docs-code>p{font-size:12px;line-height:1.7;color:var(--muted);border-top:1px solid var(--struct);padding-top:16px;margin:22px 0 0}.docs-home .docs-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 20px}.docs-home #static-intro h2{font:700 27px/1.2 'Space Grotesk',Inter,sans-serif;letter-spacing:-.035em;margin:0}.docs-home .docs-section-title p{font-size:12px;color:var(--muted);margin:0}.docs-home .docs-topics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.docs-home .docs-topics>a{border:1px solid var(--struct);border-radius:9px;display:flex;flex-direction:column;gap:14px;padding:22px;text-decoration:none;min-width:0;color:var(--text);background:#0f1712}.docs-home .docs-topics>a:hover{background:var(--panel);border-color:#6c885c}.docs-home .docs-topics strong{font-size:14px;font-weight:500;line-height:1.4}.docs-home .docs-topics span{font-size:12px;line-height:1.7;color:var(--muted)}.docs-home .docs-topics small{font-size:10px;color:var(--accent);font-family:'JetBrains Mono',monospace}.docs-home .docs-resources{display:flex;gap:20px;flex-wrap:wrap;border-top:1px solid var(--struct);padding:24px 0;margin-top:32px}.docs-home .docs-resources a{font-size:12px;min-height:32px;display:flex;align-items:center}.docs-home .docs-clients{display:flex;flex-wrap:wrap;gap:12px 24px;color:var(--muted);font-size:12px}.docs-home .docs-clients code{color:var(--text);font-size:11px}.docs-home .docs-corner{display:none}.docs-home #boot{position:relative;inset:auto;max-width:1208px;margin:0 auto;padding:20px;min-height:0;border-bottom:1px solid var(--struct);pointer-events:none}.docs-home #boot[hidden]{display:none}.docs-home #boot a{pointer-events:auto}.docs-home .skip-link{position:absolute;left:-9999px;z-index:20;background:var(--panel);padding:14px;color:var(--accent)}.docs-home .skip-link:focus{left:8px;top:8px}
@media(max-width:1280px){.docs-topic-menu{margin:0 36px}.docs-home #static-intro{padding:52px 36px}.docs-home .docs-hero{gap:36px}}
@media(max-width:900px){.docs-desktop-nav{gap:16px}.docs-home .docs-hero{grid-template-columns:1fr;gap:28px;margin-bottom:44px}.docs-home .docs-code{max-width:620px}.docs-home .docs-topics{grid-template-columns:repeat(2,minmax(0,1fr))}.docs-home .docs-section-title{display:block}.docs-home .docs-section-title p{margin-top:10px}.docs-page .wrap{padding-top:36px}}
@media(max-width:640px){.docs-site-header{padding:16px 20px;gap:12px;flex-wrap:wrap}.docs-brand{font-size:14px;gap:8px}.docs-brand img{width:22px;height:22px}.docs-brand span{font-size:10px;padding-left:8px;margin-left:0}.docs-desktop-nav{display:none}.docs-key{font-size:10px;gap:8px;padding:7px 10px}.docs-topic-menu{margin:0 20px}.docs-topic-menu nav{grid-template-columns:1fr}.docs-page .wrap{padding:30px 20px 60px}.docs-page h1{font-size:36px}.docs-page .toc{grid-template-columns:1fr}.docs-page h3{font-size:18px}.docs-page .pagenav a{min-height:44px}.docs-page pre{padding:16px;font-size:11px}.docs-page .wrap>header>p:not(.meta){font-size:15px}.docs-home #static-intro{padding:38px 20px}.docs-home .docs-lede{font-size:15px}.docs-home .docs-code{padding:18px}.docs-home .docs-code pre{font-size:11px}.docs-home .docs-topics>a{padding:18px 15px}.docs-home .docs-resources{gap:8px 20px}.docs-home .docs-resources a{min-height:44px}.docs-home .docs-actions{gap:8px 18px}}
@media(max-width:360px){.docs-brand span{display:none}.docs-home .docs-topics{grid-template-columns:1fr}.docs-page h1{font-size:32px}}
@media(prefers-reduced-motion:no-preference){a,button{transition:color .15s,background .15s,border-color .15s}}
.docs-page p,.docs-page li,.docs-page a,.docs-page td{overflow-wrap:anywhere}.docs-page .scrollx{width:100%;overflow-x:auto}
</style>
</head>
<body class="docs-page docs-topic">
<a class="skip-link" href="#main">Skip to content</a>
<header class="docs-site-header"><a class="docs-brand" href="./"><img src="logo.svg" width="28" height="28" alt="">Live Tennis API <span>Docs</span></a><nav class="docs-desktop-nav" aria-label="Documentation"><a href="./">Overview</a><a href="./reference.html">API reference</a><a href="./changelog.html">Changelog</a></nav><a class="docs-key" href="https://livetennisapi.com/subscribe/free">Get a free key <span aria-hidden="true">↗</span></a></header><details class="docs-topic-menu"><summary>Explore the documentation</summary><nav aria-label="Documentation topics"><a href="./">Overview</a><a href="./reference.html">API reference</a><a href="./changelog.html">Changelog</a><a href="./live-scores.html">Live tennis scores API</a><a href="./players-and-tournaments.html">Tennis players, tournaments and rankings API</a><a href="./tennis-odds.html">Tennis odds API — markets and price ticks</a><a href="./point-by-point-history.html">Point-by-point tennis data API</a><a href="./historical-results-archive.html">Historical tennis results API — 1968 onward</a><a href="./shot-level-rally-data.html">Shot-by-shot tennis rally and charting API</a><a href="./broadcast-graphics.html">Tennis scores for on-air graphics</a><a href="./push-feed-and-webhooks.html">Tennis WebSocket feed and webhooks</a><a href="./auth-quota-and-health.html">Tennis API authentication, quota and status</a><a href="./ai-sdk.html">Live Tennis API tools for the Vercel AI SDK</a><a href="./errors-and-rate-limits.html">Errors and rate limits</a><a href="./export-formats.html">Export tennis data to CSV, JSON Lines or Parquet</a><a href="./client-libraries.html" aria-current="page">Live Tennis API client libraries</a><a href="./sportsml.html">Tennis score mapping to IPTC SportsML</a></nav></details>
<div class="wrap">
<header role="none">
<p class="meta">Live Tennis API · docs · guide</p>
<h1>Live Tennis API client libraries</h1>
<p><strong>Which client libraries does the Live Tennis API have?</strong> There are official clients for Python, JavaScript and TypeScript, Go, PHP, .NET, Dart, R and Swift. Seven more packages build on them, among them an MCP server and an export command. The tables list the install command, the latest version and the coverage of each.</p>
<p class="meta">Versions read from each registry on <time datetime="2026-11-19">2026-11-19</time>. Coverage read from the source of each published version.</p>
<nav class="pagenav" aria-label="Related pages">
<a href="./reference.html">Full reference: all endpoints</a>
<a href="./">Interactive reference</a>
<a href="./openapi.yaml">OpenAPI spec</a>
<a href="./changelog.html">Changelog</a>
<a href="https://livetennisapi.com/pricing">Pricing</a>
<a href="https://livetennisapi.com/subscribe/free">Free key</a>
</nav>
</header>
<main id="main">
<h2 id="matrix">Which client library should I use?</h2>
<p>Pick the row for your language. Every package calls the same REST API with the same key.
The version is the newest release on the registry named under each install command.
These client libraries are the official SDKs for the API.</p>
<div class="scrollx" tabindex="0" role="region" aria-label="Client libraries"><table><caption class="vh">Every official client library and tool, with its install command and version</caption><thead><tr><th scope="col">Library</th><th scope="col">Latest version</th><th scope="col">Minimum runtime</th><th scope="col">Install and package</th><th scope="col">Language</th><th scope="col">Licence</th><th scope="col">Source</th></tr></thead><tbody><tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Python client</th><td>1.8.0</td><td style="overflow-wrap:normal">Python 3.9</td><td><span style="white-space:nowrap"><code>pip install livetennisapi</code></span><br><span style="white-space:nowrap"><a href="https://pypi.org/project/livetennisapi/">livetennisapi</a> on PyPI</span></td><td style="overflow-wrap:normal">Python</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-python">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">JavaScript and TypeScript client</th><td>1.10.3</td><td style="overflow-wrap:normal">Node 18</td><td><span style="white-space:nowrap"><code>npm install livetennisapi</code></span><br><span style="white-space:nowrap"><a href="https://www.npmjs.com/package/livetennisapi">livetennisapi</a> on npm</span></td><td style="overflow-wrap:normal">JavaScript, TypeScript</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-js">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Go client</th><td>1.3.0</td><td style="overflow-wrap:normal">Go 1.25</td><td><span style="white-space:nowrap"><code>go get github.com/livetennisapi/livetennisapi-go</code></span><br><span style="white-space:nowrap"><a href="https://pkg.go.dev/github.com/livetennisapi/livetennisapi-go">github.com/livetennisapi/livetennisapi-go</a> on Go modules</span></td><td style="overflow-wrap:normal">Go</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-go">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">PHP client</th><td>1.2.0</td><td style="overflow-wrap:normal">PHP 8.1</td><td><span style="white-space:nowrap"><code>composer require livetennisapi/livetennisapi</code></span><br><span style="white-space:nowrap"><a href="https://packagist.org/packages/livetennisapi/livetennisapi">livetennisapi/livetennisapi</a> on Packagist</span></td><td style="overflow-wrap:normal">PHP</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-php">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">.NET client</th><td>1.2.1</td><td style="overflow-wrap:normal">.NET Standard 2.0 or .NET 8</td><td><span style="white-space:nowrap"><code>dotnet add package LiveTennisApi</code></span><br><span style="white-space:nowrap"><a href="https://www.nuget.org/packages/LiveTennisApi">LiveTennisApi</a> on NuGet</span></td><td style="overflow-wrap:normal">C#</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-dotnet">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Dart and Flutter client</th><td>1.2.1</td><td style="overflow-wrap:normal">Dart 3.5</td><td><span style="white-space:nowrap"><code>dart pub add livetennisapi</code></span><br><span style="white-space:nowrap"><a href="https://pub.dev/packages/livetennisapi">livetennisapi</a> on pub.dev</span></td><td style="overflow-wrap:normal">Dart</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-dart">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Swift client</th><td>1.2.1</td><td style="overflow-wrap:normal">Swift 5.9</td><td><span><code>.package(url: "https://github.com/livetennisapi/livetennisapi-swift.git", from: "1.2.1")</code></span><br><span style="white-space:nowrap"><a href="https://github.com/livetennisapi/livetennisapi-swift/tags">livetennisapi-swift</a> on Git tag</span></td><td style="overflow-wrap:normal">Swift</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-swift">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">R client</th><td>0.2.1</td><td style="overflow-wrap:normal">R 4.1</td><td><span><code>install.packages("livetennisapi", repos = c("https://livetennisapi.r-universe.dev", "https://cloud.r-project.org"))</code></span><br><span style="white-space:nowrap"><a href="https://livetennisapi.r-universe.dev/livetennisapi">livetennisapi</a> on R-universe</span></td><td style="overflow-wrap:normal">R</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-r">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">MCP server</th><td>1.6.5</td><td style="overflow-wrap:normal">Node 20</td><td><span style="white-space:nowrap"><code>npx -y livetennisapi-mcp</code></span><br><span style="white-space:nowrap"><a href="https://www.npmjs.com/package/livetennisapi-mcp">livetennisapi-mcp</a> on npm</span></td><td style="overflow-wrap:normal">TypeScript</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-mcp">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Vercel AI SDK tools</th><td>1.3.0</td><td style="overflow-wrap:normal">Node 22</td><td><span style="white-space:nowrap"><code>npm install livetennisapi-ai</code></span><br><span style="white-space:nowrap"><a href="https://www.npmjs.com/package/livetennisapi-ai">livetennisapi-ai</a> on npm</span></td><td style="overflow-wrap:normal">TypeScript</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-ai">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Export command</th><td>0.1.0</td><td style="overflow-wrap:normal">Python 3.9</td><td><span style="white-space:nowrap"><code>pip install livetennisapi-export</code></span><br><span style="white-space:nowrap"><a href="https://pypi.org/project/livetennisapi-export/">livetennisapi-export</a> on PyPI</span></td><td style="overflow-wrap:normal">Python</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-export">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Laravel package</th><td>1.1.0</td><td style="overflow-wrap:normal">PHP 8.2</td><td><span style="white-space:nowrap"><code>composer require livetennisapi/livetennisapi-laravel</code></span><br><span style="white-space:nowrap"><a href="https://packagist.org/packages/livetennisapi/livetennisapi-laravel">livetennisapi/livetennisapi-laravel</a> on Packagist</span></td><td style="overflow-wrap:normal">PHP</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-laravel">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Haystack integration</th><td>0.2.0</td><td style="overflow-wrap:normal">Python 3.10</td><td><span style="white-space:nowrap"><code>pip install livetennisapi-haystack</code></span><br><span style="white-space:nowrap"><a href="https://pypi.org/project/livetennisapi-haystack/">livetennisapi-haystack</a> on PyPI</span></td><td style="overflow-wrap:normal">Python</td><td>MIT</td><td><a href="https://github.com/livetennisapi/livetennisapi-haystack">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">LangChain integration</th><td>0.2.0</td><td style="overflow-wrap:normal">Python 3.10</td><td><span style="white-space:nowrap"><code>pip install -U langchain-livetennis</code></span><br><span style="white-space:nowrap"><a href="https://pypi.org/project/langchain-livetennis/">langchain-livetennis</a> on PyPI</span></td><td style="overflow-wrap:normal">Python</td><td>MIT</td><td><a href="https://github.com/livetennisapi/langchain-livetennis">GitHub</a></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">LlamaIndex tools</th><td>0.1.0</td><td style="overflow-wrap:normal">Python 3.10</td><td><span style="white-space:nowrap"><code>pip install llama-index-tools-livetennisapi</code></span><br><span style="white-space:nowrap"><a href="https://pypi.org/project/llama-index-tools-livetennisapi/">llama-index-tools-livetennisapi</a> on PyPI</span></td><td style="overflow-wrap:normal">Python</td><td>MIT</td><td><a href="https://github.com/livetennisapi/llama-index-tools-livetennisapi">GitHub</a></td></tr>
</tbody></table></div>
<p>Every package is MIT licensed. Plugins for apps and automation platforms are not in this table.
They live in the <a href="https://github.com/livetennisapi">GitHub organisation</a>.</p>
<h2 id="coverage">Which libraries support REST, the live stream, file export and MCP?</h2>
<p>Every library reads the REST API. Two open the live stream, one writes files and one is an MCP server.</p>
<div class="scrollx" tabindex="0" role="region" aria-label="API coverage"><table><caption class="vh">Which parts of the API each library covers</caption><thead><tr><th scope="col">Library</th><th scope="col">REST</th><th scope="col">Live stream</th><th scope="col">File export</th><th scope="col">MCP</th></tr></thead><tbody><tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Python client</th><td>Yes</td><td style="white-space:nowrap">Yes</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">JavaScript and TypeScript client</th><td>Yes</td><td style="white-space:nowrap">Yes</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Go client</th><td>Yes</td><td style="white-space:nowrap">Token only</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">PHP client</th><td>Yes</td><td style="white-space:nowrap">Token only</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">.NET client</th><td>Yes</td><td style="white-space:nowrap">Token only</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Dart and Flutter client</th><td>Yes</td><td style="white-space:nowrap">Token only</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Swift client</th><td>Yes</td><td style="white-space:nowrap">Token only</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">R client</th><td>Yes</td><td style="white-space:nowrap">No</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">MCP server</th><td>Yes</td><td style="white-space:nowrap">No</td><td style="overflow-wrap:normal">No</td><td>Yes</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Vercel AI SDK tools</th><td>Yes</td><td style="white-space:nowrap">No</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Export command</th><td>Yes</td><td style="white-space:nowrap">No</td><td style="overflow-wrap:normal">CSV, JSON Lines, Parquet</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Laravel package</th><td>Yes</td><td style="white-space:nowrap">Token only</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">Haystack integration</th><td>Yes</td><td style="white-space:nowrap">No</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">LangChain integration</th><td>Yes</td><td style="white-space:nowrap">No</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;white-space:nowrap">LlamaIndex tools</th><td>Yes</td><td style="white-space:nowrap">No</td><td style="overflow-wrap:normal">No</td><td>No</td></tr>
</tbody></table></div>
<p><strong>Live stream</strong> says whether the package opens the WebSocket feed for you. The Python and
JavaScript clients do. In Python, <code>pip install "livetennisapi[all]"</code> adds the WebSocket feed.</p>
<p><strong>Token only</strong> means the client calls <code>GET /ws-token</code> for a push feed token.
You open the socket with your own WebSocket library. The
<a href="./push-feed-and-webhooks.html">push feed and webhooks page</a> describes the frames.</p>
<p>The MCP server also runs hosted at <code>https://mcp.livetennisapi.com/mcp</code>, with nothing to install.
The <a href="./ai-sdk.html">AI SDK guide</a> and the <a href="./export-formats.html">export guide</a>
cover those two packages in full.</p>
<h2 id="endpoints">Which endpoints does each client cover?</h2>
<p>The eight language clients do not all reach the same endpoints. Each cell was read from the source
of the published version in the first table.</p>
<div class="scrollx" tabindex="0" role="region" aria-label="Endpoint coverage"><table><caption class="vh">Endpoint groups and the language clients that cover them</caption><thead><tr><th scope="col">Endpoints</th><th scope="col">Python</th><th scope="col"><abbr title="JavaScript and TypeScript">JS</abbr></th><th scope="col">Go</th><th scope="col">PHP</th><th scope="col">.NET</th><th scope="col">Dart</th><th scope="col">Swift</th><th scope="col">R</th><th scope="col">Paths</th></tr></thead><tbody><tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Matches and live scores</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap"><code>/matches</code><br><code>/matches/{matchId}</code><br><code>/matches/{matchId}/score</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Players, fixtures and tournaments</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap"><code>/players</code><br><code>/players/{playerId}</code><br><code>/fixtures</code><br><code>/tournaments</code><br><code>/tournaments/{tournamentId}</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Player record</th><td style="white-space:nowrap">No</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap"><code>/players/{playerId}/stats</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Rankings</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap"><code>/rankings</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Results archive and head-to-head</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Part</td><td style="white-space:nowrap"><code>/history/archive/matches</code><br><code>/history/archive/matches/{archiveId}</code><br><code>/history/archive/players</code><br><code>/history/archive/career</code><br><code>/h2h</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Completed matches and the point-by-point tape</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/history/matches</code><br><code>/history/matches/{matchId}</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">History coverage report</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/history/coverage</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Match events, statistics and analysis</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/matches/{matchId}/events</code><br><code>/matches/{matchId}/statistics</code><br><code>/matches/{matchId}/analysis</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Per-point events over REST</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/matches/{matchId}/points</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Markets and prices</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/markets</code><br><code>/markets/{matchId}/prices</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Rally and charting data</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/rally/matches</code><br><code>/rally/matches/{rallyMatchId}</code><br><code>/history/matches/{matchId}/rally</code><br><code>/charting/players</code><br><code>/charting/matches/{chartingMatchId}</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">History packages</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/history/packages</code><br><code>/history/packages/{period}</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Webhooks</th><td style="white-space:nowrap">No</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>POST /webhooks</code><br><code>/webhooks</code><br><code>DELETE /webhooks/{webhookId}</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Push feed token</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap"><code>/ws-token</code></td></tr>
<tr><th scope="row" style="font-size:13px;font-weight:400;padding:13px 14px;color:inherit;background:none;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:normal">Usage and quota</th><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">No</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap">Yes</td><td style="white-space:nowrap"><code>/usage</code></td></tr>
</tbody></table></div>
<p><strong>Part</strong> for R means it lists archive results, players, careers and head-to-head records.
It has no call for a single archive result.</p>
<p>An endpoint with no method in your client is still one HTTP request away. The
<a href="./reference.html">reference</a> lists every path. The
<a href="./errors-and-rate-limits.html">errors page</a> says when to retry.</p>
<h2 id="quickstart">What is the smallest working call in each language?</h2>
<p>Each example lists live matches. Every call needs an API key, and
<a href="https://livetennisapi.com/subscribe/free">a free key</a> is enough for these. The free plan has 100 requests a day.</p>
<h3 id="python">Python</h3>
<pre><code>pip install livetennisapi</code></pre>
<pre style="tab-size:4"><code>from livetennisapi import LiveTennisAPI
with LiveTennisAPI(api_key="twjp_…") as client: # or set LIVETENNISAPI_KEY
for match in client.list_matches(status="live"):
print(match.tournament, match.p1.name, "vs", match.p2.name, match.score.sets)</code></pre>
<p>The client reads <code>LIVETENNISAPI_KEY</code> when you pass no key. The spec lets <code>score</code> be null, so check it before you read <code>sets</code>. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-python#readme">README</a> of version 1.8.0.</p>
<h3 id="js">JavaScript and TypeScript</h3>
<pre><code>npm install livetennisapi</code></pre>
<pre style="tab-size:4"><code>import { LiveTennisAPI } from 'livetennisapi';
const client = new LiveTennisAPI({ apiKey: 'twjp_…' }); // or $LIVETENNISAPI_KEY
const { data } = await client.listMatches({ status: 'live' });
for (const match of data) {
console.log(match.tournament, match.players?.p1?.name, 'vs', match.players?.p2?.name);
}</code></pre>
<p>The package has no runtime dependencies and ships its own types. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-js#readme">README</a> of version 1.10.3.</p>
<p>For a page in the browser, the <a href="https://github.com/livetennisapi/livetennisapi-starter-web">live scores web starter</a> uses this client and runs on sample data until you add an API key.</p>
<h3 id="go">Go</h3>
<pre><code>go get github.com/livetennisapi/livetennisapi-go</code></pre>
<pre style="tab-size:4"><code>package main
import (
"context"
"fmt"
"log"
"os"
"github.com/livetennisapi/livetennisapi-go"
)
func main() {
client := livetennisapi.New(os.Getenv("LIVETENNISAPI_KEY"))
page, err := client.ListMatches(context.Background(), livetennisapi.ListMatchesParams{
Status: livetennisapi.StatusLive,
ListParams: livetennisapi.ListParams{Limit: 10},
})
if err != nil {
log.Fatal(err)
}
for _, match := range page.Data {
fmt.Printf("%-28s %s vs %s — %s\n",
match.Tournament,
match.Players.P1.Name,
match.Players.P2.Name,
match.Score, // nil-safe: prints "-" before a match starts
)
}
}</code></pre>
<p>The module uses the standard library only. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-go#readme">README</a> of version 1.3.0.</p>
<h3 id="php">PHP</h3>
<pre><code>composer require livetennisapi/livetennisapi
composer require guzzlehttp/guzzle</code></pre>
<pre style="tab-size:4"><code>use LiveTennisApi\LiveTennisApi;
$client = new LiveTennisApi('twjp_…'); // or set LIVETENNISAPI_KEY
foreach ($client->listMatches('live') as $match) {
echo $match->tournament, ' [', $match->tour, ']: ',
$match->p1()?->name, ' vs ', $match->p2()?->name, "\n";
// score is nullable — an upcoming match has none yet
if ($match->score !== null) {
// points are STRINGS ("40", "AD"); games are player-major per-set lists
echo ' ', implode('-', $match->score->points), "\n";
}
}</code></pre>
<p>The client needs a PSR-18 HTTP client and PSR-17 factories. The second line installs Guzzle, which provides both. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-php#readme">README</a> of version 1.2.0.</p>
<h3 id="dotnet">.NET</h3>
<pre><code>dotnet add package LiveTennisApi</code></pre>
<pre style="tab-size:4"><code>using LiveTennisApi;
using LiveTennisApi.Models;
using var client = new LiveTennisApiClient("twjp_your_key");
var live = await client.ListMatchesAsync(MatchStatus.Live);
foreach (var m in live.Data)
{
Console.WriteLine($"{m.Tournament}: {m.Players?.P1?.Name} vs {m.Players?.P2?.Name}");
}</code></pre>
<p>The package targets .NET Standard 2.0 and .NET 8. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-dotnet#readme">README</a> of version 1.2.1.</p>
<h3 id="dart">Dart and Flutter</h3>
<pre><code>dart pub add livetennisapi</code></pre>
<pre style="tab-size:4"><code>import 'package:livetennisapi/livetennisapi.dart';
Future<void> main() async {
final client = LiveTennisApi(apiKey: 'twjp_your_key');
try {
final page = await client.listMatches(status: MatchStatus.live);
for (final match in page.data) {
final s = match.score;
final (g1, g2) = s?.gamesForSet(0) ?? (null, null);
print('${match.tournament} [${match.tour}]: '
'${match.p1?.name} vs ${match.p2?.name} '
'(${g1 ?? '-'}-${g2 ?? '-'}, serving: ${s?.server ?? '—'})');
}
} on UpgradeRequiredException catch (e) {
print('Needs the ${e.requiredTier} tier');
} on RateLimitedException catch (e) {
print('Slow down; retry after ${e.retryAfter}s');
} finally {
client.close();
}
}</code></pre>
<p>The package is pure Dart and depends only on <code>package:http</code>. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-dart#readme">README</a> of version 1.2.1.</p>
<h3 id="swift">Swift</h3>
<pre><code>.package(url: "https://github.com/livetennisapi/livetennisapi-swift.git", from: "1.2.1")</code></pre>
<pre style="tab-size:4"><code>import LiveTennisApi
let client = LiveTennisApiClient(apiKey: "twjp_your_key_here")
let live = try await client.listMatches(status: .live, tour: .atp)
for match in live.data {
let p1 = match.players?.p1?.name ?? "?"
let p2 = match.players?.p2?.name ?? "?"
print("\(match.tournament): \(p1) vs \(p2) — \(match.score?.description ?? "-")")
}</code></pre>
<p>Add the first line to the dependencies in <code>Package.swift</code>. The package supports macOS 12, iOS 15, tvOS 15, watchOS 8 and Linux. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-swift#readme">README</a> of version 1.2.1.</p>
<h3 id="r">R</h3>
<pre><code>install.packages("livetennisapi", repos = c("https://livetennisapi.r-universe.dev", "https://cloud.r-project.org"))</code></pre>
<pre style="tab-size:4"><code>library(livetennisapi)
live <- live_matches(tour = "atp")
if (nrow(live) > 0) {
print(live[, c("id", "tournament", "players.p1.name", "players.p2.name")])
match_score(live$id[1])
}
search_players("sinner")
list_fixtures(tour = "wta", limit = 20)</code></pre>
<p>List functions return a tibble. Put the key in <code>~/.Renviron</code> as <code>LIVETENNISAPI_KEY</code>. The example is from the <a href="https://github.com/livetennisapi/livetennisapi-r#readme">README</a> of version 0.2.1.</p>
<h2 id="versions">How do I check that a version here is current?</h2>
<p>The versions were read from the registries on
<time datetime="2026-11-19">2026-11-19</time>. The registry link under each
install command always shows the newest release.</p>
<p>The docs repository has a script, <code>scripts/check_client_versions.py</code>. It reads every
registry again and names each row that is behind.</p>
<h2 id="links">Links</h2>
<ul>
<li><a href="https://github.com/livetennisapi">Every repository in the GitHub organisation</a></li>
<li><a href="./openapi.yaml">The OpenAPI spec</a>, for generating a client in another language</li>
<li><a href="https://livetennisapi.com/subscribe/free">Free API key</a></li>
<li><a href="./auth-quota-and-health.html">Authentication, quota and status</a></li>
</ul>
</main>
<footer>
<hr>
<nav class="pagenav" aria-label="Other topics">
<a href="./live-scores.html">Live tennis scores API</a>
<a href="./players-and-tournaments.html">Tennis players, tournaments and rankings API</a>
<a href="./tennis-odds.html">Tennis odds API — markets and price ticks</a>
<a href="./point-by-point-history.html">Point-by-point tennis data API</a>
<a href="./historical-results-archive.html">Historical tennis results API — 1968 onward</a>
<a href="./shot-level-rally-data.html">Shot-by-shot tennis rally and charting API</a>
<a href="./broadcast-graphics.html">Tennis scores for on-air graphics</a>
<a href="./push-feed-and-webhooks.html">Tennis WebSocket feed and webhooks</a>
<a href="./auth-quota-and-health.html">Tennis API authentication, quota and status</a>
<a href="./ai-sdk.html">Live Tennis API tools for the Vercel AI SDK</a>
<a href="./errors-and-rate-limits.html">Errors and rate limits</a>
<a href="./export-formats.html">Export tennis data to CSV, JSON Lines or Parquet</a>
<a href="./sportsml.html">Tennis score mapping to IPTC SportsML</a>
</nav>
<p class="meta">Versions and coverage checked on 2026-11-19. Library source in the <a href="https://github.com/livetennisapi">livetennisapi</a> organisation, page source in <a href="https://github.com/livetennisapi/openapi">livetennisapi/openapi</a>.</p>
<p class="meta">Built by <a href="https://synapsereality.io/work/live-tennis-api/">Synapse Research Ltd</a>.</p>
</footer>
</div>
<script>
(function(){try{navigator.sendBeacon('https://livetennisapi.com/collect',JSON.stringify({kind:'docs_view',path:location.pathname,host:location.host}))}catch(e){}})();
</script>
<script>
(function(){var E={};"AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE IS LI NO".split(" ").forEach(function(c){E[c]=1});fetch("https://livetennisapi.com/cdn-cgi/trace").then(function(r){return r.text()}).then(function(t){var m=t.match(/loc=(\w+)/);if(!m||E[m[1]])return;(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y)})(window,document,"clarity","script","xotc2pctsp");try{clarity("set","user_state","docs")}catch(e){}}).catch(function(){})})();
</script>
</body>
</html>