APIData

MLB team roster (active, 40-man, depth chart, coaches) API

Use the MLB team roster (active, 40-man, depth chart, coaches) API to retrieve player records, player or classification position, participant characteristics, record identities and titles and reported status as structured JSON from MLB Stats. Supply team identifier in the query; optionally select record type, season and date to set the requested scope. Use these results to compare squad composition for a team and season or organize registered-player reference lists. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

MLB team roster (active, 40-man, depth chart, coaches) API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
Pricing
Connect your agent
On this page

Overview

Overview

MLB team roster (active, 40-man, depth chart, coaches) API

Use the MLB team roster (active, 40-man, depth chart, coaches) API to retrieve player records, player or classification position, participant characteristics, record identities and titles and reported status as structured JSON from MLB Stats. Supply team identifier in the query; optionally select record type, season and date to set the requested scope. Use these results to compare squad composition for a team and season or organize registered-player reference lists. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

MLB team roster (active, 40-man, depth chart, coaches) API

A team's roster: player id, name, jersey number, position, status, bats and throws, age, birth date and country, height, weight and debut date. Types: active (default), 40Man, fullSeason, fullRoster, depthChart, allTime, coach, nonRosterInvitees, gameday.

Inputs and results

Send the listed inputs as GET query parameters. Required inputs: team_id. Supported values, filters and optional identifiers are listed below.

ParameterTypeRequiredMeaning
team_idstringRequiredTeam id (147) or abbreviation (nyy, lad ...).
typestringOptionalRoster type. Allowed values: active, 40Man, fullSeason, fullRoster, depthChart, allTime, coach, nonRosterInvitees, gameday.
seasonstringOptionalSeason year.
datestringOptionalRoster on this date (YYYY-MM-DD).
rawstringOptionalUse 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1.
fieldsstringOptionalOptional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained.
freshstringOptionalUse 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1.
outputstringOptionalResponse format for this product: json. Omit this parameter to use JSON. Allowed values: json.
recordsstringOptionalSource export selector for CSV or NDJSON. It has no effect on this JSON-only product.

Using OpenAny

Send this request to the OpenAny gateway with your OpenAny API key in the Authorization header. The query values below match the paired request example.

OpenAny request example

bash
curl "https://api.openany.si/v1/agent-apis/apish/mlb/v1/roster?team_id=147&output=json&raw=0" \
  -H "Authorization: Bearer <OPENANY_API_KEY>"

This command illustrates the OpenAny request format. The response example below retains its stated provenance; it is not evidence that this gateway request was executed.

Response example

Recorded source response for the exact request shown above. Filters, field selectors and page choices in that request define the returned scope.

json
{"team_id":147,"applied_filters":{"type":"active","season":null,"date":null},"count":38,"players":[{"id":592450,"name":"Aaron Judge","jersey":"99","position":"RF","position_name":"Outfielder","position_type":"Outfielder","status":"Active","job":null,"bats":"R","throws":"R","age":34,"birth_date":"1992-04-26","birth_country":"USA","height":"6' 7\"","weight":282,"debut":"2016-08-13"},{"id":645305,"name":"Ali Sánchez","jersey":"39","position":"C","position_name":"Catcher","position_type":"Catcher","status":"Active","job":null,"bats":"R","throws":"R","age":29,"birth_date":"1997-01-20","birth_country":"Venezuela","height":"6' 0\"","weight":200,"debut":"2020-08-10"},{"id":683409,"name":"Angel Chivilli","jersey":"57","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":24,"birth_date":"2002-07-28","birth_country":"Dominican Republic","height":"6' 2\"","weight":185,"debut":"2024-06-03"},{"id":683011,"name":"Anthony Volpe","jersey":"11","position":"SS","position_name":"Shortstop","position_type":"Infielder","status":"Active","job":null,"bats":"R","throws":"R","age":25,"birth_date":"2001-04-28","birth_country":"USA","height":"5' 10\"","weight":197,"debut":"2023-03-30"},{"id":669224,"name":"Austin Wells","jersey":"28","position":"C","position_name":"Catcher","position_type":"Catcher","status":"Active","job":null,"bats":"L","throws":"R","age":27,"birth_date":"1999-07-12","birth_country":"USA","height":"6' 1\"","weight":220,"debut":"2023-09-01"},{"id":700250,"name":"Ben Rice","jersey":"22","position":"DH","position_name":"Designated Hitter","position_type":"Hitter","status":"Active","job":null,"bats":"L","throws":"R","age":27,"birth_date":"1999-02-22","birth_country":"USA","height":"6' 2\"","weight":228,"debut":"2024-06-18"},{"id":690440,"name":"Bradley Hanner","jersey":"93","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":27,"birth_date":"1999-02-10","birth_country":"USA","height":"6' 4\"","weight":210,"debut":"2026-08-14"},{"id":694341,"name":"Brendan Beck","jersey":"89","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":28,"birth_date":"1998-10-06","birth_country":"USA","height":"6' 2\"","weight":218,"debut":"2026-05-07"},{"id":687396,"name":"Brent Headrick","jersey":"47","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"L","throws":"L","age":28,"birth_date":"1997-12-17","birth_country":"USA","height":"6' 6\"","weight":235,"debut":"2023-04-19"},{"id":693645,"name":"Cam Schlittler","jersey":"31","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":25,"birth_date":"2001-02-05","birth_country":"USA","height":"6' 6\"","weight":215,"debut":"2025-07-09"},{"id":801739,"name":"Carlos Lagrange","jersey":null,"position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":23,"birth_date":"2003-05-25","birth_country":"Dominican Republic","height":"6' 7\"","weight":248,"debut":null},{"id":607074,"name":"Carlos Rodón","jersey":"55","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"L","throws":"L","age":33,"birth_date":"1992-12-10","birth_country":"USA","height":"6' 2\"","weight":255,"debut":"2015-04-21"},{"id":694633,"name":"Chase Hampton","jersey":null,"position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":25,"birth_date":"2001-08-07","birth_country":"USA","height":"6' 2\"","weight":225,"debut":null},{"id":657376,"name":"Clarke Schmidt","jersey":"36","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":30,"birth_date":"1996-02-20","birth_country":"USA","height":"6' 1\"","weight":210,"debut":"2020-09-04"},{"id":641355,"name":"Cody Bellinger","jersey":"35","position":"LF","position_name":"Outfielder","position_type":"Outfielder","status":"Active","job":null,"bats":"L","throws":"L","age":31,"birth_date":"1995-07-13","birth_country":"USA","height":"6' 3\"","weight":204,"debut":"2017-04-25"},{"id":670280,"name":"David Bednar","jersey":"53","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"L","throws":"R","age":32,"birth_date":"1994-10-10","birth_country":"USA","height":"6' 1\"","weight":250,"debut":"2019-09-01"},{"id":695684,"name":"Elmer Rodríguez","jersey":"71","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"L","throws":"R","age":23,"birth_date":"2003-08-18","birth_country":"Puerto Rico","height":"6' 4\"","weight":177,"debut":"2026-04-29"},{"id":518585,"name":"Fernando Cruz","jersey":"63","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":36,"birth_date":"1990-03-28","birth_country":"Puerto Rico","height":"6' 2\"","weight":237,"debut":"2022-09-02"},{"id":682003,"name":"Garrett Martin","jersey":null,"position":"RF","position_name":"Outfielder","position_type":"Outfielder","status":"Active","job":null,"bats":"R","throws":"R","age":26,"birth_date":"2000-06-28","birth_country":"USA","height":"6' 3\"","weight":217,"debut":null},{"id":806146,"name":"George Lombard Jr.","jersey":"96","position":"SS","position_name":"Shortstop","position_type":"Infielder","status":"Active","job":null,"bats":"R","throws":"R","age":21,"birth_date":"2005-06-02","birth_country":"USA","height":"6' 2\"","weight":190,"debut":"2026-08-04"},{"id":543037,"name":"Gerrit Cole","jersey":"45","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":36,"birth_date":"1990-09-08","birth_country":"USA","height":"6' 4\"","weight":220,"debut":"2013-06-11"},{"id":519317,"name":"Giancarlo Stanton","jersey":"27","position":"DH","position_name":"Designated Hitter","position_type":"Hitter","status":"Active","job":null,"bats":"R","throws":"R","age":37,"birth_date":"1989-11-08","birth_country":"USA","height":"6' 5\"","weight":245,"debut":"2010-06-08"},{"id":671218,"name":"Heliot Ramos","jersey":"34","position":"LF","position_name":"Outfielder","position_type":"Outfielder","status":"Active","job":null,"bats":"R","throws":"R","age":27,"birth_date":"1999-09-07","birth_country":"Puerto Rico","height":"5' 11\"","weight":235,"debut":"2022-04-10"},{"id":641555,"name":"J.C. Escarra","jersey":"25","position":"C","position_name":"Catcher","position_type":"Catcher","status":"Active","job":null,"bats":"L","throws":"R","age":31,"birth_date":"1995-04-24","birth_country":"USA","height":"6' 2\"","weight":220,"debut":"2025-03-29"},{"id":691176,"name":"Jasson Domínguez","jersey":"24","position":"RF","position_name":"Outfielder","position_type":"Outfielder","status":"Active","job":null,"bats":"S","throws":"R","age":23,"birth_date":"2003-02-07","birth_country":"Dominican Republic","height":"5' 9\"","weight":218,"debut":"2023-09-01"},{"id":676609,"name":"José Caballero","jersey":"72","position":"SS","position_name":"Shortstop","position_type":"Infielder","status":"Active","job":null,"bats":"R","throws":"R","age":30,"birth_date":"1996-08-30","birth_country":"Panama","height":"5' 9\"","weight":190,"debut":"2023-04-15"},{"id":665645,"name":"Kervin Castro","jersey":"74","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":27,"birth_date":"1999-02-07","birth_country":"Venezuela","height":"5' 10\"","weight":234,"debut":"2021-09-07"},{"id":694805,"name":"Kyle Carr","jersey":null,"position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"L","throws":"L","age":24,"birth_date":"2002-05-06","birth_country":"USA","height":"6' 1\"","weight":175,"debut":null},{"id":671277,"name":"Luis García Jr.","jersey":"26","position":"1B","position_name":"First Base","position_type":"Infielder","status":"Active","job":null,"bats":"L","throws":"R","age":26,"birth_date":"2000-05-16","birth_country":"USA","height":"6' 1\"","weight":216,"debut":"2020-08-14"},{"id":661563,"name":"Luis Gil","jersey":"81","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":28,"birth_date":"1998-06-03","birth_country":"Dominican Republic","height":"6' 3\"","weight":215,"debut":"2021-08-03"},{"id":682617,"name":"Marco Luciano","jersey":null,"position":"SS","position_name":"Shortstop","position_type":"Infielder","status":"Active","job":null,"bats":"R","throws":"R","age":25,"birth_date":"2001-09-10","birth_country":"Dominican Republic","height":"6' 1\"","weight":215,"debut":"2023-07-26"},{"id":608331,"name":"Max Fried","jersey":"54","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"L","throws":"L","age":32,"birth_date":"1994-01-18","birth_country":"USA","height":"6' 4\"","weight":190,"debut":"2017-08-08"},{"id":680474,"name":"Max Schuemann","jersey":"30","position":"LF","position_name":"Outfielder","position_type":"Outfielder","status":"Active","job":null,"bats":"R","throws":"R","age":29,"birth_date":"1997-06-11","birth_country":"USA","height":"6' 0\"","weight":198,"debut":"2024-04-12"},{"id":641857,"name":"Ryan McMahon","jersey":"19","position":"3B","position_name":"Third Base","position_type":"Infielder","status":"Active","job":null,"bats":"L","throws":"R","age":31,"birth_date":"1994-12-14","birth_country":"USA","height":"6' 2\"","weight":211,"debut":"2017-08-12"},{"id":677960,"name":"Ryan Weathers","jersey":"40","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"L","age":26,"birth_date":"1999-12-17","birth_country":"USA","height":"6' 1\"","weight":230,"debut":"2020-10-06"},{"id":682987,"name":"Spencer Jones","jersey":"78","position":"CF","position_name":"Outfielder","position_type":"Outfielder","status":"Active","job":null,"bats":"L","throws":"L","age":25,"birth_date":"2001-05-14","birth_country":"USA","height":"6' 7\"","weight":240,"debut":"2026-05-08"},{"id":701542,"name":"Will Warren","jersey":"29","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":27,"birth_date":"1999-06-16","birth_country":"USA","height":"6' 2\"","weight":200,"debut":"2024-07-30"},{"id":660787,"name":"Yerry De los Santos","jersey":"73","position":"P","position_name":"Pitcher","position_type":"Pitcher","status":"Active","job":null,"bats":"R","throws":"R","age":28,"birth_date":"1997-12-12","birth_country":"Dominican Republic","height":"6' 3\"","weight":230,"debut":"2022-05-25"}],"cached":false,"fetched_at":"2026-11-19T12:22:07.662Z","credits_used":1}

