Endpoint Playground
Test Crawlora's Get an MLB team roster API with realistic prefilled parameters. Generate a cURL request, inspect the expected structured JSON response, and open the full docs or pricing page when you are ready to integrate this public web data extraction endpoint into your application.
curl "https://api.crawlora.net/api/v1/mlb/team-roster?team_id=<team_id>&roster_type=active" \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| team_id | string | Yes | Numeric MLB team id | |
| season | integer | No | Four-digit season; defaults to current year | |
| roster_type | string | No | active | Roster type |
{
"code": 200,
"data": {
"count": 1,
"fetched_at": "sample",
"players": [
{
"jersey_number": "sample",
"person": {
"id": 1,
"name": "sample"
},
"position": "sample",
"position_code": "sample",
"status": "ok"
}
],
"roster_type": "sample",
"season": 1,
"source_url": "https://example.com/resource",
"team_id": 1
},
"msg": "OK"
}Public Playground
Sample responses, schemas, request previews, and code snippets are visible before sign in. Create an account when you are ready to save an API key and run authenticated requests.
Returns a team's players, jersey numbers, positions, and roster status. The roster_type enum accepts `active`, `40Man`, and `fullSeason`.
{
"code": 200,
"data": {
"count": 1,
"fetched_at": "sample",
"players": [
{
"jersey_number": "sample",
"person": {
"id": 1,
"name": "sample"
},
"position": "sample",
"position_code": "sample",
"status": "ok"
}
],
"roster_type": "sample",
"season": 1,
"source_url": "https://example.com/resource",
"team_id": 1
},
"msg": "OK"
}curl "https://api.crawlora.net/api/v1/mlb/team-roster?team_id=<team_id>" \
-H "x-api-key: $CRAWLORA_API_KEY"