PitchKit
API Reference@pitchkit/data-providerswyscoutFunctions

shots()

function shots(events): WyscoutEvent[];

Defined in: packages/data-providers/src/wyscout/select.ts:25

Shots only.

Not every goal is here. Wyscout tags a goal on the scoring action and on the conceding keeper's Save attempt, and a free kick can be scored directly — measured over six matches, tag 101 sat on 15 shots, 19 save attempts and 3 free kicks. shots(events).filter(isGoal) counts each goal once; events.filter(isGoal) counts most of them twice.

Parameters

ParameterType
eventsreadonly WyscoutEvent[]

Returns

WyscoutEvent[]

On this page