Usage and price

The price is USD 0.002 per actual credit reported in credits_used, with no fixed per-call fee. A response reporting zero credits has zero usage cost. Up to USD 0.002 is reserved for this request; the final price follows reported usage within the configured upper limit. A valid empty result or an unsuccessful lookup can still consume source credits. Cache hits also consume credits.

Coverage and limits

Coverage and update times follow the source. Use the documented field definitions when interpreting the selected result. Requests have a 120-second time budget and a 8 MiB response limit.

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Team id (147) or abbreviation (nyy, lad ...).
Optional parameters (8)
Roster type.
Season year.
Roster on this date (YYYY-MM-DD).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

{
  "applied_filters": {
    "date": null,
    "season": null,
    "type": "active"
  },
  "cached": false,
  "count": 38,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:22:07.662Z",
  "players": [
    {
      "age": 34,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1992-04-26",
      "debut": "2016-08-13",
      "height": "6' 7\"",
      "id": 592450,
      "jersey": "99",
      "job": null,
      "name": "Aaron Judge",
      "position": "RF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 282
    },
    {
      "age": 29,
      "bats": "R",
      "birth_country": "Venezuela",
      "birth_date": "1997-01-20",
      "debut": "2020-08-10",
      "height": "6' 0\"",
      "id": 645305,
      "jersey": "39",
      "job": null,
      "name": "Ali Sánchez",
      "position": "C",
      "position_name": "Catcher",
      "position_type": "Catcher",
      "status": "Active",
      "throws": "R",
      "weight": 200
    },
    {
      "age": 24,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "2002-07-28",
      "debut": "2024-06-03",
      "height": "6' 2\"",
      "id": 683409,
      "jersey": "57",
      "job": null,
      "name": "Angel Chivilli",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 185
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2001-04-28",
      "debut": "2023-03-30",
      "height": "5' 10\"",
      "id": 683011,
      "jersey": "11",
      "job": null,
      "name": "Anthony Volpe",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 197
    },
    {
      "age": 27,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1999-07-12",
      "debut": "2023-09-01",
      "height": "6' 1\"",
      "id": 669224,
      "jersey": "28",
      "job": null,
      "name": "Austin Wells",
      "position": "C",
      "position_name": "Catcher",
      "position_type": "Catcher",
      "status": "Active",
      "throws": "R",
      "weight": 220
    },
    {
      "age": 27,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1999-02-22",
      "debut": "2024-06-18",
      "height": "6' 2\"",
      "id": 700250,
      "jersey": "22",
      "job": null,
      "name": "Ben Rice",
      "position": "DH",
      "position_name": "Designated Hitter",
      "position_type": "Hitter",
      "status": "Active",
      "throws": "R",
      "weight": 228
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1999-02-10",
      "debut": "2026-08-14",
      "height": "6' 4\"",
      "id": 690440,
      "jersey": "93",
      "job": null,
      "name": "Bradley Hanner",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 210
    },
    {
      "age": 28,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1998-10-06",
      "debut": "2026-05-07",
      "height": "6' 2\"",
      "id": 694341,
      "jersey": "89",
      "job": null,
      "name": "Brendan Beck",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 218
    },
    {
      "age": 28,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1997-12-17",
      "debut": "2023-04-19",
      "height": "6' 6\"",
      "id": 687396,
      "jersey": "47",
      "job": null,
      "name": "Brent Headrick",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 235
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2001-02-05",
      "debut": "2025-07-09",
      "height": "6' 6\"",
      "id": 693645,
      "jersey": "31",
      "job": null,
      "name": "Cam Schlittler",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 215
    },
    {
      "age": 23,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "2003-05-25",
      "debut": null,
      "height": "6' 7\"",
      "id": 801739,
      "jersey": null,
      "job": null,
      "name": "Carlos Lagrange",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 248
    },
    {
      "age": 33,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1992-12-10",
      "debut": "2015-04-21",
      "height": "6' 2\"",
      "id": 607074,
      "jersey": "55",
      "job": null,
      "name": "Carlos Rodón",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 255
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2001-08-07",
      "debut": null,
      "height": "6' 2\"",
      "id": 694633,
      "jersey": null,
      "job": null,
      "name": "Chase Hampton",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 225
    },
    {
      "age": 30,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1996-02-20",
      "debut": "2020-09-04",
      "height": "6' 1\"",
      "id": 657376,
      "jersey": "36",
      "job": null,
      "name": "Clarke Schmidt",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 210
    },
    {
      "age": 31,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1995-07-13",
      "debut": "2017-04-25",
      "height": "6' 3\"",
      "id": 641355,
      "jersey": "35",
      "job": null,
      "name": "Cody Bellinger",
      "position": "LF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "L",
      "weight": 204
    },
    {
      "age": 32,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1994-10-10",
      "debut": "2019-09-01",
      "height": "6' 1\"",
      "id": 670280,
      "jersey": "53",
      "job": null,
      "name": "David Bednar",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 250
    },
    {
      "age": 23,
      "bats": "L",
      "birth_country": "Puerto Rico",
      "birth_date": "2003-08-18",
      "debut": "2026-04-29",
      "height": "6' 4\"",
      "id": 695684,
      "jersey": "71",
      "job": null,
      "name": "Elmer Rodríguez",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 177
    },
    {
      "age": 36,
      "bats": "R",
      "birth_country": "Puerto Rico",
      "birth_date": "1990-03-28",
      "debut": "2022-09-02",
      "height": "6' 2\"",
      "id": 518585,
      "jersey": "63",
      "job": null,
      "name": "Fernando Cruz",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 237
    },
    {
      "age": 26,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2000-06-28",
      "debut": null,
      "height": "6' 3\"",
      "id": 682003,
      "jersey": null,
      "job": null,
      "name": "Garrett Martin",
      "position": "RF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 217
    },
    {
      "age": 21,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2005-06-02",
      "debut": "2026-08-04",
      "height": "6' 2\"",
      "id": 806146,
      "jersey": "96",
      "job": null,
      "name": "George Lombard Jr.",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 190
    },
    {
      "age": 36,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1990-09-08",
      "debut": "2013-06-11",
      "height": "6' 4\"",
      "id": 543037,
      "jersey": "45",
      "job": null,
      "name": "Gerrit Cole",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 220
    },
    {
      "age": 37,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1989-11-08",
      "debut": "2010-06-08",
      "height": "6' 5\"",
      "id": 519317,
      "jersey": "27",
      "job": null,
      "name": "Giancarlo Stanton",
      "position": "DH",
      "position_name": "Designated Hitter",
      "position_type": "Hitter",
      "status": "Active",
      "throws": "R",
      "weight": 245
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "Puerto Rico",
      "birth_date": "1999-09-07",
      "debut": "2022-04-10",
      "height": "5' 11\"",
      "id": 671218,
      "jersey": "34",
      "job": null,
      "name": "Heliot Ramos",
      "position": "LF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 235
    },
    {
      "age": 31,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1995-04-24",
      "debut": "2025-03-29",
      "height": "6' 2\"",
      "id": 641555,
      "jersey": "25",
      "job": null,
      "name": "J.C. Escarra",
      "position": "C",
      "position_name": "Catcher",
      "position_type": "Catcher",
      "status": "Active",
      "throws": "R",
      "weight": 220
    },
    {
      "age": 23,
      "bats": "S",
      "birth_country": "Dominican Republic",
      "birth_date": "2003-02-07",
      "debut": "2023-09-01",
      "height": "5' 9\"",
      "id": 691176,
      "jersey": "24",
      "job": null,
      "name": "Jasson Domínguez",
      "position": "RF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 218
    },
    {
      "age": 30,
      "bats": "R",
      "birth_country": "Panama",
      "birth_date": "1996-08-30",
      "debut": "2023-04-15",
      "height": "5' 9\"",
      "id": 676609,
      "jersey": "72",
      "job": null,
      "name": "José Caballero",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 190
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "Venezuela",
      "birth_date": "1999-02-07",
      "debut": "2021-09-07",
      "height": "5' 10\"",
      "id": 665645,
      "jersey": "74",
      "job": null,
      "name": "Kervin Castro",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 234
    },
    {
      "age": 24,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "2002-05-06",
      "debut": null,
      "height": "6' 1\"",
      "id": 694805,
      "jersey": null,
      "job": null,
      "name": "Kyle Carr",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 175
    },
    {
      "age": 26,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "2000-05-16",
      "debut": "2020-08-14",
      "height": "6' 1\"",
      "id": 671277,
      "jersey": "26",
      "job": null,
      "name": "Luis García Jr.",
      "position": "1B",
      "position_name": "First Base",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 216
    },
    {
      "age": 28,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "1998-06-03",
      "debut": "2021-08-03",
      "height": "6' 3\"",
      "id": 661563,
      "jersey": "81",
      "job": null,
      "name": "Luis Gil",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 215
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "2001-09-10",
      "debut": "2023-07-26",
      "height": "6' 1\"",
      "id": 682617,
      "jersey": null,
      "job": null,
      "name": "Marco Luciano",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 215
    },
    {
      "age": 32,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1994-01-18",
      "debut": "2017-08-08",
      "height": "6' 4\"",
      "id": 608331,
      "jersey": "54",
      "job": null,
      "name": "Max Fried",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 190
    },
    {
      "age": 29,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1997-06-11",
      "debut": "2024-04-12",
      "height": "6' 0\"",
      "id": 680474,
      "jersey": "30",
      "job": null,
      "name": "Max Schuemann",
      "position": "LF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 198
    },
    {
      "age": 31,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1994-12-14",
      "debut": "2017-08-12",
      "height": "6' 2\"",
      "id": 641857,
      "jersey": "19",
      "job": null,
      "name": "Ryan McMahon",
      "position": "3B",
      "position_name": "Third Base",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 211
    },
    {
      "age": 26,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1999-12-17",
      "debut": "2020-10-06",
      "height": "6' 1\"",
      "id": 677960,
      "jersey": "40",
      "job": null,
      "name": "Ryan Weathers",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 230
    },
    {
      "age": 25,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "2001-05-14",
      "debut": "2026-05-08",
      "height": "6' 7\"",
      "id": 682987,
      "jersey": "78",
      "job": null,
      "name": "Spencer Jones",
      "position": "CF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "L",
      "weight": 240
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1999-06-16",
      "debut": "2024-07-30",
      "height": "6' 2\"",
      "id": 701542,
      "jersey": "29",
      "job": null,
      "name": "Will Warren",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 200
    },
    {
      "age": 28,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "1997-12-12",
      "debut": "2022-05-25",
      "height": "6' 3\"",
      "id": 660787,
      "jersey": "73",
      "job": null,
      "name": "Yerry De los Santos",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 230
    }
  ],
  "team_id": 147
}

