fastballapi-com Static reference API
The Static reference API from fastballapi-com — 2 operation(s) for static reference.
The Static reference API from fastballapi-com — 2 operation(s) for static reference.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/fastballapi-com:fastballapi-com-static-reference-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: FastballAPI Static reference API
version: 1.0.0
description: FastballAPI baseball data. Every tool is a POST to /v1/{tool} with a JSON body of its arguments and costs the credits in x-credits. The same tools are an MCP server at https://mcp.fastballapi.com/mcp and free accounts get credits every month at https://fastballapi.com/signup
termsOfService: https://fastballapi.com/terms
contact:
name: FastballAPI support
email: support@fastballapi.com
url: https://fastballapi.com/docs
servers:
- url: https://mcp.fastballapi.com
security:
- apiKey: []
- bearer: []
tags:
- name: Static reference
paths:
/v1/list_teams:
post:
operationId: list_teams
summary: List teams
description: 'Use to find team ids and abbreviations for a season (default: the latest). Every other tool takes a team as an id or abbreviation. Costs 1 credit.'
tags:
- Static reference
x-credits: 1
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
season:
description: 'Season (a year, e.g. 2025; default: the latest).'
type:
- number
- string
league:
description: 'League. Defaults to mlb. One of: mlb, ncaabase.'
type: string
enum:
- mlb
- ncaabase
additionalProperties: false
responses:
'200':
description: The result, wrapped in data.
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
season:
type:
- number
- 'null'
teams:
type: array
items:
type: object
propertyNames:
type: string
additionalProperties: {}
count:
type: number
required:
- season
- teams
- count
additionalProperties: false
required:
- data
'400':
description: Invalid arguments.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'402':
description: Not enough credits.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'429':
description: Rate limited.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
/v1/search_players:
post:
operationId: search_players
summary: Search players
description: Use to find a player's id by name (partial names work). Costs 1 credit.
tags:
- Static reference
x-credits: 1
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Full or partial name.
limit:
type: integer
minimum: 1
maximum: 50
league:
description: 'League. Defaults to mlb. One of: mlb, ncaabase.'
type: string
enum:
- mlb
- ncaabase
required:
- name
additionalProperties: false
responses:
'200':
description: The result, wrapped in data.
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
players:
type: array
items:
type: object
propertyNames:
type: string
additionalProperties: {}
count:
type: number
required:
- players
- count
additionalProperties: false
required:
- data
'400':
description: Invalid arguments.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'402':
description: Not enough credits.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'429':
description: Rate limited.
content:
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
components:
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
bearer:
type: http
scheme: bearer
description: The same API key as a bearer token.
externalDocs:
description: Documentation
url: https://fastballapi.com/docs