# Unabated API
> Market data for developers, content partners, and the agents helping them.
Source: https://docs.unabated.com/start/quickstart
Start building › Quickstart
# Your first odds request.
Build with Unabated market data in a few clear steps. For developers, content partners, and the agents helping them.
Show guidance forFree APIConcierge APIEnterprise API
✦
### Agents welcome.
Read the tier rules and start with a runnable example. These same guides are available in Markdown, alongside a machine-readable OpenAPI contract.
Copy a starter prompt ▢[Markdown index ↗](https://docs.unabated.com/llms.txt)[Build with an agent →](https://docs.unabated.com/start/agents)
1
## Get your API key
Complete your content partner profile, then generate a key in your account. Already a Concierge subscriber? Your API key management is available in the same place.
[Open API key management ↗](https://tools.unabated.com/api-keys)
Keep the key on your application's server. Set `UNABATED_API_KEY` in your environment; never put it in a public page or repository.
2
## Request an odds snapshot
This example requests NFL moneyline odds. [Discover current leagues and bet types](https://docs.unabated.com/guides/discovery) to request another market. Read the returned snapshot from `data.odds`.
cURLJavaScriptPython
Copy
```
curl --fail-with-body --max-time 20 \
"${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}/market/nfl/straight/odds?betTypeId=1" \
-H "X-Api-Key: $UNABATED_API_KEY"
```
Set `UNABATED_API_KEY` privately and `UNABATED_API_BASE_URL` to `https://data.unabated.com` before running the command. See [API key setup](https://docs.unabated.com/start/authentication#api-base-url).
◷
Free odds are delayed by at least 15 seconds. Make one odds request every five seconds per API key, shared across all odds endpoints.
What a successful response looks like
```
{
"success": true,
"data": {
"odds": { "…": "league, event, market, and selection data" },
"lastUpdated": "…"
},
"messages": []
}
```
This is an abbreviated shape, not a fixture to copy into your integration. Follow the [response hierarchy](https://docs.unabated.com/guides/response-concepts) to reach available selections. Lines depend on the sport, book, market, and your access scope.
3
## Free API only: publish a link with your partner code
Choose a real Gambly deep link from the response and add the tracking suffix shown on your API keys page before publishing it.
JavaScript · attach attribution onceCopy
```
const url = new URL(deepLink);
url.searchParams.set("utm_campaign", partnerCode);
const publishedLink = url.toString();
```
⚠
**Free partners: add your tracking code.** Untagged clicks do not count toward your traffic. Test the link from your site or platform, then confirm the lifetime count and last-click time in your account.
[See the complete deep-link workflow →](https://docs.unabated.com/guides/deep-links)
4
## Add live updates with Concierge API or Enterprise API
Create a filtered subscription, then open its signed SSE URL to receive updates within your API tier's data coverage. Free API access uses REST polling.
[Read the streaming lifecycle guide →](https://docs.unabated.com/guides/streaming/lifecycle)
Next: understand the odds response[Explore odds and markets →](https://docs.unabated.com/guides/odds)
Selecting a tier above changes the guidance shown here. It does not change your API tier. [Compare access tiers](https://docs.unabated.com/start/access-tiers).
Source: https://docs.unabated.com/start/access-tiers
# Choose your API access
Build with REST odds and the workflows included in your API tier. Free API and Enterprise API support standard deep-link and bet-slip generation; Concierge API provides live odds and streaming. These guides serve humans and agents alike; each endpoint identifies its available API tiers.
| Capability | Free API | Concierge API | Enterprise API |
| --- | --- | --- | --- |
| REST odds | Included, delayed by at least 15 seconds | Live data | As contracted |
| Sports | Supported sports with available included-book data | NFL, NBA, MLB, NHL, WNBA | As contracted |
| Sportsbooks | Included provider set | All books within the five supported leagues | As contracted |
| Odds polling | One request every five seconds per key, shared across odds endpoints | Subject to your access policy | Subject to your access policy |
| Standard deep-link generation (`GET /deeplink`) | Included | Not included | Available |
| Bet-slip generation and status | Included | Not included | Available |
| Server-Sent Events (SSE) | Not included | Included | Available |
| NBA news and additional datasets | Not included | Not included | As contracted |
| NFL in-game output model | Not included | Not included | As contracted |
Results remain within your API tier's league and sportsbook coverage. Enterprise API datasets follow your agreement. An empty board can mean there are no available offers within that coverage; a discovery result does not promise that every book offers every market.
## Free API: become a content partner
Start at [Free API signup](https://tools.unabated.com/free-api). Sign in or create an Unabated account, enter your partner name and unique partner code, and tell us at least one place where you plan to share sportsbook links. Then agree to the content partner terms and generate a key.
Free access is provided to drive sportsbook traffic through Gambly deep links. Add your partner code to every generic deep link you publish, and test the links from your own site or platform. Untagged clicks cannot be credited to you. Access may be revoked at Unabated/Gambly's discretion when the partner conditions are not met.
The included providers are DraftKings, FanDuel, MGM, Caesars, theScoreBet, PrizePicks, DraftKings Pick6, Fanatics, Novig, Underdog, ProphetX, Kalshi, Underdog Prediction Markets, and Polymarket. Use the [market source discovery endpoint](https://docs.unabated.com/guides/discovery) to find the IDs and current availability for the league and market you need.
Free odds have a minimum delay of 15 seconds. Snapshot publication, transport, and unchanged markets can make a response older; this is not a promise that every line is exactly 15 seconds old. Polling faster does not make the data fresher.
## Concierge API: live professional sports
Manage keys at [Manage API Keys](https://tools.unabated.com/api-keys). Concierge API access covers NFL, NBA, MLB, NHL, and WNBA, including all books within that coverage and live odds streaming.
Concierge API does not include `GET /deeplink`, `POST /api/v1/bet/generate`, or `GET /api/v1/bet/status/{guid}`. These operations are available to Free API and Enterprise API. Concierge integrations can collect REST odds and consume SSE without calling them.
Concierge takes precedence while active. If you started as a Free content partner and later upgrade, your partner information remains; your effective API scope follows Concierge. If Concierge ends, an existing Free enrollment can provide Free access again.
## Enterprise API: match the data to your integration
Enterprise API coverage follows your agreement, including leagues, books, streams, and additional datasets.
[Contact your Unabated representative](https://unabated.com/odds-api/enterprise#enterprise-contact) to confirm which datasets your Enterprise API agreement includes before building your integration.
## Next steps
- [Make your first request](https://docs.unabated.com/start/quickstart).
- [Keep your key secure](https://docs.unabated.com/start/authentication).
- [Publish and test a tracked link with Free API or Enterprise API](https://docs.unabated.com/guides/deep-links).
- [Connect a live stream with Concierge API or Enterprise API](https://docs.unabated.com/guides/streaming/lifecycle).
Source: https://docs.unabated.com/start/authentication
# Authenticate with your API key
**Available for: Free API · Concierge API · Enterprise API.** Endpoint and data availability depend on your API tier.
Send your API key in the `X-Api-Key` request header. Use HTTPS and keep the key in your server's environment or secrets store.
Set `UNABATED_API_BASE_URL` to `https://data.unabated.com` before running any example. Keep your API key private.
```bash
export UNABATED_API_BASE_URL="https://data.unabated.com"
read -r -s -p "API key: " UNABATED_API_KEY; printf '\n'
export UNABATED_API_KEY
curl --fail-with-body --connect-timeout 5 --max-time 20 \
--header "X-Api-Key: ${UNABATED_API_KEY}" \
--header "Accept: application/json" \
"${UNABATED_API_BASE_URL}/league"
```
The `read` example is for Bash and asks for the key without placing it in shell history. For deployed software, inject the environment variable from your secrets manager.
## API base URL
Use `https://data.unabated.com` as the base URL for REST requests and subscription creation. Manage your keys at [Manage API Keys](https://tools.unabated.com/api-keys).
The examples read `UNABATED_API_BASE_URL` from your application's configuration. Set it to the API base URL above; the signed streaming URL returned by the API uses the same origin.
## Get and manage keys
Free API content partners begin at [Free API signup](https://tools.unabated.com/free-api). Concierge API subscribers use the existing key management page. Enterprise API keys and dataset coverage follow your agreement.
Self-service key management supports up to two active keys. To rotate safely, generate a second key, deploy it to your integration, verify requests, and then revoke the old key. A revoked key no longer authorizes new requests.
Do not put an API key in public browser JavaScript, a mobile application bundle, screenshots, source control, or an agent prompt. Have your backend make authenticated requests and return only the data your frontend needs. Avoid placing credentials in query strings, where URLs can appear in logs or browser history.
## Signed stream URLs
For Concierge API or Enterprise API streaming, create a subscription with your API-key header. The response supplies a signed stream URL. Connect to that returned URL as described in the [streaming guide](https://docs.unabated.com/guides/streaming/lifecycle); treat the URL as a temporary credential and do not log or publish it.
A browser `EventSource` can open the signed URL without putting your API key in the browser. Your backend should create the subscription and deliver the signed URL only to an authorized client. The signed URL is not a permanent replacement for a key.
## Authentication and API tiers
A `401` means authentication failed or is required. A `403` means the requested endpoint or data is unavailable for your API tier or Enterprise API agreement. Check [access tiers](https://docs.unabated.com/start/access-tiers) and the endpoint's availability before trying again; changing transport or repeating the request does not change your tier.
For successful HTTP responses, also inspect the body: endpoints using the public response envelope can return `success: false` with explanatory `messages`. See [errors and limits](https://docs.unabated.com/guides/errors-and-limits).
Source: https://docs.unabated.com/start/agents
# Agents welcome
These docs are built for humans and agents working together. Start with the successful request flow, discover current identifiers from the API, and read each endpoint's available API tiers before making calls.
## Read the documentation
- [Quickstart](https://docs.unabated.com/start/quickstart): key setup, a first odds request, and the next action.
- [API Reference](https://docs.unabated.com/reference): methods, parameters, request bodies, and response schemas.
- [llms.txt](https://docs.unabated.com/llms.txt): a compact index of the documentation.
- [llms-full.txt](https://docs.unabated.com/llms-full.txt): documentation content for tools that prefer one text resource.
## OpenAPI specification
The [OpenAPI specification](https://data.unabated.com/swagger/v1/swagger.json) is machine-readable JSON describing routes, parameters, authentication, and response schemas. Tools can use it to inspect the contract or generate clients. You do not need to download it to follow the readable guides.
## Integration rules for an agent
1. Use `https://data.unabated.com` and confirm the API tier. Keep credentials in an environment variable or secrets store; never request a key in an ordinary chat message.
2. Discover league names, bet type IDs, period types, and market source IDs from the [discovery endpoints](https://docs.unabated.com/guides/discovery). Do not copy a stale identifier list into application code.
3. Check HTTP status and, when present, `success` and `messages`. Do not treat an empty response as an authentication success test or a guarantee of sportsbook coverage.
4. Serialize Free odds requests through one scheduler per API key. The five-second interval is shared across odds endpoints; honor `Retry-After` after a `429`.
5. Read structured odds fields rather than parsing composite dictionary keys. Preserve IDs, prices, points, timestamps, and selection context.
6. For a Free partner, add the partner code to returned generic Gambly links and test from the partner's own platform. Do not guess a sportsbook destination or fabricate a selection URL.
7. Use SSE with Concierge API or Enterprise API. Concierge API does not include `GET /deeplink`, `POST /api/v1/bet/generate`, or `GET /api/v1/bet/status/{guid}`; those operations are available to Free API and Enterprise API. Check each endpoint's available API tiers before requesting data.
8. Use bounded retries and request timeouts. Report an unavailable API tier or unsupported data request rather than attempting to work around it.
## Example prompts
### Build a Free odds integration
```text
Build a server-side Unabated Free API integration using these docs.
Read UNABATED_API_KEY and UNABATED_PARTNER_CODE from the environment.
Set UNABATED_API_BASE_URL to https://data.unabated.com.
Discover current leagues and market sources. Request one straight-odds
board, check HTTP status plus the success/messages envelope, and show
available selections using structured fields. Coordinate every odds
request through one five-second scheduler per key and honor Retry-After.
Add our partner code to generic Gambly deep links without duplicating it.
Keep all credentials out of the client, logs, and generated source files.
```
### Build a live odds store
```text
Using the Unabated streaming guides and API Reference, build a server-side
client for a Concierge API or Enterprise API key. Use https://data.unabated.com
and discover filter IDs,
create a subscription, connect to its signed URL, and maintain current
state according to the documented snapshot, ordering, and recovery rules.
Use event families available for our API tier. Redact signed URLs and keys
from logs. Preserve a returned deep link only while its selection points
remain unchanged; odds collection must also work without a link. For
Concierge, do not call /deeplink or bet-slip generation/status endpoints.
Close streams on shutdown. Confirm our API tier and data coverage before running.
```
### Generate a bet slip with Free API or Enterprise API
```text
Use a Free API or Enterprise API key; Concierge API does not include this workflow.
Use https://data.unabated.com. Use POST /api/v1/bet/generate with content.text, then poll the returned
requestId using GET /api/v1/bet/status/{guid}. Check both HTTP failures
and the body's processing status. Stop on Complete or Error, enforce
a maximum wait, and show matched-leg counts alongside returned links.
Never infer that all requested legs matched or that displayed prices
will remain unchanged when the user reaches the sportsbook.
```
## Useful completion checks
A working integration should demonstrate a successful response, a handled invalid-key or denied-feature response, controlled polling, and safe credential handling. For a Free API or Enterprise API link workflow, also demonstrate a real returned deep link. For a Free partner, verify click attribution on the key management page after opening the published link. For streaming, demonstrate cleanup and recovery using the documented state rules; a Concierge odds integration does not require a deep link or generated bet slip.
Source: https://docs.unabated.com/guides/odds
# Request and read odds
**Available for: Free API · Concierge API · Enterprise API.** Free API odds are delayed by at least 15 seconds and limited to included books. Concierge API covers NFL, NBA, MLB, NHL, and WNBA with live data. Enterprise API coverage follows your agreement.
`GET /market/{league}/{marketType}/odds`
Choose a league route name from [`GET /league`](https://docs.unabated.com/guides/discovery) and one market type: `straight`, `futures`, or `props`. The response contains a board grouped by league, period, event/market group, side, and sportsbook.
Free API permits one odds request every five seconds per API key, shared across all odds endpoints. Use one scheduler for that key, even when requesting different leagues or market types. Honor the response's `Retry-After` header on a `429`.
## Make a request
Set `UNABATED_API_BASE_URL` explicitly to the [API base URL](https://docs.unabated.com/start/authentication#api-base-url), `https://data.unabated.com`. The examples stop if it is missing.
```bash
curl --fail-with-body --connect-timeout 5 --max-time 20 \
--header "X-Api-Key: ${UNABATED_API_KEY}" \
--header "Accept: application/json" \
"${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}/market/nfl/straight/odds"
```
For a narrower response, add one or more `betTypeId` query parameters using IDs from `GET /bettype`:
```text
/market/nfl/straight/odds?betTypeId=BET_TYPE_ID&betTypeId=ANOTHER_BET_TYPE_ID
```
This route does not accept arbitrary sportsbook, event, or period filters. Fetch the permitted board and select the records your application needs from its structured fields.
## Navigate the response
Start at **`body.data.odds`**, after checking the HTTP status and `body.success`.
```text
data.odds
→ each league (leagueId)
→ periodTypes (periodTypeId)
→ pregame and live groups (eventId, eventName, betTypeId)
→ sides (sideIndex, sideName, teamId, personId)
→ marketSourceLines (marketSourceId, marketLineId,
points, price, deepLink, alternateLines)
```
Dictionary keys group data for efficient access. Use fields such as `eventId`, `betTypeId`, `sideIndex`, and `marketSourceId` for identity; do not reverse-engineer a key's spelling to obtain those values.
### Extract available selections
These examples request one board and print available selections, including a deep link when one is returned. A missing link does not prevent odds collection. They do not place bets. Set `UNABATED_API_KEY` securely. Override the league or market type with values you have discovered.
Node.js 20 or later; save as `odds.mjs` and run `node odds.mjs` on your server.
```javascript
const key = process.env.UNABATED_API_KEY;
if (!key) throw new Error('Set UNABATED_API_KEY');
const base = process.env.UNABATED_API_BASE_URL;
if (!base) throw new Error('Set UNABATED_API_BASE_URL to https://data.unabated.com');
const response = await fetch(`${base}/market/nfl/straight/odds`, {
headers: { 'X-Api-Key': key, Accept: 'application/json' },
signal: AbortSignal.timeout(20_000),
});
if (!response.ok) {
const retry = response.headers.get('Retry-After');
throw new Error(`HTTP ${response.status}; Retry-After=${retry ?? 'none'}`);
}
const body = await response.json();
if (body.success !== true) throw new Error((body.messages ?? []).join('; '));
for (const league of Object.values(body.data?.odds ?? {})) {
for (const period of Object.values(league.periodTypes ?? {})) {
for (const groups of [period.pregame, period.live]) {
for (const group of Object.values(groups ?? {})) {
for (const side of Object.values(group.sides ?? {})) {
for (const line of Object.values(side.marketSourceLines ?? {})) {
if (line.statusId !== 1 || line.disabled) continue;
console.log({
event: group.eventName, eventId: group.eventId,
betTypeId: group.betTypeId, periodTypeId: period.periodTypeId,
side: side.sideName, sourceId: line.marketSourceId,
lineId: line.marketLineId, points: line.points,
price: line.price, deepLink: line.deepLink,
});
}
}
}
}
}
}
```
Python 3.10 or later; install `requests` with `python -m pip install requests`.
```python
import os
import requests
base = os.environ['UNABATED_API_BASE_URL']
response = requests.get(
f'{base}/market/nfl/straight/odds',
headers={'X-Api-Key': os.environ['UNABATED_API_KEY']},
timeout=(5, 20),
)
response.raise_for_status()
body = response.json()
if body.get('success') is not True:
raise RuntimeError('; '.join(body.get('messages', [])))
for league in ((body.get('data') or {}).get('odds') or {}).values():
for period in (league.get('periodTypes') or {}).values():
for phase in ('pregame', 'live'):
for group in (period.get(phase) or {}).values():
for side in (group.get('sides') or {}).values():
for line in (side.get('marketSourceLines') or {}).values():
if line.get('statusId') != 1 or line.get('disabled'):
continue
print({
'event': group.get('eventName'),
'eventId': group.get('eventId'),
'betTypeId': group.get('betTypeId'),
'side': side.get('sideName'),
'sourceId': line.get('marketSourceId'),
'lineId': line.get('marketLineId'),
'points': line.get('points'),
'price': line.get('price'),
'deepLink': line.get('deepLink'),
})
```
## Prices, alternates, and links
`price` is the American odds value. `points` identifies the line for a spread, total, or prop; it can be absent for selections that do not use points. `sourcePrice`, `sourceFormat`, and `liquidity` may supply source-specific information; consult the schema rather than assuming all providers use the same representation.
`alternateLines` contains alternate points/prices for the selection. Read each alternate's own `points`, `price`, status, and `deepLink`. Do not attach the main line's URL to an alternate with different points.
Use the returned `deepLink` when available. The separate `GET /deeplink` generation endpoint is available to Free API and Enterprise API, not Concierge API; Concierge integrations can display odds without calling it. For Free content partners, add the partner code before publishing; the [deep-link guide](https://docs.unabated.com/guides/deep-links) shows the complete process. A link resolves the destination at click time; the sportsbook can have changed its price or availability since your response.
## Freshness and empty boards
`data.lastUpdated` is Unix time in milliseconds derived from the newest included line modification. It is not the HTTP response time or a guarantee that every line changed then. Individual lines can have `modifiedOn`, `sequenceNumber`, and `freshnessExpiresAt` for finer context.
Free odds come from a delayed snapshot. Do not fall back to a different key or a live dataset to hide a delayed-data error. A temporary delayed snapshot failure can return `503` with `Retry-After: 5`.
An empty board or a missing book can be valid: there may be no current offers, the market may not exist for that league, or the key may lack that scope. Inspect discovered sources and the response messages. See [errors and limits](https://docs.unabated.com/guides/errors-and-limits) for recovery and [response concepts](https://docs.unabated.com/guides/response-concepts) for status values.
Source: https://docs.unabated.com/guides/deep-links
# Publish and test tracked deep links
**Available for: Free API · Enterprise API.** Standard deep links cover the sportsbooks available for your API tier. Concierge API does not include `GET /deeplink` or the bet-slip generation and status workflow. Partner attribution is required to receive credit for Free API content partner traffic.
A deep link opens a sportsbook with a specific selection or bet slip. Use the link returned by the API; do not construct a sportsbook's private URL format yourself. Destination availability and prices can change before a user opens the link.
**ATTENTION: YOU MUST ADD YOUR PARTNER CODE TO MAINTAIN YOUR FREE API ACCESS. BE SURE TO TEST YOUR DEEP LINKS FROM YOUR SITE.**
Generic Gambly links in Free odds responses do not contain your partner code. Add your tracking suffix before publishing. Untagged clicks do not count toward your partner traffic.
## Your first tracked link
1. Request an [odds board](https://docs.unabated.com/guides/odds) and choose an available line with a `deepLink`.
2. Copy your partner code or exact tracking suffix from [Manage API Keys](https://tools.unabated.com/api-keys).
3. Append that suffix to the generic returned link before publishing it on your site, social platform, or other distribution channel.
4. Open the published link from your platform, then check lifetime clicks and last-click time on the key management page.
Standard generic odds links have no query parameters. Your copied suffix is:
```text
?utm_campaign=YOUR_PARTNER_CODE
```
### Example
These are structural examples, not active selections. Replace the placeholders with the real link and code from your account.
```text
API returns:
https://www.gambly.com/deeplink/odds///
You publish:
https://www.gambly.com/deeplink/odds///?utm_campaign=YOUR_PARTNER_CODE
```
Keep the full returned path unchanged. The final segment identifies the selected points; `_` represents a selection without points. Do not change that segment to a different line or reuse it for an alternate.
## Add attribution in code
For a reusable integration, use URL parsing so repeated processing replaces the existing campaign value rather than duplicating it. These helpers are intended for the **generic Gambly odds links** returned to Free callers. They do not add tracking to unrelated sportsbook URLs.
```javascript
function trackedOddsLink(returnedLink, partnerCode) {
if (!partnerCode) throw new Error('A partner code is required');
const url = new URL(returnedLink);
const allowedOrigins = new Set(['https://www.gambly.com']);
if (!allowedOrigins.has(url.origin) || !url.pathname.startsWith('/deeplink/odds/')) {
throw new Error('Expected a generic Gambly odds link from the API');
}
url.searchParams.set('utm_campaign', partnerCode);
return url.toString();
}
// Use an actual line.deepLink from your odds response.
const publishUrl = trackedOddsLink(line.deepLink, process.env.UNABATED_PARTNER_CODE);
```
```python
from urllib.parse import parse_qsl, urlencode, urlsplit, urlunsplit
def tracked_odds_link(returned_link, partner_code):
if not partner_code:
raise ValueError('A partner code is required')
url = urlsplit(returned_link)
allowed_hosts = {'www.gambly.com'}
if url.scheme != 'https' or url.netloc not in allowed_hosts or not url.path.startswith('/deeplink/odds/'):
raise ValueError('Expected a generic Gambly odds link from the API')
query = [(key, value) for key, value in parse_qsl(url.query, keep_blank_values=True)
if key != 'utm_campaign']
query.append(('utm_campaign', partner_code))
return urlunsplit((url.scheme, url.netloc, url.path, urlencode(query), url.fragment))
# Use an actual line['deepLink'] from your odds response.
publish_url = tracked_odds_link(line['deepLink'], partner_code)
```
Use the code exactly as shown in key management. It is a public tracking identifier, not your API key. Your API key must never appear in a published link.
## Generate a standard deep link from line IDs
`GET /deeplink` is available to Free API and Enterprise API, not Concierge API. It accepts comma-separated market line IDs and an optional matching list of points. Use IDs and points from your current odds response.
Set `UNABATED_API_BASE_URL` explicitly to the [API base URL](https://docs.unabated.com/start/authentication#api-base-url), `https://data.unabated.com`. The example stops if it is missing.
```bash
# These variables must come from real selections in your response.
curl --fail-with-body --connect-timeout 5 --max-time 20 --get \
--header "X-Api-Key: ${UNABATED_API_KEY}" \
--data-urlencode "ids=${UNABATED_MARKET_LINE_IDS}" \
--data-urlencode "points=${UNABATED_SELECTION_POINTS}" \
"${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}/deeplink"
```
Use `_` for a selection without points when supplying a list of point values. If `points` is supplied, its item count must match `ids`. For Free callers, the operation supports at most 20 selections, all from the same included sportsbook, and returns a generic Gambly URL in `data.url` and `data.individualUrls`. Add your partner code before publishing that URL.
Invalid IDs or mismatched lists can produce `400`; a missing selection can produce `404`; a Concierge API key or a book outside Free API coverage can produce `403`. Same-game parlay pricing and generation are available for Enterprise API.
### Read the link result
In a successful HTTP response, `data.status` is a JSON integer and `data.statusString` is its text label. Check both the result status and the returned URL fields before publishing a link; an HTTP `200` does not by itself indicate full selection support.
| `data.status` | `data.statusString` |
| --- | --- |
| `-3` | `no_support_web` |
| `-2` | `no_support_mobile` |
| `-1` | `no_support` |
| `0` | `full_support` |
| `1` | `event_support` |
| `2` | `unknown_issue` |
| `3` | `partial_support` |
| `4` | `invalid_input` |
| `5` | `supports_one_bet_only` |
For example, full support is returned as `"status": 0` with `"statusString": "full_support"`. These values describe the link result and are separate from event, market-line, and source statuses. Bet-slip generation and polling have their own [status lifecycle](https://docs.unabated.com/guides/bet-slips).
## Generated bet-slip links
The [bet-slip generation workflow](https://docs.unabated.com/guides/bet-slips), available to Free API and Enterprise API, returns its own links. For Free content partner requests, generation carries your partner attribution into those links. Publish the returned bet-slip URLs as provided. The manual suffix step above applies to generic `/deeplink/odds/` URLs from odds or standard deep-link responses.
## Verify from your site
The key management page includes a live-link tester for real DraftKings and FanDuel examples when available. Its example links already contain your code. Use the lifetime tracker to check the integration: open a link, refresh the tracker, and confirm the count increases and the local last-click time changes.
Also test a link **published from your actual platform**, not only the tester. A template, redirect, link shortener, or publishing tool may alter the URL. Inspect the final published link to confirm your `utm_campaign` survives that path.
Lifetime clicks are a practical integration check. Affiliate reporting uses its own reporting pipeline and can update later; a reporting delay does not mean you should repeatedly create new partner codes or change your links.
Source: https://docs.unabated.com/guides/bet-slips
# Generate a bet slip
**Available for: Free API · Enterprise API.** Concierge API does not include `POST /api/v1/bet/generate` or `GET /api/v1/bet/status/{guid}`. Results remain within your API tier's league and sportsbook coverage. Free API content partner requests are limited to included books and carry partner attribution.
Turn a text description or image into matched sportsbook bet slips. Generation is asynchronous: submit content, keep the returned request ID, and poll for the result. A successful submission does not mean every requested leg has matched.
## 1. Submit content
`POST /api/v1/bet/generate`
For a text request, send `type: "text"` and `content.text`. The example prompt describes the kind of bet to find; its results depend on current availability.
Set `UNABATED_API_BASE_URL` explicitly to the [API base URL](https://docs.unabated.com/start/authentication#api-base-url), `https://data.unabated.com`. The examples stop if it is missing.
```bash
curl --fail-with-body --connect-timeout 5 --max-time 30 \
--request POST \
--header "X-Api-Key: ${UNABATED_API_KEY}" \
--header "Content-Type: application/json" \
--data '{"type":"text","generateMobileLinks":true,"content":{"text":"NFL three-game moneyline parlay"}}' \
"${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}/api/v1/bet/generate"
```
The response is a **direct object**, not the `data/success/messages` envelope used by odds endpoints. A representative accepted response looks like:
```json
{
"status": "pending",
"details": "text: NFL three-game moneyline parlay",
"requestId": "00000000-0000-4000-8000-000000000001"
}
```
The illustrated ID is a placeholder. Use your response's `requestId`. If the returned `status` indicates an error, stop and read `details`; do not poll the example ID or assume an HTTP `200` means generation succeeded.
### Image input
Use `type: "image"` with **one** image representation:
```json
{
"type": "image",
"generateMobileLinks": true,
"content": { "imageUrl": "https://your-site.example/bet-slip.png" }
}
```
Alternatively, send `content.base64String` containing the image data. A `compression` field is available for base64 input; follow the request schema for supported usage. Only submit an image you are authorized to process. `generateMobileLinks` defaults to `true`; set it to `false` when requesting desktop-oriented links.
## 2. Poll the request status
`GET /api/v1/bet/status/{guid}`
```bash
curl --fail-with-body --connect-timeout 5 --max-time 20 \
--header "X-Api-Key: ${UNABATED_API_KEY}" \
"${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}/api/v1/bet/status/${UNABATED_REQUEST_ID}"
```
| Status | What to do |
| --- | --- |
| `Processing` | Wait briefly and poll again, within your application's deadline |
| `Complete` | Read `betSlips` and inspect matched selections |
| `Error` | Stop, read `details`/`message`, and report the failure |
Status responses also use a direct object. A request remains associated with its owner; use the same account's key when polling.
## Complete lifecycle example
These server-side examples use a two-second poll interval as a client recommendation, not an endpoint limit. They stop after a bounded wait and do not automatically resubmit a generation request after a timeout, which could create duplicate work.
Node.js 20 or later; save as `bet-slip.mjs` and run on your server with `UNABATED_API_KEY` set.
```javascript
const key = process.env.UNABATED_API_KEY;
if (!key) throw new Error('Set UNABATED_API_KEY');
const base = process.env.UNABATED_API_BASE_URL;
if (!base) throw new Error('Set UNABATED_API_BASE_URL to https://data.unabated.com');
const headers = { 'X-Api-Key': key, 'Content-Type': 'application/json' };
async function request(path, options = {}) {
const response = await fetch(`${base}${path}`, {
...options, headers, signal: AbortSignal.timeout(20_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
return response.json();
}
const submitted = await request('/api/v1/bet/generate', {
method: 'POST',
body: JSON.stringify({
type: 'text', generateMobileLinks: true,
content: { text: 'NFL three-game moneyline parlay' },
}),
});
if (submitted.status?.toLowerCase() === 'error' || !submitted.requestId) {
throw new Error(submitted.details ?? 'Generation was not accepted');
}
const deadline = Date.now() + 60_000;
let completed;
while (Date.now() < deadline) {
const result = await request(`/api/v1/bet/status/${submitted.requestId}`);
const status = result.status?.toLowerCase();
if (status === 'complete') { completed = result; break; }
if (status === 'error') throw new Error(result.message ?? result.details ?? 'Generation failed');
if (status !== 'processing') throw new Error(`Unexpected status: ${result.status}`);
await new Promise(resolve => setTimeout(resolve, 2_000));
}
if (!completed) throw new Error(`Still processing; retain requestId ${submitted.requestId} to resume later`);
for (const slip of completed.betSlips ?? []) {
console.log({
book: slip.book, odds: slip.overallOdds,
matched: slip.legsMatched, requested: slip.legsRequested,
deepLink: slip.deepLink,
});
}
```
Python 3.10 or later; install `requests` with `python -m pip install requests`.
```python
import os
import time
import requests
base = os.environ['UNABATED_API_BASE_URL']
session = requests.Session()
session.headers.update({'X-Api-Key': os.environ['UNABATED_API_KEY']})
def request(method, path, payload=None):
response = session.request(method, f'{base}{path}', json=payload, timeout=(5, 20))
response.raise_for_status()
return response.json()
submitted = request('POST', '/api/v1/bet/generate', {
'type': 'text', 'generateMobileLinks': True,
'content': {'text': 'NFL three-game moneyline parlay'},
})
if submitted.get('status', '').lower() == 'error' or not submitted.get('requestId'):
raise RuntimeError(submitted.get('details', 'Generation was not accepted'))
deadline = time.monotonic() + 60
completed = None
while time.monotonic() < deadline:
result = request('GET', f"/api/v1/bet/status/{submitted['requestId']}")
status = result.get('status', '').lower()
if status == 'complete':
completed = result
break
if status == 'error':
raise RuntimeError(result.get('message') or result.get('details') or 'Generation failed')
if status != 'processing':
raise RuntimeError(f"Unexpected status: {result.get('status')}")
time.sleep(2)
if completed is None:
raise TimeoutError(f"Still processing; retain requestId {submitted['requestId']} to resume later")
for slip in completed.get('betSlips') or []:
print(slip['book'], slip.get('overallOdds'),
slip.get('legsMatched'), slip.get('legsRequested'), slip.get('deepLink'))
session.close()
```
## 3. Inspect the matched result
Each item in `betSlips` describes one sportsbook:
- `book`, `overallOdds`, and `deepLink` describe the full slip.
- `legsRequested` and `legsMatched` tell you how much of the request was matched.
- `betslipBets` contains the individual selections, including event/player descriptions, bet type, period, `odds`, and individual `deepLink.url` values.
- `sharedBetSlipId` and `shareUrl` on the status response may provide a shareable slip when one was created.
Show matched-leg counts and actual returned selections to your user. Do not present a partially matched slip as if every requested leg was found. Odds and availability can change before the sportsbook opens, and generation does not place a bet.
Free requests carry your partner attribution into returned bet-slip links. Publish those links as returned; the manual suffix workflow for generic odds links is explained separately in [tracked deep links](https://docs.unabated.com/guides/deep-links).
Source: https://docs.unabated.com/guides/discovery
# Discover leagues, books, and identifiers
**Available for: Free API · Concierge API · Enterprise API.** Responses depend on your API tier's data coverage; discovering an identifier does not expand that coverage.
Use discovery endpoints as the source of current IDs and names. This keeps your integration current as leagues, bet types, periods, and sportsbook coverage change.
## Choose the endpoint for the job
| What you need | Endpoint | What to use next |
| --- | --- | --- |
| League names and IDs | `GET /league`, `GET /league/{id}` | `name` in league-based paths; numeric `id` in filters that require IDs |
| Bet types | `GET /bettype` | `id` in odds `betTypeId` filters and streaming bet type filters |
| Market types | `GET /market-type` | Use `straight`, `futures`, or `props` for REST odds paths |
| Period types | `GET /period-type`, `GET /period-type/{league}` | Period type IDs when reading odds groups |
| Available sportsbook sources | `GET /market/{league}/{marketType}/sources` | Source `id` and `name`; streaming market source filters use IDs |
| Upcoming events | `GET /event/{league}/upcoming` | Event IDs, names, start times, and team context |
| Teams and people in an odds board | `GET /market/{league}/{marketType}/teams`, `GET /market/{league}/{marketType}/people` | IDs used in that board |
| League teams and players | `GET /team/{league}`, `GET /player/{league}` | League-scoped identities |
| Seasons and tournaments | `GET /season/{league}`, `GET /tournament/{league}` | Additional event context |
The REST odds path uses market type names; an SSE filter that requests a market type ID needs the corresponding numeric value. Follow the schema for the operation you are calling instead of assuming the two formats are interchangeable.
## Read a current league list
Set `UNABATED_API_KEY` securely and set `UNABATED_API_BASE_URL` explicitly to the [API base URL](https://docs.unabated.com/start/authentication#api-base-url), `https://data.unabated.com`. The examples stop if the base URL is missing and print league IDs and route names when the request succeeds.
```bash
curl --fail-with-body --connect-timeout 5 --max-time 20 \
--header "X-Api-Key: ${UNABATED_API_KEY}" \
--header "Accept: application/json" \
"${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}/league"
```
Node.js 20 or later; run on your server.
```javascript
const key = process.env.UNABATED_API_KEY;
if (!key) throw new Error('Set UNABATED_API_KEY');
const base = process.env.UNABATED_API_BASE_URL;
if (!base) throw new Error('Set UNABATED_API_BASE_URL to https://data.unabated.com');
const response = await fetch(`${base}/league`, {
headers: { 'X-Api-Key': key, Accept: 'application/json' },
signal: AbortSignal.timeout(20_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const body = await response.json();
if (body.success !== true) throw new Error((body.messages ?? []).join('; '));
for (const league of body.data ?? []) {
console.log(league.id, league.name, league.fullName);
}
```
Python 3.10 or later; install `requests` with `python -m pip install requests`.
```python
import os
import requests
base = os.environ['UNABATED_API_BASE_URL']
response = requests.get(
f'{base}/league',
headers={'X-Api-Key': os.environ['UNABATED_API_KEY']},
timeout=(5, 20),
)
response.raise_for_status()
body = response.json()
if body.get('success') is not True:
raise RuntimeError('; '.join(body.get('messages', [])))
for league in body.get('data') or []:
print(league['id'], league['name'], league.get('fullName', ''))
```
After choosing a returned league name, ask which books are present for the market:
```bash
# Replace nfl with a league name from /league.
curl --fail-with-body --connect-timeout 5 --max-time 20 \
--header "X-Api-Key: ${UNABATED_API_KEY}" \
"${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}/market/nfl/straight/sources"
```
The source response contains active public sportsbooks within your API coverage, including `id`, `name`, logo URLs, `isActive`, and numeric `statusId`, `propsStatusId`, and `futuresStatusId` fields. Check `disabledMarketTypeIds` and the [source status values](https://docs.unabated.com/guides/response-concepts#source-status); a source being present does not guarantee a usable line for every event. Inspect the returned odds and line status.
## Cache metadata deliberately
Cache relatively stable lookup data in your application and refresh it periodically. Several discovery operations accept `changedSince`; use it only where the endpoint reference documents it. Store the time of your last successful refresh and preserve existing records when processing changes.
There is no documented event-status or market-line-status discovery endpoint. Their stable numeric values are explained in [response concepts](https://docs.unabated.com/guides/response-concepts); do not invent a route for them.
Next: [read an odds board](https://docs.unabated.com/guides/odds) using current league and bet type identifiers.
Source: https://docs.unabated.com/guides/response-concepts
# Understand the response
**Available for: Free API · Concierge API · Enterprise API.** Fields and datasets can be omitted when not part of your API tier's data coverage.
The API uses structured identifiers, grouped odds, and explicit status fields. Read those fields directly and preserve their relationships in your integration.
## The public response envelope
Odds and many discovery operations return:
```json
{
"data": {},
"success": true,
"messages": []
}
```
`data` is the operation-specific payload: an object, list, or dictionary according to the endpoint schema. Check `success` before reading it. `messages` carries explanatory messages when an operation cannot complete. `pagination` appears only for operations that supply pagination; do not assume every list is paginated.
Bet-slip generation and status, available to Free API and Enterprise API, are an exception: their responses are direct objects with `status`, `details`, and `requestId`. Concierge API does not include these operations. Middleware and validation errors may also use a different body shape. The [error guide](https://docs.unabated.com/guides/errors-and-limits) explains how to handle that distinction.
## Selection identity
| Field | Meaning |
| --- | --- |
| `leagueId` | League identity; discover names and IDs with `/league` |
| `eventId` | Event identity, shared by selections for that event |
| `periodTypeId` | Period being priced, such as a game or a portion of it; discover period definitions |
| `betTypeId` | Type of bet; discover its name, sides, and points behavior with `/bettype` |
| `sideIndex`, `sideName` | Side of the market and its display context |
| `teamId`, `personId` | Team/player selection context when applicable |
| `marketId` | Underlying market identity |
| `marketLineId` | Sportsbook market-line identity; also used for deep-link requests with Free API or Enterprise API |
| `marketSourceId` | Sportsbook/source identity; discover names with the scoped source endpoint |
| `points` | Selected spread/total/prop line where the bet uses points |
A market line can have alternate points. Keep the selected points with its identity; the same market-line ID does not make all alternate selections interchangeable. Preserve a returned deep link for the exact points you display.
Odds dictionaries group by league, period, pregame/live phase, market group, side, and source. Composite dictionary keys are grouping keys. Structured IDs and fields are the contract to use when comparing or joining records.
## Side index
These stable numeric values describe conventional sides:
| Value | Meaning |
| --- | --- |
| `0` | Away or over |
| `1` | Home or under |
| `2` | Tie or draw |
Use the group's bet type and `sideName` to understand the selection. Do not label every `0` as “away” when reading an over/under market, or assume every market has a draw side.
## Event status
| `statusId` | Meaning |
| --- | --- |
| `1` | Pre-game |
| `2` | Live |
| `3` | Final |
| `4` | Delayed |
| `5` | Postponed |
| `6` | Cancelled |
These are event/group statuses. A live event does not imply that every sportsbook line is currently available.
## Market-line status
| `statusId` | Meaning |
| --- | --- |
| `1` | Available |
| `2` | Unavailable |
| `3` | Price unknown |
Also inspect `disabled` and the presence of the required price/link fields. Do not show a disabled or unavailable line as an actionable bet merely because you still have its old URL. Source status fields use the separate values below.
## Source status
Market source `statusId`, `propsStatusId`, and `futuresStatusId` are JSON integers. They describe the source's overall, props, and futures status respectively.
| Value | Meaning |
| --- | --- |
| `1` | High frequency |
| `2` | Low frequency |
| `3` | Offline |
A returned `0` has no defined source-status meaning; handle it as unknown. Preserve unrecognized numeric values without treating them as available. Also inspect `isActive`, `disabledMarketTypeIds`, and the individual market line before using a source's price. These source statuses do not specify a polling interval or replace the market-line status.
## Player priority
Player `priorityType` is a JSON integer when present. Player records use `0` for normal priority and `1` for highest priority. Values `2` and `3` are retained for compatibility; do not assign them an additional ranking meaning. The field can be omitted when no priority is supplied.
## Partner identifiers
Partner metadata uses the JSON property names `fanduel` and `sportradar`. Available mappings contain string identifiers:
| Object | Identifier inside each partner mapping |
| --- | --- |
| `partnerEventData` | `eventId` |
| `partnerTeamData` | `teamId` |
| `partnerPlayerData` | `playerId` |
| `partnerOddsData` (`fanduel` only) | `marketId` and `selectionId` |
For example, a player mapping has this structure:
```json
{
"partnerPlayerData": {
"sportradar": {
"playerId": "provider-player-id"
}
}
}
```
The example identifier is a placeholder. Partner mappings are optional: `fanduel` depends on your API coverage, and either mapping can be absent when no matching identifier exists. Keep provider identifiers as strings and separate from the API's own numeric event, team, and player IDs.
## Prices and optional fields
`price` is American odds. `points` can be absent for a selection without a points line. `openerPrice` and `openerPoints`, when present, describe the first captured line. `alternateLines` describes other available points/prices; use each alternate's own fields.
Source-specific price, format, and liquidity fields can vary across providers. Use `sourceFormat` and the reference schema when interpreting `sourcePrice`. Do not turn an omitted price into zero or assume that omitted liquidity means no liquidity.
Null fields can be omitted from JSON. Fields outside your API tier's datasets may be absent, and partner/source metadata can be absent when no mapping exists. Clients should tolerate missing optional fields and additional fields while still checking required contract values.
## Timestamps and ordering
`data.lastUpdated` in an odds response is Unix time in **milliseconds**, based on the newest included line modification. Convert it with `new Date(value)` in JavaScript, or divide by `1000` before passing it to Python's timestamp conversion. A value of `0` does not provide a useful observed update time.
`modifiedOn` identifies an individual record's modification time where provided. `sequenceNumber` and `freshnessExpiresAt` provide additional line context. The response timestamp does not mean every line changed at once; a delayed response can contain many unchanged selections.
When consuming live updates, apply the [streaming ordering and recovery rules](https://docs.unabated.com/guides/streaming/recovery). Do not compare SSE event IDs as if they were interchangeable with a market line's sequence number.
## Deep links are selection data
When a deep link is returned, use the one belonging to the displayed selection or alternate. Free odds links are generic Gambly URLs until you add your partner code. Price-only live updates can omit links; retain an existing link for the unchanged selection instead of clearing it whenever a delta lacks `deepLink`. Odds collection does not require a link.
Before publishing a link for a new selection or different points, obtain the correct current link rather than attaching a URL from a different line. The separate `GET /deeplink` endpoint is available to Free API and Enterprise API, not Concierge API. See [tracked deep links](https://docs.unabated.com/guides/deep-links) and [odds](https://docs.unabated.com/guides/odds).
Source: https://docs.unabated.com/guides/errors-and-limits
# Handle errors and request limits
**Available for: Free API · Concierge API · Enterprise API.** The five-second odds interval below applies to Free API keys; other limits depend on your API tier.
Check the HTTP status first. For endpoints using the public envelope, also check `success` and `messages` before reading `data`. Bet-slip operations, available to Free API and Enterprise API, use a direct status object instead; see their [lifecycle guide](https://docs.unabated.com/guides/bet-slips).
## Know what the response means
| Signal | Meaning | Recovery |
| --- | --- | --- |
| `400` | Invalid request, identifier, parameter, or body | Correct the input; check the operation schema and discovery data |
| `401` | Authentication missing or invalid | Check the header, API base URL, and active key |
| `403` | Endpoint or data is unavailable for your API tier or Enterprise API agreement | Check the endpoint's available tiers and data coverage; repeating the call does not change your tier |
| `404` | The requested resource or selection was not found, where emitted by that operation | Refresh the relevant data and use a current identifier |
| `429` | Free odds request arrived before the key's next allowed interval | Wait for `Retry-After`; coordinate all odds calls using that key |
| `503` | Odds access or the delayed snapshot is temporarily unavailable | Respect `Retry-After` and use bounded backoff |
| Other `5xx` or network timeout | Processing, upstream, or transport failure | Preserve useful context; retry suitable read operations with a bound, and surface persistent failures |
| HTTP success with `success: false` | The public operation could not complete successfully | Read `messages`; do not assume `data` exists |
| HTTP success with bet-slip `status: "error"` or `"Error"` | Generation/status processing failed | Read `details` and `message`; stop the lifecycle rather than polling indefinitely |
Error bodies are not all the same shape. Middleware can return a `message` object; some operations return plain text or framework validation errors. Inspect status and content type before assuming every error has a `data` envelope.
When a Free API key calls an endpoint excluded from Free API, such as `POST /subscriptions` or `GET /sse/{subscriptionId}`, the scope check returns HTTP `403` with this JSON body:
```json
{
"message": "This endpoint is not included in Free API access."
}
```
Read the singular `message` field directly; this response has no `data`, `success`, or `messages` fields. Other access checks can return a different JSON object, plain text, or an empty body. Keep HTTP status handling independent of body parsing so an empty denial remains a `403` access failure.
Concierge API does not include `GET /deeplink`, `POST /api/v1/bet/generate`, or `GET /api/v1/bet/status/{guid}`. A `403` from these operations is an access restriction, not a reason to retry; Concierge REST odds and SSE remain available within their documented scope.
## Free odds: one scheduler per key
Allow **one odds call every five seconds per API key, shared across all odds endpoints**. A call for NFL consumes the same interval as a call for NBA, props, or futures using that key. Requests served from an odds cache still go through admission.
Do not create one independent five-second timer per endpoint. If multiple processes share a key, coordinate their requests. Sequential polling should schedule the next call after the previous request and interval have completed.
This shared interval applies to odds endpoints. Discovery and bet-slip status requests do not consume that odds interval; keep their polling bounded too.
### Retry a read safely
This Node.js 20+ example serializes calls made through **one instance** of the client. A distributed integration must coordinate across its processes too. It honors `Retry-After`, bounds attempts, and uses a timeout. Set `UNABATED_API_KEY` securely and set `UNABATED_API_BASE_URL` explicitly to the [API base URL](https://docs.unabated.com/start/authentication#api-base-url), `https://data.unabated.com`. The example stops if the base URL is missing.
```javascript
const key = process.env.UNABATED_API_KEY;
if (!key) throw new Error('Set UNABATED_API_KEY');
const base = process.env.UNABATED_API_BASE_URL;
if (!base) throw new Error('Set UNABATED_API_BASE_URL to https://data.unabated.com');
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
let queue = Promise.resolve();
let nextRequestAt = 0;
function retryDelay(response, fallbackMs) {
const value = response.headers.get('Retry-After');
if (!value) return fallbackMs;
const seconds = Number(value);
if (Number.isFinite(seconds)) return Math.max(0, seconds * 1000);
const date = Date.parse(value);
return Number.isFinite(date) ? Math.max(0, date - Date.now()) : fallbackMs;
}
function getFreeOdds(path) {
const result = queue.then(async () => {
for (let attempt = 0; attempt < 3; attempt++) {
await sleep(Math.max(0, nextRequestAt - Date.now()));
// Reserve locally before sending; no parallel odds requests from this client.
nextRequestAt = Date.now() + 5_000;
const response = await fetch(`${base}${path}`, {
headers: { 'X-Api-Key': key, Accept: 'application/json' },
signal: AbortSignal.timeout(20_000),
});
if ((response.status === 429 || response.status === 503) && attempt < 2) {
const delay = retryDelay(response, 5_000 * (attempt + 1));
await response.arrayBuffer(); // Consume the response before retrying.
nextRequestAt = Math.max(nextRequestAt, Date.now() + delay);
continue;
}
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const body = await response.json();
if (body.success !== true) throw new Error((body.messages ?? []).join('; '));
return body.data;
}
throw new Error('Retry limit reached');
});
queue = result.then(() => undefined, () => undefined);
return result;
}
const nfl = await getFreeOdds('/market/nfl/straight/odds');
const nba = await getFreeOdds('/market/nba/straight/odds');
console.log(Object.keys(nfl?.odds ?? {}), Object.keys(nba?.odds ?? {}));
```
The example retries only explicit temporary odds responses. It does not retry `401`/`403`, resubmit bet-slip generation, or silently fetch live data after a Free failure. Choose an appropriate overall deadline for your application.
## Keep freshness separate from polling
Free data is delayed by at least 15 seconds. Polling more often cannot remove that delay. An individual market may not have changed for minutes, so line timestamps can be older than the minimum delay. A temporary snapshot failure should be visible to your application; do not substitute an unrelated stale board without labeling it.
Live access also does not mean every line changes on every request. Cache metadata separately from changing prices and show the relevant update context. See [response concepts](https://docs.unabated.com/guides/response-concepts).
## Investigate without exposing credentials
Record the method/path, timestamp, response status, safe response messages, and any nonsecret request identifier your integration receives. Redact `X-Api-Key` headers and signed stream URLs. For a bet-slip issue, preserve `requestId` so you can resume status checks or report the specific request without creating another one.
Source: https://docs.unabated.com/guides/streaming/overview
# Live updates with SSE
**Available for: Concierge API · Enterprise API**
Server-Sent Events (SSE) sends updates through a persistent HTTP connection. Use REST to load the data your application needs, then SSE to keep prices, markets, and event state current.
Concierge API streaming covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API coverage follows your agreement. Every subscription remains within your API tier's available data.
Free API access does not include SSE. Use the Free Odds API REST workflow and its polling limits instead.
## Two requests, one stream
1. Send `POST /subscriptions` with your API key and the event types and filters you need.
2. Read `data.streamUrl` from the response and open it with `GET` against the same API base URL.
API base URL: `https://data.unabated.com`
```http
POST /subscriptions
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
```
```json
{
"eventTypes": ["market_line_update", "event_update"],
"leagueIds": [5],
"marketTypeIds": [1],
"includeSnapshot": false
}
```
The IDs above are illustrative. Discover the league and market-type IDs you want using the REST reference instead of treating sample values as a maintained catalog.
Successful subscription creation returns the standard API envelope:
```json
{
"data": {
"subscriptionId": "sub_0123456789abcdef0123456789abcdef",
"streamUrl": "/sse/sub_0123456789abcdef0123456789abcdef?token=SIGNED_TOKEN"
},
"success": true,
"messages": [],
"pagination": null
}
```
Join the relative URL to the base URL with a URL library. Use the returned URL unchanged: the signed token carries the subscription definition and authenticates the stream request. You do not need to send the API key again when opening the stream.
The complete signed stream URL is a credential. Keep it out of logs, analytics, screenshots, source control, and public pages. Create subscriptions on your server so your original API key never appears in a public client bundle.
## What arrives over the connection
A successful stream returns `200` with `Content-Type: text/event-stream` and `Cache-Control: no-cache`.
```text
: connected 2026-10-01T15:00:00.0000000Z
id: 801daf96614a4f6e9b970233e95ad41d
event: market_line_update
data: {"data":{"marketLineUpdate":{"leagueId":5,"marketTypeId":1,"marketLines":[]}}}
: keepalive
```
Each blank line ends a frame. `event` names the event family, `data` contains its JSON payload, and `id` is an opaque hint for best-effort reconnect recovery. Lines beginning with `:` are connection or keepalive comments; they are not application events. The empty array above illustrates framing, not a real market update.
Unabated sends named events. In a browser, register `addEventListener("market_line_update", handler)` rather than relying only on `onmessage`. A raw HTTP reader must combine every `data:` line in a frame before decoding JSON. The [complete lifecycle examples](https://docs.unabated.com/guides/streaming/lifecycle) handle this for you.
## Build current state, not just an event log
Most stream messages contain changes rather than a complete view of all odds. Identify a line by its `marketLineId`, compare its ordering fields with the state you already hold, and apply changes without discarding unrelated REST metadata.
SSE market-line messages do not contain a `deepLink` URL. If REST returned a link, retain it for a price or status change only while the selection points remain unchanged. The link encodes those points: when they change, invalidate the old link and obtain a matching link through a workflow available to your API tier before publishing it. Apply the same rule to each alternate selection. Concierge API does not include `GET /deeplink`; its odds store must work without a link. For a newly encountered selection, retrieve its relevant REST data first.
Use the optional server snapshot only after handling its completion and readiness state. If snapshots are unavailable, use REST synchronization with a bounded buffer of incoming events. Reconnect recovery is best effort and does not provide durable historical replay, so a resumed connection alone does not prove your state is complete. [Snapshots and recovery](https://docs.unabated.com/guides/streaming/recovery) explains these boundaries.
## Choose your next step
- [Connect and receive your first events](https://docs.unabated.com/guides/streaming/lifecycle): runnable cURL, JavaScript, and Python examples, plus a browser `EventSource` example.
- [Events and filters](https://docs.unabated.com/guides/streaming/events-and-filters): supported families, exact payload roots, filter behavior, and line-update rules.
- [Snapshots and recovery](https://docs.unabated.com/guides/streaming/recovery): initialization, `Last-Event-ID`, gap notices, expiry, and state repair.
## Agent task
```text
Build a server-side Unabated live-odds integration for Concierge API or Enterprise API.
Use https://data.unabated.com and obtain my authorization before making API requests.
Read the streaming lifecycle, filter, and recovery pages first. Discover IDs,
create a narrowly filtered subscription, and consume named SSE events using
standard framing. Keep credentials in environment variables and never log
the signed stream URL. Maintain state by stable IDs, reject stale updates,
retain any returned REST deep links only for unchanged selection points,
and repair uncertain continuity with REST data. Obtain replacement links
only through workflows available to our API tier; do not call /deeplink
or bet-slip generation/status endpoints with Concierge API.
Use event families available for our API tier.
```
Source: https://docs.unabated.com/guides/streaming/lifecycle
# Connect and consume events
**Available for: Concierge API · Enterprise API**
Create a subscription, open its signed URL, and handle named SSE frames. These examples run one bounded, 60-second session, then close it. They establish the complete authentication and framing lifecycle; add the [snapshot and recovery workflow](https://docs.unabated.com/guides/streaming/recovery) before using streamed updates as a complete production view.
## Before you run
Use a Concierge API or Enterprise API key. Free API keys return `403` for this workflow. Discover a league ID from `GET /league`, and choose one within your API tier's sports coverage. Set the following variables privately in your shell:
```bash
export UNABATED_API_BASE_URL="https://data.unabated.com"
read -r -s -p "API key: " UNABATED_API_KEY; printf '\n'
export UNABATED_API_KEY
read -r -p "Discovered league ID: " UNABATED_LEAGUE_ID
export UNABATED_LEAGUE_ID
```
The `read` commands above use Bash syntax. Run them in Bash, or set the same environment variables through your normal secret manager. The API base URL is `https://data.unabated.com`.
The request subscribes to `market_line_update` and `event_update` for your selected league. Further narrow it with discovered market/source/bet-type IDs if needed.
## Full runnable examples
Requires Bash, cURL, and Python 3. Save this as `stream.sh` and run `bash stream.sh` after setting the environment variables above. It prints raw SSE frames for 60 seconds; cURL exit code `28` at the stream deadline is expected.
```bash
#!/usr/bin/env bash
set -euo pipefail
: "${UNABATED_API_KEY:?Set UNABATED_API_KEY privately}"
: "${UNABATED_LEAGUE_ID:?Set a discovered UNABATED_LEAGUE_ID}"
api_base="${UNABATED_API_BASE_URL:?Set UNABATED_API_BASE_URL to https://data.unabated.com}"
case "$api_base" in
https://data.unabated.com) ;;
*) echo "Set UNABATED_API_BASE_URL to https://data.unabated.com." >&2; exit 1 ;;
esac
request_body=$(python3 - <<'PY'
import json, os
league = int(os.environ["UNABATED_LEAGUE_ID"])
if league <= 0:
raise SystemExit("League ID must be a positive discovered ID.")
print(json.dumps({"eventTypes": ["market_line_update", "event_update"],
"leagueIds": [league], "includeSnapshot": False}))
PY
)
# Subscription output contains a signed credential; keep the temporary file
# private, never print it, and delete it when this script exits.
umask 077
subscription_file=$(mktemp)
trap 'rm -f "$subscription_file"' EXIT
status=$(curl --silent --show-error --connect-timeout 10 --max-time 20 \
--output "$subscription_file" --write-out '%{http_code}' \
--request POST "$api_base/subscriptions" \
--header "X-Api-Key: $UNABATED_API_KEY" \
--header 'Content-Type: application/json' \
--data "$request_body")
if [[ "$status" != "200" ]]; then
echo "Subscription creation failed (HTTP $status). Check access and filters." >&2
exit 1
fi
stream_url=$(python3 - "$subscription_file" "$api_base" <<'PY'
import json, sys
from urllib.parse import urljoin, urlsplit, parse_qs
with open(sys.argv[1], encoding="utf-8") as f:
result = json.load(f)
if result.get("success") is not True:
raise SystemExit("Subscription creation did not succeed.")
data = result.get("data") or {}
subscription_id = data.get("subscriptionId")
stream_url = data.get("streamUrl")
if not subscription_id or not stream_url:
raise SystemExit("Subscription response is missing its stream details.")
url = urljoin(sys.argv[2] + "/", stream_url)
base, parsed = urlsplit(sys.argv[2]), urlsplit(url)
if ((parsed.scheme, parsed.netloc) != (base.scheme, base.netloc)
or parsed.path != "/sse/" + subscription_id
or not parse_qs(parsed.query).get("token")):
raise SystemExit("Unexpected stream destination.")
print(url)
PY
)
echo "Subscription created. Receiving SSE for up to 60 seconds..."
set +e
curl --silent --show-error --no-buffer --fail \
--connect-timeout 10 --max-time 60 \
--header 'Accept: text/event-stream' "$stream_url"
stream_exit=$?
set -e
if [[ "$stream_exit" != "0" && "$stream_exit" != "28" ]]; then
echo "Stream stopped (cURL exit $stream_exit). Check recovery guidance." >&2
exit "$stream_exit"
fi
echo "Stream closed."
```
This is a wire-format demonstration. Do not send every output line directly to a JSON decoder: frames can contain comments, IDs, event names, and multiple `data:` lines. The JavaScript and Python examples parse those boundaries.
Requires Node.js 20 or newer; no package installation is needed. Save as `stream.mjs` and run `node stream.mjs`. API-key operations stay on your server. This reader supports UTF-8, a leading BOM, LF/CRLF/CR line endings, multiline `data`, comments, opaque IDs, and `retry` hints.
```javascript
const base = process.env.UNABATED_API_BASE_URL;
if (!base) {
throw new Error("Set UNABATED_API_BASE_URL to https://data.unabated.com.");
}
const apiKey = process.env.UNABATED_API_KEY;
const leagueId = Number(process.env.UNABATED_LEAGUE_ID);
if (!apiKey || !Number.isSafeInteger(leagueId) || leagueId <= 0) {
throw new Error("Set UNABATED_API_KEY and a discovered UNABATED_LEAGUE_ID.");
}
if (base !== "https://data.unabated.com") {
throw new Error("Set UNABATED_API_BASE_URL to https://data.unabated.com.");
}
async function* sseFrames(body) {
const reader = body.getReader();
const decoder = new TextDecoder("utf-8");
let pending = "", event = "", data = [], lastEventId = "", retryMs;
let dataSize = 0;
// A sample safety budget; narrow filters or adjust your own validated limit.
const maxFrameChars = 8 * 1024 * 1024;
function acceptLine(line) {
if (line === "") {
const frame = data.length
? {event: event || "message", data: data.join("\n"), lastEventId, retryMs}
: null;
event = ""; data = []; dataSize = 0;
return frame;
}
if (line.startsWith(":")) return null;
const colon = line.indexOf(":");
const field = colon < 0 ? line : line.slice(0, colon);
let value = colon < 0 ? "" : line.slice(colon + 1);
if (value.startsWith(" ")) value = value.slice(1);
if (field === "event") event = value;
else if (field === "data") {
dataSize += value.length;
if (dataSize > maxFrameChars) throw new Error("SSE frame exceeded sample budget.");
data.push(value);
} else if (field === "id" && !value.includes("\0")) lastEventId = value;
else if (field === "retry" && /^\d+$/.test(value)) retryMs = Number(value);
return null;
}
try {
while (true) {
const {value, done} = await reader.read();
pending += done ? decoder.decode() : decoder.decode(value, {stream: true});
if (pending.length > maxFrameChars) throw new Error("SSE line exceeded sample budget.");
while (true) {
const end = pending.search(/[\r\n]/);
if (end < 0) break;
// Keep a final CR until the next chunk so a split CRLF is one boundary.
if (pending[end] === "\r" && end === pending.length - 1 && !done) break;
const width = pending[end] === "\r" && pending[end + 1] === "\n" ? 2 : 1;
const line = pending.slice(0, end);
pending = pending.slice(end + width);
const frame = acceptLine(line);
if (frame) yield frame;
}
if (done) break; // An incomplete final frame is not dispatched.
}
} finally {
await reader.cancel().catch(() => {});
reader.releaseLock();
}
}
async function main() {
const response = await fetch(`${base}/subscriptions`, {
method: "POST",
headers: {"X-Api-Key": apiKey, "Content-Type": "application/json"},
body: JSON.stringify({
eventTypes: ["market_line_update", "event_update"],
leagueIds: [leagueId], includeSnapshot: false
}),
signal: AbortSignal.timeout(20_000)
});
if (!response.ok) throw new Error(`Subscription creation failed: HTTP ${response.status}.`);
const result = await response.json();
if (result.success !== true || !result.data?.subscriptionId || !result.data?.streamUrl) {
throw new Error("Subscription response did not contain a successful stream definition.");
}
const url = new URL(result.data.streamUrl, `${base}/`);
if (url.origin !== base || url.pathname !== `/sse/${result.data.subscriptionId}` ||
!url.searchParams.get("token")) throw new Error("Unexpected stream destination.");
const controller = new AbortController();
const stop = () => controller.abort();
const deadline = setTimeout(stop, 60_000);
process.once("SIGINT", stop);
let lastProcessedId = "";
try {
const stream = await fetch(url, {
headers: {Accept: "text/event-stream"}, signal: controller.signal
});
if (!stream.ok) throw new Error(`Stream admission failed: HTTP ${stream.status}.`);
if (!stream.headers.get("content-type")?.startsWith("text/event-stream") || !stream.body) {
throw new Error("Expected an SSE response body.");
}
console.log("Connected. Receiving updates for up to 60 seconds...");
for await (const frame of sseFrames(stream.body)) {
const payload = JSON.parse(frame.data);
if (frame.event === "gap") {
console.warn(`State repair required: ${payload.droppedEvents} queued events dropped.`);
// Production: resynchronize REST state; do not ignore this notice.
} else if (frame.event === "market_line_update") {
console.log("Market-line update:", payload.data.marketLineUpdate.marketLines.length, "lines");
} else if (frame.event === "event_update") {
console.log("Event update:", payload.data.eventUpdate.event.eventId);
} else {
console.log("Control or additional event:", frame.event);
}
// In a production client, advance only after successful durable processing.
lastProcessedId = frame.lastEventId;
}
} catch (error) {
if (!controller.signal.aborted) throw error;
} finally {
clearTimeout(deadline);
process.removeListener("SIGINT", stop);
controller.abort();
console.log("Stream closed.", lastProcessedId ? "A data-event reconnect hint was observed." : "No data event observed.");
}
}
main().catch(error => {
// Keep errors free of the API key and signed URL.
console.error(error.message);
process.exitCode = 1;
});
```
The parser captures `retry` hints and IDs, but this one-session sample deliberately does not retry or maintain full odds state. Follow [recovery](https://docs.unabated.com/guides/streaming/recovery) to add bounded retries, `Last-Event-ID`, and authoritative-state repair.
Requires Python 3.10 or newer; this example uses only the standard library. Save as `stream.py` and run `python3 stream.py`. Universal newline handling supports LF, CRLF, and CR, and multiline `data:` fields are joined before JSON decoding.
```python
import io
import json
import os
import time
from urllib.error import HTTPError, URLError
from urllib.parse import parse_qs, urljoin, urlsplit
from urllib.request import Request, urlopen
BASE = os.environ["UNABATED_API_BASE_URL"]
API_KEY = os.environ["UNABATED_API_KEY"]
LEAGUE_ID = int(os.environ["UNABATED_LEAGUE_ID"])
if LEAGUE_ID <= 0:
raise SystemExit("Choose a positive discovered league ID.")
if BASE != "https://data.unabated.com":
raise SystemExit("Set UNABATED_API_BASE_URL to https://data.unabated.com.")
def sse_frames(lines, deadline=None):
event, data, last_event_id, retry_ms = "", [], "", None
data_size = 0
max_frame_chars = 8 * 1024 * 1024 # Sample budget, not an API limit.
for raw in lines:
if deadline is not None and time.monotonic() >= deadline:
return
line = raw.removesuffix("\n") # TextIOWrapper normalizes all SSE newlines.
if len(line) > max_frame_chars:
raise ValueError("SSE line exceeded sample budget.")
if line == "":
if data:
yield {"event": event or "message", "data": "\n".join(data),
"last_event_id": last_event_id, "retry_ms": retry_ms}
event, data, data_size = "", [], 0
continue
if line.startswith(":"):
continue
field, separator, value = line.partition(":")
if not separator:
value = ""
if value.startswith(" "):
value = value[1:]
if field == "event":
event = value
elif field == "data":
data_size += len(value)
if data_size > max_frame_chars:
raise ValueError("SSE frame exceeded sample budget.")
data.append(value)
elif field == "id" and "\0" not in value:
last_event_id = value
elif field == "retry" and value.isascii() and value.isdigit():
retry_ms = int(value)
# No blank terminator means an incomplete final event: discard it.
def main():
body = json.dumps({"eventTypes": ["market_line_update", "event_update"],
"leagueIds": [LEAGUE_ID], "includeSnapshot": False}).encode()
create = Request(BASE + "/subscriptions", data=body, method="POST",
headers={"X-Api-Key": API_KEY, "Content-Type": "application/json"})
with urlopen(create, timeout=20) as response:
result = json.load(response)
details = result.get("data") or {}
if (result.get("success") is not True or not details.get("subscriptionId")
or not details.get("streamUrl")):
raise ValueError("Subscription response did not contain a successful stream definition.")
url = urljoin(BASE + "/", details["streamUrl"])
base, parsed = urlsplit(BASE), urlsplit(url)
if ((parsed.scheme, parsed.netloc) != (base.scheme, base.netloc)
or parsed.path != "/sse/" + details["subscriptionId"]
or not parse_qs(parsed.query).get("token")):
raise ValueError("Unexpected stream destination.")
stream = Request(url, headers={"Accept": "text/event-stream"})
deadline = time.monotonic() + 60
last_processed_id = ""
# The read timeout bounds a stalled connection. Ctrl+C exits both contexts.
with urlopen(stream, timeout=25) as response:
if not response.headers.get("Content-Type", "").startswith("text/event-stream"):
raise ValueError("Expected an SSE response body.")
with io.TextIOWrapper(response, encoding="utf-8-sig", newline=None) as lines:
print("Connected. Receiving updates for about 60 seconds...")
for frame in sse_frames(lines, deadline):
payload = json.loads(frame["data"])
if frame["event"] == "gap":
print("State repair required:", payload["droppedEvents"], "queued events dropped")
# Production: resynchronize REST state; do not ignore this notice.
elif frame["event"] == "market_line_update":
print("Market-line update:", len(payload["data"]["marketLineUpdate"]["marketLines"]), "lines")
elif frame["event"] == "event_update":
print("Event update:", payload["data"]["eventUpdate"]["event"]["eventId"])
else:
print("Control or additional event:", frame["event"])
last_processed_id = frame["last_event_id"]
if time.monotonic() >= deadline:
break
print("Stream closed.", "A reconnect hint was observed." if last_processed_id else "No data event observed.")
if __name__ == "__main__":
try:
main()
except HTTPError as error:
# Do not print the exception's URL: it contains the signed stream token.
raise SystemExit(f"API request rejected: HTTP {error.code}. Check access and recovery guidance.")
except (URLError, TimeoutError):
raise SystemExit("Connection failed or timed out. Check recovery guidance.")
except KeyboardInterrupt:
print("Stream closed.")
```
This sample prints a summary of received events. It does not yet maintain a complete local snapshot or reconnect. It checks the session deadline on every received line, including keepalive comments. A stalled read can extend shutdown until the 25-second read timeout; Ctrl+C closes it immediately.
## Browser `EventSource`
Create the subscription through your application's authenticated server, then return the signed stream URL only to the authorized client. Do not place `UNABATED_API_KEY` in browser code. Pass `https://data.unabated.com` as the `UNABATED_API_BASE_URL` argument. This base URL is safe to expose; the API key is not. The signed URL must use the same API origin.
```javascript
// `streamUrl` was created by your server for this authorized client.
// It may be an absolute URL or the relative URL returned by the API.
function openStream(streamUrl, UNABATED_API_BASE_URL) {
if (UNABATED_API_BASE_URL !== "https://data.unabated.com") {
throw new Error("Set UNABATED_API_BASE_URL to https://data.unabated.com.");
}
const url = new URL(streamUrl, `${UNABATED_API_BASE_URL}/`);
if (url.origin !== UNABATED_API_BASE_URL) {
throw new Error("The signed stream URL must use https://data.unabated.com.");
}
const source = new EventSource(url);
source.addEventListener("market_line_update", event => {
const message = JSON.parse(event.data).data.marketLineUpdate;
// Apply message.marketLines with the state/ordering rules in Recovery.
console.log("Updated lines:", message.marketLines.length);
});
source.addEventListener("event_update", event => {
const message = JSON.parse(event.data).data.eventUpdate;
console.log("Updated event:", message.event.eventId);
});
source.addEventListener("gap", event => {
const {droppedEvents} = JSON.parse(event.data);
console.warn("REST state repair required:", droppedEvents);
});
source.onerror = () => {
// EventSource may reconnect automatically. Bound retries in your app and
// obtain a fresh subscription if the token expires or access is rejected.
console.warn("Stream interrupted; check continuity before using stale state.");
};
return () => source.close(); // Call on logout, component teardown, or navigation.
}
```
Native `EventSource` handles the SSE framing and its usual reconnect behavior. It does not automatically fetch a fresh REST snapshot, renew an expired signed URL, or repair your local state after a gap. Close the instance during cleanup and avoid creating multiple instances for the same subscription.
## Understand failures before retrying
| HTTP status / condition | Next action |
| --- | --- |
| `400` at creation | Check event names and discovered filter IDs. Correct the request. |
| `401` at creation | Check the API key. Do not attempt the stream without a successful subscription response. |
| `403` at creation | SSE is available for Concierge API and Enterprise API. Check the requested event family's available tiers. |
| `404` | Check the route and confirm that SSE is available for your API tier. |
| `400` at stream admission | The subscription ID does not match its signed token. Use the returned URL unchanged. |
| `401` at stream admission | The signed token is invalid or expired. Create a new subscription with a valid key. |
| `403` at stream admission | Verify that the key is active and your API tier still covers the subscription's data. |
| Temporary `5xx`, network failure, or ended stream | Retry with bounded backoff, and repair uncertain state from REST. |
| `200` with only comments | The connection is alive, but no matching updates may be occurring. Check scope/filters; do not assume every game continuously changes. |
| `gap` control event | Some delivery was lost. Resynchronize state; an open connection is not enough. |
Subscription creation uses the standard `success`/`messages` envelope. Stream admission failures can have an empty response body, so check the HTTP status and content type before decoding frames. A connection that already sent `200` can later close on expiry or lost access without emitting a new HTTP status.
Next: [Choose precise filters](https://docs.unabated.com/guides/streaming/events-and-filters) and [initialize, reconnect, and repair state](https://docs.unabated.com/guides/streaming/recovery).
Source: https://docs.unabated.com/guides/streaming/events-and-filters
# Events and filters
**Available for: Concierge API · Enterprise API**
Specify the event families your application actually consumes. Omitted or empty `eventTypes` currently defaults to **`market_line_update` only**; it does not subscribe you to every event family.
## Subscription request
```json
{
"eventTypes": ["market_line_update", "event_update"],
"leagueIds": [5],
"eventIds": [],
"marketTypeIds": [1],
"marketSourceIds": [7],
"betTypeIds": [1, 2, 3],
"includeSnapshot": false
}
```
These are sample IDs, not a current list of available leagues or books. Use `GET /league`, `GET /market-type`, `GET /bettype`, `GET /event/{league}/upcoming`, and `GET /market/{league}/{marketType}/sources` to discover the data you need.
| Field | Type | Behavior |
| --- | --- | --- |
| `eventTypes` | `string[]` | Event families to deliver; defaults to `market_line_update`. Use exact names below. |
| `leagueIds` | `int[]` | Limits league-scoped messages. Concierge API remains restricted to its five professional U.S. sports. |
| `eventIds` | `long[]` | Limits individual lines within **market-line updates and market-line snapshots** by `market.eventId`. It does not filter every event family. |
| `marketTypeIds` | `int[]` | Limits market-line updates and snapshots by market type. |
| `marketSourceIds` | `long[]` | Limits source-scoped messages and the lines/alternates within market-line updates and snapshots. |
| `betTypeIds` | `long[]` | Limits market-line updates and snapshots, and market metadata updates. |
| `includeSnapshot` | `boolean` | Requests initial market-line snapshot chunks when the server snapshot feature is enabled; defaults to `false`. |
Omitted or empty dimension arrays request no additional client filter **within your API tier's data coverage**. The server can narrow requested filters to that coverage. An empty resulting set is not an all-data wildcard.
Unknown league, market type, market source, or bet type values can return `400`. A valid subscription can also receive no messages when no available data matches. Check your API tier after a `403`; widening filters or repeating requests does not change the tier's coverage.
`eventIds` currently narrows market-line data only. If you also request `event_update`, `market_update`, or model events, filter those payloads by their own event IDs in your application. A sportsbook filter does not filter scores or the game clock.
## Event names and JSON roots
Data event payloads use a `data` envelope with a camel-case root. Snapshot completion and gap notices use the smaller control shapes shown below.
| SSE event | JSON root | Purpose and availability |
| --- | --- | --- |
| `market_line_update` | `data.marketLineUpdate` | Changes to prices, points, availability, liquidity, alternate lines, and line metadata. Concierge API and Enterprise API within scope. |
| `event_update` | `data.eventUpdate` | Event state, clock, scores, timing, and metadata. Concierge API and Enterprise API within scope. |
| `market_update` | `data.marketUpdate` | Market lifecycle and metadata. Concierge API and Enterprise API within scope. |
| `market_source_update` | `data.marketSourceUpdate` | Sportsbook or market-source metadata. Concierge API and Enterprise API within scope. |
| `in_game_fair_price_update` | `data.inGameFairPriceUpdate` | NFL model state. Enterprise API. |
| `event_lineup` | `data.eventLineup` | Lineup update. Enterprise API. |
| `player_news` | `data.playerNews` | Player-news update. Enterprise API. |
| `player_percent_to_play` | `data.playerPercentToPlay` | Player availability update. Enterprise API. |
| `play_by_play` | `data.playByPlay` | Play-by-play state. Enterprise API. |
| `market_line_snapshot` | `data.marketLineUpdate` | Requested initial market-line snapshot chunk; same line shape as a market-line update. |
| `market_line_snapshot_complete` | top-level `lineCount`, `sequence`, `ready` | Initial snapshot completion/readiness control frame. |
| `gap` | top-level `droppedEvents` | Automatic warning that an already-open connection discarded queued events because the consumer fell behind. Repair state from REST. |
The control event names cannot be used as ordinary subscription event types. Request `includeSnapshot` to ask for snapshots; listen for `gap` on every connection. The server sends `gap` automatically when queued events are dropped; there is no endpoint to call to request it. It does not replay changes missed between a REST snapshot and opening SSE. Address that race by [opening and buffering SSE before loading REST, then reconciling ordering](https://docs.unabated.com/guides/streaming/recovery#rest-initialization-with-buffered-updates). Do not infer commercial feature availability just because an event name exists in the protocol.
## Filter applicability
| Family | League | Event ID | Market type | Market source | Bet type |
| --- | --- | --- | --- | --- | --- |
| Market-line updates and snapshots | Yes | Yes, within lines | Yes | Yes, within lines and alternates | Yes, within lines |
| Event updates | Yes | No | No | No | No |
| Market updates | Yes | No | No | No | Yes |
| Market-source updates | No | No | No | Yes | No |
| NFL in-game fair-price updates | Yes | No | No | No | No |
| Lineups, player news, percent-to-play, play-by-play | League-scoped where metadata is present | No | No | No | No |
Your API tier's data coverage applies even to event families without a user-specified filter dimension. A metadata notification does not expand that coverage.
## Market-line updates
One frame can contain multiple lines:
```json
{
"data": {
"marketLineUpdate": {
"marketSourceGroup": "STANDARD",
"leagueId": 5,
"marketTypeId": 1,
"correlationId": null,
"messageId": "33a224985bed44849a4641ba9fdba59b0",
"marketLines": [
{
"marketId": 308238780,
"marketLineId": 17971985415,
"marketSourceId": 7,
"points": null,
"price": 135,
"sourcePrice": 135.0,
"sourceFormat": 1,
"liquidity": null,
"statusId": 1,
"disabled": false,
"sequenceNumber": 1788207551574,
"freshnessExpiresAt": null,
"modifiedOn": "2026-10-01T15:00:00Z",
"bestAltPrice": null,
"bestAltPoints": null,
"alternateLines": [],
"marketLineKey": "illustrative.path.to.a.line",
"market": {
"eventId": 110845,
"marketTypeId": 1,
"betTypeId": 1,
"teamId": 56,
"sideIndex": 0,
"periodTypeId": 20,
"personId": null,
"live": false,
"modifiedOn": "2026-10-01T15:00:00Z"
}
}
]
}
}
}
```
This is illustrative sample output. Fields depend on the line and your API tier's datasets; additional fields may appear.
- Identify a source line by `marketLineId`. Use `marketSourceId` and market metadata to associate it with the correct book and selection.
- Use `marketLineKey` as a location hint into the REST hierarchy; do not parse its segments to derive league, book, or betting semantics.
- Reject stale line updates using `sequenceNumber` and/or `modifiedOn`. Neither the SSE frame `id` nor `messageId` is a numeric ordering value.
- Apply `disabled`, `statusId`, `freshnessExpiresAt`, liquidity, and alternate-line changes even when price and points remain unchanged.
- A streaming `null` can explicitly clear a field. Do not drop all null-valued fields while merging.
- Preserve unrelated REST-only metadata. Retain a returned `deepLink` for price or status changes only when the selection's points remain unchanged. If points change, invalidate the link and obtain a replacement through a workflow available to your API tier before publishing it; apply this rule to each alternate too. Concierge API does not include `GET /deeplink`, and a link is not required to collect odds. The stream does not resend deep links with updates.
Market-line status is a protocol enum: `1` Available, `2` Unavailable, `3` PriceUnknown. `disabled: true` also means the line should not be offered as an available wager. `freshnessExpiresAt`, when present, is a UTC freshness boundary for the line; stop presenting an expired quote as current.
### Alternate lines and liquidity
An update may carry alternate or milestone values while the top-level `points` and `price` are null. Inspect `alternateLines` before deciding that no actionable values exist.
```json
{
"marketLineId": 17971985469,
"marketSourceId": 7,
"points": null,
"price": null,
"alternateLines": [
{
"marketLineId": 17971985470,
"marketSourceId": 7,
"points": -1.0,
"price": 119,
"sourcePrice": 119.0,
"sourceFormat": 1,
"liquidity": 5000.0,
"alternateNumber": 1,
"statusId": 1,
"disabled": false,
"sequenceNumber": 1788207551574,
"freshnessExpiresAt": null,
"modifiedOn": "2026-10-01T15:00:00Z"
}
]
}
```
Match alternates by `marketLineId`, retain their own ordering fields, and process liquidity independently of prices. Do not assume the outer line is always the line currently displayed to your users.
## Event and metadata updates
`data.eventUpdate` contains `leagueId`, `change`, `event`, `correlationId`, and `messageId`. The embedded event can contain `eventId`, status, start/end times, period, game clock, and `eventTeams` with scores. Exact fields vary by league and game state.
```json
{
"data": {
"eventUpdate": {
"leagueId": 5,
"change": "updated",
"event": {
"eventId": 110845,
"leagueId": 5,
"statusId": 2,
"statusName": "Live",
"eventStart": "2026-10-01T14:00:00Z",
"gameClock": "05:32",
"eventTeams": [
{"teamId": 56, "score": 3, "sideIndex": 0},
{"teamId": 34, "score": 4, "sideIndex": 1}
],
"modifiedOn": "2026-10-01T15:00:00Z"
},
"correlationId": null,
"messageId": "33a224985bed44849a4641ba9fdba59b0"
}
}
}
```
Identify the event by `eventId` and reject older `modifiedOn` values when available. An `eventIds` subscription filter does not currently narrow this family; filter locally if you only need one game.
`data.marketUpdate` contains `leagueId`, `updateType`, and `market`, plus message/correlation IDs. Use the identifiers inside `market` to locate its event and selection; preserve the documented lifecycle state rather than assuming every message means a new active market.
`data.marketSourceUpdate` contains `marketSource`, plus message/correlation IDs. Use `marketSource.id` as the stable book/source identifier. Changes can include active state or separate straight, props, and futures availability.
Next: [Connect with a complete sample](https://docs.unabated.com/guides/streaming/lifecycle) or [handle snapshots and reconnects](https://docs.unabated.com/guides/streaming/recovery).
Source: https://docs.unabated.com/guides/streaming/recovery
# Snapshots and recovery
**Available for: Concierge API · Enterprise API**
An open connection is useful only if your application knows how to build and repair its state. Initialize from a snapshot, apply updates using stable IDs and ordering fields, and resynchronize whenever continuity is uncertain.
## Optional initial snapshot over SSE
Set `includeSnapshot: true` in `POST /subscriptions` to request the current matching market lines before live delivery. Use it with a subscription that includes `market_line_update` and the matching line filters.
When server snapshots are enabled, the connection is registered first. Events arriving while snapshot chunks are written are queued and delivered afterward. Chunks contain up to 500 lines grouped by league and market type, with the same `data.marketLineUpdate` line shape as ordinary market-line updates.
```text
event: market_line_snapshot
data: {"data":{"marketLineUpdate":{"correlationId":"snapshot","leagueId":5,"marketTypeId":1,"marketLines":[]}}}
event: market_line_snapshot_complete
data: {"lineCount":0,"sequence":12345,"ready":true}
```
The empty chunk above demonstrates the payload shape. A real empty result can have only a completion frame and no chunks.
| Completion field | Meaning |
| --- | --- |
| `lineCount` | Number of market lines sent in this snapshot. |
| `sequence` | Server snapshot-store sequence for diagnostic context. It is not a per-line version or a replay cursor. |
| `ready` | Whether the server's latest-line store was marked ready when the snapshot began. |
Snapshot chunks and completion frames have no `id:` field. Do not use them to replace your last delivered data-event replay hint.
The snapshot feature is server-controlled. If disabled, `includeSnapshot: true` currently sends **no snapshot chunks and no completion frame**; live delivery still starts. If a completion arrives with `ready: false`, the snapshot is not ready. Give initialization a bounded deadline and fall back to REST rather than waiting indefinitely.
`ready: true` does not assert that every possible market is present, or that the snapshot is a transactionally frozen view of all sources. The store is maintained from live updates and periodically refreshed. Treat the snapshot as current matching line state, continue comparing line versions, and repair missing or inconsistent data with REST. It does not replace event, team, or player discovery, or link generation where your API tier supports it.
## REST initialization with buffered updates
Open SSE and begin buffering updates **before** loading REST to address the snapshot/stream race. This works whether or not server snapshots are available:
1. Create a narrowly filtered subscription and open its returned signed URL.
2. Once the connection opens, begin buffering incoming application events, then fetch the relevant REST odds and event data.
3. Build indexes keyed by `marketLineId` and `eventId` from the REST response. Retain descriptive metadata and any returned deep links alongside their selection points; a link is not required to initialize the odds store.
4. Apply the buffered events with the same ordering checks you will use during live delivery.
5. Switch to live processing and continue to repair gaps or missing metadata from REST.
For odds, fetch `GET /market/{league}/{marketType}/odds` for each league/market-type combination your subscription needs. A league or event name in a REST path is not interchangeable with the numeric IDs used in a subscription body; discover and map both through the reference data.
Bound the buffer by bytes/events and the snapshot request by a timeout. If either budget is exceeded, discard the incomplete local view, narrow the subscription if appropriate, and start a fresh synchronization attempt with backoff. Do not keep growing a queue indefinitely.
This approach covers updates received while REST loads, but **does not create a universal gap-free guarantee**. REST freshness, reconnect retention, pod changes, source behavior, and consumer overload can all affect continuity. Reconcile authoritative state whenever you cannot prove that your local state is current.
## Apply updates without moving backward
For the same market-line identity:
- When comparable `sequenceNumber` values are present, reject a lower incoming value.
- When comparable `modifiedOn` timestamps are present, reject an older incoming timestamp. If clocks disagree, do not blindly overwrite a state you know is newer; reconcile it from REST.
- Equal ordering values can still carry meaningful changes. Do not use “equal version” alone to ignore a status, liquidity, alternate, or freshness update.
- When ordering information is missing, use cautious processing and periodic REST reconciliation. Arrival order across reconnects is not proof of source freshness.
- Merge explicit streaming fields into the existing record; preserve unrelated REST-only fields. Process explicit nulls instead of treating them as missing fields.
- Retain a previous `deepLink` only for the same selection with unchanged points. The URL encodes points, so invalidate it whenever points change, including on an alternate. Obtain a matching replacement through a workflow available to your API tier before publishing a link. Do not publish a previous-points URL with an updated line.
Concierge API does not include `GET /deeplink`; its odds store must continue to collect data without a link. When a replacement-link fetch is available and finishes, verify that its selection points still match your current local line before attaching it. Another SSE update can move the points while the REST request is in flight.
A minimal update guard looks like this. It invalidates links for changed selection points and merges each alternate independently. Integrate REST synchronization and your hierarchy indexes around it. If your API tier supports link generation, schedule replacement-link requests as needed; publish a link only after retrieving the correct selection URL:
```javascript
const linesById = new Map();
function mergeSelection(previous, incoming) {
if (previous) {
if (previous.sequenceNumber != null && incoming.sequenceNumber != null &&
incoming.sequenceNumber < previous.sequenceNumber) return previous;
if (previous.modifiedOn && incoming.modifiedOn &&
Date.parse(incoming.modifiedOn) < Date.parse(previous.modifiedOn)) return previous;
}
const next = {...previous, ...incoming};
const sameSelection = previous &&
previous.marketLineId === incoming.marketLineId &&
previous.marketSourceId === incoming.marketSourceId;
const unchangedPoints = sameSelection &&
Object.hasOwn(previous, "points") && Object.hasOwn(incoming, "points") &&
previous.points === incoming.points;
if (!unchangedPoints) {
// SSE carries no replacement URL. A new link requires a supported workflow.
delete next.deepLink;
}
if (Array.isArray(incoming.alternateLines)) {
const oldAlternates = new Map(
(previous?.alternateLines ?? []).map(line => [line.marketLineId, line])
);
next.alternateLines = incoming.alternateLines.map(line =>
mergeSelection(oldAlternates.get(line.marketLineId), line)
);
}
return next;
}
function applyLine(incoming) {
if (incoming.marketLineId == null) return;
const previous = linesById.get(incoming.marketLineId);
linesById.set(incoming.marketLineId, mergeSelection(previous, incoming));
}
```
## Reconnect and `Last-Event-ID`
Save the opaque `id` of the last **data event you successfully processed**. A raw HTTP client can send it when reopening the same signed stream URL:
```http
GET /sse/{subscriptionId}?token=SIGNED_TOKEN
Accept: text/event-stream
Last-Event-ID: OPAQUE_LAST_PROCESSED_ID
```
Native browser `EventSource` handles standard `Last-Event-ID` reconnection for you. A new `EventSource` instance does not automatically inherit the old instance's state; raw HTTP clients can explicitly supply the header. Apply bounded exponential backoff with jitter for temporary network/server failures, and keep only one active connection for a subscription.
The general SSE stream offers **best-effort reconnect recovery**, not durable historical replay. The current implementation retains up to 1,024 recent events per serving process and sends at most the newest 256 matching events to a reconnecting connection. Busy periods can make that time window very short. A different serving process, a restart, a long interruption, or more matching updates than the recovery budget can leave your cursor outside retained history.
An unknown or trimmed `Last-Event-ID` does not currently produce an explicit “cursor expired” response or `gap` notice. A successful reconnect therefore does not prove that every missed update was replayed. Refresh your REST state whenever continuity is uncertain, including after longer interruptions or process changes.
Do not parse, increment, compare lexically, or manufacture the SSE ID. It is separate from each line's `sequenceNumber`. The general stream has no public time-based replay parameter.
Opening the same subscription again replaces its previous connection on the same serving process. Create separate subscriptions when you need independent consumers.
## Handle a `gap` notice
The server automatically sends `gap` when a slow consumer's bounded queue on an already-open connection overflows. It keeps the stream open, discards older queued events, and sends a notice before the next data delivery. You cannot subscribe to `gap` in `eventTypes` or call an endpoint to request it:
```text
event: gap
data: {"droppedEvents":17}
```
This control frame has no `id:`. `droppedEvents` is the number discarded since the previous notice, not a lifetime total. It indicates lost delivery on this connection; it is not a guarantee that all other forms of missed history will be reported.
`gap` does not replay changes missed between a REST snapshot and opening SSE. Address that race separately by [opening and buffering SSE before loading REST, then reconciling ordering](https://docs.unabated.com/guides/streaming/recovery#rest-initialization-with-buffered-updates).
On `gap`, mark affected state as needing repair, start REST resynchronization, and buffer further messages within a bounded budget until you can apply them to refreshed state. If the application is persistently falling behind, narrow filters or improve processing rather than repeatedly reconnecting into the same overload.
## Expiry, revocation, and cleanup
An API-key-created subscription is currently valid for 24 hours. The creation response does not include an expiry field, so record when you created it and refresh the subscription before you depend on a longer-running connection. Do not decode signed tokens to build your client contract.
The API checks the current key and API tier when admitting a stream and periodically while it is open. Revoked keys, changes to your API tier, or expired subscriptions can close the connection; the next admission can return `401` or `403`. An already-started `200` stream cannot change its HTTP status after headers are sent.
For a new connection rejected with `401`, create a fresh subscription with your still-valid API key and repeat initialization. For `403`, confirm that the key is active and your API tier covers the request; do not retry indefinitely. On token expiry, renew the subscription rather than repeatedly reopening the expired URL.
Close unused streams explicitly: `EventSource.close()` in browsers, `AbortController.abort()` for `fetch`, or close the HTTP response/context in Python. Closing the connection releases that consumer; no public delete-subscription operation is required for cleanup.
Next: [Complete lifecycle samples](https://docs.unabated.com/guides/streaming/lifecycle).
Source: https://docs.unabated.com/guides/streaming/models
# NFL in-game models
**Available for: Enterprise API**
The NFL in-game model estimates probabilities for betting outcomes using live game state. A fair price expresses that model estimate as American odds, so your application can compare it with a sportsbook's quoted price.
Retrieve current model state through REST or receive changes through the `in_game_fair_price_update` SSE event. NFL in-game models are available through Enterprise API and are not part of Free API or Concierge API. Contact Unabated to include this dataset in your Enterprise API agreement.
## When estimates are published
We currently publish model estimates during halftime and during the break between the third and fourth quarters. Each set of estimates applies to that break.
At the end of each break, we send an update with `fairPriceSet.status` set to `expired`. Stop using those estimates for active fair-price or edge calculations when that signal arrives. You may retain them for historical display, clearly marked as expired.
## Read current state or subscribe to changes
| Operation | Purpose |
| --- | --- |
| `GET /market/nfl/in-game-fair-prices` | REST snapshot of the current indexed NFL event states. |
| `POST /subscriptions` with `in_game_fair_price_update` | Create a model stream subscription. |
| Signed `GET /sse/{subscriptionId}` | Receive the model updates for that subscription. |
Request the model event explicitly; it is not included in the default `market_line_update` subscription.
```json
{
"eventTypes": ["in_game_fair_price_update"],
"leagueIds": [1]
}
```
The example uses the NFL league ID from the current protocol. Use discovery data to map your league IDs. `leagueIds` applies to model events. `eventIds`, `marketTypeIds`, `marketSourceIds`, and `betTypeIds` do **not** narrow this family; filter `fairPriceSet.eventId` locally if you need only one game.
A model request outside your Enterprise API agreement returns `403`. Confirm that your agreement includes NFL in-game models before requesting this dataset.
## Full state replacement per event
```json
{
"data": {
"inGameFairPriceUpdate": {
"correlationId": "example-output-id",
"messageId": "33a224985bed44849a4641ba9fdba59b0",
"fairPriceSet": {
"sourceKey": "unabated_in_game",
"leagueId": 1,
"eventId": 123456,
"outputId": "example-output-id",
"status": "ready",
"statusReason": "",
"producedUtc": "2026-10-01T15:00:00Z",
"statusChangedUtc": "2026-10-01T15:00:00Z",
"schemaVersion": "1.3",
"checkpointType": "period_end",
"periodNumber": 2,
"markets": [
{
"marketId": 122333,
"probabilities": [
{
"price": -157,
"method": 3,
"points": 4.5,
"probability": 0.610304932599433
}
]
}
]
}
}
}
}
```
This is sample output, not a currently available bet or guaranteed market ladder. The state is keyed by `leagueId` and `eventId`. `outputId` identifies the model output and is also used as its correlation ID. Treat `fairPriceSet` as a full replacement for that event's model state; do not combine market ladders from separate outputs.
## Ready, expired, and unavailable
| `status` | Application behavior |
| --- | --- |
| `ready` | The `markets` ladder is active and can drive fair-price or edge calculations. |
| `expired` | Explicit state transition. Retain the previous ladder only for inactive/historical display; remove it from active calculations. |
| `unavailable` | The current valid model state could not be established. Clear active fair prices and calculations for the event. |
Use `probability` as the canonical decimal probability. `price` is an optional American-odds representation and can be null; `points` is the market point level, and `method` identifies the probability method.
Use `periodNumber`, `producedUtc`, and `statusChangedUtc` to reject stale outputs or transitions according to their model context. Do not sort opaque `outputId` strings to decide which output is newer. A transition for the same output can change its active state without creating a new ladder.
Only `ready` state may drive active calculations. Do not invent a model expiration time from `producedUtc`: model expiry is an explicit `expired` or `unavailable` state transition. During an uncertain connection or failed resynchronization, suspend active calculations until you have verified current state.
## Initialize and repair model state
Open the model SSE subscription, buffer model frames within a bounded budget, and fetch `GET /market/nfl/in-game-fair-prices`. The REST response's `data` array contains current indexed event states. Replace the local view with that snapshot, then apply newer buffered states using the model-specific ordering fields.
Repeat this on a prolonged interruption, a `gap` notice, or any uncertain continuity. If the REST request fails, returns `success: false`, or contains no valid state for an event, clear or suspend its active fair-price calculations. Do not keep using an old ladder as if it were current.
The optional `includeSnapshot` market-line feature does not send a model-state snapshot. Fetch the model REST snapshot separately even when your connection also requests ordinary odds updates. See [general recovery](https://docs.unabated.com/guides/streaming/recovery) for the limits of replay and snapshot consistency.
## Agent task
```text
Integrate Unabated NFL in-game fair prices for Enterprise API. Confirm that
our agreement includes this dataset. Use https://data.unabated.com and obtain
my authorization before making API requests. Create the model SSE subscription, load its REST
snapshot, and maintain full replacement state by leagueId and eventId.
Only ready output may drive calculations. Handle expired and unavailable
transitions, reject stale output, suspend calculations on uncertain state,
and resynchronize after gaps. Use the documented API tier availability
when choosing event families.
```
Source: https://docs.unabated.com/reference
# Unabated Data API
- **OpenAPI Version:** `3.2.0`
- **API Version:** `v1`
The Unabated API for developers and agents. Start with the [getting started guides](https://docs.unabated.com), then discover current IDs through the lookup endpoints. Availability appears on every operation. Free API includes delayed REST odds, deep links, and bet-slip generation. Concierge API includes real-time odds and SSE for NFL, NBA, MLB, NHL, and WNBA. Enterprise API supports additional data and workflows described on each endpoint. Use X-Api-Key for REST. Create an SSE subscription with an authenticated request, then open its returned signed streamUrl without an API-key header. Treat API keys and signed stream URLs as secrets. The OpenAPI JSON is a machine-readable contract; humans can use the guides and reference without downloading it.
## Servers
- **URL:** `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
## Operations
### List bet types
- **Method:** `GET`
- **Path:** `/bettype`
- **Operation ID:** `betTypeGetBetTypes`
- **Tags:** BetType
**Available for:** Free API, Concierge API, Enterprise API.
Get bet type IDs, names, and definitions used by the odds API, including whether a bet has points, multiple sides, or a future outcome. Use these IDs in odds filters; `changedSince` returns recently modified definitions.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfBetType`
- **`data`**
`array | null`
**Items:**
schema: `BetType`
- **`active`**
`boolean | null`
- **`betOn`**
`string | null`
- **`betRange`**
`string | null`
- **`betTypeId`**
`integer`, format: `int32`
- **`canDraw`**
`boolean | null`
- **`description`**
`string | null`
- **`hasPoints`**
`boolean | null`
- **`id`**
`integer`, format: `int64`
- **`isFuture`**
`boolean`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`name`**
`string | null`
- **`selectionCountType`**
`string | null`
- **`sides`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
- **`nextCursor`**
`string | null`
- **`previousCursor`**
`string | null`
**Additional properties:**
never (false schema)
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"description": null,
"betOn": null,
"sides": null,
"canDraw": null,
"hasPoints": null,
"active": null,
"selectionCountType": null,
"betRange": null,
"betTypeId": 1,
"isFuture": true,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfBetType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"description": null,
"betOn": null,
"sides": null,
"canDraw": null,
"hasPoints": null,
"active": null,
"selectionCountType": null,
"betRange": null,
"betTypeId": 1,
"isFuture": true,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfBetType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"description": null,
"betOn": null,
"sides": null,
"canDraw": null,
"hasPoints": null,
"active": null,
"selectionCountType": null,
"betRange": null,
"betTypeId": 1,
"isFuture": true,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### List active sportsbook bonuses
- **Method:** `GET`
- **Path:** `/bonus/active`
- **Operation ID:** `bonusGetActiveBonuses`
- **Tags:** Bonus
**Available for:** Concierge API, Enterprise API.
Get currently active bonuses and their conditions, such as minimum odds, eligible leagues, stake limits, and required bet types. Use `marketSourceId` to limit the results to one sportsbook.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `marketSourceId`
- **In:** `query`
`integer`, format: `int32`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfBonus`
- **`data`**
`array | null`
**Items:**
schema: `Bonus`
- **`active`**
`boolean`
- **`allText`**
`string | null`, readOnly
- **`bonusTypeId`**
`string | null`
- **`constraints`**
`string | null`
- **`createdBy`**
`integer | null`, format: `int64`
- **`createdOn`**
`string`, format: `date-time`
- **`description`**
`string | null`
- **`endDate`**
`string | null`, format: `date-time`
- **`id`**
`integer | null`, format: `int64`
- **`leagueIds`**
`array | null`
**Items:**
`integer`, format: `int32`
- **`marketSourceId`**
`integer`, format: `int32`
- **`maxBet`**
`number | null`, format: `double`
- **`maxBonus`**
`number | null`, format: `double`
- **`minLegOdds`**
`integer | null`, format: `int32`
- **`minLegs`**
`integer | null`, format: `int32`
- **`minTotalOdds`**
`integer | null`, format: `int32`
- **`modifiedBy`**
`integer | null`, format: `int64`
- **`modifiedOn`**
`string`, format: `date-time`
- **`parseConfidence`**
`number | null`, format: `double`
- **`parseVersion`**
`integer | null`, format: `int32`
- **`percentage`**
`number | null`, format: `double`
- **`promoId`**
`integer | null`, format: `int64`
- **`requiresLive`**
`boolean`
- **`requiresOptIn`**
`boolean`
- **`requiresParlay`**
`boolean`
- **`requiresSgp`**
`boolean`
- **`sourceId`**
`string | null`
- **`sportIds`**
`array | null`
**Items:**
`integer`, format: `int32`
- **`startDate`**
`string | null`, format: `date-time`
- **`title`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfBonus` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfBonus` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### Get a sportsbook bonus
- **Method:** `GET`
- **Path:** `/bonus/{id}`
- **Operation ID:** `bonusGetBonusById`
- **Tags:** Bonus
**Available for:** Concierge API, Enterprise API.
Get the details and conditions of a bonus by its ID. Check success and messages because a missing bonus is reported in the response body.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `id` required
- **In:** `path`
`integer`, format: `int64`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfBonus`
- **`data`**
`object`, schema: `Bonus`
*Schema `Bonus` is shown above.*
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfBonus` is shown above.*
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfBonus` is shown above.*
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### Get bonuses for market lines
- **Method:** `GET`
- **Path:** `/bonus/market-lines`
- **Operation ID:** `bonusGetMarketLineBonuses`
- **Tags:** Bonus
**Available for:** Concierge API, Enterprise API.
Find bonus mappings for the current market-line IDs supplied in the comma-separated ids parameter. Each mapping identifies a bonus and may include a boosted price; use the bonus ID to retrieve its conditions.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `ids`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfMarketLineBonus`
- **`data`**
`array | null`
**Items:**
schema: `MarketLineBonus`
- **`bonusId`**
`integer`, format: `int64`
- **`boostedPrice`**
`integer | null`, format: `int32`
- **`createdBy`**
`integer | null`, format: `int64`
- **`createdOn`**
`string`, format: `date-time`
- **`id`**
`integer | null`, format: `int64`
- **`marketLineId`**
`integer`, format: `int64`
- **`matchConfidence`**
`number | null`, format: `double`
- **`matchMethod`**
`string | null`
- **`modifiedBy`**
`integer | null`, format: `int64`
- **`modifiedOn`**
`string`, format: `date-time`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketLineId": 1,
"bonusId": 1,
"boostedPrice": null,
"matchMethod": null,
"matchConfidence": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfMarketLineBonus` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketLineId": 1,
"bonusId": 1,
"boostedPrice": null,
"matchMethod": null,
"matchConfidence": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfMarketLineBonus` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketLineId": 1,
"bonusId": 1,
"boostedPrice": null,
"matchMethod": null,
"matchConfidence": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### Evaluate sportsbook bonuses for selections
- **Method:** `POST`
- **Path:** `/bonus/evaluate`
- **Operation ID:** `bonusEvaluate`
- **Tags:** Bonus
**Available for:** Concierge API, Enterprise API.
Evaluate market-line selections and an optional stake against sportsbook bonus rules. The response includes applicable bonuses with calculated benefit amounts, excluded bonuses with reasons, combined odds, and any missing market-line IDs.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Request Body
##### Content-Type: application/json-patch+json
schema: `BonusEvaluationRequest`
- **`marketLineIds`**
`array | null`
**Items:**
`integer`, format: `int64`
- **`marketSourceId`**
`integer | null`, format: `int32`
- **`stake`**
`number | null`, format: `double`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"marketLineIds": [
1
],
"stake": null,
"marketSourceId": null
}
```
##### Content-Type: application/json
*Schema `BonusEvaluationRequest` is shown above.*
**Example:**
```json
{
"marketLineIds": [
1
],
"stake": null,
"marketSourceId": null
}
```
##### Content-Type: text/json
*Schema `BonusEvaluationRequest` is shown above.*
**Example:**
```json
{
"marketLineIds": [
1
],
"stake": null,
"marketSourceId": null
}
```
##### Content-Type: application/\*+json
*Schema `BonusEvaluationRequest` is shown above.*
**Example:**
```json
{
"marketLineIds": [
1
],
"stake": null,
"marketSourceId": null
}
```
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfBonusEvaluationResult`
- **`data`**
`object`, schema: `BonusEvaluationResult`
- **`applicable`**
`array | null`
**Items:**
schema: `ApplicableBonus`
- **`baseProfit`**
`number | null`, format: `double`
- **`bonus`**
`object`, schema: `Bonus`
*Schema `Bonus` is shown above.*
- **`bonusAmount`**
`number | null`, format: `double`
- **`boostedProfit`**
`number | null`, format: `double`
- **`eligibleStake`**
`number | null`, format: `double`
**Additional properties:**
never (false schema)
- **`combinedAmericanOdds`**
`integer | null`, format: `int32`
- **`combinedDecimalOdds`**
`number | null`, format: `double`
- **`excluded`**
`array | null`
**Items:**
schema: `ExcludedBonus`
- **`bonusId`**
`integer`, format: `int64`
- **`bonusTypeId`**
`string | null`
- **`reasons`**
`array | null`
**Items:**
`string`
- **`title`**
`string | null`
**Additional properties:**
never (false schema)
- **`hasLiveLeg`**
`boolean`
- **`isParlay`**
`boolean`
- **`isSameGameParlay`**
`boolean`
- **`legCount`**
`integer`, format: `int32`
- **`legs`**
`array | null`
**Items:**
schema: `BonusEvaluationLeg`
- **`betTypeId`**
`integer | null`, format: `int32`
- **`boostedByBonusId`**
`integer | null`, format: `int64`
- **`boostedPrice`**
`integer | null`, format: `int32`
- **`eventId`**
`integer | null`, format: `int32`
- **`leagueId`**
`integer | null`, format: `int32`
- **`live`**
`boolean`
- **`marketId`**
`integer | null`, format: `int64`
- **`marketLineId`**
`integer`, format: `int64`
- **`marketSourceId`**
`integer`, format: `int32`
- **`price`**
`integer | null`, format: `int32`
- **`sportId`**
`integer | null`, format: `int32`
**Additional properties:**
never (false schema)
- **`missingMarketLineIds`**
`array | null`
**Items:**
`integer`, format: `int64`
- **`mixedMarketSources`**
`boolean`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"legs": [
{
"marketLineId": 1,
"marketSourceId": 1,
"price": null,
"marketId": null,
"eventId": null,
"leagueId": null,
"sportId": null,
"betTypeId": null,
"live": true,
"boostedPrice": null,
"boostedByBonusId": null
}
],
"missingMarketLineIds": [
1
],
"legCount": 1,
"isParlay": true,
"isSameGameParlay": true,
"hasLiveLeg": true,
"mixedMarketSources": true,
"combinedDecimalOdds": null,
"combinedAmericanOdds": null,
"applicable": [
{
"bonus": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"eligibleStake": null,
"baseProfit": null,
"bonusAmount": null,
"boostedProfit": null
}
],
"excluded": [
{
"bonusId": 1,
"title": null,
"bonusTypeId": null,
"reasons": [
""
]
}
]
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfBonusEvaluationResult` is shown above.*
**Example:**
```json
{
"data": {
"legs": [
{
"marketLineId": 1,
"marketSourceId": 1,
"price": null,
"marketId": null,
"eventId": null,
"leagueId": null,
"sportId": null,
"betTypeId": null,
"live": true,
"boostedPrice": null,
"boostedByBonusId": null
}
],
"missingMarketLineIds": [
1
],
"legCount": 1,
"isParlay": true,
"isSameGameParlay": true,
"hasLiveLeg": true,
"mixedMarketSources": true,
"combinedDecimalOdds": null,
"combinedAmericanOdds": null,
"applicable": [
{
"bonus": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"eligibleStake": null,
"baseProfit": null,
"bonusAmount": null,
"boostedProfit": null
}
],
"excluded": [
{
"bonusId": 1,
"title": null,
"bonusTypeId": null,
"reasons": [
""
]
}
]
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfBonusEvaluationResult` is shown above.*
**Example:**
```json
{
"data": {
"legs": [
{
"marketLineId": 1,
"marketSourceId": 1,
"price": null,
"marketId": null,
"eventId": null,
"leagueId": null,
"sportId": null,
"betTypeId": null,
"live": true,
"boostedPrice": null,
"boostedByBonusId": null
}
],
"missingMarketLineIds": [
1
],
"legCount": 1,
"isParlay": true,
"isSameGameParlay": true,
"hasLiveLeg": true,
"mixedMarketSources": true,
"combinedDecimalOdds": null,
"combinedAmericanOdds": null,
"applicable": [
{
"bonus": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"eligibleStake": null,
"baseProfit": null,
"bonusAmount": null,
"boostedProfit": null
}
],
"excluded": [
{
"bonusId": 1,
"title": null,
"bonusTypeId": null,
"reasons": [
""
]
}
]
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### Generate sportsbook deep links
- **Method:** `GET`
- **Path:** `/deeplink`
- **Operation ID:** `deeplinkGetDeeplinks`
- **Tags:** Deeplink
**Available for:** Free API, Enterprise API.
Create sportsbook links for one or more current market-line IDs, with optional points and device settings. The response includes a combined URL and individual URLs when available; Free API partners must append their `utm_campaign` before publishing generic Gambly links.
Free API covers its supported sportsbooks and delayed REST data. Enterprise API follows the data scope selected for your integration.
For Free API partners, `data.url` and `data.individualUrls` contain generic Gambly links. Add your `utm_campaign` before publishing them. Use current market-line IDs from the odds response.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `ids`
- **In:** `query`
Comma separated market line ids.
`string`
##### `points`
- **In:** `query`
Optional comma separated list of points.
`string`
##### `state`
- **In:** `query`
User state code.
`string`, default: `""`
##### `isMobileDevice`
- **In:** `query`
Whether to generate a link for a mobile device.
`boolean`, default: `false`
##### `os`
- **In:** `query`
Client operating system for platform-specific mobile deeplinks.
`string`, default: `""`
##### `generationOptions`
- **In:** `query`
Optional generation options.
`object` — Dictionary with String keys and String values
**Additional properties:**
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Request completed. Check success and messages as well as HTTP status.
###### Content-Type: application/json
schema: `ApiResponseOfDeeplinkResult`
- **`data`**
`object`, schema: `DeeplinkResult`
- **`bookUrl`**
`string | null`, readOnly
- **`errorMessage`**
`string | null`, readOnly
- **`ids`**
`array | null`
**Items:**
`integer`, format: `int64`
- **`individualUrls`**
`array | null`
**Items:**
`string`
- **`status`**
`integer`, format: `int32`, possible values: `-3, -2, -1, 0, 1, 2, 3, 4, 5` — Numeric values: -3: NoSupportWeb; -2: NoSupportMobile; -1: NoSupport; 0: FullSupport; 1: EventSupport; 2: UnknownIssue; 3: PartialSupport; 4: InvalidInput; 5: OnlySupportOneBet.
- **`statusString`**
`string | null`, readOnly
- **`url`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"ids": [
1
],
"url": null,
"status": -3,
"statusString": null,
"individualUrls": [
""
],
"bookUrl": null,
"errorMessage": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 400 Invalid market-line IDs or selections. Free requests support at most twenty selections from one sportsbook.
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
##### Status: 404 A selected market line was not found.
##### Status: 500 Deep-link generation failed.
### Get a same-game parlay quote
- **Method:** `GET`
- **Path:** `/deeplink/sgp`
- **Operation ID:** `deeplinkExecuteSgp`
- **Tags:** Deeplink
**Available for:** Enterprise API.
Request a same-game parlay quote using current market-line IDs and optional points. The response includes matched legs, combined price, sportsbook details, and whether the quote is estimated; inspect success and messages for combinations the sportsbook cannot price.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `ids`
- **In:** `query`
Market line ids.
`string`
##### `points`
- **In:** `query`
Optional points values.
`string`
##### `state`
- **In:** `query`
User state code.
`string`, default: `""`
##### `isMobileDevice`
- **In:** `query`
Whether to generate a link for a mobile device.
`boolean`, default: `false`
##### `includeDetails`
- **In:** `query`
Include detailed results.
`boolean`, default: `false`
##### `allowMismatchPoints`
- **In:** `query`
Allow the nearest available points when an exact line is unavailable.
`boolean`, default: `true`
##### `allowStoredCorrelation`
- **In:** `query`
Use a same-book semantic correlation estimate when a validated observation exists.
`boolean`, default: `true`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Request completed. Check success and messages as well as HTTP status.
###### Content-Type: application/json
schema: `ApiResponseOfParlayLineDetail`
- **`data`**
`object`, schema: `ParlayLineDetail`
- **`correlationCapturedOn`**
`string | null`, format: `date-time`
- **`correlationMarketSourceId`**
`integer | null`, format: `int64`
- **`correlationMatchLevel`**
`string | null`
- **`correlationObservationCount`**
`integer | null`, format: `int32`
- **`correlationRho`**
`number | null`, format: `double`
- **`fullMatch`**
`boolean`, readOnly
- **`isEstimated`**
`boolean`
- **`lines`**
`array | null`
**Items:**
schema: `MarketLineIdWithPoint`
- **`marketId`**
`integer`, format: `int64`
- **`marketLineId`**
`integer`, format: `int64`
- **`marketSourceId`**
`integer`, format: `int64`
- **`points`**
`number | null`, format: `double`
- **`sourceData`**
`string | null`
**Additional properties:**
never (false schema)
- **`marketSourceId`**
`integer`, format: `int64`
- **`matches`**
`integer`, format: `int64`
- **`nativePrice`**
`number | null`, format: `double`
- **`nativePriceFormat`**
`integer | null`, format: `int32`, possible values: `0, 1, 2, 3, 4, 5, 6` — Numeric values: 0: Unspecified; 1: American; 2: Decimal; 3: Percent; 4: Probability; 5: Sporttrade; 6: Multiplier.
- **`price`**
`integer`, format: `int32`, readOnly
- **`pricedVia`**
`string | null`
- **`probability`**
`number`, format: `double`, readOnly
- **`rfqQuoteReceived`**
`boolean`
- **`sourceData`**
`string | null`
- **`summary`**
`object`, schema: `ParlayDetailSummary`
- **`errorCode`**
`string | null`
- **`errorMessage`**
`string | null`
- **`errors`**
`array | null`
**Items:**
`string`
- **`hasErrors`**
`boolean`, readOnly
- **`sportsbookErrorResponse`**
`string | null`
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"summary": {
"errors": [
""
],
"errorCode": null,
"errorMessage": null,
"sportsbookErrorResponse": null,
"hasErrors": true
},
"matches": 1,
"marketSourceId": 1,
"sourceData": null,
"lines": [
{
"marketSourceId": 1,
"marketLineId": 1,
"marketId": 1,
"points": null,
"sourceData": null
}
],
"price": 1,
"nativePrice": null,
"nativePriceFormat": 0,
"fullMatch": true,
"probability": 1,
"rfqQuoteReceived": true,
"pricedVia": null,
"isEstimated": true,
"correlationRho": null,
"correlationObservationCount": null,
"correlationCapturedOn": null,
"correlationMatchLevel": null,
"correlationMarketSourceId": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 400 Invalid or malformed selections.
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
##### Status: 422 The sportsbook could not accept the selected combination.
##### Status: 500 Request failed
##### Status: 502 The upstream sportsbook request failed.
### Compare same-game parlay prices
- **Method:** `GET`
- **Path:** `/deeplink/sgp/price`
- **Operation ID:** `deeplinkExecuteSgpPrice`
- **Tags:** Deeplink
**Available for:** Enterprise API.
Request prices for the same selections across the sportsbook IDs supplied in books. The response contains a summary and the available sportsbook parlay results so you can compare the returned prices.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `ids`
- **In:** `query`
Market line ids.
`string`
##### `points`
- **In:** `query`
Optional points values.
`string`
##### `state`
- **In:** `query`
User state code.
`string`, default: `""`
##### `isMobileDevice`
- **In:** `query`
Whether to generate a link for a mobile device.
`boolean`, default: `false`
##### `includeDetails`
- **In:** `query`
Include detailed results.
`boolean`, default: `false`
##### `books`
- **In:** `query`
Comma separated book identifiers.
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Request completed. Check success and messages as well as HTTP status.
###### Content-Type: application/json
schema: `ApiResponseOfPriceShopParlayResponse`
- **`data`**
`object`, schema: `PriceShopParlayResponse`
- **`lines`**
`array | null`
**Items:**
*Schema `ParlayLineDetail` is shown above.*
- **`summary`**
`object`, schema: `ParlayResponseSummary`
- **`errors`**
`array | null`
**Items:**
`string`
- **`hasErrors`**
`boolean`, readOnly
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"summary": {
"errors": [
""
],
"hasErrors": true
},
"lines": [
{
"summary": {
"errors": [
""
],
"errorCode": null,
"errorMessage": null,
"sportsbookErrorResponse": null,
"hasErrors": true
},
"matches": 1,
"marketSourceId": 1,
"sourceData": null,
"lines": [
{
"marketSourceId": 1,
"marketLineId": 1,
"marketId": 1,
"points": null,
"sourceData": null
}
],
"price": 1,
"nativePrice": null,
"nativePriceFormat": 0,
"fullMatch": true,
"probability": 1,
"rfqQuoteReceived": true,
"pricedVia": null,
"isEstimated": true,
"correlationRho": null,
"correlationObservationCount": null,
"correlationCapturedOn": null,
"correlationMatchLevel": null,
"correlationMarketSourceId": null
}
]
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
##### Status: 500 Request failed
### List upcoming events
- **Method:** `GET`
- **Path:** `/event/{league}/upcoming`
- **Operation ID:** `eventGetUpcomingEvents`
- **Tags:** Event
**Available for:** Free API, Concierge API, Enterprise API.
Get event IDs, scheduled times, teams, and current event status for a league. Use the IDs to relate odds and SSE updates to events, and `changedSince` to retrieve modified events; the feed can also include live and recently completed events.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
`string`
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfEvent`
- **`data`**
`array | null`
**Items:**
schema: `Event`
- **`eventEnd`**
`string | null`, format: `date-time`
- **`eventId`**
`integer`, format: `int64`
- **`eventStart`**
`string`, format: `date-time`
- **`eventTeams`**
`array | null`
**Items:**
schema: `EventTeam`
- **`name`**
`string | null`
- **`rotationNumber`**
`integer | null`, format: `int64`
- **`score`**
`integer | null`, format: `int64`
- **`sideIndex`**
`integer | null`, format: `int32`
- **`teamId`**
`integer`, format: `int64`
**Additional properties:**
never (false schema)
- **`gameClock`**
`string | null`
- **`leagueId`**
`integer`, format: `int32`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`name`**
`string | null`
- **`overtimeNumber`**
`integer | null`, format: `int32`
- **`partnerEventData`**
`object`, schema: `PartnerEventData`
- **`fanduel`**
`object` — FanDuel partner identifiers. Included when available within your API coverage and a matching record exists. Omitted when unavailable under the default response settings.
**All of:**
schema: `PartnerEventDataDetail`
- **`eventId`**
`string | null`
**Additional properties:**
never (false schema)
- **`sportradar`**
`object` — Sportradar partner identifiers. Omitted when no matching record exists under the default response settings.
**All of:**
*Schema `PartnerEventDataDetail` is shown above.*
**Additional properties:**
never (false schema)
- **`periodTypeId`**
`integer | null`, format: `int32`
- **`seasonId`**
`integer | null`, format: `int64`
- **`seasonPartId`**
`integer | null`, format: `int64`
- **`statusId`**
`integer`, format: `int64`
- **`tournamentId`**
`integer | null`, format: `int32`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"eventId": 940356,
"leagueId": 3,
"statusId": 1,
"eventStart": "2025-06-05T16:30:00Z",
"name": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"eventTeams": [
{
"teamId": 75,
"rotationNumber": 501,
"score": 0,
"sideIndex": 0,
"name": "Oklahoma City Thunder"
},
{
"teamId": 84,
"rotationNumber": 502,
"score": 0,
"sideIndex": 1,
"name": "Indiana Pacers"
}
],
"partnerEventData": {
"fanduel": {
"eventId": "fd-event-940356"
},
"sportradar": {
"eventId": "sr:match:940356"
}
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfEvent` is shown above.*
**Example:**
```json
{
"data": [
{
"eventId": 940356,
"leagueId": 3,
"statusId": 1,
"eventStart": "2025-06-05T16:30:00Z",
"name": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"eventTeams": [
{
"teamId": 75,
"rotationNumber": 501,
"score": 0,
"sideIndex": 0,
"name": "Oklahoma City Thunder"
},
{
"teamId": 84,
"rotationNumber": 502,
"score": 0,
"sideIndex": 1,
"name": "Indiana Pacers"
}
],
"partnerEventData": {
"fanduel": {
"eventId": "fd-event-940356"
},
"sportradar": {
"eventId": "sr:match:940356"
}
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfEvent` is shown above.*
**Example:**
```json
{
"data": [
{
"eventId": 940356,
"leagueId": 3,
"statusId": 1,
"eventStart": "2025-06-05T16:30:00Z",
"name": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"eventTeams": [
{
"teamId": 75,
"rotationNumber": 501,
"score": 0,
"sideIndex": 0,
"name": "Oklahoma City Thunder"
},
{
"teamId": 84,
"rotationNumber": 502,
"score": 0,
"sideIndex": 1,
"name": "Indiana Pacers"
}
],
"partnerEventData": {
"fanduel": {
"eventId": "fd-event-940356"
},
"sportradar": {
"eventId": "sr:match:940356"
}
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### Get event lineups
- **Method:** `GET`
- **Path:** `/event/{league}/lineup`
- **Operation ID:** `eventGetLineups`
- **Tags:** Event
**Available for:** Enterprise API.
Get the published lineups for a league and date, including event, team, and starter details. Supply date as YYYY-MM-DD, or omit it to use the service's current-day default.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
League identifier (e.g., "nfl", "nba")
`string`
##### `date`
- **In:** `query`
Optional date in YYYY-MM-DD format (defaults to today if not provided)
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfLineup`
- **`data`**
`array | null`
**Items:**
schema: `Lineup`
- **`date`**
`string | null`
- **`event`**
`object`, schema: `EventBasicInfo`
- **`eventStart`**
`string | null`, format: `date-time`
- **`id`**
`integer`, format: `int64`
- **`name`**
`string | null`
- **`statusId`**
`integer | null`, format: `int32`
**Additional properties:**
never (false schema)
- **`leagueId`**
`integer`, format: `int32`
- **`meta`**
`object`, schema: `ItemMeta`
- **`createdAt`**
`string | null`, format: `date-time`
- **`updatedAt`**
`string | null`, format: `date-time`
**Additional properties:**
never (false schema)
- **`teams`**
`array | null`
**Items:**
schema: `LineupTeam`
- **`confirmedAt`**
`string | null`, format: `date-time`
- **`lineupStatus`**
`string | null`
- **`side`**
`string | null`
- **`starters`**
`array | null`
**Items:**
schema: `LineupStarter`
- **`headshotUrl`**
`string | null`
- **`player`**
`object`, schema: `PersonBasicInfo`
- **`firstName`**
`string | null`
- **`id`**
`integer`, format: `int64`
- **`lastName`**
`string | null`
**Additional properties:**
never (false schema)
- **`position`**
`string | null`
**Additional properties:**
never (false schema)
- **`team`**
`object`, schema: `TeamBasicInfo`
- **`id`**
`integer`, format: `int64`
- **`name`**
`string | null`
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"date": null,
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"teams": [
{
"side": null,
"team": {
"id": 1,
"name": null
},
"lineupStatus": null,
"confirmedAt": null,
"starters": [
{
"position": null,
"player": {
"id": 1,
"firstName": null,
"lastName": null
},
"headshotUrl": null
}
]
}
],
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfLineup` is shown above.*
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"date": null,
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"teams": [
{
"side": null,
"team": {
"id": 1,
"name": null
},
"lineupStatus": null,
"confirmedAt": null,
"starters": [
{
"position": null,
"player": {
"id": 1,
"firstName": null,
"lastName": null
},
"headshotUrl": null
}
]
}
],
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfLineup` is shown above.*
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"date": null,
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"teams": [
{
"side": null,
"team": {
"id": 1,
"name": null
},
"lineupStatus": null,
"confirmedAt": null,
"starters": [
{
"position": null,
"player": {
"id": 1,
"firstName": null,
"lastName": null
},
"headshotUrl": null
}
]
}
],
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### Generate betting offers for an article
- **Method:** `GET`
- **Path:** `/api/v1/article-widgets/{partnerSlug}`
- **Operation ID:** `gamblyB2BArticleWidgetGetArticleWidget`
- **Tags:** GamblyB2BArticleWidget
**Available for:** Enterprise API.
Analyze an article URL or inline markdown and return matched betting offers, sportsbook odds, deep links, and supporting text for an embedded widget. Use the partner books endpoint to discover sportsbook IDs, then `requestedBookIds` and `bookOrder` to select and order the results.
Analyze article content and return matched betting offers that can be embedded in a publisher-owned widget.
Provide either url for Gambly to fetch the article, or markdown for inline article text.
Responses include partner metadata, matched bets, sportsbook odds, deeplinks, evidence snippets, cache metadata, and worker telemetry.
Use GET /api/v1/article-widgets/{partnerSlug}/books to discover sportsbook IDs, then pass requestedBookIds and bookOrder to control which books are returned and how they are ordered.
forceRefresh bypasses cached results; skipCache prevents cache lookup for the request.
Use X-Api-Key to authenticate the request.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `partnerSlug` required
- **In:** `path`
Partner slug supplied during Gambly onboarding.
`string`
**Example: default**
```json
"demo-partner"
```
##### `url`
- **In:** `query`
Article or video URL to analyze. Either url or markdown is required.
`string`
**Example: default**
```json
"https://example.com/mlb-preview-article"
```
##### `markdown`
- **In:** `query`
Raw article markdown. Either markdown or url is required.
`string`
**Example: default**
```json
"Shohei Ohtani could hit a home run tonight."
```
##### `maxBets`
- **In:** `query`
Maximum number of unique betting entities to return.
`integer`, format: `int32`
**Example: default**
```json
1
```
##### `leagueHint`
- **In:** `query`
Optional league hint such as NFL, NBA, or Premier League.
`string`
**Example: default**
```json
"MLB"
```
##### `forceRefresh`
- **In:** `query`
Bypass cache and force fresh worker analysis.
`boolean`
**Example: default**
```json
false
```
##### `skipCache`
- **In:** `query`
Skip cache lookup for this request.
`boolean`
**Example: default**
```json
true
```
##### `isMobileDevice`
- **In:** `query`
Generate mobile-optimized sportsbook deep links when possible.
`boolean`
**Example: default**
```json
false
```
##### `requestedBookIds`
- **In:** `query`
Comma-separated sportsbook IDs to include.
`string`
**Example: default**
```json
"1,2"
```
##### `bookOrder`
- **In:** `query`
Comma-separated sportsbook IDs defining preferred result order.
`string`
**Example: default**
```json
"1,2"
```
##### `includeImplicitBets`
- **In:** `query`
Include bets inferred from article context.
`boolean`
**Example: default**
```json
false
```
##### `inlineWidgetCap`
- **In:** `query`
Maximum number of inline widgets to generate.
`integer`, format: `int32`
**Example: default**
```json
1
```
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Article widget generated successfully.
###### Content-Type: application/json
schema: `ArticleWidgetResponseDto` — Complete article-widget response with partner info, matched bets, and processing metadata.
- **`bets`**
`array` — Matched betting offers with odds, evidence, and sportsbook deep links.
**Items:**
schema: `ArticleWidgetBetDto` — Matched betting offer with article evidence and deep-link information.
- **`betOffer`**
`object`, schema: `PopulatedBetOffer` — Hydrated Gambly bet offer returned by the article-widget API.
- **`altBetId`**
`integer`, format: `int64` — Legacy alternate bet identifier.
- **`alternateOffers`**
`array | null` — Alternate lines attached to this offer.
**Items:**
schema: `BetOfferBase` — Legacy Gambly bet-offer base shape used for alternate lines.
- **`betOpeningPoints`**
`number | null`, format: `double`
- **`betOpeningPrice`**
`number | null`, format: `double`
- **`generatedEdge`**
`number | null`, format: `double`
- **`id`**
`integer`, format: `int64`
- **`points`**
`number | null`, format: `double`
- **`price`**
`number | null`, format: `double`
- **`sourceData`**
`string | null`
**Additional properties:**
never (false schema)
- **`alternateOffersJson`**
`string | null` — Raw alternate-offers JSON from Gambly.
- **`altTeamId`**
`integer | null`, format: `int64` — Alternate team identifier stored on the legacy Gambly bet offer.
- **`betEntityId`**
`string | null` — Legacy bet entity identifier.
- **`betEntityIdCleaned`**
`string | null` — Cleaned legacy bet entity identifier.
- **`betIndex`**
`integer`, format: `int32` — Legacy bet side index.
- **`betOfferType`**
`object`, schema: `BetTypeCore` — Bet type metadata included with a matched article-widget bet offer.
- **`betOn`**
`string | null`
- **`betRange`**
`string | null`
- **`betTypePriority`**
`number`, format: `double`
- **`canDraw`**
`boolean | null`
- **`containsBetSubTypes`**
`boolean`
- **`id`**
`integer`, format: `int64`
- **`inferredBetTypeName`**
`string | null`
- **`marketTypeId`**
`integer`, format: `int64`
- **`marketTypeName`**
`string | null`
- **`name`**
`string | null`
- **`nameMobile`**
`string | null`
- **`nameShort`**
`string | null`
- **`selectionCountType`**
`string | null`
- **`sides`**
`string | null`
**Additional properties:**
never (false schema)
- **`betOfferTypeId`**
`integer`, format: `int64` — Legacy bet-offer type identifier. This mirrors betTypeId for current Gambly offers.
- **`betOpeningPoints`**
`number | null`, format: `double` — Opening line or points value when available.
- **`betOpeningPrice`**
`number | null`, format: `double` — Opening American odds when available.
- **`betSubType`**
`string | null` — Optional bet subtype for specific markets.
- **`betSubTypeCleaned`**
`string | null` — Cleaned bet subtype display text when the legacy parser can derive one.
- **`betTypeId`**
`integer`, format: `int64` — Bet type identifier.
- **`book`**
`object`, schema: `Book`
- **`bookType`**
`string | null`
- **`dl`**
`string | null`
- **`id`**
`integer`, format: `int64`
- **`isActive`**
`boolean`
- **`logoUrl`**
`string | null`
- **`name`**
`string | null`
- **`priority`**
`integer`, format: `int64`
- **`siteUrl`**
`string | null`
- **`statusId`**
`integer`, format: `int32`
- **`thumbnailUrl`**
`string | null`
**Additional properties:**
never (false schema)
- **`bookId`**
`integer`, format: `int64` — Sportsbook identifier.
- **`dl`**
`string | null` — Sportsbook deep-link source data when available.
- **`edge`**
`number | null`, format: `double` — Edge value for this offer when available.
- **`event`**
`object`, schema: `EventCore` — Event metadata included with a matched article-widget bet offer.
- **`dayOfWeek`**
`string | null`
- **`eventEnd`**
`string | null`, format: `date-time`
- **`eventStart`**
`string | null`, format: `date-time`
- **`gamblyOpticIdentifier`**
`string | null`
- **`gamblyOverrideStartTime`**
`string | null`, format: `date-time`
- **`gameClock`**
`string | null`
- **`gameStatus`**
`string | null`
- **`id`**
`integer`, format: `int64`
- **`leagueId`**
`integer`, format: `int32`
- **`leagueName`**
`string | null`
- **`name`**
`string | null`
- **`overtimeNumber`**
`integer | null`, format: `int32`
- **`periodTypeId`**
`integer | null`, format: `int32`
- **`seasonId`**
`integer | null`, format: `int32`
- **`seasonPart`**
`object`, schema: `GamblyB2BSeasonPart`
- **`id`**
`integer`, format: `int32`
- **`name`**
`string | null`
- **`seasonId`**
`integer | null`, format: `int32`
- **`seasonPartEnd`**
`string | null`, format: `date-time`
- **`seasonPartStart`**
`string | null`, format: `date-time`
- **`seasonPartType`**
`integer | null`, format: `int32`
**Additional properties:**
never (false schema)
- **`seasonPartId`**
`integer | null`, format: `int32`
- **`teams`**
`array`
**Items:**
schema: `TeamCore` — Team metadata included with a matched article-widget bet offer.
- **`abbreviation`**
`string | null`
- **`displayNameOverride`**
`string | null`
- **`gamblyOpticIdentifier`**
`string | null`
- **`gamblySportId`**
`integer | null`, format: `int32`
- **`gamblyTeamPriority`**
`number | null`, format: `float`
- **`id`**
`integer`, format: `int64`
- **`leagueId`**
`integer | null`, format: `int32`
- **`logoUrl`**
`string | null`
- **`name`**
`string | null`
- **`preferredDisplayName`**
`string | null`, readOnly
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
- **`eventId`**
`integer | null`, format: `int64` — Event identifier for event-based markets.
- **`feedUniqueId`**
`string | null` — Optional upstream feed identifier.
- **`gamblyModifiedTimestamp`**
`string | null` — Legacy Gambly modified timestamp in ISO-8601 format.
- **`gamblyOverrideIsEnabled`**
`boolean | null` — Gambly override flag for offer visibility.
- **`gamblyOverrideSeasonPart`**
`string | null` — Raw Gambly season-part override.
- **`generatedEdge`**
`number | null`, format: `double` — Generated edge for this offer when available.
- **`id`**
`integer`, format: `int64` — Unique bet offer identifier.
- **`isAltLine`**
`boolean` — Whether this offer represents an alternate line.
- **`isLiveBet`**
`boolean` — Whether this bet is live.
- **`isSGPEnabled`**
`boolean` — Whether this offer is eligible for sportsbook SGP pricing.
- **`league`**
`object`, schema: `GamblyB2BLeague` — League metadata included with a matched article-widget bet offer.
- **`gamblyIsCompositeLeague`**
`boolean`
- **`gamblyOpticIdentifier`**
`string | null`
- **`gamblySeasonalPriority`**
`number`, format: `double`
- **`gamblyShouldIngestFromOptic`**
`boolean`
- **`id`**
`integer`, format: `int32`
- **`name`**
`string | null`
- **`opticIdentifier`**
`string | null`
- **`priority`**
`integer`, format: `int32`
- **`sportId`**
`integer`, format: `int32`
**Additional properties:**
never (false schema)
- **`leagueId`**
`integer`, format: `int32` — Legacy Gambly league identifier.
- **`leagueName`**
`string | null` — League display name.
- **`offerGroupHash`**
`string | null` — Legacy offer group hash.
- **`opponent`**
`object`, schema: `TeamCore` — Team metadata included with a matched article-widget bet offer.
*Schema `TeamCore` is shown above.*
- **`opponentId`**
`integer | null`, format: `int64` — Opponent team identifier when derivable from the event.
- **`overUnder`**
`string | null` — Over, under, or n/a selection side.
- **`periodType`**
`object`, schema: `GamblyB2BPeriodType` — Period type metadata included with a matched article-widget bet offer.
- **`id`**
`integer`, format: `int64`
- **`leagues`**
`array | null`
**Items:**
`integer`, format: `int32`
- **`name`**
`string | null`
- **`nameShort`**
`string | null`
**Additional properties:**
never (false schema)
- **`periodTypeId`**
`integer`, format: `int64` — Period type identifier.
- **`personalizationAltTeamScore`**
`number | null`, format: `double`
- **`personalizationBetTypeScore`**
`number | null`, format: `double`
- **`personalizationGlobalPopularityScore`**
`number | null`, format: `double`
- **`personalizationLeagueScore`**
`number | null`, format: `double`
- **`personalizationPlayerScore`**
`number | null`, format: `double`
- **`personalizationTeamScore`**
`number | null`, format: `double`
- **`player`**
`object`, schema: `PersonCore` — Player metadata included with a matched article-widget bet offer.
- **`currentTeamId`**
`integer | null`, format: `int64`
- **`firstName`**
`string | null`
- **`gamblyLongRangePersonPriority`**
`number | null`, format: `double`
- **`gamblyOpticIdentifier`**
`string | null`
- **`gamblyPersonPriority`**
`number | null`, format: `double`
- **`headshotUrl`**
`string | null`
- **`id`**
`integer`, format: `int64`
- **`lastName`**
`string | null`
- **`position`**
`string | null`
- **`preferredName`**
`string | null`
**Additional properties:**
never (false schema)
- **`playerId`**
`integer | null`, format: `int64` — Player identifier for player prop markets.
- **`points`**
`number | null`, format: `double` — Line or points value for spread and totals bets.
- **`popularityScore`**
`number | null`, format: `double` — Optional popularity score.
- **`price`**
`number | null`, format: `double` — American odds price.
- **`seasonPart`**
`string | null` — Legacy season-part override.
- **`shouldGamblyBotIgnore`**
`boolean` — Whether GamblyBot should ignore this offer.
- **`sourceData`**
`string | null` — Sportsbook/source payload used by Gambly deeplink generation.
- **`statusId`**
`integer`, format: `int32` — Legacy Gambly status identifier.
- **`syntheticHold`**
`number | null`, format: `double` — Synthetic hold value when available.
- **`team`**
`object`, schema: `TeamCore` — Team metadata included with a matched article-widget bet offer.
*Schema `TeamCore` is shown above.*
- **`teamId`**
`integer | null`, format: `int64` — Team identifier for team-based markets.
- **`timestamp`**
`string | null` — Offer timestamp in ISO-8601 format.
**Additional properties:**
never (false schema)
- **`deeplink`**
`object`, schema: `Deeplink` — Legacy Gambly article-widget deeplink response.
- **`deeplinkStatus`**
`string | null` — Status returned by the deeplink generator.
- **`id`**
`string | null` — Optional deeplink identifier.
- **`message`**
`string | null` — Optional status or error message.
- **`url`**
`string | null` — URL that opens the sportsbook app or website.
**Additional properties:**
never (false schema)
- **`evidence`**
`array` — Text excerpts from the article that support this match.
**Items:**
`string`
- **`isDirectMatch`**
`boolean` — True when the article directly mentioned the bet; false when inferred.
- **`matchConfidence`**
`number | null`, format: `double` — Confidence score between 0.0 and 1.0.
**Additional properties:**
never (false schema)
- **`metadata`**
`object`, schema: `ArticleWidgetMetadataDto` — Processing metadata for an article-widget response.
- **`articleUrl`**
`string | null`
- **`bookOrder`**
`array`
**Items:**
`integer`, format: `int32`
- **`bookOrderHash`**
`string | null`
- **`cacheHit`**
`boolean`
- **`cacheTtlSeconds`**
`integer`, format: `int32`
- **`fetchedAtUtc`**
`string`, format: `date-time`
- **`includeImplicitBets`**
`boolean`
- **`inlineWidgetCap`**
`integer`, format: `int32`
- **`leagueHint`**
`string | null`
- **`matchedCount`**
`integer`, format: `int32`
- **`requestedMaxBets`**
`integer`, format: `int32`
- **`workerLatency`**
`string | null`, format: `date-span`
- **`workerResultType`**
`string | null`
**Additional properties:**
never (false schema)
- **`partner`**
`object`, schema: `ArticleWidgetPartnerDto` — Partner organization information used by article-widget requests.
- **`allowCreate`**
`boolean` — Whether this partner can create missing widget bet configurations.
- **`displayName`**
`string` — Human-readable partner display name.
- **`id`**
`integer`, format: `int64` — Unique partner identifier.
- **`slug`**
`string` — URL-friendly partner slug.
- **`status`**
`string` — Current partner status such as active, inactive, or suspended.
**Additional properties:**
never (false schema)
- **`telemetry`**
`object`, schema: `ArticleWidgetTelemetryDto` — Telemetry for article-widget worker and cache behavior.
- **`cacheStatus`**
`string | null`
- **`errorCode`**
`string | null`
- **`workerLatencyMs`**
`integer | null`, format: `int32`
- **`workerStatusCode`**
`integer`, format: `int32`
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
**Example:**
```json
{
"partner": {
"id": 1,
"slug": "",
"displayName": "",
"status": "",
"allowCreate": true
},
"bets": [
{
"betOffer": {
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null,
"feedUniqueId": null,
"leagueId": 1,
"leagueName": null,
"dl": null,
"teamId": null,
"opponentId": null,
"altTeamId": null,
"playerId": null,
"eventId": null,
"bookId": 1,
"periodTypeId": 1,
"betTypeId": 1,
"betOfferTypeId": 1,
"betSubType": null,
"popularityScore": null,
"betSubTypeCleaned": null,
"alternateOffers": [
{
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null
}
],
"timestamp": null,
"gamblyModifiedTimestamp": null,
"overUnder": null,
"betIndex": 1,
"edge": null,
"syntheticHold": null,
"shouldGamblyBotIgnore": true,
"isLiveBet": true,
"isAltLine": true,
"altBetId": 1,
"betEntityId": null,
"betEntityIdCleaned": null,
"isSGPEnabled": true,
"seasonPart": null,
"offerGroupHash": null,
"statusId": 1,
"alternateOffersJson": null,
"gamblyOverrideSeasonPart": null,
"gamblyOverrideIsEnabled": null,
"personalizationPlayerScore": null,
"personalizationLeagueScore": null,
"personalizationBetTypeScore": null,
"personalizationTeamScore": null,
"personalizationAltTeamScore": null,
"personalizationGlobalPopularityScore": null,
"book": {
"id": 1,
"name": null,
"logoUrl": null,
"thumbnailUrl": null,
"siteUrl": null,
"dl": null,
"priority": 1,
"statusId": 1,
"bookType": null,
"isActive": true
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"eventEnd": null,
"overtimeNumber": null,
"dayOfWeek": null,
"gameStatus": null,
"gameClock": null,
"periodTypeId": null,
"teams": [
{
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
}
],
"seasonPart": {
"id": 1,
"seasonId": null,
"name": null,
"seasonPartType": null,
"seasonPartStart": null,
"seasonPartEnd": null
},
"seasonId": null,
"seasonPartId": null,
"leagueId": 1,
"leagueName": null,
"gamblyOpticIdentifier": null,
"gamblyOverrideStartTime": null
},
"team": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"opponent": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"player": {
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"currentTeamId": null,
"position": null,
"preferredName": null,
"gamblyPersonPriority": null,
"gamblyLongRangePersonPriority": null,
"gamblyOpticIdentifier": null
},
"periodType": {
"id": 1,
"name": null,
"nameShort": null,
"leagues": [
1
]
},
"betOfferType": {
"id": 1,
"name": null,
"nameShort": null,
"nameMobile": null,
"marketTypeId": 1,
"marketTypeName": null,
"betOn": null,
"sides": null,
"canDraw": null,
"selectionCountType": null,
"betRange": null,
"inferredBetTypeName": null,
"containsBetSubTypes": true,
"betTypePriority": 1
},
"league": {
"id": 1,
"sportId": 1,
"name": null,
"gamblySeasonalPriority": 1,
"priority": 1,
"gamblyOpticIdentifier": null,
"opticIdentifier": null,
"gamblyIsCompositeLeague": true,
"gamblyShouldIngestFromOptic": true
}
},
"deeplink": {
"id": null,
"url": null,
"deeplinkStatus": null,
"message": null
},
"evidence": [
""
],
"matchConfidence": null,
"isDirectMatch": true
}
],
"metadata": {
"articleUrl": null,
"leagueHint": null,
"requestedMaxBets": 1,
"matchedCount": 1,
"workerLatency": null,
"fetchedAtUtc": "",
"cacheTtlSeconds": 1,
"cacheHit": true,
"workerResultType": null,
"inlineWidgetCap": 1,
"includeImplicitBets": true,
"bookOrderHash": null,
"bookOrder": [
1
]
},
"telemetry": {
"cacheStatus": null,
"errorCode": null,
"workerStatusCode": 1,
"workerLatencyMs": null
}
}
```
##### Status: 400 Invalid request parameters or missing content.
###### Content-Type: application/json
schema: `GamblyB2BErrorResponse` — Standard error response returned by migrated Gambly B2B endpoints.
- **`details`**
`string` — Detailed explanation of the error.
- **`error`**
`string` — Machine-readable error code.
- **`message`**
`string` — Human-readable error message.
- **`requestId`**
`string` — Request identifier for support and debugging.
**Additional properties:**
never (false schema)
**Example:**
```json
{
"error": "",
"message": "",
"details": "",
"requestId": ""
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: application/json
schema: `ProblemDetails`
- **`detail`**
`string | null`
- **`instance`**
`string | null`
- **`status`**
`integer | null`, format: `int32`
- **`title`**
`string | null`
- **`type`**
`string | null`
**Additional properties:**
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
**Any of:**
*Schema `GamblyB2BErrorResponse` is shown above.*
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"error": "",
"message": "",
"details": "",
"requestId": ""
}
```
##### Status: 404 Partner not found.
###### Content-Type: application/json
*Schema `GamblyB2BErrorResponse` is shown above.*
**Example:**
```json
{
"error": "",
"message": "",
"details": "",
"requestId": ""
}
```
##### Status: 502 Backend article processing worker unavailable.
###### Content-Type: application/json
*Schema `GamblyB2BErrorResponse` is shown above.*
**Example:**
```json
{
"error": "",
"message": "",
"details": "",
"requestId": ""
}
```
### List an article partner's sportsbooks
- **Method:** `GET`
- **Path:** `/api/v1/article-widgets/{partnerSlug}/books`
- **Operation ID:** `gamblyB2BArticleWidgetGetPartnerBooks`
- **Tags:** GamblyB2BArticleWidget
**Available for:** Enterprise API.
Get the sportsbook IDs, names, logos, priorities, and allowed flags associated with an article-widget partner. Use these IDs in `requestedBookIds` and `bookOrder` when generating article betting offers.
Return the sportsbook IDs, names, logos, priorities, and allowed flags available to an article-widget partner.
Use these IDs in requestedBookIds to limit article-widget results and in bookOrder to choose the display order.
Use X-Api-Key to authenticate the request.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `partnerSlug` required
- **In:** `path`
Partner slug supplied during Gambly onboarding.
`string`
**Example: default**
```json
"demo-partner"
```
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Sportsbooks retrieved successfully.
###### Content-Type: application/json
schema: `PartnerBooksResponse` — Response containing partner information and available sportsbooks.
- **`books`**
`array` — Sportsbooks available to article-widget requests.
**Items:**
schema: `ArticleWidgetBookDto` — A sportsbook available for use with article widgets.
- **`allowed`**
`boolean` — Whether this book is allowed for the partner.
- **`id`**
`integer`, format: `int32` — Unique sportsbook identifier. Use this in requestedBookIds and bookOrder.
- **`logoUrl`**
`string | null` — URL to the sportsbook logo.
- **`name`**
`string | null` — Sportsbook display name.
- **`priority`**
`integer`, format: `int32` — Default display priority. Lower values should be shown first.
- **`siteUrl`**
`string | null` — Optional sportsbook website URL.
- **`thumbnailUrl`**
`string | null` — Optional sportsbook thumbnail URL.
**Additional properties:**
never (false schema)
- **`partner`**
`object`, schema: `ArticleWidgetPartnerDto` — Partner organization information used by article-widget requests.
*Schema `ArticleWidgetPartnerDto` is shown above.*
- **`requestId`**
`string` — Unique request identifier.
**Additional properties:**
never (false schema)
**Example:**
```json
{
"partner": {
"id": 1,
"slug": "",
"displayName": "",
"status": "",
"allowCreate": true
},
"books": [
{
"id": 1,
"name": null,
"logoUrl": null,
"priority": 1,
"allowed": true,
"siteUrl": null,
"thumbnailUrl": null
}
],
"requestId": ""
}
```
##### Status: 400 Invalid partner slug.
###### Content-Type: application/json
*Schema `GamblyB2BErrorResponse` is shown above.*
**Example:**
```json
{
"error": "",
"message": "",
"details": "",
"requestId": ""
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
**Any of:**
*Schema `ProblemDetails` is shown above.*
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 404 Partner not found.
###### Content-Type: application/json
*Schema `GamblyB2BErrorResponse` is shown above.*
**Example:**
```json
{
"error": "",
"message": "",
"details": "",
"requestId": ""
}
```
### Generate a bet slip from text or an image
- **Method:** `POST`
- **Path:** `/api/v1/bet/generate`
- **Operation ID:** `gamblyB2BBetGenerate`
- **Tags:** GamblyB2BBet
**Available for:** Free API, Enterprise API.
Submit a text prompt in `content.text`, an image URL in `content.imageUrl`, or an encoded image in `content.base64String` to start asynchronous bet slip generation. Use the returned `requestId` to poll the status endpoint for matched selections, sportsbook odds, and deep links.
Submit a natural-language prompt or an image of a bet slip and receive a requestId for asynchronous processing.
Text requests use content.text. Image requests use content.imageUrl or content.base64String.
Poll GET /api/v1/bet/status/{guid} with the returned requestId until the status is Complete.
Complete responses include sportsbook-specific bet slips, matched odds, deep links, sharedBetSlipId, and shareUrl values that can be used for one-tap bet placement or shareable bet-slip pages.
Use X-Api-Key to authenticate the request.
Free API covers its supported sportsbooks and delayed REST data. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Request Body
The generation request containing the content type and content payload.
**Required:** `true`
##### Content-Type: application/json
schema: `GenerateBetRequest` — Request to generate a bet slip from text or image content.
- **`content`**
`object`, schema: `ContentBase` — Base class for bet generation content. The concrete type depends on the content payload.
**Additional properties:**
never (false schema)
- **`generateMobileLinks`**
`boolean` — Whether to generate mobile-optimized deep links for sportsbook apps. Defaults to true.
- **`type`**
`string`, possible values: `"text", "image"` — The type of content being submitted. Use "text" for natural-language prompts or "image" for a bet slip image.
**Additional properties:**
never (false schema)
**Example: Text Example**
Generate a bet slip from a natural-language prompt.
```json
{
"type": "text",
"generateMobileLinks": true,
"content": {
"text": "MLB moneyline bet slip for Yankees to win"
}
}
```
**Example: Image Url Example**
Generate a bet slip from a publicly reachable image URL.
```json
{
"type": "image",
"generateMobileLinks": true,
"content": {
"imageUrl": "https://example.com/betslip-image.jpg"
}
}
```
**Example: Base 64 Image Example**
Generate a bet slip from a base64-encoded image payload.
```json
{
"type": "image",
"generateMobileLinks": true,
"content": {
"base64String": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+/p9sAAAAASUVORK5CYII=",
"compression": null
}
}
```
#### Responses
##### Status: 200 Request accepted and queued for processing.
###### Content-Type: application/json
schema: `GenerateBetResponse` — Response returned when a bet slip generation request is accepted.
- **`details`**
`string` — A human-readable summary of the submitted content.
- **`requestId`**
`string`, format: `uuid` — Unique identifier for this request. Use this to poll GET /api/v1/bet/status/{guid}.
- **`status`**
`string` — The initial status of the request, such as "pending" or "error".
**Additional properties:**
never (false schema)
**Example:**
```json
{
"status": "",
"details": "",
"requestId": ""
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope.
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
### Get bet-slip generation results
- **Method:** `GET`
- **Path:** `/api/v1/bet/status/{guid}`
- **Operation ID:** `gamblyB2BBetStatus`
- **Tags:** GamblyB2BBet
**Available for:** Free API, Enterprise API.
Get the processing status for the `requestId` returned by bet slip generation. Completed results include sportsbook-specific bet slips, matched odds, leg details, deep links, and shareable slip identifiers and URLs; processing or error results explain the current state.
Poll for the results of a previously submitted bet slip generation request.
Processing responses indicate that Gambly is still matching the submitted text or image.
Complete responses include generated bet slips by sportsbook, overall odds, matched leg counts, leg-level odds, sportsbook deep links, sharedBetSlipId, and shareUrl.
Error responses preserve the requestId and include the upstream status details when a request cannot be completed.
Use X-Api-Key to authenticate the request.
Free API covers its supported sportsbooks and delayed REST data. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `guid` required
- **In:** `path`
The request ID returned from the generate endpoint.
`string`, format: `uuid`
**Example: default**
```json
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
```
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Status retrieved successfully.
###### Content-Type: application/json
schema: `BetStatusResponse` — Response containing the current status and results of a bet slip generation request.
- **`betSlips`**
`array | null` — Generated bet slips. Populated when status is "Complete".
**Items:**
schema: `Betslip` — A generated bet slip for a specific sportsbook, containing matched bets and a deep link.
- **`betslipBets`**
`array | null` — The individual bets that make up this bet slip.
**Items:**
schema: `BetslipBet` — An individual bet within a bet slip.
- **`betType`**
`string | null` — The type of bet.
- **`deepLink`**
`object`, schema: `DeepLink` — A deep link to a specific sportsbook for placing a bet.
- **`sportsbook`**
`string | null` — The name of the sportsbook.
- **`url`**
`string | null` — The deep link URL that opens the sportsbook app or website with the bet pre-populated.
**Additional properties:**
never (false schema)
- **`event`**
`string | null` — The event description.
- **`id`**
`string | null` — Unique identifier for this bet offer.
- **`isLive`**
`boolean` — Whether this bet is for a live event.
- **`metadata`**
`object`, schema: `BetMetadata` — Additional metadata about a bet, including league and event timing information.
- **`additionalInfo`**
`object | null` — Additional key-value data about the bet that may vary by bet type.
**Additional properties:**
- **`league`**
`string | null` — The league or competition.
- **`timestamp`**
`string | null`, format: `date-time` — The scheduled start time of the event in UTC.
**Additional properties:**
never (false schema)
- **`odds`**
`object`, schema: `BetOdds` — Odds and line information for a bet.
- **`points`**
`string | null` — The line or points value for spread and totals bets.
- **`type`**
`string | null` — The bet selection type.
- **`value`**
`string | null` — The odds value in American format.
**Additional properties:**
never (false schema)
- **`periodType`**
`string | null` — The period the bet applies to.
- **`player`**
`string | null` — The player name, if this is a player prop bet.
**Additional properties:**
never (false schema)
- **`book`**
`string` — The name of the sportsbook.
- **`deepLink`**
`string | null` — A deep link URL to open this bet slip directly in the sportsbook app or website.
- **`legsMatched`**
`integer`, format: `int32` — The number of legs that were successfully matched to available offers.
- **`legsRequested`**
`integer`, format: `int32` — The number of legs originally requested.
- **`overallOdds`**
`integer | null`, format: `int64` — The combined odds for the entire bet slip in American format.
**Additional properties:**
never (false schema)
- **`details`**
`string` — Human-readable description of the current status.
- **`message`**
`string | null` — Optional message from the processing system, typically present on errors.
- **`requestId`**
`string`, format: `uuid` — The unique identifier of the original generation request.
- **`sharedBetSlipId`**
`string | null` — Unique identifier for the shared bet slip, if one was created.
- **`shareUrl`**
`string | null` — A shareable URL for the generated bet slip.
- **`status`**
`string` — Current processing status: "Processing", "Complete", or "Error".
**Additional properties:**
never (false schema)
**Example:**
```json
{
"requestId": "",
"status": "",
"details": "",
"betSlips": [
{
"book": "",
"deepLink": null,
"overallOdds": null,
"legsRequested": 1,
"legsMatched": 1,
"betslipBets": [
{
"id": null,
"player": null,
"event": null,
"odds": {
"type": null,
"value": null,
"points": null
},
"betType": null,
"periodType": null,
"isLive": true,
"deepLink": {
"sportsbook": null,
"url": null
},
"metadata": {
"league": null,
"timestamp": null,
"additionalInfo": null
}
}
]
}
],
"message": null,
"sharedBetSlipId": null,
"shareUrl": null
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope.
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
### Get NFL in-game model fair prices
- **Method:** `GET`
- **Path:** `/market/{league}/in-game-fair-prices`
- **Operation ID:** `inGameFairPriceGetCurrent`
- **Tags:** InGameFairPrice
**Available for:** Enterprise API.
Returns Unabated's latest model estimates of fair betting probabilities and prices for NFL games in progress. Use these estimates to compare sportsbook odds with the model's view, and use the `ready`, `expired`, or `unavailable` status on each event to decide whether its prices are current. Each event output includes market IDs, probabilities by points, optional display prices, and production timestamps; use probability as the canonical pricing value and use only `ready` outputs as current model data.
NFL in-game model data is available through Enterprise API. Free API and Concierge API do not include this data.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfIReadOnlyCollectionOfInGameFairPriceSet`
- **`data`**
`array | null`
**Items:**
schema: `InGameFairPriceSet` — The latest model output for one event, including its freshness status and market fair probabilities.
- **`checkpointType`**
`string | null` — Model checkpoint associated with this output, when supplied.
- **`eventId`**
`integer`, format: `int64` — Event ID used to match this model output with odds and event data.
- **`leagueId`**
`integer`, format: `int32` — League ID from GET /league.
- **`markets`**
`array | null` — Fair probabilities grouped by market ID. Match these IDs with markets in the odds response.
**Items:**
schema: `InGameFairPriceMarket`
- **`marketId`**
`integer`, format: `int64` — Market ID used to match these fair probabilities with the corresponding odds market.
- **`probabilities`**
`array | null` — Model estimates for the market's selection points.
**Items:**
schema: `InGameFairPriceProbability`
- **`method`**
`integer | null`, format: `int32` — Model price method identifier, when supplied.
- **`points`**
`number`, format: `double` — Selection line or threshold associated with this estimate.
- **`price`**
`integer | null`, format: `int32` — Optional model-supplied American display price. Use probability as the canonical value for pricing and edge calculations.
- **`probability`**
`number`, format: `double` — Model's estimated probability of the selection, expressed on a scale from 0 to 1. Use this value for pricing and edge calculations.
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
- **`outputId`**
`string | null` — Identifies this model output; use it to detect a new result for the event.
- **`periodNumber`**
`integer | null`, format: `int32` — Game period associated with this output, when supplied.
- **`producedUtc`**
`string`, format: `date-time` — UTC time at which the model output was produced.
- **`schemaVersion`**
`string | null` — Version of the model output format.
- **`sourceKey`**
`string | null` — Identifies the model source for this output.
- **`status`**
`string | null` — ready means the output is current; expired means it is stale; unavailable means current model data cannot be established. Use prices only while status is ready.
- **`statusChangedUtc`**
`string`, format: `date-time` — UTC time at which the output's status last changed.
- **`statusReason`**
`string | null` — Explanation for the current status, when supplied.
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"sourceKey": null,
"leagueId": 1,
"eventId": 1,
"outputId": null,
"status": null,
"statusReason": null,
"producedUtc": "",
"statusChangedUtc": "",
"schemaVersion": null,
"checkpointType": null,
"periodNumber": null,
"markets": [
{
"marketId": 1,
"probabilities": [
{
"price": null,
"method": null,
"points": 1,
"probability": 1
}
]
}
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfIReadOnlyCollectionOfInGameFairPriceSet` is shown above.*
**Example:**
```json
{
"data": [
{
"sourceKey": null,
"leagueId": 1,
"eventId": 1,
"outputId": null,
"status": null,
"statusReason": null,
"producedUtc": "",
"statusChangedUtc": "",
"schemaVersion": null,
"checkpointType": null,
"periodNumber": null,
"markets": [
{
"marketId": 1,
"probabilities": [
{
"price": null,
"method": null,
"points": 1,
"probability": 1
}
]
}
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfIReadOnlyCollectionOfInGameFairPriceSet` is shown above.*
**Example:**
```json
{
"data": [
{
"sourceKey": null,
"leagueId": 1,
"eventId": 1,
"outputId": null,
"status": null,
"statusReason": null,
"producedUtc": "",
"statusChangedUtc": "",
"schemaVersion": null,
"checkpointType": null,
"periodNumber": null,
"markets": [
{
"marketId": 1,
"probabilities": [
{
"price": null,
"method": null,
"points": 1,
"probability": 1
}
]
}
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
**Any of:**
*Schema `ProblemDetails` is shown above.*
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
### List available leagues
- **Method:** `GET`
- **Path:** `/league`
- **Operation ID:** `leagueGetAllLeagues`
- **Tags:** League
**Available for:** Free API, Concierge API, Enterprise API.
Get league IDs, names, and full names for use in API requests and SSE filters. Supply `changedSince` to retrieve league records modified since a timestamp.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfLeague`
- **`data`**
`array | null`
**Items:**
schema: `League`
- **`fullName`**
`string | null`
- **`id`**
`integer`, format: `int32`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`name`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfLeague` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfLeague` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### Get a league by ID
- **Method:** `GET`
- **Path:** `/league/{id}`
- **Operation ID:** `leagueGetLeagueById`
- **Tags:** League
**Available for:** Free API, Concierge API, Enterprise API.
Get a league's ID, name, and full name using its numeric ID. Check success and messages if the requested league is not found.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `id` required
- **In:** `path`
`integer`, format: `int32`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfLeague`
- **`data`**
`object`, schema: `League`
*Schema `League` is shown above.*
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfLeague` is shown above.*
**Example:**
```json
{
"data": {
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfLeague` is shown above.*
**Example:**
```json
{
"data": {
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### Get odds and available sportsbook deep links
- **Method:** `GET`
- **Path:** `/market/{league}/{marketType}/odds`
- **Operation ID:** `marketDataGetOdds`
- **Tags:** MarketData
**Available for:** Free API, Concierge API, Enterprise API.
Get the odds snapshot for a league and market type, including events, markets, primary and alternate lines, sportsbook prices, and optional deep links within your API coverage. Use repeated `betTypeId` parameters to limit the returned bet types, and retain the returned market-line IDs for follow-up operations available to your API tier. Deep-link generation is available through Free API and Enterprise API.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
Free odds are delayed by at least 15 seconds. Check `success` and `messages` even on HTTP 200. Free odds responses can include generic Gambly deep links; Free partners must append their `utm_campaign` before publishing them. Discover sportsbook IDs with the market sources endpoint rather than maintaining a static ID list.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
League identifier (e.g., mlb, nfl, cbb, nba, nhl, etc.)
`string`
##### `marketType` required
- **In:** `path`
Type of market to return (straight, futures, props)
`string`, possible values: `"straight", "futures", "props"`
##### `betTypeId`
- **In:** `query`
Query Param for Bet Type Id(s) to include (e.g. ?betTypeId=74\&betTypeId=75\&betTypeId=76)
**Array of:**
`integer`, format: `int64`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Returns the odds data
###### Content-Type: text/plain
schema: `ApiResponseOfOdds`
- **`data`**
`object`, schema: `Odds`
- **`lastUpdated`**
`integer`, format: `int64`
- **`odds`**
`object | null` — Dictionary with String keys and PublicOddsLeague values
**Additional properties:**
schema: `OddsLeague`
- **`leagueId`**
`integer`, format: `int32`
- **`periodTypes`**
`object | null` — Dictionary with String keys and PublicOddsPeriodType values
**Additional properties:**
schema: `OddsPeriodType`
- **`live`**
`object | null` — Dictionary with String keys and PublicMarketLineGroup values
**Additional properties:**
schema: `MarketLineGroup`
- **`betSubType`**
`string | null`
- **`betTypeId`**
`integer`, format: `int32`
- **`eventEnd`**
`string | null`, format: `date-time`
- **`eventId`**
`integer | null`, format: `int64`
- **`eventName`**
`string | null`
- **`eventPeriodTypeId`**
`integer | null`, format: `int32`
- **`eventStart`**
`string | null`, format: `date-time`
- **`eventTeams`**
`object | null` — Dictionary with Int32 keys and PublicEventTeam values
**Additional properties:**
*Schema `EventTeam` is shown above.*
- **`gameClock`**
`string | null`
- **`isLive`**
`boolean`
- **`key`**
`string | null`
- **`overtimeNumber`**
`integer | null`, format: `int32`
- **`playerPosition`**
`string | null`
- **`sides`**
`object | null` — Dictionary with String keys and PublicMarketLineGroupSide values
**Additional properties:**
schema: `MarketLineGroupSide`
- **`marketSourceLines`**
`object | null` — Dictionary with String keys and PublicMarketLine values
**Additional properties:**
schema: `MarketLine`
- **`alternateLines`**
`array | null`
**Items:**
schema: `MarketAlternateLine`
- **`alternateNumber`**
`integer`, format: `int32`
- **`deepLink`**
`string | null`
- **`disabled`**
`boolean`
- **`edge`**
`number | null`, format: `double`
- **`freshnessExpiresAt`**
`string | null`, format: `date-time`
- **`liquidity`**
`number | null`, format: `double`
- **`marketId`**
`integer | null`, format: `int64`
- **`marketLineId`**
`integer | null`, format: `int64`
- **`marketSourceId`**
`integer | null`, format: `int64`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`partnerOddsData`**
`object`, schema: `PartnerOddsData`
- **`fanduel`**
`object` — FanDuel partner identifiers. Included when available within your API coverage and a matching record exists. Omitted when unavailable under the default response settings.
**All of:**
schema: `PartnerOddsDataDetail`
- **`marketId`**
`string | null`
- **`selectionId`**
`string | null`
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
- **`points`**
`number | null`, format: `double`
- **`price`**
`integer | null`, format: `int32`
- **`sequenceNumber`**
`integer | null`, format: `int64`
- **`sourceFormat`**
`integer | null`, format: `int32`
- **`sourcePrice`**
`number | null`, format: `double`
- **`statusId`**
`integer`, format: `int32`
**Additional properties:**
never (false schema)
- **`bestAltEdge`**
`number | null`, format: `double`
- **`bestAltPoints`**
`number | null`, format: `double`
- **`bestAltPrice`**
`number | null`, format: `double`
- **`deepLink`**
`string | null`
- **`disabled`**
`boolean`
- **`edge`**
`number | null`, format: `double`
- **`freshnessExpiresAt`**
`string | null`, format: `date-time`
- **`internalDx`**
`object`, schema: `MarketLineUpdateDiagnostics`
- **`cid`**
`string`, format: `uuid`
- **`ps`**
`string | null`, format: `date-time`
- **`tx`**
`string | null`, format: `date-time`
**Additional properties:**
never (false schema)
- **`liquidity`**
`number | null`, format: `double`
- **`market`**
`object`, schema: `Market`
- **`betSubType`**
`string | null`
- **`betTypeId`**
`integer | null`, format: `int64`
- **`eventId`**
`integer | null`, format: `int64`
- **`id`**
`integer | null`, format: `int64`
- **`live`**
`boolean | null`
- **`marketTypeId`**
`integer | null`, format: `int32`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`periodTypeId`**
`integer | null`, format: `int32`
- **`personId`**
`integer | null`, format: `int64`
- **`seasonId`**
`integer | null`, format: `int64`
- **`sequenceNumber`**
`integer | null`, format: `int64`
- **`sideIndex`**
`integer | null`, format: `int32`
- **`sideName`**
`string | null`
- **`teamId`**
`integer | null`, format: `int64`
**Additional properties:**
never (false schema)
- **`marketId`**
`integer | null`, format: `int64`
- **`marketLineId`**
`integer | null`, format: `int64`
- **`marketLineKey`**
`string | null`
- **`marketSourceId`**
`integer | null`, format: `int64`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`openerPoints`**
`number | null`, format: `double`
- **`openerPrice`**
`integer | null`, format: `int32`
- **`partnerOddsData`**
`object`, schema: `PartnerOddsData`
*Schema `PartnerOddsData` is shown above.*
- **`points`**
`number | null`, format: `double`
- **`price`**
`integer | null`, format: `int32`
- **`sequenceNumber`**
`integer | null`, format: `int64`
- **`sourceFormat`**
`integer | null`, format: `int32`
- **`sourcePrice`**
`number | null`, format: `double`
- **`statusId`**
`integer`, format: `int32`
**Additional properties:**
never (false schema)
- **`personId`**
`integer | null`, format: `int64`
- **`sideIndex`**
`integer`, format: `int32`
- **`sideName`**
`string | null`
- **`teamId`**
`integer | null`, format: `int64`
**Additional properties:**
never (false schema)
- **`statusId`**
`integer`, format: `int32`
- **`tournamentName`**
`string | null`
**Additional properties:**
never (false schema)
- **`periodTypeId`**
`integer`, format: `int32`
- **`pregame`**
`object | null` — Dictionary with String keys and PublicMarketLineGroup values
**Additional properties:**
*Schema `MarketLineGroup` is shown above.*
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"odds": {
"nba": {
"leagueId": 3,
"periodTypes": {
"game": {
"periodTypeId": 1,
"pregame": {
"eid940356:bt72:bst0:pt1:pregame": {
"eventId": 940356,
"isLive": false,
"eventStart": "2025-06-05T16:30:00Z",
"eventEnd": "2025-06-05T19:30:00Z",
"statusId": 1,
"betTypeId": 71,
"betSubType": "",
"gameClock": "00:00",
"overtimeNumber": 0,
"eventName": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"playerPosition": "",
"tournamentName": "",
"eventTeams": {
"0": {
"teamId": 75,
"rotationNumber": 501,
"sideIndex": 0,
"score": 0
},
"1": {
"teamId": 84,
"rotationNumber": 502,
"sideIndex": 0,
"score": 0
}
},
"sides": {
"si0:tid75": {
"sideIndex": 0,
"sideName": "",
"teamId": 75,
"personId": null,
"marketSourceLines": {
"91": {
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"points": 230.5,
"price": -110,
"sourcePrice": -110,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0642,
"bestAltPrice": -110,
"bestAltPoints": 230.5,
"bestAltEdge": -0.0842,
"disabled": false,
"marketLineKey": "",
"modifiedOn": "2025-06-05T16:32:07.592989Z",
"alternateLines": [
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 231.5,
"price": -120,
"sourcePrice": -120,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0842,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
},
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 229.5,
"price": -100,
"sourcePrice": -100,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.042,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
}
]
}
}
}
}
}
}
}
}
}
},
"lastUpdated": 1734567890
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfOdds` is shown above.*
**Example:**
```json
{
"data": {
"odds": {
"nba": {
"leagueId": 3,
"periodTypes": {
"game": {
"periodTypeId": 1,
"pregame": {
"eid940356:bt72:bst0:pt1:pregame": {
"eventId": 940356,
"isLive": false,
"eventStart": "2025-06-05T16:30:00Z",
"eventEnd": "2025-06-05T19:30:00Z",
"statusId": 1,
"betTypeId": 71,
"betSubType": "",
"gameClock": "00:00",
"overtimeNumber": 0,
"eventName": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"playerPosition": "",
"tournamentName": "",
"eventTeams": {
"0": {
"teamId": 75,
"rotationNumber": 501,
"sideIndex": 0,
"score": 0
},
"1": {
"teamId": 84,
"rotationNumber": 502,
"sideIndex": 0,
"score": 0
}
},
"sides": {
"si0:tid75": {
"sideIndex": 0,
"sideName": "",
"teamId": 75,
"personId": null,
"marketSourceLines": {
"91": {
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"points": 230.5,
"price": -110,
"sourcePrice": -110,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0642,
"bestAltPrice": -110,
"bestAltPoints": 230.5,
"bestAltEdge": -0.0842,
"disabled": false,
"marketLineKey": "",
"modifiedOn": "2025-06-05T16:32:07.592989Z",
"alternateLines": [
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 231.5,
"price": -120,
"sourcePrice": -120,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0842,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
},
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 229.5,
"price": -100,
"sourcePrice": -100,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.042,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
}
]
}
}
}
}
}
}
}
}
}
},
"lastUpdated": 1734567890
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfOdds` is shown above.*
**Example:**
```json
{
"data": {
"odds": {
"nba": {
"leagueId": 3,
"periodTypes": {
"game": {
"periodTypeId": 1,
"pregame": {
"eid940356:bt72:bst0:pt1:pregame": {
"eventId": 940356,
"isLive": false,
"eventStart": "2025-06-05T16:30:00Z",
"eventEnd": "2025-06-05T19:30:00Z",
"statusId": 1,
"betTypeId": 71,
"betSubType": "",
"gameClock": "00:00",
"overtimeNumber": 0,
"eventName": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"playerPosition": "",
"tournamentName": "",
"eventTeams": {
"0": {
"teamId": 75,
"rotationNumber": 501,
"sideIndex": 0,
"score": 0
},
"1": {
"teamId": 84,
"rotationNumber": 502,
"sideIndex": 0,
"score": 0
}
},
"sides": {
"si0:tid75": {
"sideIndex": 0,
"sideName": "",
"teamId": 75,
"personId": null,
"marketSourceLines": {
"91": {
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"points": 230.5,
"price": -110,
"sourcePrice": -110,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0642,
"bestAltPrice": -110,
"bestAltPoints": 230.5,
"bestAltEdge": -0.0842,
"disabled": false,
"marketLineKey": "",
"modifiedOn": "2025-06-05T16:32:07.592989Z",
"alternateLines": [
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 231.5,
"price": -120,
"sourcePrice": -120,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0842,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
},
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 229.5,
"price": -100,
"sourcePrice": -100,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.042,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
}
]
}
}
}
}
}
}
}
}
}
},
"lastUpdated": 1734567890
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 400 Invalid league or market type
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope.
##### Status: 429 Free API keys may make one odds request every five seconds, shared across all odds endpoints.
**Headers:**
- **`Retry-After`**
Seconds to wait before retrying.
`integer`, minimum: `1`, maximum: `5`
###### Content-Type: application/json
- **`message`**
`string`
**Example:**
```json
{
"message": ""
}
```
##### Status: 503 Free odds admission is temporarily unavailable; wait before retrying.
**Headers:**
- **`Retry-After`**
Seconds to wait before retrying.
`integer`, minimum: `1`, maximum: `5`
###### Content-Type: application/json
- **`message`**
`string`
**Example:**
```json
{
"message": ""
}
```
### Get players referenced by odds
- **Method:** `GET`
- **Path:** `/market/{league}/{marketType}/people`
- **Operation ID:** `marketDataGetPeople`
- **Tags:** MarketData
**Available for:** Free API, Concierge API, Enterprise API.
Get a dictionary of player records keyed by player ID for the selected league and market type. Use it to resolve the player IDs referenced by the corresponding odds snapshot into names and player details.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
League identifier (e.g., mlb, nfl, cbb, nba, nhl, etc.)
`string`
##### `marketType` required
- **In:** `path`
Type of market (straight, futures, props)
`string`, possible values: `"straight", "futures", "props"`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Returns the people data
###### Content-Type: text/plain
schema: `ApiResponseOfDictionaryOfInt64Person`
- **`data`**
`object | null` — Dictionary with Int64 keys and PublicPerson values
**Additional properties:**
schema: `Person`
- **`birthDate`**
`string | null`, format: `date-time`
- **`country`**
`string | null`
- **`firstName`**
`string | null`
- **`headshotUrl`**
`string | null`
- **`height`**
`integer | null`, format: `int32`
- **`id`**
`integer`, format: `int64`
- **`jerseyNumber`**
`string | null`
- **`lastName`**
`string | null`
- **`leagueId`**
`integer`, format: `int64`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`partnerPlayerData`**
`object`, schema: `PartnerPlayerData`
- **`fanduel`**
`object` — FanDuel partner identifiers. Included when available within your API coverage and a matching record exists. Omitted when unavailable under the default response settings.
**All of:**
schema: `PartnerPlayerDataDetail`
- **`playerId`**
`string | null`
**Additional properties:**
never (false schema)
- **`sportradar`**
`object` — Sportradar partner identifiers. Omitted when no matching record exists under the default response settings.
**All of:**
*Schema `PartnerPlayerDataDetail` is shown above.*
**Additional properties:**
never (false schema)
- **`position`**
`string | null`
- **`preferredName`**
`string | null`
- **`priorityType`**
`integer | null`, format: `int32`, possible values: `0, 1, 2, 3` — Numeric display priority. Player records use 0 for normal priority and 1 for highest priority. Values 2 and 3 are retained for compatibility and do not imply additional ranking meanings.
- **`teamId`**
`integer | null`, format: `int64`
- **`weight`**
`integer | null`, format: `int32`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"882572": {
"id": 882572,
"headshotUrl": "players/nba/882572.png",
"firstName": "Pascal",
"lastName": "Siakam",
"jerseyNumber": "43",
"country": "Douala,, CMR",
"priorityType": 0,
"height": 80,
"weight": 245,
"position": "F",
"birthDate": "1994-04-02T00:00:00Z",
"leagueId": 3
},
"883170": {
"id": 883170,
"headshotUrl": "players/nba/883170.png",
"firstName": "Aaron",
"lastName": "Nesmith",
"jerseyNumber": "23",
"country": "Charleston, SC, USA",
"priorityType": 0,
"height": 78,
"weight": 215,
"position": "G-F",
"birthDate": "1999-10-16T00:00:00Z",
"leagueId": 3
},
"883262": {
"id": 883262,
"headshotUrl": "players/nba/883262.png",
"firstName": "Shai",
"lastName": "Gilgeous-Alexander",
"jerseyNumber": "2",
"country": "Toronto, ON, CAN",
"priorityType": 0,
"height": 78,
"weight": 195,
"position": "G",
"birthDate": "1998-07-12T00:00:00Z",
"leagueId": 3,
"partnerPlayerData": {
"fanduel": {
"playerId": "fd-player-883262"
},
"sportradar": {
"playerId": "sr:player:883262"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfDictionaryOfInt64Person` is shown above.*
**Example:**
```json
{
"data": {
"882572": {
"id": 882572,
"headshotUrl": "players/nba/882572.png",
"firstName": "Pascal",
"lastName": "Siakam",
"jerseyNumber": "43",
"country": "Douala,, CMR",
"priorityType": 0,
"height": 80,
"weight": 245,
"position": "F",
"birthDate": "1994-04-02T00:00:00Z",
"leagueId": 3
},
"883170": {
"id": 883170,
"headshotUrl": "players/nba/883170.png",
"firstName": "Aaron",
"lastName": "Nesmith",
"jerseyNumber": "23",
"country": "Charleston, SC, USA",
"priorityType": 0,
"height": 78,
"weight": 215,
"position": "G-F",
"birthDate": "1999-10-16T00:00:00Z",
"leagueId": 3
},
"883262": {
"id": 883262,
"headshotUrl": "players/nba/883262.png",
"firstName": "Shai",
"lastName": "Gilgeous-Alexander",
"jerseyNumber": "2",
"country": "Toronto, ON, CAN",
"priorityType": 0,
"height": 78,
"weight": 195,
"position": "G",
"birthDate": "1998-07-12T00:00:00Z",
"leagueId": 3,
"partnerPlayerData": {
"fanduel": {
"playerId": "fd-player-883262"
},
"sportradar": {
"playerId": "sr:player:883262"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfDictionaryOfInt64Person` is shown above.*
**Example:**
```json
{
"data": {
"882572": {
"id": 882572,
"headshotUrl": "players/nba/882572.png",
"firstName": "Pascal",
"lastName": "Siakam",
"jerseyNumber": "43",
"country": "Douala,, CMR",
"priorityType": 0,
"height": 80,
"weight": 245,
"position": "F",
"birthDate": "1994-04-02T00:00:00Z",
"leagueId": 3
},
"883170": {
"id": 883170,
"headshotUrl": "players/nba/883170.png",
"firstName": "Aaron",
"lastName": "Nesmith",
"jerseyNumber": "23",
"country": "Charleston, SC, USA",
"priorityType": 0,
"height": 78,
"weight": 215,
"position": "G-F",
"birthDate": "1999-10-16T00:00:00Z",
"leagueId": 3
},
"883262": {
"id": 883262,
"headshotUrl": "players/nba/883262.png",
"firstName": "Shai",
"lastName": "Gilgeous-Alexander",
"jerseyNumber": "2",
"country": "Toronto, ON, CAN",
"priorityType": 0,
"height": 78,
"weight": 195,
"position": "G",
"birthDate": "1998-07-12T00:00:00Z",
"leagueId": 3,
"partnerPlayerData": {
"fanduel": {
"playerId": "fd-player-883262"
},
"sportradar": {
"playerId": "sr:player:883262"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 400 Invalid league or market type
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope.
### Get available sportsbooks for a market
- **Method:** `GET`
- **Path:** `/market/{league}/{marketType}/sources`
- **Operation ID:** `marketDataGetSources`
- **Tags:** MarketData
**Available for:** Free API, Concierge API, Enterprise API.
Get active public sportsbook IDs and details within your API coverage for the selected league and market type. Discover IDs here before selecting sportsbooks in your application or SSE subscription, rather than maintaining a fixed list.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
League identifier (e.g., mlb, nfl, cbb, nba, nhl, etc.)
`string`
##### `marketType` required
- **In:** `path`
Type of market (straight, futures, props)
`string`, possible values: `"straight", "futures", "props"`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Returns the market sources
###### Content-Type: text/plain
schema: `ApiResponseOfListOfMarketSource`
- **`data`**
`array | null`
**Items:**
schema: `MarketSource`
- **`disabledMarketTypeIds`**
`array | null`
**Items:**
`integer`, format: `int32`
- **`futuresStatusId`**
`integer`, format: `int32`, possible values: `0, 1, 2, 3` — Numeric values: 0: Unspecified; 1: HighFrequency; 2: LowFrequency; 3: Offline.
- **`id`**
`integer`, format: `int64`
- **`isActive`**
`boolean`
- **`logoUrl`**
`string | null`
- **`modifiedOn`**
`string`, format: `date-time`
- **`name`**
`string | null`
- **`propsStatusId`**
`integer`, format: `int32`, possible values: `0, 1, 2, 3` — Numeric values: 0: Unspecified; 1: HighFrequency; 2: LowFrequency; 3: Offline.
- **`siteUrl`**
`string | null`
- **`statusId`**
`integer`, format: `int32`, possible values: `0, 1, 2, 3` — Numeric values: 0: Unspecified; 1: HighFrequency; 2: LowFrequency; 3: Offline.
- **`thumbnailUrl`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": "DraftKings",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/draft-kings.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/draft-kings.webp",
"siteUrl": "https://sportsbook.draftkings.com/",
"isActive": true,
"statusId": 1,
"propsStatusId": 1,
"futuresStatusId": 1
},
{
"id": 4,
"name": "BetMGM",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/bet-mgm.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/bet-mgm.webp",
"siteUrl": "https://sports.betmgm.com/en/sports",
"isActive": true,
"statusId": 3,
"propsStatusId": 1,
"futuresStatusId": 3
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfMarketSource` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": "DraftKings",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/draft-kings.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/draft-kings.webp",
"siteUrl": "https://sportsbook.draftkings.com/",
"isActive": true,
"statusId": 1,
"propsStatusId": 1,
"futuresStatusId": 1
},
{
"id": 4,
"name": "BetMGM",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/bet-mgm.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/bet-mgm.webp",
"siteUrl": "https://sports.betmgm.com/en/sports",
"isActive": true,
"statusId": 3,
"propsStatusId": 1,
"futuresStatusId": 3
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfMarketSource` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": "DraftKings",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/draft-kings.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/draft-kings.webp",
"siteUrl": "https://sportsbook.draftkings.com/",
"isActive": true,
"statusId": 1,
"propsStatusId": 1,
"futuresStatusId": 1
},
{
"id": 4,
"name": "BetMGM",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/bet-mgm.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/bet-mgm.webp",
"siteUrl": "https://sports.betmgm.com/en/sports",
"isActive": true,
"statusId": 3,
"propsStatusId": 1,
"futuresStatusId": 3
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 400 Invalid league or market type
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope.
### Get teams referenced by odds
- **Method:** `GET`
- **Path:** `/market/{league}/{marketType}/teams`
- **Operation ID:** `marketDataGetTeams`
- **Tags:** MarketData
**Available for:** Free API, Concierge API, Enterprise API.
Get a dictionary of team records keyed by team ID for the selected league and market type. Use it to resolve team IDs from the corresponding odds snapshot into names, abbreviations, and team details.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
League identifier (e.g., mlb, nfl, cbb, nba, nhl, etc.)
`string`
##### `marketType` required
- **In:** `path`
Type of market (straight, futures, props)
`string`, possible values: `"straight", "futures", "props"`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 Returns the teams data
###### Content-Type: text/plain
schema: `ApiResponseOfDictionaryOfInt64Team`
- **`data`**
`object | null` — Dictionary with Int64 keys and PublicTeam values
**Additional properties:**
schema: `Team`
- **`abbreviation`**
`string | null`
- **`conferenceAbbreviation`**
`string | null`
- **`divisionAbbreviation`**
`string | null`
- **`divisionId`**
`integer | null`, format: `int32`
- **`hexColor`**
`string | null`
- **`id`**
`integer`, format: `int64`
- **`leagueId`**
`integer`, format: `int32`
- **`logoUrl`**
`string | null`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`name`**
`string | null`
- **`partnerTeamData`**
`object`, schema: `PartnerTeamData`
- **`fanduel`**
`object` — FanDuel partner identifiers. Included when available within your API coverage and a matching record exists. Omitted when unavailable under the default response settings.
**All of:**
schema: `PartnerTeamDataDetail`
- **`teamId`**
`string | null`
**Additional properties:**
never (false schema)
- **`sportradar`**
`object` — Sportradar partner identifiers. Omitted when no matching record exists under the default response settings.
**All of:**
*Schema `PartnerTeamDataDetail` is shown above.*
**Additional properties:**
never (false schema)
- **`secondaryHexColor`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"68": {
"id": 68,
"name": "Chicago Bulls",
"abbreviation": "CHI",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/chi.svg",
"leagueId": 3
},
"84": {
"id": 84,
"name": "Oklahoma City Thunder",
"abbreviation": "OKC",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/okc.svg",
"leagueId": 3,
"partnerTeamData": {
"fanduel": {
"teamId": "fd-team-84"
},
"sportradar": {
"teamId": "sr:team:84"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfDictionaryOfInt64Team` is shown above.*
**Example:**
```json
{
"data": {
"68": {
"id": 68,
"name": "Chicago Bulls",
"abbreviation": "CHI",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/chi.svg",
"leagueId": 3
},
"84": {
"id": 84,
"name": "Oklahoma City Thunder",
"abbreviation": "OKC",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/okc.svg",
"leagueId": 3,
"partnerTeamData": {
"fanduel": {
"teamId": "fd-team-84"
},
"sportradar": {
"teamId": "sr:team:84"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfDictionaryOfInt64Team` is shown above.*
**Example:**
```json
{
"data": {
"68": {
"id": 68,
"name": "Chicago Bulls",
"abbreviation": "CHI",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/chi.svg",
"leagueId": 3
},
"84": {
"id": 84,
"name": "Oklahoma City Thunder",
"abbreviation": "OKC",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/okc.svg",
"leagueId": 3,
"partnerTeamData": {
"fanduel": {
"teamId": "fd-team-84"
},
"sportradar": {
"teamId": "sr:team:84"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 400 Invalid league or market type
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: text/plain
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: application/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
###### Content-Type: text/json
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
##### Status: 403 This request is outside the key's API tier or data scope.
### List market types
- **Method:** `GET`
- **Path:** `/market-type`
- **Operation ID:** `marketTypeGetMarketTypes`
- **Tags:** MarketType
**Available for:** Free API, Concierge API, Enterprise API.
Get the IDs and names of the market categories used by the API. Use these definitions when choosing straight, futures, or props odds and when building `marketTypeIds` filters.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfMarketTypeDetail`
- **`data`**
`array | null`
**Items:**
schema: `MarketTypeDetail`
- **`id`**
`integer`, format: `int32`
- **`name`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfMarketTypeDetail` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfMarketTypeDetail` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### List period types
- **Method:** `GET`
- **Path:** `/period-type`
- **Operation ID:** `periodTypeGetPeriodTypes`
- **Tags:** PeriodType
**Available for:** Free API, Concierge API, Enterprise API.
Get period IDs, names, abbreviations, and associated league IDs for market periods such as a game, half, or quarter. Use these definitions to interpret period IDs in odds; `changedSince` limits results to modified records.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfPeriodType`
- **`data`**
`array | null`
**Items:**
schema: `PeriodType`
- **`abbreviation`**
`string | null`
- **`id`**
`integer`, format: `int32`
- **`leagueIds`**
`array | null`
**Items:**
`integer`, format: `int32`
- **`name`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfPeriodType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfPeriodType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### List period types for a league
- **Method:** `GET`
- **Path:** `/period-type/{league}`
- **Operation ID:** `periodTypeGetPeriodTypesByLeague`
- **Tags:** PeriodType
**Available for:** Free API, Concierge API, Enterprise API.
Get the period IDs, names, and abbreviations associated with the selected league. Use them to interpret league-specific game, half, quarter, and other period markets in the odds response.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
`string`
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
*Schema `ApiResponseOfListOfPeriodType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfPeriodType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfPeriodType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### List players for a league
- **Method:** `GET`
- **Path:** `/player/{league}`
- **Operation ID:** `playerGetPeople`
- **Tags:** Player
**Available for:** Free API, Concierge API, Enterprise API.
Get the player directory for a league, including player IDs, names, team IDs, positions, and available profile details. Use `changedSince` to refresh records modified since a timestamp.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
`string`
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfPerson`
- **`data`**
`array | null`
**Items:**
*Schema `Person` is shown above.*
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"preferredName": null,
"jerseyNumber": null,
"country": null,
"priorityType": 0,
"height": null,
"weight": null,
"position": null,
"birthDate": null,
"leagueId": 1,
"teamId": null,
"partnerPlayerData": {
"fanduel": {
"playerId": null
},
"sportradar": {
"playerId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfPerson` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"preferredName": null,
"jerseyNumber": null,
"country": null,
"priorityType": 0,
"height": null,
"weight": null,
"position": null,
"birthDate": null,
"leagueId": 1,
"teamId": null,
"partnerPlayerData": {
"fanduel": {
"playerId": null
},
"sportradar": {
"playerId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfPerson` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"preferredName": null,
"jerseyNumber": null,
"country": null,
"priorityType": 0,
"height": null,
"weight": null,
"position": null,
"birthDate": null,
"leagueId": 1,
"teamId": null,
"partnerPlayerData": {
"fanduel": {
"playerId": null
},
"sportradar": {
"playerId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### Get player news
- **Method:** `GET`
- **Path:** `/player/{league}/news`
- **Operation ID:** `playerGetPlayerNews`
- **Tags:** Player
**Available for:** Enterprise API.
Get player news for a league, including headlines, notes, status, and available injury details. Filter by `personId` or `teamId`, choose the sort order, and use the returned pagination cursor to continue through pages of 25 items.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
League identifier (e.g., "nfl", "nba")
`string`
##### `cursor`
- **In:** `query`
Cursor for pagination
`string`
##### `order`
- **In:** `query`
Sort order: "desc" (default, newest first) or "asc" (oldest first)
`string`, default: `"desc"`
##### `personId`
- **In:** `query`
Filter by specific player ID
`integer`, format: `int64`
##### `teamId`
- **In:** `query`
Filter by specific team ID
`integer`, format: `int32`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfPlayerNews`
- **`data`**
`array | null`
**Items:**
schema: `PlayerNews`
- **`headline`**
`string | null`
- **`id`**
`integer`, format: `int64`
- **`injury`**
`object`, schema: `PlayerNewsInjury`
- **`id`**
`integer`, format: `int32`
- **`name`**
`string | null`
**Additional properties:**
never (false schema)
- **`leagueId`**
`integer`, format: `int32`
- **`meta`**
`object`, schema: `ItemMeta`
*Schema `ItemMeta` is shown above.*
- **`notes`**
`string | null`
- **`person`**
`object`, schema: `PersonBasicInfo`
*Schema `PersonBasicInfo` is shown above.*
- **`status`**
`string | null`
- **`team`**
`object`, schema: `TeamBasicInfo`
*Schema `TeamBasicInfo` is shown above.*
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"team": {
"id": 1,
"name": null
},
"headline": null,
"notes": null,
"status": null,
"injury": {
"id": 1,
"name": null
},
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfPlayerNews` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"team": {
"id": 1,
"name": null
},
"headline": null,
"notes": null,
"status": null,
"injury": {
"id": 1,
"name": null
},
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfPlayerNews` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"team": {
"id": 1,
"name": null
},
"headline": null,
"notes": null,
"status": null,
"injury": {
"id": 1,
"name": null
},
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### Get player participation estimates
- **Method:** `GET`
- **Path:** `/player/{league}/percent-to-play`
- **Operation ID:** `playerGetPlayerPercentToPlay`
- **Tags:** Player
**Available for:** Enterprise API.
Get player participation estimates with their event, team, and player details and available notes. Filter by `personId` or `teamId`, choose the sort order, and use the returned pagination cursor to continue through pages of 50 items.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
League identifier (e.g., "nfl", "nba")
`string`
##### `cursor`
- **In:** `query`
Cursor for pagination
`string`
##### `order`
- **In:** `query`
Sort order: "desc" (default, newest first) or "asc" (oldest first)
`string`, default: `"desc"`
##### `personId`
- **In:** `query`
Filter by specific player ID
`integer`, format: `int64`
##### `teamId`
- **In:** `query`
Filter by specific team ID
`integer`, format: `int32`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfPlayerPercentToPlay`
- **`data`**
`array | null`
**Items:**
schema: `PlayerPercentToPlay`
- **`event`**
`object`, schema: `EventBasicInfo`
*Schema `EventBasicInfo` is shown above.*
- **`leagueId`**
`integer`, format: `int32`
- **`meta`**
`object`, schema: `ItemMeta`
*Schema `ItemMeta` is shown above.*
- **`notes`**
`string | null`
- **`percentToPlay`**
`number`, format: `double`
- **`person`**
`object`, schema: `PersonBasicInfo`
*Schema `PersonBasicInfo` is shown above.*
- **`team`**
`object`, schema: `TeamBasicInfo`
*Schema `TeamBasicInfo` is shown above.*
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"team": {
"id": 1,
"name": null
},
"percentToPlay": 1,
"notes": null,
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfPlayerPercentToPlay` is shown above.*
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"team": {
"id": 1,
"name": null
},
"percentToPlay": 1,
"notes": null,
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfPlayerPercentToPlay` is shown above.*
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"team": {
"id": 1,
"name": null
},
"percentToPlay": 1,
"notes": null,
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### List active sportsbook promotions
- **Method:** `GET`
- **Path:** `/promo/active`
- **Operation ID:** `promoGetActivePromos`
- **Tags:** Promo
**Available for:** Concierge API, Enterprise API.
Get currently active sportsbook promotions with titles, descriptions, terms, dates, images, and source page URLs when available. Use `marketSourceId` to limit results to one sportsbook.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfPromo`
- **`data`**
`array | null`
**Items:**
schema: `Promo`
- **`allText`**
`string | null`, readOnly
- **`captureMetadata`**
`string | null`
- **`createdBy`**
`integer | null`, format: `int64`
- **`createdOn`**
`string`, format: `date-time`
- **`description`**
`string | null`
- **`endDate`**
`string | null`, format: `date-time`
- **`id`**
`integer | null`, format: `int64`
- **`imageUrl`**
`string | null`
- **`marketSourceId`**
`integer`, format: `int32`
- **`modifiedBy`**
`integer | null`, format: `int64`
- **`modifiedOn`**
`string`, format: `date-time`
- **`pageUrl`**
`string | null`
- **`sourceId`**
`string | null`
- **`startDate`**
`string | null`, format: `date-time`
- **`terms`**
`string | null`
- **`title`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfPromo` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfPromo` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### List promotions for a sportsbook
- **Method:** `GET`
- **Path:** `/promo/market-source/{marketSourceId}`
- **Operation ID:** `promoGetPromosByMarketSource`
- **Tags:** Promo
**Available for:** Concierge API, Enterprise API.
Get the promotions associated with a sportsbook using its marketSourceId. Review each promotion's terms and start and end dates before displaying it as an offer.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `marketSourceId` required
- **In:** `path`
`integer`, format: `int32`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
*Schema `ApiResponseOfListOfPromo` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfPromo` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfPromo` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### Get a sportsbook promotion
- **Method:** `GET`
- **Path:** `/promo/{id}`
- **Operation ID:** `promoGetPromoById`
- **Tags:** Promo
**Available for:** Concierge API, Enterprise API.
Get a promotion's title, description, terms, dates, and available image and source page URL by ID. Check success and messages if the requested promotion is not found.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `id` required
- **In:** `path`
`integer`, format: `int64`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfPromo`
- **`data`**
`object`, schema: `Promo`
*Schema `Promo` is shown above.*
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfPromo` is shown above.*
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfPromo` is shown above.*
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
### List seasons for a league
- **Method:** `GET`
- **Path:** `/season/{league}`
- **Operation ID:** `seasonGetSeasons`
- **Tags:** Season
**Available for:** Free API, Concierge API, Enterprise API.
Get the seasons for a league, including their IDs, names, dates, and season parts. Use these IDs to relate season-based markets and events, and `changedSince` to retrieve modified season records.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
`string`
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfSeason`
- **`data`**
`array | null`
**Items:**
schema: `Season`
- **`endDate`**
`string | null`, format: `date-time`
- **`id`**
`integer`, format: `int64`
- **`leagueId`**
`integer`, format: `int64`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`name`**
`string | null`
- **`seasonParts`**
`array | null`
**Items:**
schema: `SeasonPart`
- **`endDate`**
`string | null`, format: `date-time`
- **`id`**
`integer`, format: `int64`
- **`name`**
`string | null`
- **`seasonPartType`**
`object`, schema: `SeasonPartType`
- **`id`**
`integer`, format: `int64`
- **`name`**
`string | null`
**Additional properties:**
never (false schema)
- **`startDate`**
`string | null`, format: `date-time`
**Additional properties:**
never (false schema)
- **`startDate`**
`string | null`, format: `date-time`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"startDate": null,
"endDate": null,
"seasonParts": [
{
"id": 1,
"name": null,
"startDate": null,
"endDate": null,
"seasonPartType": {
"id": 1,
"name": null
}
}
],
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfSeason` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"startDate": null,
"endDate": null,
"seasonParts": [
{
"id": 1,
"name": null,
"startDate": null,
"endDate": null,
"seasonPartType": {
"id": 1,
"name": null
}
}
],
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfSeason` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"startDate": null,
"endDate": null,
"seasonParts": [
{
"id": 1,
"name": null,
"startDate": null,
"endDate": null,
"seasonPartType": {
"id": 1,
"name": null
}
}
],
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### List teams for a league
- **Method:** `GET`
- **Path:** `/team/{league}`
- **Operation ID:** `teamGetTeams`
- **Tags:** Team
**Available for:** Free API, Concierge API, Enterprise API.
Get the team directory for a league, including IDs, names, abbreviations, logos, and available division and conference details. Use `changedSince` to refresh records modified since a timestamp.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
`string`
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfTeam`
- **`data`**
`array | null`
**Items:**
*Schema `Team` is shown above.*
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"logoUrl": null,
"leagueId": 1,
"divisionId": null,
"divisionAbbreviation": null,
"conferenceAbbreviation": null,
"hexColor": null,
"secondaryHexColor": null,
"partnerTeamData": {
"fanduel": {
"teamId": null
},
"sportradar": {
"teamId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfTeam` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"logoUrl": null,
"leagueId": 1,
"divisionId": null,
"divisionAbbreviation": null,
"conferenceAbbreviation": null,
"hexColor": null,
"secondaryHexColor": null,
"partnerTeamData": {
"fanduel": {
"teamId": null
},
"sportradar": {
"teamId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfTeam` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"logoUrl": null,
"leagueId": 1,
"divisionId": null,
"divisionAbbreviation": null,
"conferenceAbbreviation": null,
"hexColor": null,
"secondaryHexColor": null,
"partnerTeamData": {
"fanduel": {
"teamId": null
},
"sportradar": {
"teamId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### List current tournaments for a league
- **Method:** `GET`
- **Path:** `/tournament/{league}`
- **Operation ID:** `tournamentGetTournaments`
- **Tags:** Tournament
**Available for:** Free API, Concierge API, Enterprise API.
Get the current tournaments for a league with IDs, names, season IDs, and available surface and match-format details. Use `changedSince` to retrieve tournaments modified since a timestamp and tournament IDs to relate the records to events.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Parameters
##### `league` required
- **In:** `path`
`string`
##### `changedSince`
- **In:** `query`
`string`
##### `X-API-Version`
- **In:** `header`
`string`
##### `api-version`
- **In:** `query`
`string`
#### Responses
##### Status: 200 OK
###### Content-Type: text/plain
schema: `ApiResponseOfListOfTournament`
- **`data`**
`array | null`
**Items:**
schema: `Tournament`
- **`bestOf`**
`integer | null`, format: `int32`
- **`id`**
`integer`, format: `int64`
- **`leagueId`**
`integer`, format: `int64`
- **`modifiedOn`**
`string | null`, format: `date-time`
- **`name`**
`string | null`
- **`seasonId`**
`integer | null`, format: `int64`
- **`surfaceType`**
`string | null`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"seasonId": null,
"surfaceType": null,
"bestOf": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/json
*Schema `ApiResponseOfListOfTournament` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"seasonId": null,
"surfaceType": null,
"bestOf": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: text/json
*Schema `ApiResponseOfListOfTournament` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"seasonId": null,
"surfaceType": null,
"bestOf": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope.
### Create a real-time event subscription
- **Method:** `POST`
- **Path:** `/subscriptions`
- **Operation ID:** `sseCreateSubscription`
- **Tags:** Real-time data stream
**Available for:** Concierge API, Enterprise API.
Create a filtered SSE subscription and receive `data.subscriptionId` and a signed data.streamUrl. Authenticate the creation request with an X-Api-Key header or apiKey in the JSON body, then open the returned URL without adding an API-key header. Empty `eventTypes` defaults to `market_line_update`; `includeSnapshot` requests an initial market-line snapshot when snapshot serving is enabled.
Real-time market data is available through Concierge API and Enterprise API. Free API does not include streaming.
Create the subscription using `apiKey` in the JSON body, an authenticated `X-Api-Key` header, or an interactive JWT. Read `data.subscriptionId` and `data.streamUrl` from the response. Resolve the relative stream URL against the same API origin and open it as SSE. The signed token expires after 24 hours at most; create a new subscription when it expires. An empty `eventTypes` array defaults to `market_line_update`. Retain deep links from the initial REST snapshot when present within your API coverage: market-line update messages do not carry deep links.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
No authentication required.
Or:
- **ApiKeyAuth**
```
{
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
```
#### Request Body
**Required:** `true`
##### Content-Type: application/json
schema: `CreateSseSubscriptionRequest`
- **`apiKey`**
`string`, writeOnly — API key for subscription creation. Alternatively use an authenticated X-Api-Key header or interactive JWT. Never put the key in a stream URL.
- **`betTypeIds`**
`array` — Bet type IDs discovered from GET /bettype. Empty selects all matching bet types.
**Items:**
`integer`, format: `int64`
- **`eventIds`**
`array` — Positive event IDs discovered from the events or odds response. Filters market\_line\_update messages and market-line snapshots only; event\_update and model messages are not narrowed by this field. Empty selects all matching market lines within your data scope.
**Items:**
`integer`, format: `int64`
- **`eventTypes`**
`array` — Event names to subscribe to. Empty or omitted defaults to market\_line\_update. in\_game\_fair\_price\_update is available through Enterprise API. Results stay within your API tier and data scope.
**Items:**
`string`
- **`includeSnapshot`**
`boolean` — When true and snapshot serving is enabled, sends market\_line\_snapshot chunks before live updates. Defaults to false.
- **`leagueIds`**
`array` — League IDs discovered from GET /league. Concierge subscriptions are limited to NFL, NBA, MLB, NHL, and WNBA. Empty selects the leagues included in your API tier and data scope.
**Items:**
`integer`, format: `int32`
- **`marketSourceIds`**
`array` — Sportsbook IDs discovered from GET /market/{league}/{marketType}/sources. Empty selects the sportsbooks included in your data scope.
**Items:**
`integer`, format: `int64`
- **`marketTypeIds`**
`array` — Market type IDs discovered from GET /market-type. Empty selects all matching market types within your data scope.
**Items:**
`integer`, format: `int32`
**Additional properties:**
never (false schema)
**Example: default**
```json
{
"apiKey": "YOUR_API_KEY",
"eventTypes": [
"market_line_update"
],
"includeSnapshot": true
}
```
#### Responses
##### Status: 200 See the documented response conditions.
###### Content-Type: application/json
schema: `ApiResponseOfCreateSseSubscriptionResponse`
- **`data`**
`object`, schema: `CreateSseSubscriptionResponse`
- **`streamUrl`**
`string`
- **`subscriptionId`**
`string`
**Additional properties:**
never (false schema)
- **`messages`**
`array | null`
**Items:**
`string`
- **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
- **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"subscriptionId": "",
"streamUrl": ""
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 400 The subscription request is invalid. Request validation failures use application/problem+json; subscription validation failures use the public response envelope.
###### Content-Type: application/json
*Schema `ApiResponseOfCreateSseSubscriptionResponse` is shown above.*
**Example:**
```json
{
"data": {
"subscriptionId": "",
"streamUrl": ""
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
###### Content-Type: application/problem+json
schema: `ValidationProblemDetails`
- **`detail`**
`string | null`
- **`errors`**
`object`
**Additional properties:**
**Array of:**
`string`
- **`instance`**
`string | null`
- **`status`**
`integer | null`, format: `int32`
- **`title`**
`string | null`
- **`type`**
`string | null`
**Additional properties:**
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"errors": {
"additionalProperty": [
""
]
},
"additionalProperty": null
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
###### Content-Type: application/json
*Schema `ApiResponseOfCreateSseSubscriptionResponse` is shown above.*
**Example:**
```json
{
"data": {
"subscriptionId": "",
"streamUrl": ""
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
**Any of:**
*Schema `ApiResponseOfCreateSseSubscriptionResponse` is shown above.*
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"subscriptionId": "",
"streamUrl": ""
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
##### Status: 404 Real-time subscription creation is unavailable.
##### Status: 500 The subscription could not be created.
###### Content-Type: application/json
*Schema `ApiResponseOfCreateSseSubscriptionResponse` is shown above.*
**Example:**
```json
{
"data": {
"subscriptionId": "",
"streamUrl": ""
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### Open a signed Server-Sent Events stream
- **Method:** `GET`
- **Path:** `/sse/{subscriptionId}`
- **Operation ID:** `sseStream`
- **Tags:** Real-time data stream
**Available for:** Concierge API, Enterprise API.
Open the signed `streamUrl` returned by subscription creation to receive named SSE events containing JSON data and comment keep-alives. No X-Api-Key header is needed for this GET. Reconnect with the last successfully applied data-event ID in Last-Event-ID. Recent updates may be recovered on reconnect, but recovery is best effort; reload current state through REST after a gap or whenever continuity is uncertain.
Real-time market data is available through Concierge API and Enterprise API. Free API does not include streaming.
Use `data.streamUrl` returned by POST /subscriptions as-is. No API-key header is needed. Do not construct or modify the signed token. Successful responses are a long-lived `text/event-stream`, not a JSON response envelope. Parse SSE event names and JSON data, ignore comment keep-alives, and reconnect with the last successfully applied data-event ID in `Last-Event-ID`. Resume is best effort from a bounded buffer on the same API instance, not a historical replay service. A `gap` event means the client must reload a REST snapshot. Revoked credentials may close an open stream; create a new subscription when the token expires.
#### Effective servers
- `https://data.unabated.com`
#### Authentication
- **SignedStreamToken**
```
{
"type": "apiKey",
"description": "Signed token supplied in data.streamUrl by POST /subscriptions. Use that URL as-is; no X-Api-Key header is needed.",
"name": "token",
"in": "query"
}
```
Signed token supplied in data.streamUrl by POST /subscriptions. Use that URL as-is; no X-Api-Key header is needed.
#### Parameters
##### `subscriptionId` required
- **In:** `path`
`string`
##### `token` required
- **In:** `query`
Signed token included in the returned streamUrl. Treat it as a secret; do not alter it.
`string`
##### `Last-Event-ID`
- **In:** `header`
Last applied SSE ID for a reconnect. Resume is bounded; reload a REST snapshot after a gap.
`string`
#### Responses
##### Status: 200 SSE frames containing event names, optional IDs, and JSON data, plus comment keep-alives.
###### Content-Type: text/event-stream
`string`
**Example: default**
```json
": connected\n\n: keepalive\n\n"
```
##### Status: 400 Required request values, including token, are missing or invalid, or the path subscription ID does not match the signed token. Request validation failures use application/problem+json; a path/token mismatch can have an empty body.
###### Content-Type: application/problem+json
*Schema `ValidationProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"errors": {
"additionalProperty": [
""
]
},
"additionalProperty": null
}
```
##### Status: 401 Authentication is missing, invalid, expired, or revoked.
##### Status: 403 This request is outside the key's API tier or data scope. Free API requests rejected before the operation return a JSON message object. Other authorization failures can have an empty body; inspect the status and content type before parsing.
###### Content-Type: application/json
- **`message` (required)**
`string`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"message": "This endpoint is not included in Free API access."
}
```
##### Status: 404 Real-time streaming is unavailable.
## Schemas
### ApiResponseOfBonus
- **Type:** `object`
*Schema `ApiResponseOfBonus` is shown above.*
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfBonusEvaluationResult
- **Type:** `object`
*Schema `ApiResponseOfBonusEvaluationResult` is shown above.*
**Example:**
```json
{
"data": {
"legs": [
{
"marketLineId": 1,
"marketSourceId": 1,
"price": null,
"marketId": null,
"eventId": null,
"leagueId": null,
"sportId": null,
"betTypeId": null,
"live": true,
"boostedPrice": null,
"boostedByBonusId": null
}
],
"missingMarketLineIds": [
1
],
"legCount": 1,
"isParlay": true,
"isSameGameParlay": true,
"hasLiveLeg": true,
"mixedMarketSources": true,
"combinedDecimalOdds": null,
"combinedAmericanOdds": null,
"applicable": [
{
"bonus": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"eligibleStake": null,
"baseProfit": null,
"bonusAmount": null,
"boostedProfit": null
}
],
"excluded": [
{
"bonusId": 1,
"title": null,
"bonusTypeId": null,
"reasons": [
""
]
}
]
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfCreatePublicApiKeyResponse
- **Type:** `object`
* **`data`**
`object`, schema: `CreatePublicApiKeyResponse`
- **`apiKey`**
`string`
**Additional properties:**
never (false schema)
* **`messages`**
`array | null`
**Items:**
`string`
* **`pagination`**
`object`, schema: `PaginationInfo`
*Schema `PaginationInfo` is shown above.*
* **`success`**
`boolean`
**Additional properties:**
never (false schema)
**Example:**
```json
{
"data": {
"apiKey": ""
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfCreateSseSubscriptionResponse
- **Type:** `object`
*Schema `ApiResponseOfCreateSseSubscriptionResponse` is shown above.*
**Example:**
```json
{
"data": {
"subscriptionId": "",
"streamUrl": ""
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfDeeplinkResult
- **Type:** `object`
*Schema `ApiResponseOfDeeplinkResult` is shown above.*
**Example:**
```json
{
"data": {
"ids": [
1
],
"url": null,
"status": -3,
"statusString": null,
"individualUrls": [
""
],
"bookUrl": null,
"errorMessage": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfDictionaryOfInt64Person
- **Type:** `object`
*Schema `ApiResponseOfDictionaryOfInt64Person` is shown above.*
**Example:**
```json
{
"data": {
"882572": {
"id": 882572,
"headshotUrl": "players/nba/882572.png",
"firstName": "Pascal",
"lastName": "Siakam",
"jerseyNumber": "43",
"country": "Douala,, CMR",
"priorityType": 0,
"height": 80,
"weight": 245,
"position": "F",
"birthDate": "1994-04-02T00:00:00Z",
"leagueId": 3
},
"883170": {
"id": 883170,
"headshotUrl": "players/nba/883170.png",
"firstName": "Aaron",
"lastName": "Nesmith",
"jerseyNumber": "23",
"country": "Charleston, SC, USA",
"priorityType": 0,
"height": 78,
"weight": 215,
"position": "G-F",
"birthDate": "1999-10-16T00:00:00Z",
"leagueId": 3
},
"883262": {
"id": 883262,
"headshotUrl": "players/nba/883262.png",
"firstName": "Shai",
"lastName": "Gilgeous-Alexander",
"jerseyNumber": "2",
"country": "Toronto, ON, CAN",
"priorityType": 0,
"height": 78,
"weight": 195,
"position": "G",
"birthDate": "1998-07-12T00:00:00Z",
"leagueId": 3,
"partnerPlayerData": {
"fanduel": {
"playerId": "fd-player-883262"
},
"sportradar": {
"playerId": "sr:player:883262"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfDictionaryOfInt64Team
- **Type:** `object`
*Schema `ApiResponseOfDictionaryOfInt64Team` is shown above.*
**Example:**
```json
{
"data": {
"68": {
"id": 68,
"name": "Chicago Bulls",
"abbreviation": "CHI",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/chi.svg",
"leagueId": 3
},
"84": {
"id": 84,
"name": "Oklahoma City Thunder",
"abbreviation": "OKC",
"logoUrl": "https://assets.unabated.com/teams/logos/nba/okc.svg",
"leagueId": 3,
"partnerTeamData": {
"fanduel": {
"teamId": "fd-team-84"
},
"sportradar": {
"teamId": "sr:team:84"
}
}
}
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfIReadOnlyCollectionOfInGameFairPriceSet
- **Type:** `object`
*Schema `ApiResponseOfIReadOnlyCollectionOfInGameFairPriceSet` is shown above.*
**Example:**
```json
{
"data": [
{
"sourceKey": null,
"leagueId": 1,
"eventId": 1,
"outputId": null,
"status": null,
"statusReason": null,
"producedUtc": "",
"statusChangedUtc": "",
"schemaVersion": null,
"checkpointType": null,
"periodNumber": null,
"markets": [
{
"marketId": 1,
"probabilities": [
{
"price": null,
"method": null,
"points": 1,
"probability": 1
}
]
}
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfLeague
- **Type:** `object`
*Schema `ApiResponseOfLeague` is shown above.*
**Example:**
```json
{
"data": {
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfBetType
- **Type:** `object`
*Schema `ApiResponseOfListOfBetType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"description": null,
"betOn": null,
"sides": null,
"canDraw": null,
"hasPoints": null,
"active": null,
"selectionCountType": null,
"betRange": null,
"betTypeId": 1,
"isFuture": true,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfBonus
- **Type:** `object`
*Schema `ApiResponseOfListOfBonus` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfEvent
- **Type:** `object`
*Schema `ApiResponseOfListOfEvent` is shown above.*
**Example:**
```json
{
"data": [
{
"eventId": 940356,
"leagueId": 3,
"statusId": 1,
"eventStart": "2025-06-05T16:30:00Z",
"name": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"eventTeams": [
{
"teamId": 75,
"rotationNumber": 501,
"score": 0,
"sideIndex": 0,
"name": "Oklahoma City Thunder"
},
{
"teamId": 84,
"rotationNumber": 502,
"score": 0,
"sideIndex": 1,
"name": "Indiana Pacers"
}
],
"partnerEventData": {
"fanduel": {
"eventId": "fd-event-940356"
},
"sportradar": {
"eventId": "sr:match:940356"
}
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfLeague
- **Type:** `object`
*Schema `ApiResponseOfListOfLeague` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfLineup
- **Type:** `object`
*Schema `ApiResponseOfListOfLineup` is shown above.*
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"date": null,
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"teams": [
{
"side": null,
"team": {
"id": 1,
"name": null
},
"lineupStatus": null,
"confirmedAt": null,
"starters": [
{
"position": null,
"player": {
"id": 1,
"firstName": null,
"lastName": null
},
"headshotUrl": null
}
]
}
],
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfMarketLineBonus
- **Type:** `object`
*Schema `ApiResponseOfListOfMarketLineBonus` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketLineId": 1,
"bonusId": 1,
"boostedPrice": null,
"matchMethod": null,
"matchConfidence": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfMarketSource
- **Type:** `object`
*Schema `ApiResponseOfListOfMarketSource` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": "DraftKings",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/draft-kings.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/draft-kings.webp",
"siteUrl": "https://sportsbook.draftkings.com/",
"isActive": true,
"statusId": 1,
"propsStatusId": 1,
"futuresStatusId": 1
},
{
"id": 4,
"name": "BetMGM",
"logoUrl": "https://assets.unabated.com/sportsbooks/logos/bet-mgm.svg",
"thumbnailUrl": "https://assets.unabated.com/sportsbooks/thumbnails/bet-mgm.webp",
"siteUrl": "https://sports.betmgm.com/en/sports",
"isActive": true,
"statusId": 3,
"propsStatusId": 1,
"futuresStatusId": 3
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfMarketTypeDetail
- **Type:** `object`
*Schema `ApiResponseOfListOfMarketTypeDetail` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfPeriodType
- **Type:** `object`
*Schema `ApiResponseOfListOfPeriodType` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfPerson
- **Type:** `object`
*Schema `ApiResponseOfListOfPerson` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"preferredName": null,
"jerseyNumber": null,
"country": null,
"priorityType": 0,
"height": null,
"weight": null,
"position": null,
"birthDate": null,
"leagueId": 1,
"teamId": null,
"partnerPlayerData": {
"fanduel": {
"playerId": null
},
"sportradar": {
"playerId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfPlayerNews
- **Type:** `object`
*Schema `ApiResponseOfListOfPlayerNews` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"team": {
"id": 1,
"name": null
},
"headline": null,
"notes": null,
"status": null,
"injury": {
"id": 1,
"name": null
},
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfPlayerPercentToPlay
- **Type:** `object`
*Schema `ApiResponseOfListOfPlayerPercentToPlay` is shown above.*
**Example:**
```json
{
"data": [
{
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"team": {
"id": 1,
"name": null
},
"percentToPlay": 1,
"notes": null,
"meta": {
"createdAt": null,
"updatedAt": null
}
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfPromo
- **Type:** `object`
*Schema `ApiResponseOfListOfPromo` is shown above.*
**Example:**
```json
{
"data": [
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfSeason
- **Type:** `object`
*Schema `ApiResponseOfListOfSeason` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"startDate": null,
"endDate": null,
"seasonParts": [
{
"id": 1,
"name": null,
"startDate": null,
"endDate": null,
"seasonPartType": {
"id": 1,
"name": null
}
}
],
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfTeam
- **Type:** `object`
*Schema `ApiResponseOfListOfTeam` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"abbreviation": null,
"logoUrl": null,
"leagueId": 1,
"divisionId": null,
"divisionAbbreviation": null,
"conferenceAbbreviation": null,
"hexColor": null,
"secondaryHexColor": null,
"partnerTeamData": {
"fanduel": {
"teamId": null
},
"sportradar": {
"teamId": null
}
},
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfListOfTournament
- **Type:** `object`
*Schema `ApiResponseOfListOfTournament` is shown above.*
**Example:**
```json
{
"data": [
{
"id": 1,
"name": null,
"leagueId": 1,
"seasonId": null,
"surfaceType": null,
"bestOf": null,
"modifiedOn": null
}
],
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfOdds
- **Type:** `object`
*Schema `ApiResponseOfOdds` is shown above.*
**Example:**
```json
{
"data": {
"odds": {
"nba": {
"leagueId": 3,
"periodTypes": {
"game": {
"periodTypeId": 1,
"pregame": {
"eid940356:bt72:bst0:pt1:pregame": {
"eventId": 940356,
"isLive": false,
"eventStart": "2025-06-05T16:30:00Z",
"eventEnd": "2025-06-05T19:30:00Z",
"statusId": 1,
"betTypeId": 71,
"betSubType": "",
"gameClock": "00:00",
"overtimeNumber": 0,
"eventName": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"playerPosition": "",
"tournamentName": "",
"eventTeams": {
"0": {
"teamId": 75,
"rotationNumber": 501,
"sideIndex": 0,
"score": 0
},
"1": {
"teamId": 84,
"rotationNumber": 502,
"sideIndex": 0,
"score": 0
}
},
"sides": {
"si0:tid75": {
"sideIndex": 0,
"sideName": "",
"teamId": 75,
"personId": null,
"marketSourceLines": {
"91": {
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"points": 230.5,
"price": -110,
"sourcePrice": -110,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0642,
"bestAltPrice": -110,
"bestAltPoints": 230.5,
"bestAltEdge": -0.0842,
"disabled": false,
"marketLineKey": "",
"modifiedOn": "2025-06-05T16:32:07.592989Z",
"alternateLines": [
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 231.5,
"price": -120,
"sourcePrice": -120,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0842,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
},
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 229.5,
"price": -100,
"sourcePrice": -100,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.042,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
}
]
}
}
}
}
}
}
}
}
}
},
"lastUpdated": 1734567890
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfParlayLineDetail
- **Type:** `object`
*Schema `ApiResponseOfParlayLineDetail` is shown above.*
**Example:**
```json
{
"data": {
"summary": {
"errors": [
""
],
"errorCode": null,
"errorMessage": null,
"sportsbookErrorResponse": null,
"hasErrors": true
},
"matches": 1,
"marketSourceId": 1,
"sourceData": null,
"lines": [
{
"marketSourceId": 1,
"marketLineId": 1,
"marketId": 1,
"points": null,
"sourceData": null
}
],
"price": 1,
"nativePrice": null,
"nativePriceFormat": 0,
"fullMatch": true,
"probability": 1,
"rfqQuoteReceived": true,
"pricedVia": null,
"isEstimated": true,
"correlationRho": null,
"correlationObservationCount": null,
"correlationCapturedOn": null,
"correlationMatchLevel": null,
"correlationMarketSourceId": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfPriceShopParlayResponse
- **Type:** `object`
*Schema `ApiResponseOfPriceShopParlayResponse` is shown above.*
**Example:**
```json
{
"data": {
"summary": {
"errors": [
""
],
"hasErrors": true
},
"lines": [
{
"summary": {
"errors": [
""
],
"errorCode": null,
"errorMessage": null,
"sportsbookErrorResponse": null,
"hasErrors": true
},
"matches": 1,
"marketSourceId": 1,
"sourceData": null,
"lines": [
{
"marketSourceId": 1,
"marketLineId": 1,
"marketId": 1,
"points": null,
"sourceData": null
}
],
"price": 1,
"nativePrice": null,
"nativePriceFormat": 0,
"fullMatch": true,
"probability": 1,
"rfqQuoteReceived": true,
"pricedVia": null,
"isEstimated": true,
"correlationRho": null,
"correlationObservationCount": null,
"correlationCapturedOn": null,
"correlationMatchLevel": null,
"correlationMarketSourceId": null
}
]
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApiResponseOfPromo
- **Type:** `object`
*Schema `ApiResponseOfPromo` is shown above.*
**Example:**
```json
{
"data": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
},
"success": true,
"messages": [
""
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}
```
### ApplicableBonus
- **Type:** `object`
*Schema `ApplicableBonus` is shown above.*
**Example:**
```json
{
"bonus": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"eligibleStake": null,
"baseProfit": null,
"bonusAmount": null,
"boostedProfit": null
}
```
### ArticleWidgetBetDto
- **Type:** `object`
Matched betting offer with article evidence and deep-link information.
*Schema `ArticleWidgetBetDto` is shown above.*
**Example:**
```json
{
"betOffer": {
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null,
"feedUniqueId": null,
"leagueId": 1,
"leagueName": null,
"dl": null,
"teamId": null,
"opponentId": null,
"altTeamId": null,
"playerId": null,
"eventId": null,
"bookId": 1,
"periodTypeId": 1,
"betTypeId": 1,
"betOfferTypeId": 1,
"betSubType": null,
"popularityScore": null,
"betSubTypeCleaned": null,
"alternateOffers": [
{
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null
}
],
"timestamp": null,
"gamblyModifiedTimestamp": null,
"overUnder": null,
"betIndex": 1,
"edge": null,
"syntheticHold": null,
"shouldGamblyBotIgnore": true,
"isLiveBet": true,
"isAltLine": true,
"altBetId": 1,
"betEntityId": null,
"betEntityIdCleaned": null,
"isSGPEnabled": true,
"seasonPart": null,
"offerGroupHash": null,
"statusId": 1,
"alternateOffersJson": null,
"gamblyOverrideSeasonPart": null,
"gamblyOverrideIsEnabled": null,
"personalizationPlayerScore": null,
"personalizationLeagueScore": null,
"personalizationBetTypeScore": null,
"personalizationTeamScore": null,
"personalizationAltTeamScore": null,
"personalizationGlobalPopularityScore": null,
"book": {
"id": 1,
"name": null,
"logoUrl": null,
"thumbnailUrl": null,
"siteUrl": null,
"dl": null,
"priority": 1,
"statusId": 1,
"bookType": null,
"isActive": true
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"eventEnd": null,
"overtimeNumber": null,
"dayOfWeek": null,
"gameStatus": null,
"gameClock": null,
"periodTypeId": null,
"teams": [
{
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
}
],
"seasonPart": {
"id": 1,
"seasonId": null,
"name": null,
"seasonPartType": null,
"seasonPartStart": null,
"seasonPartEnd": null
},
"seasonId": null,
"seasonPartId": null,
"leagueId": 1,
"leagueName": null,
"gamblyOpticIdentifier": null,
"gamblyOverrideStartTime": null
},
"team": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"opponent": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"player": {
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"currentTeamId": null,
"position": null,
"preferredName": null,
"gamblyPersonPriority": null,
"gamblyLongRangePersonPriority": null,
"gamblyOpticIdentifier": null
},
"periodType": {
"id": 1,
"name": null,
"nameShort": null,
"leagues": [
1
]
},
"betOfferType": {
"id": 1,
"name": null,
"nameShort": null,
"nameMobile": null,
"marketTypeId": 1,
"marketTypeName": null,
"betOn": null,
"sides": null,
"canDraw": null,
"selectionCountType": null,
"betRange": null,
"inferredBetTypeName": null,
"containsBetSubTypes": true,
"betTypePriority": 1
},
"league": {
"id": 1,
"sportId": 1,
"name": null,
"gamblySeasonalPriority": 1,
"priority": 1,
"gamblyOpticIdentifier": null,
"opticIdentifier": null,
"gamblyIsCompositeLeague": true,
"gamblyShouldIngestFromOptic": true
}
},
"deeplink": {
"id": null,
"url": null,
"deeplinkStatus": null,
"message": null
},
"evidence": [
""
],
"matchConfidence": null,
"isDirectMatch": true
}
```
### ArticleWidgetBookDto
- **Type:** `object`
A sportsbook available for use with article widgets.
*Schema `ArticleWidgetBookDto` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"logoUrl": null,
"priority": 1,
"allowed": true,
"siteUrl": null,
"thumbnailUrl": null
}
```
### ArticleWidgetMetadataDto
- **Type:** `object`
Processing metadata for an article-widget response.
*Schema `ArticleWidgetMetadataDto` is shown above.*
**Example:**
```json
{
"articleUrl": null,
"leagueHint": null,
"requestedMaxBets": 1,
"matchedCount": 1,
"workerLatency": null,
"fetchedAtUtc": "",
"cacheTtlSeconds": 1,
"cacheHit": true,
"workerResultType": null,
"inlineWidgetCap": 1,
"includeImplicitBets": true,
"bookOrderHash": null,
"bookOrder": [
1
]
}
```
### ArticleWidgetPartnerDto
- **Type:** `object`
Partner organization information used by article-widget requests.
*Schema `ArticleWidgetPartnerDto` is shown above.*
**Example:**
```json
{
"id": 1,
"slug": "",
"displayName": "",
"status": "",
"allowCreate": true
}
```
### ArticleWidgetResponseDto
- **Type:** `object`
Complete article-widget response with partner info, matched bets, and processing metadata.
*Schema `ArticleWidgetResponseDto` is shown above.*
**Example:**
```json
{
"partner": {
"id": 1,
"slug": "",
"displayName": "",
"status": "",
"allowCreate": true
},
"bets": [
{
"betOffer": {
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null,
"feedUniqueId": null,
"leagueId": 1,
"leagueName": null,
"dl": null,
"teamId": null,
"opponentId": null,
"altTeamId": null,
"playerId": null,
"eventId": null,
"bookId": 1,
"periodTypeId": 1,
"betTypeId": 1,
"betOfferTypeId": 1,
"betSubType": null,
"popularityScore": null,
"betSubTypeCleaned": null,
"alternateOffers": [
{
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null
}
],
"timestamp": null,
"gamblyModifiedTimestamp": null,
"overUnder": null,
"betIndex": 1,
"edge": null,
"syntheticHold": null,
"shouldGamblyBotIgnore": true,
"isLiveBet": true,
"isAltLine": true,
"altBetId": 1,
"betEntityId": null,
"betEntityIdCleaned": null,
"isSGPEnabled": true,
"seasonPart": null,
"offerGroupHash": null,
"statusId": 1,
"alternateOffersJson": null,
"gamblyOverrideSeasonPart": null,
"gamblyOverrideIsEnabled": null,
"personalizationPlayerScore": null,
"personalizationLeagueScore": null,
"personalizationBetTypeScore": null,
"personalizationTeamScore": null,
"personalizationAltTeamScore": null,
"personalizationGlobalPopularityScore": null,
"book": {
"id": 1,
"name": null,
"logoUrl": null,
"thumbnailUrl": null,
"siteUrl": null,
"dl": null,
"priority": 1,
"statusId": 1,
"bookType": null,
"isActive": true
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"eventEnd": null,
"overtimeNumber": null,
"dayOfWeek": null,
"gameStatus": null,
"gameClock": null,
"periodTypeId": null,
"teams": [
{
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
}
],
"seasonPart": {
"id": 1,
"seasonId": null,
"name": null,
"seasonPartType": null,
"seasonPartStart": null,
"seasonPartEnd": null
},
"seasonId": null,
"seasonPartId": null,
"leagueId": 1,
"leagueName": null,
"gamblyOpticIdentifier": null,
"gamblyOverrideStartTime": null
},
"team": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"opponent": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"player": {
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"currentTeamId": null,
"position": null,
"preferredName": null,
"gamblyPersonPriority": null,
"gamblyLongRangePersonPriority": null,
"gamblyOpticIdentifier": null
},
"periodType": {
"id": 1,
"name": null,
"nameShort": null,
"leagues": [
1
]
},
"betOfferType": {
"id": 1,
"name": null,
"nameShort": null,
"nameMobile": null,
"marketTypeId": 1,
"marketTypeName": null,
"betOn": null,
"sides": null,
"canDraw": null,
"selectionCountType": null,
"betRange": null,
"inferredBetTypeName": null,
"containsBetSubTypes": true,
"betTypePriority": 1
},
"league": {
"id": 1,
"sportId": 1,
"name": null,
"gamblySeasonalPriority": 1,
"priority": 1,
"gamblyOpticIdentifier": null,
"opticIdentifier": null,
"gamblyIsCompositeLeague": true,
"gamblyShouldIngestFromOptic": true
}
},
"deeplink": {
"id": null,
"url": null,
"deeplinkStatus": null,
"message": null
},
"evidence": [
""
],
"matchConfidence": null,
"isDirectMatch": true
}
],
"metadata": {
"articleUrl": null,
"leagueHint": null,
"requestedMaxBets": 1,
"matchedCount": 1,
"workerLatency": null,
"fetchedAtUtc": "",
"cacheTtlSeconds": 1,
"cacheHit": true,
"workerResultType": null,
"inlineWidgetCap": 1,
"includeImplicitBets": true,
"bookOrderHash": null,
"bookOrder": [
1
]
},
"telemetry": {
"cacheStatus": null,
"errorCode": null,
"workerStatusCode": 1,
"workerLatencyMs": null
}
}
```
### ArticleWidgetTelemetryDto
- **Type:** `object`
Telemetry for article-widget worker and cache behavior.
*Schema `ArticleWidgetTelemetryDto` is shown above.*
**Example:**
```json
{
"cacheStatus": null,
"errorCode": null,
"workerStatusCode": 1,
"workerLatencyMs": null
}
```
### BetMetadata
- **Type:** `object`
Additional metadata about a bet, including league and event timing information.
*Schema `BetMetadata` is shown above.*
**Example:**
```json
{
"league": null,
"timestamp": null,
"additionalInfo": null
}
```
### BetOdds
- **Type:** `object`
Odds and line information for a bet.
*Schema `BetOdds` is shown above.*
**Example:**
```json
{
"type": null,
"value": null,
"points": null
}
```
### BetOfferBase
- **Type:** `object`
Legacy Gambly bet-offer base shape used for alternate lines.
*Schema `BetOfferBase` is shown above.*
**Example:**
```json
{
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null
}
```
### BetStatusResponse
- **Type:** `object`
Response containing the current status and results of a bet slip generation request.
*Schema `BetStatusResponse` is shown above.*
**Example:**
```json
{
"requestId": "",
"status": "",
"details": "",
"betSlips": [
{
"book": "",
"deepLink": null,
"overallOdds": null,
"legsRequested": 1,
"legsMatched": 1,
"betslipBets": [
{
"id": null,
"player": null,
"event": null,
"odds": {
"type": null,
"value": null,
"points": null
},
"betType": null,
"periodType": null,
"isLive": true,
"deepLink": {
"sportsbook": null,
"url": null
},
"metadata": {
"league": null,
"timestamp": null,
"additionalInfo": null
}
}
]
}
],
"message": null,
"sharedBetSlipId": null,
"shareUrl": null
}
```
### BetType
- **Type:** `object`
*Schema `BetType` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"description": null,
"betOn": null,
"sides": null,
"canDraw": null,
"hasPoints": null,
"active": null,
"selectionCountType": null,
"betRange": null,
"betTypeId": 1,
"isFuture": true,
"modifiedOn": null
}
```
### BetTypeCore
- **Type:** `object`
Bet type metadata included with a matched article-widget bet offer.
*Schema `BetTypeCore` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"nameShort": null,
"nameMobile": null,
"marketTypeId": 1,
"marketTypeName": null,
"betOn": null,
"sides": null,
"canDraw": null,
"selectionCountType": null,
"betRange": null,
"inferredBetTypeName": null,
"containsBetSubTypes": true,
"betTypePriority": 1
}
```
### Betslip
- **Type:** `object`
A generated bet slip for a specific sportsbook, containing matched bets and a deep link.
*Schema `Betslip` is shown above.*
**Example:**
```json
{
"book": "",
"deepLink": null,
"overallOdds": null,
"legsRequested": 1,
"legsMatched": 1,
"betslipBets": [
{
"id": null,
"player": null,
"event": null,
"odds": {
"type": null,
"value": null,
"points": null
},
"betType": null,
"periodType": null,
"isLive": true,
"deepLink": {
"sportsbook": null,
"url": null
},
"metadata": {
"league": null,
"timestamp": null,
"additionalInfo": null
}
}
]
}
```
### BetslipBet
- **Type:** `object`
An individual bet within a bet slip.
*Schema `BetslipBet` is shown above.*
**Example:**
```json
{
"id": null,
"player": null,
"event": null,
"odds": {
"type": null,
"value": null,
"points": null
},
"betType": null,
"periodType": null,
"isLive": true,
"deepLink": {
"sportsbook": null,
"url": null
},
"metadata": {
"league": null,
"timestamp": null,
"additionalInfo": null
}
}
```
### Bonus
- **Type:** `object`
*Schema `Bonus` is shown above.*
**Example:**
```json
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
}
```
### BonusEvaluationLeg
- **Type:** `object`
*Schema `BonusEvaluationLeg` is shown above.*
**Example:**
```json
{
"marketLineId": 1,
"marketSourceId": 1,
"price": null,
"marketId": null,
"eventId": null,
"leagueId": null,
"sportId": null,
"betTypeId": null,
"live": true,
"boostedPrice": null,
"boostedByBonusId": null
}
```
### BonusEvaluationRequest
- **Type:** `object`
*Schema `BonusEvaluationRequest` is shown above.*
**Example:**
```json
{
"marketLineIds": [
1
],
"stake": null,
"marketSourceId": null
}
```
### BonusEvaluationResult
- **Type:** `object`
*Schema `BonusEvaluationResult` is shown above.*
**Example:**
```json
{
"legs": [
{
"marketLineId": 1,
"marketSourceId": 1,
"price": null,
"marketId": null,
"eventId": null,
"leagueId": null,
"sportId": null,
"betTypeId": null,
"live": true,
"boostedPrice": null,
"boostedByBonusId": null
}
],
"missingMarketLineIds": [
1
],
"legCount": 1,
"isParlay": true,
"isSameGameParlay": true,
"hasLiveLeg": true,
"mixedMarketSources": true,
"combinedDecimalOdds": null,
"combinedAmericanOdds": null,
"applicable": [
{
"bonus": {
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"promoId": null,
"marketSourceId": 1,
"sourceId": null,
"bonusTypeId": null,
"title": null,
"description": null,
"percentage": null,
"maxBet": null,
"maxBonus": null,
"minLegs": null,
"minTotalOdds": null,
"minLegOdds": null,
"requiresSgp": true,
"requiresParlay": true,
"requiresLive": true,
"requiresOptIn": true,
"leagueIds": [
1
],
"sportIds": [
1
],
"constraints": null,
"parseConfidence": null,
"parseVersion": null,
"startDate": null,
"endDate": null,
"active": true,
"allText": null
},
"eligibleStake": null,
"baseProfit": null,
"bonusAmount": null,
"boostedProfit": null
}
],
"excluded": [
{
"bonusId": 1,
"title": null,
"bonusTypeId": null,
"reasons": [
""
]
}
]
}
```
### Book
- **Type:** `object`
*Schema `Book` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"logoUrl": null,
"thumbnailUrl": null,
"siteUrl": null,
"dl": null,
"priority": 1,
"statusId": 1,
"bookType": null,
"isActive": true
}
```
### ContentBase
- **Type:** `object`
Base class for bet generation content. The concrete type depends on the content payload.
*Schema `ContentBase` is shown above.*
**Example:**
```json
{}
```
### CreatePublicApiKeyResponse
- **Type:** `object`
*Schema `CreatePublicApiKeyResponse` is shown above.*
**Example:**
```json
{
"apiKey": ""
}
```
### CreateSseSubscriptionRequest
- **Type:** `object`
*Schema `CreateSseSubscriptionRequest` is shown above.*
**Example:**
```json
{
"apiKey": "",
"eventTypes": [
""
],
"leagueIds": [
1
],
"eventIds": [
1
],
"marketTypeIds": [
1
],
"marketSourceIds": [
1
],
"betTypeIds": [
1
],
"includeSnapshot": true
}
```
### CreateSseSubscriptionResponse
- **Type:** `object`
*Schema `CreateSseSubscriptionResponse` is shown above.*
**Example:**
```json
{
"subscriptionId": "",
"streamUrl": ""
}
```
### DeepLink
- **Type:** `object`
A deep link to a specific sportsbook for placing a bet.
*Schema `DeepLink` is shown above.*
**Example:**
```json
{
"sportsbook": null,
"url": null
}
```
### Deeplink
- **Type:** `object`
Legacy Gambly article-widget deeplink response.
*Schema `Deeplink` is shown above.*
**Example:**
```json
{
"id": null,
"url": null,
"deeplinkStatus": null,
"message": null
}
```
### DeeplinkResult
- **Type:** `object`
*Schema `DeeplinkResult` is shown above.*
**Example:**
```json
{
"ids": [
1
],
"url": null,
"status": -3,
"statusString": null,
"individualUrls": [
""
],
"bookUrl": null,
"errorMessage": null
}
```
### DeeplinkStatus
- **Type:** `integer`
Numeric values: -3: NoSupportWeb; -2: NoSupportMobile; -1: NoSupport; 0: FullSupport; 1: EventSupport; 2: UnknownIssue; 3: PartialSupport; 4: InvalidInput; 5: OnlySupportOneBet.
`integer`, format: `int32`, possible values: `-3, -2, -1, 0, 1, 2, 3, 4, 5`
### Event
- **Type:** `object`
*Schema `Event` is shown above.*
**Example:**
```json
{
"eventId": 1,
"seasonId": null,
"seasonPartId": null,
"leagueId": 1,
"statusId": 1,
"eventStart": "",
"eventEnd": null,
"gameClock": null,
"periodTypeId": null,
"overtimeNumber": null,
"tournamentId": null,
"name": null,
"eventTeams": [
{
"teamId": 1,
"rotationNumber": null,
"score": null,
"sideIndex": null,
"name": null
}
],
"partnerEventData": {
"fanduel": {
"eventId": null
},
"sportradar": {
"eventId": null
}
},
"modifiedOn": null
}
```
### EventBasicInfo
- **Type:** `object`
*Schema `EventBasicInfo` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
}
```
### EventCore
- **Type:** `object`
Event metadata included with a matched article-widget bet offer.
*Schema `EventCore` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"eventStart": null,
"eventEnd": null,
"overtimeNumber": null,
"dayOfWeek": null,
"gameStatus": null,
"gameClock": null,
"periodTypeId": null,
"teams": [
{
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
}
],
"seasonPart": {
"id": 1,
"seasonId": null,
"name": null,
"seasonPartType": null,
"seasonPartStart": null,
"seasonPartEnd": null
},
"seasonId": null,
"seasonPartId": null,
"leagueId": 1,
"leagueName": null,
"gamblyOpticIdentifier": null,
"gamblyOverrideStartTime": null
}
```
### EventTeam
- **Type:** `object`
*Schema `EventTeam` is shown above.*
**Example:**
```json
{
"teamId": 1,
"rotationNumber": null,
"score": null,
"sideIndex": null,
"name": null
}
```
### ExcludedBonus
- **Type:** `object`
*Schema `ExcludedBonus` is shown above.*
**Example:**
```json
{
"bonusId": 1,
"title": null,
"bonusTypeId": null,
"reasons": [
""
]
}
```
### GamblyB2BErrorResponse
- **Type:** `object`
Standard error response returned by migrated Gambly B2B endpoints.
*Schema `GamblyB2BErrorResponse` is shown above.*
**Example:**
```json
{
"error": "",
"message": "",
"details": "",
"requestId": ""
}
```
### GamblyB2BLeague
- **Type:** `object`
League metadata included with a matched article-widget bet offer.
*Schema `GamblyB2BLeague` is shown above.*
**Example:**
```json
{
"id": 1,
"sportId": 1,
"name": null,
"gamblySeasonalPriority": 1,
"priority": 1,
"gamblyOpticIdentifier": null,
"opticIdentifier": null,
"gamblyIsCompositeLeague": true,
"gamblyShouldIngestFromOptic": true
}
```
### GamblyB2BPeriodType
- **Type:** `object`
Period type metadata included with a matched article-widget bet offer.
*Schema `GamblyB2BPeriodType` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"nameShort": null,
"leagues": [
1
]
}
```
### GamblyB2BSeasonPart
- **Type:** `object`
*Schema `GamblyB2BSeasonPart` is shown above.*
**Example:**
```json
{
"id": 1,
"seasonId": null,
"name": null,
"seasonPartType": null,
"seasonPartStart": null,
"seasonPartEnd": null
}
```
### GenerateBetRequest
- **Type:** `object`
Request to generate a bet slip from text or image content.
*Schema `GenerateBetRequest` is shown above.*
**Example:**
```json
{
"type": "text",
"generateMobileLinks": true,
"content": {}
}
```
### GenerateBetResponse
- **Type:** `object`
Response returned when a bet slip generation request is accepted.
*Schema `GenerateBetResponse` is shown above.*
**Example:**
```json
{
"status": "",
"details": "",
"requestId": ""
}
```
### InGameFairPriceMarket
- **Type:** `object`
*Schema `InGameFairPriceMarket` is shown above.*
**Example:**
```json
{
"marketId": 1,
"probabilities": [
{
"price": null,
"method": null,
"points": 1,
"probability": 1
}
]
}
```
### InGameFairPriceProbability
- **Type:** `object`
*Schema `InGameFairPriceProbability` is shown above.*
**Example:**
```json
{
"price": null,
"method": null,
"points": 1,
"probability": 1
}
```
### InGameFairPriceSet
- **Type:** `object`
The latest model output for one event, including its freshness status and market fair probabilities.
*Schema `InGameFairPriceSet` is shown above.*
**Example:**
```json
{
"sourceKey": null,
"leagueId": 1,
"eventId": 1,
"outputId": null,
"status": null,
"statusReason": null,
"producedUtc": "",
"statusChangedUtc": "",
"schemaVersion": null,
"checkpointType": null,
"periodNumber": null,
"markets": [
{
"marketId": 1,
"probabilities": [
{
"price": null,
"method": null,
"points": 1,
"probability": 1
}
]
}
]
}
```
### ItemMeta
- **Type:** `object`
*Schema `ItemMeta` is shown above.*
**Example:**
```json
{
"createdAt": null,
"updatedAt": null
}
```
### League
- **Type:** `object`
*Schema `League` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
}
```
### Lineup
- **Type:** `object`
*Schema `Lineup` is shown above.*
**Example:**
```json
{
"leagueId": 1,
"date": null,
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"teams": [
{
"side": null,
"team": {
"id": 1,
"name": null
},
"lineupStatus": null,
"confirmedAt": null,
"starters": [
{
"position": null,
"player": {
"id": 1,
"firstName": null,
"lastName": null
},
"headshotUrl": null
}
]
}
],
"meta": {
"createdAt": null,
"updatedAt": null
}
}
```
### LineupStarter
- **Type:** `object`
*Schema `LineupStarter` is shown above.*
**Example:**
```json
{
"position": null,
"player": {
"id": 1,
"firstName": null,
"lastName": null
},
"headshotUrl": null
}
```
### LineupTeam
- **Type:** `object`
*Schema `LineupTeam` is shown above.*
**Example:**
```json
{
"side": null,
"team": {
"id": 1,
"name": null
},
"lineupStatus": null,
"confirmedAt": null,
"starters": [
{
"position": null,
"player": {
"id": 1,
"firstName": null,
"lastName": null
},
"headshotUrl": null
}
]
}
```
### Market
- **Type:** `object`
*Schema `Market` is shown above.*
**Example:**
```json
{
"id": null,
"eventId": null,
"marketTypeId": null,
"betTypeId": null,
"teamId": null,
"sideIndex": null,
"periodTypeId": null,
"personId": null,
"live": null,
"seasonId": null,
"sequenceNumber": null,
"betSubType": null,
"sideName": null,
"modifiedOn": null
}
```
### MarketAlternateLine
- **Type:** `object`
*Schema `MarketAlternateLine` is shown above.*
**Example:**
```json
{
"deepLink": null,
"marketId": null,
"marketLineId": null,
"marketSourceId": null,
"points": null,
"price": null,
"sourcePrice": null,
"liquidity": null,
"sourceFormat": null,
"alternateNumber": 1,
"statusId": 1,
"sequenceNumber": null,
"freshnessExpiresAt": null,
"edge": null,
"disabled": true,
"modifiedOn": null,
"partnerOddsData": {
"fanduel": {
"marketId": null,
"selectionId": null
}
}
}
```
### MarketLine
- **Type:** `object`
*Schema `MarketLine` is shown above.*
**Example:**
```json
{
"deepLink": null,
"marketId": null,
"marketLineId": null,
"marketSourceId": null,
"points": null,
"price": null,
"sourcePrice": null,
"liquidity": null,
"sourceFormat": null,
"statusId": 1,
"openerPoints": null,
"openerPrice": null,
"sequenceNumber": null,
"freshnessExpiresAt": null,
"edge": null,
"bestAltPrice": null,
"bestAltPoints": null,
"bestAltEdge": null,
"alternateLines": [
{
"deepLink": null,
"marketId": null,
"marketLineId": null,
"marketSourceId": null,
"points": null,
"price": null,
"sourcePrice": null,
"liquidity": null,
"sourceFormat": null,
"alternateNumber": 1,
"statusId": 1,
"sequenceNumber": null,
"freshnessExpiresAt": null,
"edge": null,
"disabled": true,
"modifiedOn": null,
"partnerOddsData": {
"fanduel": {
"marketId": null,
"selectionId": null
}
}
}
],
"disabled": true,
"marketLineKey": null,
"modifiedOn": null,
"partnerOddsData": {
"fanduel": {
"marketId": null,
"selectionId": null
}
},
"market": {
"id": null,
"eventId": null,
"marketTypeId": null,
"betTypeId": null,
"teamId": null,
"sideIndex": null,
"periodTypeId": null,
"personId": null,
"live": null,
"seasonId": null,
"sequenceNumber": null,
"betSubType": null,
"sideName": null,
"modifiedOn": null
},
"internalDx": {
"cid": "",
"tx": null,
"ps": null
}
}
```
### MarketLineBonus
- **Type:** `object`
*Schema `MarketLineBonus` is shown above.*
**Example:**
```json
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketLineId": 1,
"bonusId": 1,
"boostedPrice": null,
"matchMethod": null,
"matchConfidence": null
}
```
### MarketLineGroup
- **Type:** `object`
*Schema `MarketLineGroup` is shown above.*
**Example:**
```json
{
"eventId": null,
"isLive": true,
"eventStart": null,
"eventEnd": null,
"statusId": 1,
"betTypeId": 1,
"betSubType": null,
"gameClock": null,
"eventPeriodTypeId": null,
"overtimeNumber": null,
"eventName": null,
"playerPosition": null,
"tournamentName": null,
"key": null,
"eventTeams": null,
"sides": null
}
```
### MarketLineGroupSide
- **Type:** `object`
*Schema `MarketLineGroupSide` is shown above.*
**Example:**
```json
{
"sideIndex": 1,
"sideName": null,
"personId": null,
"teamId": null,
"marketSourceLines": null
}
```
### MarketLineIdWithPoint
- **Type:** `object`
*Schema `MarketLineIdWithPoint` is shown above.*
**Example:**
```json
{
"marketSourceId": 1,
"marketLineId": 1,
"marketId": 1,
"points": null,
"sourceData": null
}
```
### MarketLineUpdateDiagnostics
- **Type:** `object`
*Schema `MarketLineUpdateDiagnostics` is shown above.*
**Example:**
```json
{
"cid": "",
"tx": null,
"ps": null
}
```
### MarketSource
- **Type:** `object`
*Schema `MarketSource` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"logoUrl": null,
"thumbnailUrl": null,
"siteUrl": null,
"isActive": true,
"statusId": 0,
"propsStatusId": 0,
"futuresStatusId": 0,
"disabledMarketTypeIds": [
1
],
"modifiedOn": ""
}
```
### MarketSourceStatusType
- **Type:** `integer`
Numeric values: 0: Unspecified; 1: HighFrequency; 2: LowFrequency; 3: Offline.
`integer`, format: `int32`, possible values: `0, 1, 2, 3`
### MarketType
- **Type:** `integer`
Numeric values: 0: Unspecified; 1: Straight; 2: Futures; 3: Props.
`integer`, format: `int32`, possible values: `0, 1, 2, 3`
### MarketTypeDetail
- **Type:** `object`
*Schema `MarketTypeDetail` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null
}
```
### Odds
- **Type:** `object`
*Schema `Odds` is shown above.*
**Example:**
```json
{
"odds": {
"nba": {
"leagueId": 3,
"periodTypes": {
"game": {
"periodTypeId": 1,
"pregame": {
"eid940356:bt72:bst0:pt1:pregame": {
"eventId": 940356,
"isLive": false,
"eventStart": "2025-06-05T16:30:00Z",
"eventEnd": "2025-06-05T19:30:00Z",
"statusId": 1,
"betTypeId": 71,
"betSubType": "",
"gameClock": "00:00",
"overtimeNumber": 0,
"eventName": "Thunder Oklahoma City OKC @ Pacers Indiana IND",
"playerPosition": "",
"tournamentName": "",
"eventTeams": {
"0": {
"teamId": 75,
"rotationNumber": 501,
"sideIndex": 0,
"score": 0
},
"1": {
"teamId": 84,
"rotationNumber": 502,
"sideIndex": 0,
"score": 0
}
},
"sides": {
"si0:tid75": {
"sideIndex": 0,
"sideName": "",
"teamId": 75,
"personId": null,
"marketSourceLines": {
"91": {
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"points": 230.5,
"price": -110,
"sourcePrice": -110,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0642,
"bestAltPrice": -110,
"bestAltPoints": 230.5,
"bestAltEdge": -0.0842,
"disabled": false,
"marketLineKey": "",
"modifiedOn": "2025-06-05T16:32:07.592989Z",
"alternateLines": [
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 231.5,
"price": -120,
"sourcePrice": -120,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.0842,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
},
{
"marketId": 43907422,
"marketLineId": 3181318560,
"marketSourceId": 91,
"alternateNumber": 1,
"points": 229.5,
"price": -100,
"sourcePrice": -100,
"sourceFormat": 1,
"statusId": 1,
"sequenceNumber": 1749141120194,
"edge": -0.042,
"modifiedOn": "2025-06-05T16:32:07.592989Z"
}
]
}
}
}
}
}
}
}
}
}
},
"lastUpdated": 1734567890
}
```
### OddsFormatType
- **Type:** `integer`
Numeric values: 0: Unspecified; 1: American; 2: Decimal; 3: Percent; 4: Probability; 5: Sporttrade; 6: Multiplier.
`integer`, format: `int32`, possible values: `0, 1, 2, 3, 4, 5, 6`
### OddsLeague
- **Type:** `object`
*Schema `OddsLeague` is shown above.*
**Example:**
```json
{
"leagueId": 1,
"periodTypes": null
}
```
### OddsPeriodType
- **Type:** `object`
*Schema `OddsPeriodType` is shown above.*
**Example:**
```json
{
"periodTypeId": 1,
"pregame": null,
"live": null
}
```
### PaginationInfo
- **Type:** `object`
*Schema `PaginationInfo` is shown above.*
**Example:**
```json
{
"nextCursor": null,
"previousCursor": null
}
```
### ParlayDetailSummary
- **Type:** `object`
*Schema `ParlayDetailSummary` is shown above.*
**Example:**
```json
{
"errors": [
""
],
"errorCode": null,
"errorMessage": null,
"sportsbookErrorResponse": null,
"hasErrors": true
}
```
### ParlayLineDetail
- **Type:** `object`
*Schema `ParlayLineDetail` is shown above.*
**Example:**
```json
{
"summary": {
"errors": [
""
],
"errorCode": null,
"errorMessage": null,
"sportsbookErrorResponse": null,
"hasErrors": true
},
"matches": 1,
"marketSourceId": 1,
"sourceData": null,
"lines": [
{
"marketSourceId": 1,
"marketLineId": 1,
"marketId": 1,
"points": null,
"sourceData": null
}
],
"price": 1,
"nativePrice": null,
"nativePriceFormat": 0,
"fullMatch": true,
"probability": 1,
"rfqQuoteReceived": true,
"pricedVia": null,
"isEstimated": true,
"correlationRho": null,
"correlationObservationCount": null,
"correlationCapturedOn": null,
"correlationMatchLevel": null,
"correlationMarketSourceId": null
}
```
### ParlayResponseSummary
- **Type:** `object`
*Schema `ParlayResponseSummary` is shown above.*
**Example:**
```json
{
"errors": [
""
],
"hasErrors": true
}
```
### PartnerBooksResponse
- **Type:** `object`
Response containing partner information and available sportsbooks.
*Schema `PartnerBooksResponse` is shown above.*
**Example:**
```json
{
"partner": {
"id": 1,
"slug": "",
"displayName": "",
"status": "",
"allowCreate": true
},
"books": [
{
"id": 1,
"name": null,
"logoUrl": null,
"priority": 1,
"allowed": true,
"siteUrl": null,
"thumbnailUrl": null
}
],
"requestId": ""
}
```
### PartnerEventData
- **Type:** `object`
*Schema `PartnerEventData` is shown above.*
**Example:**
```json
{
"fanduel": {
"eventId": null
},
"sportradar": {
"eventId": null
}
}
```
### PartnerEventDataDetail
- **Type:** `object`
*Schema `PartnerEventDataDetail` is shown above.*
**Example:**
```json
{
"eventId": null
}
```
### PartnerOddsData
- **Type:** `object`
*Schema `PartnerOddsData` is shown above.*
**Example:**
```json
{
"fanduel": {
"marketId": null,
"selectionId": null
}
}
```
### PartnerOddsDataDetail
- **Type:** `object`
*Schema `PartnerOddsDataDetail` is shown above.*
**Example:**
```json
{
"marketId": null,
"selectionId": null
}
```
### PartnerPlayerData
- **Type:** `object`
*Schema `PartnerPlayerData` is shown above.*
**Example:**
```json
{
"fanduel": {
"playerId": null
},
"sportradar": {
"playerId": null
}
}
```
### PartnerPlayerDataDetail
- **Type:** `object`
*Schema `PartnerPlayerDataDetail` is shown above.*
**Example:**
```json
{
"playerId": null
}
```
### PartnerTeamData
- **Type:** `object`
*Schema `PartnerTeamData` is shown above.*
**Example:**
```json
{
"fanduel": {
"teamId": null
},
"sportradar": {
"teamId": null
}
}
```
### PartnerTeamDataDetail
- **Type:** `object`
*Schema `PartnerTeamDataDetail` is shown above.*
**Example:**
```json
{
"teamId": null
}
```
### PeriodType
- **Type:** `object`
*Schema `PeriodType` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"abbreviation": null,
"leagueIds": [
1
]
}
```
### Person
- **Type:** `object`
*Schema `Person` is shown above.*
**Example:**
```json
{
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"preferredName": null,
"jerseyNumber": null,
"country": null,
"priorityType": 0,
"height": null,
"weight": null,
"position": null,
"birthDate": null,
"leagueId": 1,
"teamId": null,
"partnerPlayerData": {
"fanduel": {
"playerId": null
},
"sportradar": {
"playerId": null
}
},
"modifiedOn": null
}
```
### PersonBasicInfo
- **Type:** `object`
*Schema `PersonBasicInfo` is shown above.*
**Example:**
```json
{
"id": 1,
"firstName": null,
"lastName": null
}
```
### PersonCore
- **Type:** `object`
Player metadata included with a matched article-widget bet offer.
*Schema `PersonCore` is shown above.*
**Example:**
```json
{
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"currentTeamId": null,
"position": null,
"preferredName": null,
"gamblyPersonPriority": null,
"gamblyLongRangePersonPriority": null,
"gamblyOpticIdentifier": null
}
```
### PersonPriorityType
- **Type:** `integer`
Numeric display priority. Player records use 0 for normal priority and 1 for highest priority. Values 2 and 3 are retained for compatibility and do not imply additional ranking meanings.
`integer`, format: `int32`, possible values: `0, 1, 2, 3`
### PlayerNews
- **Type:** `object`
*Schema `PlayerNews` is shown above.*
**Example:**
```json
{
"id": 1,
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"team": {
"id": 1,
"name": null
},
"headline": null,
"notes": null,
"status": null,
"injury": {
"id": 1,
"name": null
},
"meta": {
"createdAt": null,
"updatedAt": null
}
}
```
### PlayerNewsInjury
- **Type:** `object`
*Schema `PlayerNewsInjury` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null
}
```
### PlayerPercentToPlay
- **Type:** `object`
*Schema `PlayerPercentToPlay` is shown above.*
**Example:**
```json
{
"leagueId": 1,
"person": {
"id": 1,
"firstName": null,
"lastName": null
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"statusId": null
},
"team": {
"id": 1,
"name": null
},
"percentToPlay": 1,
"notes": null,
"meta": {
"createdAt": null,
"updatedAt": null
}
}
```
### PopulatedBetOffer
- **Type:** `object`
Hydrated Gambly bet offer returned by the article-widget API.
*Schema `PopulatedBetOffer` is shown above.*
**Example:**
```json
{
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null,
"feedUniqueId": null,
"leagueId": 1,
"leagueName": null,
"dl": null,
"teamId": null,
"opponentId": null,
"altTeamId": null,
"playerId": null,
"eventId": null,
"bookId": 1,
"periodTypeId": 1,
"betTypeId": 1,
"betOfferTypeId": 1,
"betSubType": null,
"popularityScore": null,
"betSubTypeCleaned": null,
"alternateOffers": [
{
"id": 1,
"price": null,
"generatedEdge": null,
"points": null,
"betOpeningPoints": null,
"betOpeningPrice": null,
"sourceData": null
}
],
"timestamp": null,
"gamblyModifiedTimestamp": null,
"overUnder": null,
"betIndex": 1,
"edge": null,
"syntheticHold": null,
"shouldGamblyBotIgnore": true,
"isLiveBet": true,
"isAltLine": true,
"altBetId": 1,
"betEntityId": null,
"betEntityIdCleaned": null,
"isSGPEnabled": true,
"seasonPart": null,
"offerGroupHash": null,
"statusId": 1,
"alternateOffersJson": null,
"gamblyOverrideSeasonPart": null,
"gamblyOverrideIsEnabled": null,
"personalizationPlayerScore": null,
"personalizationLeagueScore": null,
"personalizationBetTypeScore": null,
"personalizationTeamScore": null,
"personalizationAltTeamScore": null,
"personalizationGlobalPopularityScore": null,
"book": {
"id": 1,
"name": null,
"logoUrl": null,
"thumbnailUrl": null,
"siteUrl": null,
"dl": null,
"priority": 1,
"statusId": 1,
"bookType": null,
"isActive": true
},
"event": {
"id": 1,
"name": null,
"eventStart": null,
"eventEnd": null,
"overtimeNumber": null,
"dayOfWeek": null,
"gameStatus": null,
"gameClock": null,
"periodTypeId": null,
"teams": [
{
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
}
],
"seasonPart": {
"id": 1,
"seasonId": null,
"name": null,
"seasonPartType": null,
"seasonPartStart": null,
"seasonPartEnd": null
},
"seasonId": null,
"seasonPartId": null,
"leagueId": 1,
"leagueName": null,
"gamblyOpticIdentifier": null,
"gamblyOverrideStartTime": null
},
"team": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"opponent": {
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
},
"player": {
"id": 1,
"headshotUrl": null,
"firstName": null,
"lastName": null,
"currentTeamId": null,
"position": null,
"preferredName": null,
"gamblyPersonPriority": null,
"gamblyLongRangePersonPriority": null,
"gamblyOpticIdentifier": null
},
"periodType": {
"id": 1,
"name": null,
"nameShort": null,
"leagues": [
1
]
},
"betOfferType": {
"id": 1,
"name": null,
"nameShort": null,
"nameMobile": null,
"marketTypeId": 1,
"marketTypeName": null,
"betOn": null,
"sides": null,
"canDraw": null,
"selectionCountType": null,
"betRange": null,
"inferredBetTypeName": null,
"containsBetSubTypes": true,
"betTypePriority": 1
},
"league": {
"id": 1,
"sportId": 1,
"name": null,
"gamblySeasonalPriority": 1,
"priority": 1,
"gamblyOpticIdentifier": null,
"opticIdentifier": null,
"gamblyIsCompositeLeague": true,
"gamblyShouldIngestFromOptic": true
}
}
```
### PriceShopParlayResponse
- **Type:** `object`
*Schema `PriceShopParlayResponse` is shown above.*
**Example:**
```json
{
"summary": {
"errors": [
""
],
"hasErrors": true
},
"lines": [
{
"summary": {
"errors": [
""
],
"errorCode": null,
"errorMessage": null,
"sportsbookErrorResponse": null,
"hasErrors": true
},
"matches": 1,
"marketSourceId": 1,
"sourceData": null,
"lines": [
{
"marketSourceId": 1,
"marketLineId": 1,
"marketId": 1,
"points": null,
"sourceData": null
}
],
"price": 1,
"nativePrice": null,
"nativePriceFormat": 0,
"fullMatch": true,
"probability": 1,
"rfqQuoteReceived": true,
"pricedVia": null,
"isEstimated": true,
"correlationRho": null,
"correlationObservationCount": null,
"correlationCapturedOn": null,
"correlationMatchLevel": null,
"correlationMarketSourceId": null
}
]
}
```
### ProblemDetails
- **Type:** `object`
*Schema `ProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"additionalProperty": null
}
```
### Promo
- **Type:** `object`
*Schema `Promo` is shown above.*
**Example:**
```json
{
"id": null,
"createdOn": "",
"createdBy": null,
"modifiedOn": "",
"modifiedBy": null,
"marketSourceId": 1,
"sourceId": null,
"imageUrl": null,
"title": null,
"description": null,
"terms": null,
"captureMetadata": null,
"startDate": null,
"endDate": null,
"pageUrl": null,
"allText": null
}
```
### Season
- **Type:** `object`
*Schema `Season` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"leagueId": 1,
"startDate": null,
"endDate": null,
"seasonParts": [
{
"id": 1,
"name": null,
"startDate": null,
"endDate": null,
"seasonPartType": {
"id": 1,
"name": null
}
}
],
"modifiedOn": null
}
```
### SeasonPart
- **Type:** `object`
*Schema `SeasonPart` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"startDate": null,
"endDate": null,
"seasonPartType": {
"id": 1,
"name": null
}
}
```
### SeasonPartType
- **Type:** `object`
*Schema `SeasonPartType` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null
}
```
### Team
- **Type:** `object`
*Schema `Team` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"abbreviation": null,
"logoUrl": null,
"leagueId": 1,
"divisionId": null,
"divisionAbbreviation": null,
"conferenceAbbreviation": null,
"hexColor": null,
"secondaryHexColor": null,
"partnerTeamData": {
"fanduel": {
"teamId": null
},
"sportradar": {
"teamId": null
}
},
"modifiedOn": null
}
```
### TeamBasicInfo
- **Type:** `object`
*Schema `TeamBasicInfo` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null
}
```
### TeamCore
- **Type:** `object`
Team metadata included with a matched article-widget bet offer.
*Schema `TeamCore` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"abbreviation": null,
"displayNameOverride": null,
"preferredDisplayName": null,
"logoUrl": null,
"leagueId": null,
"gamblySportId": null,
"gamblyOpticIdentifier": null,
"gamblyTeamPriority": null
}
```
### Tournament
- **Type:** `object`
*Schema `Tournament` is shown above.*
**Example:**
```json
{
"id": 1,
"name": null,
"leagueId": 1,
"seasonId": null,
"surfaceType": null,
"bestOf": null,
"modifiedOn": null
}
```
### ValidationProblemDetails
- **Type:** `object`
*Schema `ValidationProblemDetails` is shown above.*
**Example:**
```json
{
"type": null,
"title": null,
"status": null,
"detail": null,
"instance": null,
"errors": {
"additionalProperty": [
""
]
},
"additionalProperty": null
}
```
## Request code samples
### GET /bettype
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/bettype" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/bettype`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/bettype', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### GET /deeplink
**cURL**
```bash
# Use a current market-line ID from your odds response, not a hardcoded example ID.
curl --fail-with-body --silent --show-error --get \
"https://data.unabated.com/deeplink" \
-H "X-Api-Key: $UNABATED_API_KEY" --data-urlencode "ids=$UNABATED_MARKET_LINE_ID"
# Free partners must add their utm_campaign to every Gambly link they publish.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const lineId = process.env.UNABATED_MARKET_LINE_ID; // From a current odds response.
if (!lineId) throw new Error('Set UNABATED_MARKET_LINE_ID to a current market-line ID');
const url = new URL('/deeplink', base);
url.searchParams.set('ids', lineId);
const response = await fetch(url, { headers: { 'X-Api-Key': process.env.UNABATED_API_KEY } });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
// Add your partner's utm_campaign to generic Gambly links before publishing them.
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.parse import urlencode
base = 'https://data.unabated.com'
# UNABATED_MARKET_LINE_ID comes from a current odds response.
query = urlencode({'ids': os.environ['UNABATED_MARKET_LINE_ID']})
request = Request(base + '/deeplink?' + query, headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
with urlopen(request, timeout=30) as response:
result = json.load(response)
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
# Add your partner's utm_campaign to generic Gambly links before publishing them.
```
### GET /event/{league}/upcoming
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/event/nfl/upcoming" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/event/nfl/upcoming`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/event/nfl/upcoming', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### POST /api/v1/bet/generate
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/api/v1/bet/generate" \
-H "X-Api-Key: $UNABATED_API_KEY" -H 'Content-Type: application/json' \
--data '{"type":"text","content":{"text":"NFL moneyline bet slip for Eagles to win"}}'
# Poll GET /api/v1/bet/status/{guid} using the returned request identifier.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/api/v1/bet/generate`, {
method: 'POST',
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ type: 'text', content: { text: 'NFL moneyline bet slip for Eagles to win' } })
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Use the returned request identifier to poll /api/v1/bet/status/{guid}.
console.log(result);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
base = 'https://data.unabated.com'
body = json.dumps({'type': 'text', 'content': {'text': 'NFL moneyline bet slip for Eagles to win'}}).encode()
request = Request(base + '/api/v1/bet/generate', data=body, headers={
'X-Api-Key': os.environ['UNABATED_API_KEY'], 'Content-Type': 'application/json'})
with urlopen(request, timeout=30) as response:
result = json.load(response)
# Poll /api/v1/bet/status/{guid} using the returned request identifier.
print(result)
```
### GET /league
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/league" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/league`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/league', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### GET /market/{league}/{marketType}/odds
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/market/nfl/straight/odds" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/market/nfl/straight/odds`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/market/nfl/straight/odds', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### GET /market/{league}/{marketType}/sources
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/market/nfl/straight/sources" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/market/nfl/straight/sources`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/market/nfl/straight/sources', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### GET /market-type
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/market-type" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/market-type`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/market-type', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### GET /period-type
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/period-type" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/period-type`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/period-type', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### GET /period-type/{league}
**cURL**
```bash
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/period-type/nfl" \
-H "X-Api-Key: $UNABATED_API_KEY"
# Inspect success/messages as well as HTTP status. For HTTP 429, honor Retry-After.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/period-type/nfl`, {
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY }
});
if (response.status === 429) {
throw new Error(`Rate limited; retry after ${response.headers.get('Retry-After')} seconds`);
}
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
console.log(result.data);
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.error import HTTPError
base = 'https://data.unabated.com'
request = Request(base + '/period-type/nfl', headers={'X-Api-Key': os.environ['UNABATED_API_KEY']})
try:
with urlopen(request, timeout=30) as response:
result = json.load(response)
except HTTPError as error:
if error.code == 429:
print('Retry after', error.headers.get('Retry-After'), 'seconds')
raise
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
print(result['data'])
```
### POST /subscriptions
**cURL**
```bash
# Authenticate the POST. Use the returned streamUrl as-is; do not add an API key to it.
curl --fail-with-body --silent --show-error \
"https://data.unabated.com/subscriptions" \
-H "X-Api-Key: $UNABATED_API_KEY" -H 'Content-Type: application/json' \
--data '{"eventTypes":["market_line_update"],"includeSnapshot":true}'
# data.subscriptionId identifies the subscription; data.streamUrl is a secret signed URL.
```
**JavaScript**
```javascript
const base = 'https://data.unabated.com';
const response = await fetch(`${base}/subscriptions`, {
method: 'POST',
headers: { 'X-Api-Key': process.env.UNABATED_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ eventTypes: ['market_line_update'], includeSnapshot: true })
});
if (!response.ok) throw new Error(`Subscription rejected: HTTP ${response.status}`);
const result = await response.json();
if (!result.success) throw new Error(result.messages.join('; '));
const streamUrl = new URL(result.data.streamUrl, base);
// Keep streamUrl private; connect to it without an API-key header.
const stream = await fetch(streamUrl, { headers: { Accept: 'text/event-stream' } });
if (!stream.ok) throw new Error(`Stream rejected: HTTP ${stream.status}`);
// Feed chunks into an SSE parser: frames can span chunks and data can span lines.
for await (const chunk of stream.body.pipeThrough(new TextDecoderStream())) {
process.stdout.write(chunk);
}
```
**Python**
```python
import json, os
from urllib.request import Request, urlopen
from urllib.parse import urljoin
base = 'https://data.unabated.com'
body = json.dumps({'eventTypes': ['market_line_update'], 'includeSnapshot': True}).encode()
request = Request(base + '/subscriptions', data=body, headers={
'X-Api-Key': os.environ['UNABATED_API_KEY'], 'Content-Type': 'application/json'})
with urlopen(request, timeout=30) as response:
result = json.load(response)
if not result['success']:
raise RuntimeError('; '.join(result['messages']))
# Signed streamUrl is a secret. The stream GET needs no API-key header.
request = Request(urljoin(base, result['data']['streamUrl']), headers={'Accept': 'text/event-stream'})
with urlopen(request, timeout=60) as stream:
for line in stream:
print(line.decode('utf-8').rstrip()) # Replace with an SSE frame parser in your application.
```
### GET /sse/{subscriptionId}
**cURL**
```bash
# STREAM_URL is data.streamUrl from POST /subscriptions, resolved against https://data.unabated.com.
# Keep its signed token private. No X-Api-Key header is required.
curl --fail-with-body --no-buffer "$STREAM_URL" -H 'Accept: text/event-stream'
# On reconnect, add: -H "Last-Event-ID: $LAST_EVENT_ID"
```
**JavaScript**
```javascript
// In a browser, STREAM_URL is the signed URL returned by your trusted backend.
const streamUrl = new URL(STREAM_URL, 'https://data.unabated.com');
const stream = new EventSource(streamUrl);
stream.addEventListener('market_line_update', event => {
const update = JSON.parse(event.data);
console.log(update);
});
stream.addEventListener('gap', () => {
// Reload a REST snapshot before applying further updates.
});
// EventSource handles reconnects and Last-Event-ID; close() when finished.
```
**Python**
```python
import os
from urllib.request import Request, urlopen
from urllib.parse import urljoin
# STREAM_URL is the signed URL from the API; never log its token.
stream_url = urljoin('https://data.unabated.com', os.environ['STREAM_URL'])
request = Request(stream_url, headers={'Accept': 'text/event-stream'})
with urlopen(request, timeout=60) as stream:
for line in stream:
print(line.decode('utf-8').rstrip())
# Parse complete frames in your app; persist the last ID and reload on a gap event.
```
Source: https://docs.unabated.com/changelog
# Changelog
## Free partner API and live streaming
- Self-service content partner onboarding and API key management.
- Free odds delayed by at least 15 seconds, with one odds request every five seconds per key across odds endpoints.
- Partner attribution through `utm_campaign` on published Gambly deep links.
- REST subscription creation and signed Server-Sent Events connections for Concierge API and Enterprise API customers.
- One documentation site with Free API, Concierge API, and Enterprise API availability on each endpoint.
For the current contract, use the [API reference](https://docs.unabated.com/reference). Discover leagues, sportsbooks, and bet types using the [discovery endpoints](https://docs.unabated.com/guides/discovery) rather than historical lists.