Response result

Response structure

Inferred from examples
  • applied_filtersobject
    • datenull
    • seasonnull
    • typestring
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • playersobject[]
    • ageinteger
    • batsstring
    • birth_countrystring
    • birth_datestring
    • debutstring | null
    • heightstring
    • idinteger
    • jerseystring | null
    • jobnull
    • namestring
    • positionstring
    • position_namestring
    • position_typestring
    • statusstring
    • throwsstring
    • weightinteger
  • team_idinteger

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
MLB team roster (active, 40-man, depth chart, coaches) API · GET · View API reference
$0.002 / billing credit—
—successP50—
Loading...
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 2. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/mlb/v1/roster
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/apish/mlb/v1/roster?output=json&raw=0&team_id=147' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
team_idURL query parametersquerystringYesTeam id (147) or abbreviation (nyy, lad ...).
typeURL query parametersquerystringNoRoster type.

enum: "active", "40Man", "fullSeason", "fullRoster", "depthChart", "allTime", "coach", "nonRosterInvitees", "gameday"

seasonURL query parametersquerystringNoSeason year.
dateURL query parametersquerystringNoRoster on this date (YYYY-MM-DD).
rawURL query parametersquerystringNo0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNoComma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
freshURL query parametersquerystringNo1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNoJSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNoWith output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.

