Endpoint Playground
Returns every pitch of one baseball at-bat from SofaScore, in pitch order: the ball-strike-out count, outcome code, pitch type and name, speed in kilometres per hour, zone, plate location, strike-zone bounds, batter and pitcher hand, the score, and for balls put in play the hit type, trajectory, hardness and location plus runner movements and fielder credits. Get the at-bat id (`at_bat_id`) from sofascore-event-at-bats for the same event. Returns 404 when SofaScore has no pitches for that at-bat, which includes an at-bat id that does not belong to the event.
14 Oct 2026: 7 pitches; 36 fields had a value in every checked item and 4 varied between items.
Sample value profiles: start_time: 2026-10-06; outcome: bB (3), kKL (2), kF (1) and 1 more; sequence: 3 to 9, median 6.
curl 'https://api.crawlora.net/api/v1/sofascore/event-at-bat-pitches?id=17199139&at_bat_id=2595879' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| id | string | Yes | 17199139 | Numeric SofaScore baseball event (match) id |
| at_bat_id | string | Yes | 2595879 | Numeric at-bat id from sofascore-event-at-bats for the same event |
{
"code": 200,
"msg": "OK",
"data": {
"event_id": 17199139,
"at_bat_id": 2595879,
"source_url": "https://api.sofascore.com/api/v1/event/17199139/atbat/2595879/pitches",
"fetched_at": "2026-10-07T17:00:00Z",
"pitcher": {
"id": 960737,
"name": "Chris Sale",
"short_name": "C. Sale",
"slug": "sale-chris",
"position": "SP",
"jersey_number": "51"
},
"hitter": {
"id": 960736,
"name": "Mookie Betts",
"short_name": "M. Betts",
"slug": "betts-mookie",
"position": "SS",
"jersey_number": "50"
},
"count": 7,
"pitches": [
{
"id": 10178342,
"sequence": 3,
"inning": 1,
"inning_half": "top",
"type": "pitch",
"outcome": "kKL",
"status": "official",
"start_time": "2026-10-06T22:11:49Z",
"end_time": "2026-10-06T22:12:04Z",
"balls": 0,
"strikes": 1,
"outs": 0,
"pitch_count": 1,
"pitch_type": "FA",
"pitch_code": "FF",
"pitch_description": "Four-Seam Fastball",
"pitch_speed": 158.04,
"pitch_zone": 9,
"pitcher_hand": "L",
"hitter_hand": "R",
"pitch_x": 76,
"pitch_y": -47,
"mlb_x": 137.94,
"mlb_y": 184.98,
"mlb_zone": 7,
"strike_zone_top": 3.096,
"strike_zone_bottom": 1.563,
"home_team_runs": 0,
"away_team_runs": 0,
"at_bat_over": false,
"hit": false,
"bunt": false,
"wild_pitch": false,
"passed_ball": false,
"double_play": false,
"triple_play": false
},
"...",
{
"id": 10178348,
"sequence": 9,
"inning": 1,
"inning_half": "top",
"type": "pitch",
"outcome": "aS",
"status": "official",
"start_time": "2026-10-06T22:13:41Z",
"end_time": "2026-10-06T22:13:59Z",
"balls": 3,
"strikes": 2,
"outs": 0,
"pitch_count": 7,
"pitch_type": "SL",
"pitch_code": "SL",
"pitch_description": "Slider",
"pitch_speed": 128.59,
"pitch_zone": 1,
"pitcher_hand": "L",
"hitter_hand": "R",
"pitch_x": -41,
"pitch_y": 52,
"mlb_x": 105.6,
"mlb_y": 165.82,
"mlb_zone": 5,
"strike_zone_top": 3.096,
"strike_zone_bottom": 1.563,
"home_team_runs": 0,
"away_team_runs": 0,
"at_bat_over": true,
"hit": true,
"bunt": false,
"wild_pitch": false,
"passed_ball": false,
"double_play": false,
"triple_play": false,
"hit_type": "GB",
"hit_trajectory": "ground_ball",
"hit_hardness": "medium",
"hit_location": "20",
"hit_x": 164.06,
"hit_y": 164.01,
"runners": [
{
"player_id": 960736,
"player_name": "Mookie Betts",
"jersey_number": "50",
"starting_base": 0,
"ending_base": 1,
"out": false,
"outcome_code": "AD1"
}
]
}
]
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.