Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 18 additions & 130 deletions public/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"name": "Proprietary",
"url": "https://sharpapi.io/terms"
},
"x-generated-at": "2026-04-16T19:00:23-04:00",
"x-commit-sha": "60018c8"
"x-generated-at": "2026-04-23T20:18:17-04:00",
"x-commit-sha": "39e2c5d"
},
"servers": [
{
Expand Down Expand Up @@ -476,68 +476,6 @@
}
}
},
"/sports/{sportId}": {
"get": {
"operationId": "getSport",
"summary": "Get sport by ID",
"description": "Returns details for a single sport.",
"tags": [
"Reference Data"
],
"security": [
{
"ApiKeyHeader": []
},
{
"BearerAuth": []
},
{
"ApiKeyQuery": []
}
],
"parameters": [
{
"name": "sportId",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"example": "basketball"
}
],
"responses": {
"200": {
"description": "Sport details",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/DataEnvelope"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/Sport"
}
}
}
]
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
}
}
},
"/leagues": {
"get": {
"operationId": "listLeagues",
Expand Down Expand Up @@ -753,68 +691,6 @@
}
}
},
"/sportsbooks/{bookId}": {
"get": {
"operationId": "getSportsbook",
"summary": "Get sportsbook by ID",
"description": "Returns details for a single sportsbook.",
"tags": [
"Reference Data"
],
"security": [
{
"ApiKeyHeader": []
},
{
"BearerAuth": []
},
{
"ApiKeyQuery": []
}
],
"parameters": [
{
"name": "bookId",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"example": "draftkings"
}
],
"responses": {
"200": {
"description": "Sportsbook details",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/DataEnvelope"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/Sportsbook"
}
}
}
]
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
}
}
},
"/markets": {
"get": {
"operationId": "listMarkets",
Expand Down Expand Up @@ -4343,12 +4219,18 @@
},
"possession": {
"type": "string",
"enum": ["home", "away"],
"enum": [
"home",
"away"
],
"description": "Which team has possession (team sports) or is receiving (tennis)."
},
"server": {
"type": "string",
"enum": ["home", "away"],
"enum": [
"home",
"away"
],
"description": "Tennis only — current server."
},
"last_play": {
Expand Down Expand Up @@ -4389,7 +4271,10 @@
},
"power_play": {
"type": "string",
"enum": ["home", "away"],
"enum": [
"home",
"away"
],
"description": "Hockey only — which team is on the power play."
},
"sets_home": {
Expand Down Expand Up @@ -4426,7 +4311,10 @@
},
"batting_team": {
"type": "string",
"enum": ["home", "away"],
"enum": [
"home",
"away"
],
"description": "Cricket only."
},
"stale": {
Expand Down