# GET https://sportsapi.app/embed/chat

Group: Widgets

Pro (10,000 messages a month per account), Business and Enterprise (unlimited). The AI chat assistant: a floating button that opens a chat panel on your site, where visitors ask about live scores, fixtures, results, standings, lineups, statistics, teams and players, and it answers from this API’s data with match, table and player cards. Messages are unlimited, with fair-use protection against sudden bursts, and they do not count against your request quota. Set the assistant’s name, greeting, tone, language, colours, logo, your site’s address (the assistant names it and gives it when asked which site this is; it shares no other links), the button’s text and icon (the chat bubble, your logo or an image of your own), sports and leagues per widget key on the dashboard (Widgets tab); an empty greeting greets each visitor in their language. Attributes: data-position (right or left), data-open (auto: open on screens 768 px and wider; open; closed — a visitor’s own choice is remembered), data-label / data-label-short (the button’s text; they override the text set on the dashboard), data-mobile-offset (px to lift the button on phones), data-theme (auto, light, dark), data-lang (en, tr, es, de, fr, pt; default: the visitor’s).

Note: Like the tracker, the chat is a page of sportsapi.app inside a frame, shown only on the site your widget key names. It talks about sports only, and betting odds stay out unless you switch them on for the key (shown as information, never tips).

## Example response

```json
<div data-widget="chat" data-position="right"></div>
<script src="https://sportsapi.app/widgets/v1.js" data-key="pk_live_…" async></script>
```

---

Base URL: https://api.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/widgets/chat · All docs: https://sportsapi.app/markdown/en/docs.md