Official example · Live API.SH response · Minimal request
{
  "applied_filters": {
    "date": null,
    "season": null,
    "type": "active"
  },
  "cached": false,
  "count": 38,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:22:07.662Z",
  "players": [
    {
      "age": 34,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1992-04-26",
      "debut": "2016-08-13",
      "height": "6' 7\"",
      "id": 592450,
      "jersey": "99",
      "job": null,
      "name": "Aaron Judge",
      "position": "RF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 282
    },
    {
      "age": 29,
      "bats": "R",
      "birth_country": "Venezuela",
      "birth_date": "1997-01-20",
      "debut": "2020-08-10",
      "height": "6' 0\"",
      "id": 645305,
      "jersey": "39",
      "job": null,
      "name": "Ali Sánchez",
      "position": "C",
      "position_name": "Catcher",
      "position_type": "Catcher",
      "status": "Active",
      "throws": "R",
      "weight": 200
    },
    {
      "age": 24,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "2002-07-28",
      "debut": "2024-06-03",
      "height": "6' 2\"",
      "id": 683409,
      "jersey": "57",
      "job": null,
      "name": "Angel Chivilli",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 185
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2001-04-28",
      "debut": "2023-03-30",
      "height": "5' 10\"",
      "id": 683011,
      "jersey": "11",
      "job": null,
      "name": "Anthony Volpe",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 197
    },
    {
      "age": 27,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1999-07-12",
      "debut": "2023-09-01",
      "height": "6' 1\"",
      "id": 669224,
      "jersey": "28",
      "job": null,
      "name": "Austin Wells",
      "position": "C",
      "position_name": "Catcher",
      "position_type": "Catcher",
      "status": "Active",
      "throws": "R",
      "weight": 220
    },
    {
      "age": 27,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1999-02-22",
      "debut": "2024-06-18",
      "height": "6' 2\"",
      "id": 700250,
      "jersey": "22",
      "job": null,
      "name": "Ben Rice",
      "position": "DH",
      "position_name": "Designated Hitter",
      "position_type": "Hitter",
      "status": "Active",
      "throws": "R",
      "weight": 228
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1999-02-10",
      "debut": "2026-08-14",
      "height": "6' 4\"",
      "id": 690440,
      "jersey": "93",
      "job": null,
      "name": "Bradley Hanner",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 210
    },
    {
      "age": 28,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1998-10-06",
      "debut": "2026-05-07",
      "height": "6' 2\"",
      "id": 694341,
      "jersey": "89",
      "job": null,
      "name": "Brendan Beck",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 218
    },
    {
      "age": 28,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1997-12-17",
      "debut": "2023-04-19",
      "height": "6' 6\"",
      "id": 687396,
      "jersey": "47",
      "job": null,
      "name": "Brent Headrick",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 235
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2001-02-05",
      "debut": "2025-07-09",
      "height": "6' 6\"",
      "id": 693645,
      "jersey": "31",
      "job": null,
      "name": "Cam Schlittler",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 215
    },
    {
      "age": 23,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "2003-05-25",
      "debut": null,
      "height": "6' 7\"",
      "id": 801739,
      "jersey": null,
      "job": null,
      "name": "Carlos Lagrange",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 248
    },
    {
      "age": 33,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1992-12-10",
      "debut": "2015-04-21",
      "height": "6' 2\"",
      "id": 607074,
      "jersey": "55",
      "job": null,
      "name": "Carlos Rodón",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 255
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2001-08-07",
      "debut": null,
      "height": "6' 2\"",
      "id": 694633,
      "jersey": null,
      "job": null,
      "name": "Chase Hampton",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 225
    },
    {
      "age": 30,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1996-02-20",
      "debut": "2020-09-04",
      "height": "6' 1\"",
      "id": 657376,
      "jersey": "36",
      "job": null,
      "name": "Clarke Schmidt",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 210
    },
    {
      "age": 31,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1995-07-13",
      "debut": "2017-04-25",
      "height": "6' 3\"",
      "id": 641355,
      "jersey": "35",
      "job": null,
      "name": "Cody Bellinger",
      "position": "LF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "L",
      "weight": 204
    },
    {
      "age": 32,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1994-10-10",
      "debut": "2019-09-01",
      "height": "6' 1\"",
      "id": 670280,
      "jersey": "53",
      "job": null,
      "name": "David Bednar",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 250
    },
    {
      "age": 23,
      "bats": "L",
      "birth_country": "Puerto Rico",
      "birth_date": "2003-08-18",
      "debut": "2026-04-29",
      "height": "6' 4\"",
      "id": 695684,
      "jersey": "71",
      "job": null,
      "name": "Elmer Rodríguez",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 177
    },
    {
      "age": 36,
      "bats": "R",
      "birth_country": "Puerto Rico",
      "birth_date": "1990-03-28",
      "debut": "2022-09-02",
      "height": "6' 2\"",
      "id": 518585,
      "jersey": "63",
      "job": null,
      "name": "Fernando Cruz",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 237
    },
    {
      "age": 26,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2000-06-28",
      "debut": null,
      "height": "6' 3\"",
      "id": 682003,
      "jersey": null,
      "job": null,
      "name": "Garrett Martin",
      "position": "RF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 217
    },
    {
      "age": 21,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "2005-06-02",
      "debut": "2026-08-04",
      "height": "6' 2\"",
      "id": 806146,
      "jersey": "96",
      "job": null,
      "name": "George Lombard Jr.",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 190
    },
    {
      "age": 36,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1990-09-08",
      "debut": "2013-06-11",
      "height": "6' 4\"",
      "id": 543037,
      "jersey": "45",
      "job": null,
      "name": "Gerrit Cole",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 220
    },
    {
      "age": 37,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1989-11-08",
      "debut": "2010-06-08",
      "height": "6' 5\"",
      "id": 519317,
      "jersey": "27",
      "job": null,
      "name": "Giancarlo Stanton",
      "position": "DH",
      "position_name": "Designated Hitter",
      "position_type": "Hitter",
      "status": "Active",
      "throws": "R",
      "weight": 245
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "Puerto Rico",
      "birth_date": "1999-09-07",
      "debut": "2022-04-10",
      "height": "5' 11\"",
      "id": 671218,
      "jersey": "34",
      "job": null,
      "name": "Heliot Ramos",
      "position": "LF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 235
    },
    {
      "age": 31,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1995-04-24",
      "debut": "2025-03-29",
      "height": "6' 2\"",
      "id": 641555,
      "jersey": "25",
      "job": null,
      "name": "J.C. Escarra",
      "position": "C",
      "position_name": "Catcher",
      "position_type": "Catcher",
      "status": "Active",
      "throws": "R",
      "weight": 220
    },
    {
      "age": 23,
      "bats": "S",
      "birth_country": "Dominican Republic",
      "birth_date": "2003-02-07",
      "debut": "2023-09-01",
      "height": "5' 9\"",
      "id": 691176,
      "jersey": "24",
      "job": null,
      "name": "Jasson Domínguez",
      "position": "RF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 218
    },
    {
      "age": 30,
      "bats": "R",
      "birth_country": "Panama",
      "birth_date": "1996-08-30",
      "debut": "2023-04-15",
      "height": "5' 9\"",
      "id": 676609,
      "jersey": "72",
      "job": null,
      "name": "José Caballero",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 190
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "Venezuela",
      "birth_date": "1999-02-07",
      "debut": "2021-09-07",
      "height": "5' 10\"",
      "id": 665645,
      "jersey": "74",
      "job": null,
      "name": "Kervin Castro",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 234
    },
    {
      "age": 24,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "2002-05-06",
      "debut": null,
      "height": "6' 1\"",
      "id": 694805,
      "jersey": null,
      "job": null,
      "name": "Kyle Carr",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 175
    },
    {
      "age": 26,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "2000-05-16",
      "debut": "2020-08-14",
      "height": "6' 1\"",
      "id": 671277,
      "jersey": "26",
      "job": null,
      "name": "Luis García Jr.",
      "position": "1B",
      "position_name": "First Base",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 216
    },
    {
      "age": 28,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "1998-06-03",
      "debut": "2021-08-03",
      "height": "6' 3\"",
      "id": 661563,
      "jersey": "81",
      "job": null,
      "name": "Luis Gil",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 215
    },
    {
      "age": 25,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "2001-09-10",
      "debut": "2023-07-26",
      "height": "6' 1\"",
      "id": 682617,
      "jersey": null,
      "job": null,
      "name": "Marco Luciano",
      "position": "SS",
      "position_name": "Shortstop",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 215
    },
    {
      "age": 32,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1994-01-18",
      "debut": "2017-08-08",
      "height": "6' 4\"",
      "id": 608331,
      "jersey": "54",
      "job": null,
      "name": "Max Fried",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 190
    },
    {
      "age": 29,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1997-06-11",
      "debut": "2024-04-12",
      "height": "6' 0\"",
      "id": 680474,
      "jersey": "30",
      "job": null,
      "name": "Max Schuemann",
      "position": "LF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "R",
      "weight": 198
    },
    {
      "age": 31,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "1994-12-14",
      "debut": "2017-08-12",
      "height": "6' 2\"",
      "id": 641857,
      "jersey": "19",
      "job": null,
      "name": "Ryan McMahon",
      "position": "3B",
      "position_name": "Third Base",
      "position_type": "Infielder",
      "status": "Active",
      "throws": "R",
      "weight": 211
    },
    {
      "age": 26,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1999-12-17",
      "debut": "2020-10-06",
      "height": "6' 1\"",
      "id": 677960,
      "jersey": "40",
      "job": null,
      "name": "Ryan Weathers",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "L",
      "weight": 230
    },
    {
      "age": 25,
      "bats": "L",
      "birth_country": "USA",
      "birth_date": "2001-05-14",
      "debut": "2026-05-08",
      "height": "6' 7\"",
      "id": 682987,
      "jersey": "78",
      "job": null,
      "name": "Spencer Jones",
      "position": "CF",
      "position_name": "Outfielder",
      "position_type": "Outfielder",
      "status": "Active",
      "throws": "L",
      "weight": 240
    },
    {
      "age": 27,
      "bats": "R",
      "birth_country": "USA",
      "birth_date": "1999-06-16",
      "debut": "2024-07-30",
      "height": "6' 2\"",
      "id": 701542,
      "jersey": "29",
      "job": null,
      "name": "Will Warren",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 200
    },
    {
      "age": 28,
      "bats": "R",
      "birth_country": "Dominican Republic",
      "birth_date": "1997-12-12",
      "debut": "2022-05-25",
      "height": "6' 3\"",
      "id": 660787,
      "jersey": "73",
      "job": null,
      "name": "Yerry De los Santos",
      "position": "P",
      "position_name": "Pitcher",
      "position_type": "Pitcher",
      "status": "Active",
      "throws": "R",
      "weight": 230
    }
  ],
  "team_id": 147
}

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# MLB team roster (active, 40-man, depth chart, coaches) API

