Complete reference for the GridIron Data Fantasy Football API
x-api-key header.
curl -H "x-api-key: YOUR_API_KEY" \ "https://api.gridirondata.com/api/v1/health"
When rate limited, the API returns a 429 Too Many Requests response.
Retrieve detailed information for a specific player.
| Parameter | Type | Description |
|---|---|---|
| player_id required | string | Player ID in format: first_last#POSITION (e.g., josh_allen#QB) |
| Parameter | Type | Description |
|---|---|---|
| season | string | Filter to specific season (e.g., "2025") |
curl -H "x-api-key: YOUR_KEY" \ "https://api.gridirondata.com/api/v1/players/josh_allen%23QB"
Search for players by name, position, or team.
| Parameter | Type | Description |
|---|---|---|
| name | string | Partial or full player name |
| position | string | Position: QB, RB, WR, TE, K, DST |
| team | string | Team abbreviation (e.g., BUF, KC) |
| limit | integer | Max results (default: 50, max: 100) |
curl -H "x-api-key: YOUR_KEY" \ "https://api.gridirondata.com/api/v1/players/search?name=Allen&position=QB"
Get a specific player by exact name and position match.
| Parameter | Type | Description |
|---|---|---|
| name required | string | Exact player name |
| position required | string | Position: QB, RB, WR, TE, K, DST |
curl -H "x-api-key: YOUR_KEY" \ "https://api.gridirondata.com/api/v1/players?name=Josh%20Allen&position=QB"
List all players with pagination.
| Parameter | Type | Description |
|---|---|---|
| position | string | Filter by position |
| limit | integer | Results per page (default: 50, max: 100) |
| cursor | string | Pagination cursor from previous response |
Get fantasy point projections for all players for a specific week.
| Parameter | Type | Description |
|---|---|---|
| week required | integer | NFL week number (1-18) |
| Parameter | Type | Description |
|---|---|---|
| position | string | Filter by position |
| season | string | Season year (default: 2025) |
curl -H "x-api-key: YOUR_KEY" \ "https://api.gridirondata.com/api/v1/projections/12?position=QB"
{
"week": "12",
"season": "2025",
"projections": [
{
"player_id": "josh_allen#QB",
"player_name": "Josh Allen",
"position": "QB",
"team": "BUF",
"week": "12",
"projected_points": 24.5,
"injury_status": "Healthy"
}
],
"count": 32
}
Get historical stats for a player in a specific season.
| Parameter | Type | Description |
|---|---|---|
| player_id required | string | Player ID |
| season | string | Season year (default: 2025) |
Alternative: You can also query by name and position:
curl -H "x-api-key: YOUR_KEY" \ "https://api.gridirondata.com/api/v1/stats?name=Josh%20Allen&position=QB&season=2024"
Analyze how a player performs vs their projections. Useful for identifying boom/bust candidates.
| Parameter | Type | Description |
|---|---|---|
| player_id required | string | Player ID |
| Parameter | Type | Description |
|---|---|---|
| season | string | Season year (default: 2025) |
Alternative: Query by name and position:
{
"player_id": "josh_allen#QB",
"player_name": "Josh Allen",
"position": "QB",
"season": "2025",
"avg_deviation": 3.2,
"weeks_analyzed": 11,
"weekly_deviations": [
{
"week": 1,
"actual_points": 28.4,
"projected_points": 24.5,
"deviation": 3.9,
"deviation_percentage": 15.9,
"opponent": "ARI"
}
]
}
Get historical performance data for a player against a specific opponent.
| Parameter | Type | Description |
|---|---|---|
| player_id required | string | Player ID |
| opponent required | string | Opponent team abbreviation (e.g., KC, NE) |
Alternative: Query by name and position:
curl -H "x-api-key: YOUR_KEY" \ "https://api.gridirondata.com/api/v1/matchups/josh_allen%23QB/KC"
Check API status and version.
{
"status": "healthy",
"version": "1.0.0"
}
| Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Resource doesn't exist |
| 409 | Conflict - Multiple matches found (use player_id for exact match) |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |