# Can you place bets through an API?

Can you place bets through an API? Not at US sportsbooks. Which exchanges accept orders by API, and what an odds API like GetOdds does instead.

Canonical page: https://getoddsapi.com/sportsbook-api-faq/can-you-place-bets-through-an-api

## Free API key

Get a free GetOdds API key: **100 requests per UTC day and 60 per minute, no card**. One key covers REST and the hosted MCP server.

Sign up: https://getoddsapi.com/sign-up?ref=ai-claudebot

## Quickstart

1. Create an account at https://getoddsapi.com/sign-up?ref=ai-claudebot, open https://getoddsapi.com/dashboard and issue a key with the sources you need (draftkings, fanduel, betrivers, prizepicks or underdog). Keep it in a server environment variable named GETODDS_API_KEY.
2. Read current DraftKings NBA spreads with curl:

```bash
curl --fail-with-body "https://getoddsapi.com/api/v1/odds?sport=NBA&market=spread&fresh_only=true&limit=50" \
  -H "Authorization: Bearer $GETODDS_API_KEY"
```

3. The same request in Python (standard library only):

```python
import json, os, urllib.request

req = urllib.request.Request(
    "https://getoddsapi.com/api/v1/odds?sport=NBA&market=spread&fresh_only=true&limit=50",
    headers={"Authorization": "Bearer " + os.environ["GETODDS_API_KEY"]},
)
with urllib.request.urlopen(req) as res:
    rows = json.load(res)["data"]
for row in rows:
    print(row["away"], "at", row["home"], row["side"], row["line"], row["american"], row["observed_at"])
```

4. Check `observed_at`, `age_seconds` and `stale` on every row before using a price. Full reference: https://getoddsapi.com/docs

## Use with Claude (MCP)

```bash
claude mcp add --transport http getodds https://getoddsapi.com/api/mcp \
  --header "Authorization: Bearer $GETODDS_API_KEY"
```

The MCP tools follow the key's source grants and share its allowance. Setup guide: https://getoddsapi.com/use-with-claude

SDKs: `pip install getodds` (PyPI) · `npm install getoddsapi` (npm) · `npx -y getodds-mcp` (local MCP server) · R: `remotes::install_github("getoddsapi/getodds-r")`. Source: https://github.com/getoddsapi · https://getoddsapi.com/docs/sdks

## Pricing

| Plan | Allowance | Price |
| --- | --- | --- |
| Free key | 100 requests a day, 60 a minute | $0, no card |
| Starter | 100,000 credits a month, 120 a minute | $49 a month |
| Pro | 750,000 credits a month, 300 a minute | $113 a month |
| Business | 3,000,000 credits a month, 600 a minute | $219 a month |
| Scale | 15,000,000 credits a month, 1,200 a minute | $279 a month |

Each plan is priced just under the matching odds-api.io tier (Solo £49, about $65; Starter £99, about $131; Growth £179, about $236; Pro £229, about $302 a month, checked 2026-11-17), and every GetOdds plan reads every source.

Free evaluation allowance: 100 requests per UTC day and 60 per minute per account, with no payment step. Paid plans $49 to $279 a month for 100K to 15M credits, self-serve at /pricing.
Paid plans keep running past their monthly credits: extra credits are billed at $0.1 per 1,000 on Starter, $0.05 per 1,000 on Pro, $0.025 per 1,000 on Business, $0.012 per 1,000 on Scale, invoiced with the subscription, up to a default monthly cap ($10 on Starter, $38 on Pro, $78 on Business, $198 on Scale) that you can change or set to $0 to turn overage off.
Details: https://getoddsapi.com/pricing

## Guide


Canonical: https://getoddsapi.com/sportsbook-api-faq/can-you-place-bets-through-an-api
Reviewed: 2026-11-22 UTC

**Answer:** You cannot place bets through an API at US sportsbooks: DraftKings, FanDuel, BetMGM, Caesars and the other state-licensed books offer no public betting API, and Pinnacle, whose API took bets for funded accounts, closed it to the public on July 23, 2025; exchanges such as Kalshi and Polymarket do accept orders through documented APIs.

Can you place bets through an API? Not at US sportsbooks. Which exchanges accept orders by API, and what an odds API like GetOdds does instead.

| Fact | Value |
| --- | --- |
| US sportsbooks | No betting API |
| Pinnacle | Closed to the public July 23, 2025 |
| Kalshi, Polymarket | Order APIs documented |
| GetOdds | Read-only odds data |

## Sportsbooks: read prices, place bets by hand

US sportsbooks take bets only in their own apps and websites, after account and location checks. There is no developer endpoint to submit a wager, and automating the app itself breaks their terms.

## Exchanges: orders through a documented API

Kalshi documents a trade API for creating and cancelling orders, and Polymarket documents order placement on its CLOB API. Both need an account, keys and their own eligibility rules. GetOdds reads their player-prop contracts next to sportsbook prices but does not place orders.

- [Kalshi API](https://getoddsapi.com/kalshi-api): Endpoints, auth and rate limits.
- [Polymarket API](https://getoddsapi.com/polymarket-api): Endpoints and no-key market data.

## What an odds API does instead

An odds API gives you the prices to decide with: line shopping, arbitrage checks, +EV references and alerts. You still place the bet yourself, so always re-check the price at the book first.

- [Arbitrage betting API answer](https://getoddsapi.com/answers/arbitrage-betting-api): Which odds API fits an arbitrage tool.
- [Sportsbook API FAQ](https://getoddsapi.com/sportsbook-api-faq): Which sportsbooks have a public API.

```bash
curl --fail-with-body -H "Authorization: Bearer $GETODDS_API_KEY" \
  "https://getoddsapi.com/api/v1/arbitrage-bets?league=NBA&market=moneyline&max_age_seconds=300&bankroll=100"
```

## Questions

### Is there a DraftKings or FanDuel betting API?

No. Neither offers a public API for reading odds or placing bets.

### Can a bot place bets for me at a sportsbook?

Not through an API. Automating a sportsbook app or website breaks its terms and can close the account.

### Does GetOdds place bets?

No. GetOdds is read-only odds and lines data.

## Sources

- [Pinnacle API documentation: access notice](https://github.com/pinnacleapi/pinnacleapi-documentation)
- [Kalshi docs: create your first order](https://docs.kalshi.com/getting_started/quick_start_create_order)
- [Polymarket docs: place orders](https://docs.polymarket.com/developers/CLOB/orders/create-order)

GetOdds (getoddsapi.com) is an independent product, not affiliated with the operators named and separate from The Odds API and Odds-API.io. No picks or predicted profits.

---

GetOdds (getoddsapi.com) is an independent developer product and is not affiliated with any sportsbook or pick’em operator. GetOdds is a separate product from The Odds API (the-odds-api.com) and from Odds-API.io (odds-api.io), and is not affiliated with either. Prices describe data, not betting advice.

GetOdds is operated by Stunning Couches LLC, a Delaware limited liability company. Terms: https://getoddsapi.com/terms · Privacy: https://getoddsapi.com/privacy