Use the MLB team roster (active, 40-man, depth chart, coaches) API to retrieve player records, player or classification position, participant characteristics, record identities and titles and reported status as structured JSON from MLB Stats. Supply team identifier in the query; optionally select record type, season and date to set the requested scope. Use these results to compare squad composition for a team and season or organize registered-player reference lists. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
## Available implementations
apish · MLB team roster (active, 40-man, depth chart, coaches) API: https://openany.si/markets/apis/capabilities/mlb-stats-mlb-team-roster-active-40-man-depth-chart-coaches-api?offering=d2563897-c2f3-4307-a299-0129457f1cc5 · $0.002 / billing credit

## Selected API contract
Documentation: https://openany.si/apis/d2563897-c2f3-4307-a299-0129457f1cc5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/mlb/v1/roster
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/mlb/v1/roster?output=json&raw=0&team_id=147' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "MLB team roster (active, 40-man, depth chart, coaches) API",
  "endpoint": "https://api.openany.si/v1/agent-apis/apish/mlb/v1/roster",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Team id (147) or abbreviation (nyy, lad ...).",
      "location": "query",
      "name": "team_id",
      "nullable": false,
      "required": true,
      "type": "string"
    },
    {
      "description": "Roster type.",
      "enum_values": [
        "active",
        "40Man",
        "fullSeason",
        "fullRoster",
        "depthChart",
        "allTime",
        "coach",
        "nonRosterInvitees",
        "gameday"
      ],
      "location": "query",
      "name": "type",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Season year.",
      "location": "query",
      "name": "season",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Roster on this date (YYYY-MM-DD).",
      "location": "query",
      "name": "date",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
      "enum_values": [
        "0",
        "1"
      ],
      "location": "query",
      "name": "raw",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
      "location": "query",
      "name": "fields",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "1 skips the 24-hour cache and fetches live.",
      "enum_values": [
        "1"
      ],
      "location": "query",
      "name": "fresh",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
      "enum_values": [
        "json"
      ],
      "location": "query",
      "name": "output",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.",
      "location": "query",
      "name": "records",
      "nullable": false,
      "required": false,
      "type": "string"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "rules",
    "parameters": [],
    "policy_version": 2,
    "sale": {
      "addons": [],
      "base_price_micro_usd": "0",
      "max_cost_micro_usd": "2000",
      "quantities": [
        {
          "id": "upstream_credits",
          "label": "Actual API.SH credits consumed",
          "max_quantity": "1",
          "measure": "value",
          "pointer": "/credits_used",
          "price_micro_usd": "2000",
          "quantity_scale": 0,
          "source": "response",
          "unit": "credit",
          "unit_quantity": "1"
        }
      ],
      "rounding": "ceil",
      "variants": []
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example · Live API.SH response · Minimal request",
      "request": {
        "body": null,
        "headers": {},
        "path": {},
        "query": {
          "output": "json",
          "raw": "0",
          "team_id": "147"
        }
      },
      "response_body": {
        "applied_filters": {
          "date": null,
          "season": null,
          "type": "active"
        },
        "cached": false,
        "count": 38,
        "credits_used": 1,
        "fetched_at": "2026-11-19T12:22:07.662Z",
        "players": [
          {
            "age": 34,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1992-04-26",
            "debut": "2016-08-13",
            "height": "6' 7\"",
            "id": 592450,
            "jersey": "99",
            "job": null,
            "name": "Aaron Judge",
            "position": "RF",
            "position_name": "Outfielder",
            "position_type": "Outfielder",
            "status": "Active",
            "throws": "R",
            "weight": 282
          },
          {
            "age": 29,
            "bats": "R",
            "birth_country": "Venezuela",
            "birth_date": "1997-01-20",
            "debut": "2020-08-10",
            "height": "6' 0\"",
            "id": 645305,
            "jersey": "39",
            "job": null,
            "name": "Ali Sánchez",
            "position": "C",
            "position_name": "Catcher",
            "position_type": "Catcher",
            "status": "Active",
            "throws": "R",
            "weight": 200
          },
          {
            "age": 24,
            "bats": "R",
            "birth_country": "Dominican Republic",
            "birth_date": "2002-07-28",
            "debut": "2024-06-03",
            "height": "6' 2\"",
            "id": 683409,
            "jersey": "57",
            "job": null,
            "name": "Angel Chivilli",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 185
          },
          {
            "age": 25,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "2001-04-28",
            "debut": "2023-03-30",
            "height": "5' 10\"",
            "id": 683011,
            "jersey": "11",
            "job": null,
            "name": "Anthony Volpe",
            "position": "SS",
            "position_name": "Shortstop",
            "position_type": "Infielder",
            "status": "Active",
            "throws": "R",
            "weight": 197
          },
          {
            "age": 27,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1999-07-12",
            "debut": "2023-09-01",
            "height": "6' 1\"",
            "id": 669224,
            "jersey": "28",
            "job": null,
            "name": "Austin Wells",
            "position": "C",
            "position_name": "Catcher",
            "position_type": "Catcher",
            "status": "Active",
            "throws": "R",
            "weight": 220
          },
          {
            "age": 27,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1999-02-22",
            "debut": "2024-06-18",
            "height": "6' 2\"",
            "id": 700250,
            "jersey": "22",
            "job": null,
            "name": "Ben Rice",
            "position": "DH",
            "position_name": "Designated Hitter",
            "position_type": "Hitter",
            "status": "Active",
            "throws": "R",
            "weight": 228
          },
          {
            "age": 27,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1999-02-10",
            "debut": "2026-08-14",
            "height": "6' 4\"",
            "id": 690440,
            "jersey": "93",
            "job": null,
            "name": "Bradley Hanner",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 210
          },
          {
            "age": 28,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1998-10-06",
            "debut": "2026-05-07",
            "height": "6' 2\"",
            "id": 694341,
            "jersey": "89",
            "job": null,
            "name": "Brendan Beck",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 218
          },
          {
            "age": 28,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1997-12-17",
            "debut": "2023-04-19",
            "height": "6' 6\"",
            "id": 687396,
            "jersey": "47",
            "job": null,
            "name": "Brent Headrick",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "L",
            "weight": 235
          },
          {
            "age": 25,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "2001-02-05",
            "debut": "2025-07-09",
            "height": "6' 6\"",
            "id": 693645,
            "jersey": "31",
            "job": null,
            "name": "Cam Schlittler",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 215
          },
          {
            "age": 23,
            "bats": "R",
            "birth_country": "Dominican Republic",
            "birth_date": "2003-05-25",
            "debut": null,
            "height": "6' 7\"",
            "id": 801739,
            "jersey": null,
            "job": null,
            "name": "Carlos Lagrange",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 248
          },
          {
            "age": 33,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1992-12-10",
            "debut": "2015-04-21",
            "height": "6' 2\"",
            "id": 607074,
            "jersey": "55",
            "job": null,
            "name": "Carlos Rodón",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "L",
            "weight": 255
          },
          {
            "age": 25,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "2001-08-07",
            "debut": null,
            "height": "6' 2\"",
            "id": 694633,
            "jersey": null,
            "job": null,
            "name": "Chase Hampton",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 225
          },
          {
            "age": 30,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1996-02-20",
            "debut": "2020-09-04",
            "height": "6' 1\"",
            "id": 657376,
            "jersey": "36",
            "job": null,
            "name": "Clarke Schmidt",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 210
          },
          {
            "age": 31,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1995-07-13",
            "debut": "2017-04-25",
            "height": "6' 3\"",
            "id": 641355,
            "jersey": "35",
            "job": null,
            "name": "Cody Bellinger",
            "position": "LF",
            "position_name": "Outfielder",
            "position_type": "Outfielder",
            "status": "Active",
            "throws": "L",
            "weight": 204
          },
          {
            "age": 32,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1994-10-10",
            "debut": "2019-09-01",
            "height": "6' 1\"",
            "id": 670280,
            "jersey": "53",
            "job": null,
            "name": "David Bednar",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 250
          },
          {
            "age": 23,
            "bats": "L",
            "birth_country": "Puerto Rico",
            "birth_date": "2003-08-18",
            "debut": "2026-04-29",
            "height": "6' 4\"",
            "id": 695684,
            "jersey": "71",
            "job": null,
            "name": "Elmer Rodríguez",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 177
          },
          {
            "age": 36,
            "bats": "R",
            "birth_country": "Puerto Rico",
            "birth_date": "1990-03-28",
            "debut": "2022-09-02",
            "height": "6' 2\"",
            "id": 518585,
            "jersey": "63",
            "job": null,
            "name": "Fernando Cruz",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 237
          },
          {
            "age": 26,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "2000-06-28",
            "debut": null,
            "height": "6' 3\"",
            "id": 682003,
            "jersey": null,
            "job": null,
            "name": "Garrett Martin",
            "position": "RF",
            "position_name": "Outfielder",
            "position_type": "Outfielder",
            "status": "Active",
            "throws": "R",
            "weight": 217
          },
          {
            "age": 21,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "2005-06-02",
            "debut": "2026-08-04",
            "height": "6' 2\"",
            "id": 806146,
            "jersey": "96",
            "job": null,
            "name": "George Lombard Jr.",
            "position": "SS",
            "position_name": "Shortstop",
            "position_type": "Infielder",
            "status": "Active",
            "throws": "R",
            "weight": 190
          },
          {
            "age": 36,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1990-09-08",
            "debut": "2013-06-11",
            "height": "6' 4\"",
            "id": 543037,
            "jersey": "45",
            "job": null,
            "name": "Gerrit Cole",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 220
          },
          {
            "age": 37,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1989-11-08",
            "debut": "2010-06-08",
            "height": "6' 5\"",
            "id": 519317,
            "jersey": "27",
            "job": null,
            "name": "Giancarlo Stanton",
            "position": "DH",
            "position_name": "Designated Hitter",
            "position_type": "Hitter",
            "status": "Active",
            "throws": "R",
            "weight": 245
          },
          {
            "age": 27,
            "bats": "R",
            "birth_country": "Puerto Rico",
            "birth_date": "1999-09-07",
            "debut": "2022-04-10",
            "height": "5' 11\"",
            "id": 671218,
            "jersey": "34",
            "job": null,
            "name": "Heliot Ramos",
            "position": "LF",
            "position_name": "Outfielder",
            "position_type": "Outfielder",
            "status": "Active",
            "throws": "R",
            "weight": 235
          },
          {
            "age": 31,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1995-04-24",
            "debut": "2025-03-29",
            "height": "6' 2\"",
            "id": 641555,
            "jersey": "25",
            "job": null,
            "name": "J.C. Escarra",
            "position": "C",
            "position_name": "Catcher",
            "position_type": "Catcher",
            "status": "Active",
            "throws": "R",
            "weight": 220
          },
          {
            "age": 23,
            "bats": "S",
            "birth_country": "Dominican Republic",
            "birth_date": "2003-02-07",
            "debut": "2023-09-01",
            "height": "5' 9\"",
            "id": 691176,
            "jersey": "24",
            "job": null,
            "name": "Jasson Domínguez",
            "position": "RF",
            "position_name": "Outfielder",
            "position_type": "Outfielder",
            "status": "Active",
            "throws": "R",
            "weight": 218
          },
          {
            "age": 30,
            "bats": "R",
            "birth_country": "Panama",
            "birth_date": "1996-08-30",
            "debut": "2023-04-15",
            "height": "5' 9\"",
            "id": 676609,
            "jersey": "72",
            "job": null,
            "name": "José Caballero",
            "position": "SS",
            "position_name": "Shortstop",
            "position_type": "Infielder",
            "status": "Active",
            "throws": "R",
            "weight": 190
          },
          {
            "age": 27,
            "bats": "R",
            "birth_country": "Venezuela",
            "birth_date": "1999-02-07",
            "debut": "2021-09-07",
            "height": "5' 10\"",
            "id": 665645,
            "jersey": "74",
            "job": null,
            "name": "Kervin Castro",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 234
          },
          {
            "age": 24,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "2002-05-06",
            "debut": null,
            "height": "6' 1\"",
            "id": 694805,
            "jersey": null,
            "job": null,
            "name": "Kyle Carr",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "L",
            "weight": 175
          },
          {
            "age": 26,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "2000-05-16",
            "debut": "2020-08-14",
            "height": "6' 1\"",
            "id": 671277,
            "jersey": "26",
            "job": null,
            "name": "Luis García Jr.",
            "position": "1B",
            "position_name": "First Base",
            "position_type": "Infielder",
            "status": "Active",
            "throws": "R",
            "weight": 216
          },
          {
            "age": 28,
            "bats": "R",
            "birth_country": "Dominican Republic",
            "birth_date": "1998-06-03",
            "debut": "2021-08-03",
            "height": "6' 3\"",
            "id": 661563,
            "jersey": "81",
            "job": null,
            "name": "Luis Gil",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 215
          },
          {
            "age": 25,
            "bats": "R",
            "birth_country": "Dominican Republic",
            "birth_date": "2001-09-10",
            "debut": "2023-07-26",
            "height": "6' 1\"",
            "id": 682617,
            "jersey": null,
            "job": null,
            "name": "Marco Luciano",
            "position": "SS",
            "position_name": "Shortstop",
            "position_type": "Infielder",
            "status": "Active",
            "throws": "R",
            "weight": 215
          },
          {
            "age": 32,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1994-01-18",
            "debut": "2017-08-08",
            "height": "6' 4\"",
            "id": 608331,
            "jersey": "54",
            "job": null,
            "name": "Max Fried",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "L",
            "weight": 190
          },
          {
            "age": 29,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1997-06-11",
            "debut": "2024-04-12",
            "height": "6' 0\"",
            "id": 680474,
            "jersey": "30",
            "job": null,
            "name": "Max Schuemann",
            "position": "LF",
            "position_name": "Outfielder",
            "position_type": "Outfielder",
            "status": "Active",
            "throws": "R",
            "weight": 198
          },
          {
            "age": 31,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "1994-12-14",
            "debut": "2017-08-12",
            "height": "6' 2\"",
            "id": 641857,
            "jersey": "19",
            "job": null,
            "name": "Ryan McMahon",
            "position": "3B",
            "position_name": "Third Base",
            "position_type": "Infielder",
            "status": "Active",
            "throws": "R",
            "weight": 211
          },
          {
            "age": 26,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1999-12-17",
            "debut": "2020-10-06",
            "height": "6' 1\"",
            "id": 677960,
            "jersey": "40",
            "job": null,
            "name": "Ryan Weathers",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "L",
            "weight": 230
          },
          {
            "age": 25,
            "bats": "L",
            "birth_country": "USA",
            "birth_date": "2001-05-14",
            "debut": "2026-05-08",
            "height": "6' 7\"",
            "id": 682987,
            "jersey": "78",
            "job": null,
            "name": "Spencer Jones",
            "position": "CF",
            "position_name": "Outfielder",
            "position_type": "Outfielder",
            "status": "Active",
            "throws": "L",
            "weight": 240
          },
          {
            "age": 27,
            "bats": "R",
            "birth_country": "USA",
            "birth_date": "1999-06-16",
            "debut": "2024-07-30",
            "height": "6' 2\"",
            "id": 701542,
            "jersey": "29",
            "job": null,
            "name": "Will Warren",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 200
          },
          {
            "age": 28,
            "bats": "R",
            "birth_country": "Dominican Republic",
            "birth_date": "1997-12-12",
            "debut": "2022-05-25",
            "height": "6' 3\"",
            "id": 660787,
            "jersey": "73",
            "job": null,
            "name": "Yerry De los Santos",
            "position": "P",
            "position_name": "Pitcher",
            "position_type": "Pitcher",
            "status": "Active",
            "throws": "R",
            "weight": 230
          }
        ],
        "team_id": 147
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 9

    Review these request fields before running. Keep the published provider and request method unchanged.

    team_id
    Team id (147) or abbreviation (nyy, lad ...).
    type
    Roster type.
    season
    Season year.
    date
    Roster on this date (YYYY-MM-DD).
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/mlb/v1/roster?output=json&raw=0&team_id=147' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "applied_filters": {
        "date": null,
        "season": null,
        "type": "active"
      },
      "cached": false,
      "count": 38,
      "credits_used": 1,
      "fetched_at": "2026-11-19T12:22:07.662Z",
      "players": [
        {
          "age": 34,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1992-04-26",
          "debut": "2016-08-13",
          "height": "6' 7\"",
          "id": 592450,
          "jersey": "99",
          "job": null,
          "name": "Aaron Judge",
          "position": "RF",
          "position_name": "Outfielder",
          "position_type": "Outfielder",
          "status": "Active",
          "throws": "R",
          "weight": 282
        },
        {
          "age": 29,
          "bats": "R",
          "birth_country": "Venezuela",
          "birth_date": "1997-01-20",
          "debut": "2020-08-10",
          "height": "6' 0\"",
          "id": 645305,
          "jersey": "39",
          "job": null,
          "name": "Ali Sánchez",
          "position": "C",
          "position_name": "Catcher",
          "position_type": "Catcher",
          "status": "Active",
          "throws": "R",
          "weight": 200
        },
        {
          "age": 24,
          "bats": "R",
          "birth_country": "Dominican Republic",
          "birth_date": "2002-07-28",
          "debut": "2024-06-03",
          "height": "6' 2\"",
          "id": 683409,
          "jersey": "57",
          "job": null,
          "name": "Angel Chivilli",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 185
        },
        {
          "age": 25,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "2001-04-28",
          "debut": "2023-03-30",
          "height": "5' 10\"",
          "id": 683011,
          "jersey": "11",
          "job": null,
          "name": "Anthony Volpe",
          "position": "SS",
          "position_name": "Shortstop",
          "position_type": "Infielder",
          "status": "Active",
          "throws": "R",
          "weight": 197
        },
        {
          "age": 27,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1999-07-12",
          "debut": "2023-09-01",
          "height": "6' 1\"",
          "id": 669224,
          "jersey": "28",
          "job": null,
          "name": "Austin Wells",
          "position": "C",
          "position_name": "Catcher",
          "position_type": "Catcher",
          "status": "Active",
          "throws": "R",
          "weight": 220
        },
        {
          "age": 27,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1999-02-22",
          "debut": "2024-06-18",
          "height": "6' 2\"",
          "id": 700250,
          "jersey": "22",
          "job": null,
          "name": "Ben Rice",
          "position": "DH",
          "position_name": "Designated Hitter",
          "position_type": "Hitter",
          "status": "Active",
          "throws": "R",
          "weight": 228
        },
        {
          "age": 27,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1999-02-10",
          "debut": "2026-08-14",
          "height": "6' 4\"",
          "id": 690440,
          "jersey": "93",
          "job": null,
          "name": "Bradley Hanner",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 210
        },
        {
          "age": 28,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1998-10-06",
          "debut": "2026-05-07",
          "height": "6' 2\"",
          "id": 694341,
          "jersey": "89",
          "job": null,
          "name": "Brendan Beck",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 218
        },
        {
          "age": 28,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1997-12-17",
          "debut": "2023-04-19",
          "height": "6' 6\"",
          "id": 687396,
          "jersey": "47",
          "job": null,
          "name": "Brent Headrick",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "L",
          "weight": 235
        },
        {
          "age": 25,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "2001-02-05",
          "debut": "2025-07-09",
          "height": "6' 6\"",
          "id": 693645,
          "jersey": "31",
          "job": null,
          "name": "Cam Schlittler",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 215
        },
        {
          "age": 23,
          "bats": "R",
          "birth_country": "Dominican Republic",
          "birth_date": "2003-05-25",
          "debut": null,
          "height": "6' 7\"",
          "id": 801739,
          "jersey": null,
          "job": null,
          "name": "Carlos Lagrange",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 248
        },
        {
          "age": 33,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1992-12-10",
          "debut": "2015-04-21",
          "height": "6' 2\"",
          "id": 607074,
          "jersey": "55",
          "job": null,
          "name": "Carlos Rodón",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "L",
          "weight": 255
        },
        {
          "age": 25,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "2001-08-07",
          "debut": null,
          "height": "6' 2\"",
          "id": 694633,
          "jersey": null,
          "job": null,
          "name": "Chase Hampton",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 225
        },
        {
          "age": 30,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1996-02-20",
          "debut": "2020-09-04",
          "height": "6' 1\"",
          "id": 657376,
          "jersey": "36",
          "job": null,
          "name": "Clarke Schmidt",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 210
        },
        {
          "age": 31,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1995-07-13",
          "debut": "2017-04-25",
          "height": "6' 3\"",
          "id": 641355,
          "jersey": "35",
          "job": null,
          "name": "Cody Bellinger",
          "position": "LF",
          "position_name": "Outfielder",
          "position_type": "Outfielder",
          "status": "Active",
          "throws": "L",
          "weight": 204
        },
        {
          "age": 32,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1994-10-10",
          "debut": "2019-09-01",
          "height": "6' 1\"",
          "id": 670280,
          "jersey": "53",
          "job": null,
          "name": "David Bednar",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 250
        },
        {
          "age": 23,
          "bats": "L",
          "birth_country": "Puerto Rico",
          "birth_date": "2003-08-18",
          "debut": "2026-04-29",
          "height": "6' 4\"",
          "id": 695684,
          "jersey": "71",
          "job": null,
          "name": "Elmer Rodríguez",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 177
        },
        {
          "age": 36,
          "bats": "R",
          "birth_country": "Puerto Rico",
          "birth_date": "1990-03-28",
          "debut": "2022-09-02",
          "height": "6' 2\"",
          "id": 518585,
          "jersey": "63",
          "job": null,
          "name": "Fernando Cruz",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 237
        },
        {
          "age": 26,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "2000-06-28",
          "debut": null,
          "height": "6' 3\"",
          "id": 682003,
          "jersey": null,
          "job": null,
          "name": "Garrett Martin",
          "position": "RF",
          "position_name": "Outfielder",
          "position_type": "Outfielder",
          "status": "Active",
          "throws": "R",
          "weight": 217
        },
        {
          "age": 21,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "2005-06-02",
          "debut": "2026-08-04",
          "height": "6' 2\"",
          "id": 806146,
          "jersey": "96",
          "job": null,
          "name": "George Lombard Jr.",
          "position": "SS",
          "position_name": "Shortstop",
          "position_type": "Infielder",
          "status": "Active",
          "throws": "R",
          "weight": 190
        },
        {
          "age": 36,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1990-09-08",
          "debut": "2013-06-11",
          "height": "6' 4\"",
          "id": 543037,
          "jersey": "45",
          "job": null,
          "name": "Gerrit Cole",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 220
        },
        {
          "age": 37,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1989-11-08",
          "debut": "2010-06-08",
          "height": "6' 5\"",
          "id": 519317,
          "jersey": "27",
          "job": null,
          "name": "Giancarlo Stanton",
          "position": "DH",
          "position_name": "Designated Hitter",
          "position_type": "Hitter",
          "status": "Active",
          "throws": "R",
          "weight": 245
        },
        {
          "age": 27,
          "bats": "R",
          "birth_country": "Puerto Rico",
          "birth_date": "1999-09-07",
          "debut": "2022-04-10",
          "height": "5' 11\"",
          "id": 671218,
          "jersey": "34",
          "job": null,
          "name": "Heliot Ramos",
          "position": "LF",
          "position_name": "Outfielder",
          "position_type": "Outfielder",
          "status": "Active",
          "throws": "R",
          "weight": 235
        },
        {
          "age": 31,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1995-04-24",
          "debut": "2025-03-29",
          "height": "6' 2\"",
          "id": 641555,
          "jersey": "25",
          "job": null,
          "name": "J.C. Escarra",
          "position": "C",
          "position_name": "Catcher",
          "position_type": "Catcher",
          "status": "Active",
          "throws": "R",
          "weight": 220
        },
        {
          "age": 23,
          "bats": "S",
          "birth_country": "Dominican Republic",
          "birth_date": "2003-02-07",
          "debut": "2023-09-01",
          "height": "5' 9\"",
          "id": 691176,
          "jersey": "24",
          "job": null,
          "name": "Jasson Domínguez",
          "position": "RF",
          "position_name": "Outfielder",
          "position_type": "Outfielder",
          "status": "Active",
          "throws": "R",
          "weight": 218
        },
        {
          "age": 30,
          "bats": "R",
          "birth_country": "Panama",
          "birth_date": "1996-08-30",
          "debut": "2023-04-15",
          "height": "5' 9\"",
          "id": 676609,
          "jersey": "72",
          "job": null,
          "name": "José Caballero",
          "position": "SS",
          "position_name": "Shortstop",
          "position_type": "Infielder",
          "status": "Active",
          "throws": "R",
          "weight": 190
        },
        {
          "age": 27,
          "bats": "R",
          "birth_country": "Venezuela",
          "birth_date": "1999-02-07",
          "debut": "2021-09-07",
          "height": "5' 10\"",
          "id": 665645,
          "jersey": "74",
          "job": null,
          "name": "Kervin Castro",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 234
        },
        {
          "age": 24,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "2002-05-06",
          "debut": null,
          "height": "6' 1\"",
          "id": 694805,
          "jersey": null,
          "job": null,
          "name": "Kyle Carr",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "L",
          "weight": 175
        },
        {
          "age": 26,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "2000-05-16",
          "debut": "2020-08-14",
          "height": "6' 1\"",
          "id": 671277,
          "jersey": "26",
          "job": null,
          "name": "Luis García Jr.",
          "position": "1B",
          "position_name": "First Base",
          "position_type": "Infielder",
          "status": "Active",
          "throws": "R",
          "weight": 216
        },
        {
          "age": 28,
          "bats": "R",
          "birth_country": "Dominican Republic",
          "birth_date": "1998-06-03",
          "debut": "2021-08-03",
          "height": "6' 3\"",
          "id": 661563,
          "jersey": "81",
          "job": null,
          "name": "Luis Gil",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 215
        },
        {
          "age": 25,
          "bats": "R",
          "birth_country": "Dominican Republic",
          "birth_date": "2001-09-10",
          "debut": "2023-07-26",
          "height": "6' 1\"",
          "id": 682617,
          "jersey": null,
          "job": null,
          "name": "Marco Luciano",
          "position": "SS",
          "position_name": "Shortstop",
          "position_type": "Infielder",
          "status": "Active",
          "throws": "R",
          "weight": 215
        },
        {
          "age": 32,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1994-01-18",
          "debut": "2017-08-08",
          "height": "6' 4\"",
          "id": 608331,
          "jersey": "54",
          "job": null,
          "name": "Max Fried",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "L",
          "weight": 190
        },
        {
          "age": 29,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1997-06-11",
          "debut": "2024-04-12",
          "height": "6' 0\"",
          "id": 680474,
          "jersey": "30",
          "job": null,
          "name": "Max Schuemann",
          "position": "LF",
          "position_name": "Outfielder",
          "position_type": "Outfielder",
          "status": "Active",
          "throws": "R",
          "weight": 198
        },
        {
          "age": 31,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "1994-12-14",
          "debut": "2017-08-12",
          "height": "6' 2\"",
          "id": 641857,
          "jersey": "19",
          "job": null,
          "name": "Ryan McMahon",
          "position": "3B",
          "position_name": "Third Base",
          "position_type": "Infielder",
          "status": "Active",
          "throws": "R",
          "weight": 211
        },
        {
          "age": 26,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1999-12-17",
          "debut": "2020-10-06",
          "height": "6' 1\"",
          "id": 677960,
          "jersey": "40",
          "job": null,
          "name": "Ryan Weathers",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "L",
          "weight": 230
        },
        {
          "age": 25,
          "bats": "L",
          "birth_country": "USA",
          "birth_date": "2001-05-14",
          "debut": "2026-05-08",
          "height": "6' 7\"",
          "id": 682987,
          "jersey": "78",
          "job": null,
          "name": "Spencer Jones",
          "position": "CF",
          "position_name": "Outfielder",
          "position_type": "Outfielder",
          "status": "Active",
          "throws": "L",
          "weight": 240
        },
        {
          "age": 27,
          "bats": "R",
          "birth_country": "USA",
          "birth_date": "1999-06-16",
          "debut": "2024-07-30",
          "height": "6' 2\"",
          "id": 701542,
          "jersey": "29",
          "job": null,
          "name": "Will Warren",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 200
        },
        {
          "age": 28,
          "bats": "R",
          "birth_country": "Dominican Republic",
          "birth_date": "1997-12-12",
          "debut": "2022-05-25",
          "height": "6' 3\"",
          "id": 660787,
          "jersey": "73",
          "job": null,
          "name": "Yerry De los Santos",
          "position": "P",
          "position_name": "Pitcher",
          "position_type": "Pitcher",
          "status": "Active",
          "throws": "R",
          "weight": 230
        }
      ],
      "team_id": 147
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use MLB team roster (active, 40-man, depth chart, coaches) API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.