SofaScore

SofaScore event at-bat pitches

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.

get/sofascore/event-at-bat-pitches

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/event-at-bat-pitches
  • Auth: API key in header x-api-key

Query parameters

idstring required

Numeric SofaScore baseball event (match) id

at_bat_idstring required

Numeric at-bat id from sofascore-event-at-bats for the same event

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "at_bat_id": 2595879,
    "event_id": 17199139,
    "hitter": {
      "id": 839956,
      "jersey_number": "9",
      "name": "Erling Haaland",
      "position": "F",
      "short_name": "E. Haaland",
      "slug": "erling-haaland"
    },
    "pitcher": {
      "id": 839956,
      "jersey_number": "9",
      "name": "Erling Haaland",
      "position": "F",
      "short_name": "E. Haaland",
      "slug": "erling-haaland"
    },
    "pitches": [
      {
        "end_time": "2026-10-06T22:12:04Z",
        "fielders": [
          {
            "first_name": "Frederick",
            "jersey_number": "5",
            "last_name": "Freeman",
            "player_id": 961444,
            "sequence": 1,
            "type": "putout"
          }
        ],
        "hit_hardness": "medium",
        "hit_location": "20",
        "hit_trajectory": "ground_ball",
        "hit_type": "GB",
        "hit_x": 164.06,
        "hit_y": 164.01,
        "hitter_hand": "R",
        "id": 10178342,
        "inning": 1,
        "inning_half": "top",
        "mlb_x": 137.94,
        "mlb_y": 184.98,
        "mlb_zone": 7,
        "outcome": "kKL",
        "pitch_code": "FF",
        "pitch_count": 1,
        "pitch_description": "Four-Seam Fastball",
        "pitch_speed": 158.04,
        "pitch_type": "FA",
        "pitch_x": 76,
        "pitch_y": -47,
        "pitch_zone": 9,
        "pitcher_hand": "L",
        "runners": [
          {
            "ending_base": 1,
            "jersey_number": "50",
            "outcome_code": "AD1",
            "player_id": 960736,
            "player_name": "Mookie Betts"
          }
        ],
        "sequence": 3,
        "start_time": "2026-10-06T22:11:49Z",
        "status": "official",
        "strike_zone_bottom": 1.563,
        "strike_zone_top": 3.096,
        "strikes": 1,
        "type": "pitch"
      }
    ]
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.