Skip to content

Commit 4e6c4f5

Browse files
Mlaz-codeclaude
andcommitted
docs: add state query param to odds, delta, SSE, and WebSocket endpoints
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1a419ac commit 4e6c4f5

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

content/en/api-reference/odds-delta.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Use the `server_time` from each response as the `since` value for your next requ
3535
| `fields` | string | all | Comma-separated field names to include (e.g., `id,sportsbook,odds_american`) |
3636
| `min_odds` | number | - | Minimum American odds filter (e.g., `-110`) |
3737
| `max_odds` | number | - | Maximum American odds filter (e.g., `+200`) |
38+
| `state` | string || US state code for sportsbook deep links (e.g., `nj`, `ny`, `il`). When set, `deep_link` URLs include `?state=XX` so the redirect targets the correct state-specific sportsbook domain. |
3839
| `limit` | integer | 50 | Max results per page (max 200) |
3940
| `offset` | integer | 0 | Pagination offset |
4041

content/en/api-reference/odds.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The sportsbooks returned in your results depend on your subscription tier. Free
3535
| `min_odds` | number || Minimum American odds filter (e.g., `-110`) |
3636
| `max_odds` | number || Maximum American odds filter (e.g., `+200`) |
3737
| `group_by` | string || Group results by field (e.g., `event`) |
38+
| `state` | string || US state code for sportsbook deep links (e.g., `nj`, `ny`, `il`). When set, `deep_link` URLs include `?state=XX` so the redirect targets the correct state-specific sportsbook domain. Only affects books with state-dependent URLs (BetMGM, Caesars, BetRivers). |
3839
| `limit` | integer | 50 | Max results per page (max 200) |
3940
| `offset` | integer | 0 | Pagination offset (max 5000) |
4041

content/en/api-reference/stream.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ https://api.sharpapi.io/api/v1/stream?api_key=sk_live_your_key
3737
| `market` | string | all | Filter by market type(s), comma-separated (e.g. `moneyline`, `point_spread`, `total_points`, `player_points`) |
3838
| `min_ev` | number | 2.0 | Minimum EV percentage for +EV opportunity events |
3939
| `min_profit` | number | 0.5 | Minimum profit percentage for arbitrage events only (does not apply to low-hold filtering) |
40-
| `state` | string | `pa` | US state code for generating sportsbook deep links in opportunity events (e.g., `nj`, `ny`, `il`) |
40+
| `state` | string | | US state code for sportsbook deep links in odds and opportunity events (e.g., `nj`, `ny`, `il`). Ensures `deep_link` URLs redirect to the correct state-specific sportsbook domain. |
4141
| `api_key` | string || API key (alternative to header auth for browser `EventSource`) |
4242

4343
### Channel Options

content/en/api-reference/websocket.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ wss://ws.sharpapi.io?api_key=sk_live_your_key&channels=ev,odds&sport=basketball&
5555
| `min_profit` | number | 0.5 | Minimum profit percentage for arbitrage and low-hold opportunities |
5656
| `min_odds` | number || Filter odds by minimum American odds value (e.g., `-200`) |
5757
| `max_odds` | number || Filter odds by maximum American odds value (e.g., `500`) |
58-
| `state` | string | `pa` | US state code for generating sportsbook deep links in opportunity events (e.g., `nj`, `ny`, `il`) |
58+
| `state` | string | | US state code for sportsbook deep links in odds and opportunity events (e.g., `nj`, `ny`, `il`). Ensures `deep_link` URLs redirect to the correct state-specific sportsbook domain. |
5959
| `resume` | boolean | false | Skip initial odds snapshot on reconnection (assumes client has previous state) |
6060
| `from_seq` | integer || Replay missed events since this global sequence number. Use with `resume` for gap-free reconnection. See [Reconnection with Replay](#reconnection-with-replay). |
6161

0 commit comments

Comments
 (0)