@playcaller/sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2445 -241
- package/dist/index.d.ts +2445 -241
- package/dist/index.js +4149 -951
- package/dist/index.mjs +4149 -951
- package/package.json +3 -3
- package/README.md +0 -46
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcaller/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Official TypeScript SDK for PlayCaller — real-time sports data, AI-powered analytics, and ML signals for fantasy football, baseball, and
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Official TypeScript SDK for PlayCaller — real-time sports data, AI-powered analytics, and ML signals for fantasy football, baseball, basketball, hockey, golf, soccer, tennis, and UFC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "tsup index.ts --format cjs,esm --dts --clean",
|
|
18
18
|
"prepublishOnly": "npm run build"
|
|
19
19
|
},
|
|
20
|
-
"keywords": ["playcaller", "sports", "fantasy", "nfl", "mlb", "nba", "sports-data", "fantasy-sports"],
|
|
20
|
+
"keywords": ["playcaller", "sports", "fantasy", "nfl", "mlb", "nba", "nhl", "golf", "soccer", "tennis", "ufc", "sports-data", "fantasy-sports"],
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"homepage": "https://playcallerapp.com/developer",
|
|
23
23
|
"repository": {
|
package/README.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# @playcaller/sdk
|
|
2
|
-
|
|
3
|
-
Official TypeScript SDK for the [PlayCaller](https://playcallerapp.com/developer) sports data API — real-time injury signals, player stats, game scores, and AI-powered ML signals for NFL, MLB, NBA, NHL, CFB, Soccer, Tennis, Golf, and UFC.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @playcaller/sdk
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Quick Start
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { PlaycallerApiClient } from "@playcaller/sdk";
|
|
15
|
-
|
|
16
|
-
const client = new PlaycallerApiClient({ apiKey: "pc_sbx_your_key_here" });
|
|
17
|
-
|
|
18
|
-
// Injury signals
|
|
19
|
-
const injuries = await client.intelligence.getIntelligenceInjuries({ sport: "nfl", severity: "high" });
|
|
20
|
-
|
|
21
|
-
// NFL players
|
|
22
|
-
const players = await client.nfl.listNflPlayers({ team: "KC", position: "WR" });
|
|
23
|
-
|
|
24
|
-
// MLB games today
|
|
25
|
-
const games = await client.mlb.listMlbGames({ date: "today" });
|
|
26
|
-
|
|
27
|
-
// Alpha metrics (Pro Insights+)
|
|
28
|
-
const alpha = await client.v1.getAlpha({ sport: "nfl", id: "pc_nfl_4046533" });
|
|
29
|
-
|
|
30
|
-
// Semantic similarity (Pro Insights+)
|
|
31
|
-
const similar = await client.v1.getSimilar({ id: "pc_nfl_4046533", sport: "nfl", limit: 10 });
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Get an API Key
|
|
35
|
-
|
|
36
|
-
[14-day free sandbox at playcallerapp.com/developer](https://playcallerapp.com/developer) — no credit card required.
|
|
37
|
-
|
|
38
|
-
## Sports Coverage
|
|
39
|
-
|
|
40
|
-
NFL · MLB · NBA · NHL · CFB · Soccer (EPL/MLS/La Liga/Bundesliga/Serie A/UCL) · Tennis (ATP/WTA) · Golf (PGA/LPGA) · UFC
|
|
41
|
-
|
|
42
|
-
## Links
|
|
43
|
-
|
|
44
|
-
- [API Docs](https://playcallerapp.com/developer/docs)
|
|
45
|
-
- [48 endpoints](https://playcallerapp.com/developer)
|
|
46
|
-
- [Python SDK](https://pypi.org/project/playcaller-sdk/)
|