# SofaScore attack momentum API

Get SofaScore Attack Momentum data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as event_id, output, raw, and retrieve structured data including requested SofaScore event identifier and signed attack momentum score to build live pressure charts, correlate pressure with goals, and compare period dominance.

Documentation: https://openany.si/sofascore/sofascore-attack-momentum-api/b9a80ef6-7087-415b-af1f-f5461a41edf4/
API ID: b9a80ef6-7087-415b-af1f-f5461a41edf4
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/momentum
Page update time: 2026-12-03T02:55:26.051Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:39:16.210Z. This is not a price-change timestamp.
```json
{
  "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": []
  }
}
```

## Usage and limits
## SofaScore Attack Momentum API

Pass event\_id as a SofaScore numeric match ID or match URL to fetch minute-level attack momentum samples. The response includes period\_count, period\_time and the points\[\] array pairing each minute with a signed momentum value.

## What You Can Build

- **Build live pressure charts**: Plot points\[\].minute against points\[\].value to render home-versus-away momentum graphs.
- **Correlate pressure with goals**: Align momentum spikes with event incidents and shot-map timestamps to study match turning points.
- **Compare period dominance**: Aggregate positive and negative momentum values across halves using period\_count and period\_time.

## Returned Data

| Field | Meaning |
| --- | --- |
| `event_id` | Requested SofaScore event identifier |
| `period_count` | Number of match periods covered |
| `period_time` | Nominal duration in minutes per period |
| `points[].minute` | Match minute for the momentum sample |
| `points[].value` | Signed attack momentum score (positive home, negative away) |
| `cached` | Whether the response was served from cache |
| `fetched_at` | Timestamp when the payload was fetched |
| `credits_used` | Upstream credits consumed for the call |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore attack momentum API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "description": "SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "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."
        }
      },
      "required": [
        "event_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "event_id": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "period_count": {
      "type": "integer"
    },
    "period_time": {
      "type": "integer"
    },
    "points": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "minute": {
            "type": "number"
          },
          "value": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/momentum?event_id=16363907&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "credits_used": 1,
  "event_id": 16363907,
  "fetched_at": "2026-11-19T12:23:01.654Z",
  "period_count": 2,
  "period_time": 45,
  "points": [
    {
      "minute": 1,
      "value": -4
    },
    {
      "minute": 2,
      "value": -4
    },
    {
      "minute": 3,
      "value": -8
    },
    {
      "minute": 4,
      "value": -7
    },
    {
      "minute": 5,
      "value": 19
    },
    {
      "minute": 6,
      "value": 2
    },
    {
      "minute": 7,
      "value": -27
    },
    {
      "minute": 8,
      "value": -21
    },
    {
      "minute": 9,
      "value": -17
    },
    {
      "minute": 10,
      "value": -9
    },
    {
      "minute": 11,
      "value": -12
    },
    {
      "minute": 12,
      "value": -13
    },
    {
      "minute": 13,
      "value": -16
    },
    {
      "minute": 14,
      "value": -17
    },
    {
      "minute": 15,
      "value": -53
    },
    {
      "minute": 16,
      "value": -76
    },
    {
      "minute": 17,
      "value": -45
    },
    {
      "minute": 18,
      "value": -29
    },
    {
      "minute": 19,
      "value": -4
    },
    {
      "minute": 20,
      "value": 7
    },
    {
      "minute": 21,
      "value": 20
    },
    {
      "minute": 22,
      "value": 52
    },
    {
      "minute": 23,
      "value": 32
    },
    {
      "minute": 24,
      "value": 4
    },
    {
      "minute": 25,
      "value": -59
    },
    {
      "minute": 26,
      "value": -34
    },
    {
      "minute": 27,
      "value": -12
    },
    {
      "minute": 28,
      "value": 46
    },
    {
      "minute": 29,
      "value": 100
    },
    {
      "minute": 30,
      "value": 72
    },
    {
      "minute": 31,
      "value": 71
    },
    {
      "minute": 32,
      "value": 62
    },
    {
      "minute": 33,
      "value": 37
    },
    {
      "minute": 34,
      "value": 21
    },
    {
      "minute": 35,
      "value": 49
    },
    {
      "minute": 36,
      "value": 61
    },
    {
      "minute": 37,
      "value": 74
    },
    {
      "minute": 38,
      "value": 65
    },
    {
      "minute": 39,
      "value": 84
    },
    {
      "minute": 40,
      "value": 46
    },
    {
      "minute": 41,
      "value": 20
    },
    {
      "minute": 42,
      "value": 56
    },
    {
      "minute": 43,
      "value": 31
    },
    {
      "minute": 44,
      "value": 63
    },
    {
      "minute": 45,
      "value": 41
    },
    {
      "minute": 45.5,
      "value": -6
    },
    {
      "minute": 46,
      "value": 6
    },
    {
      "minute": 47,
      "value": 10
    },
    {
      "minute": 48,
      "value": 12
    },
    {
      "minute": 49,
      "value": 20
    },
    {
      "minute": 50,
      "value": 16
    },
    {
      "minute": 51,
      "value": 14
    },
    {
      "minute": 52,
      "value": 40
    },
    {
      "minute": 53,
      "value": 30
    },
    {
      "minute": 54,
      "value": 40
    },
    {
      "minute": 55,
      "value": 29
    },
    {
      "minute": 56,
      "value": 21
    },
    {
      "minute": 57,
      "value": 32
    },
    {
      "minute": 58,
      "value": 3
    },
    {
      "minute": 59,
      "value": -2
    },
    {
      "minute": 60,
      "value": -6
    },
    {
      "minute": 61,
      "value": -4
    },
    {
      "minute": 62,
      "value": -9
    },
    {
      "minute": 63,
      "value": -15
    },
    {
      "minute": 64,
      "value": -12
    },
    {
      "minute": 65,
      "value": -20
    },
    {
      "minute": 66,
      "value": -17
    },
    {
      "minute": 67,
      "value": -22
    },
    {
      "minute": 68,
      "value": -21
    },
    {
      "minute": 69,
      "value": -51
    },
    {
      "minute": 70,
      "value": -55
    },
    {
      "minute": 71,
      "value": -41
    },
    {
      "minute": 72,
      "value": -28
    },
    {
      "minute": 73,
      "value": -25
    },
    {
      "minute": 74,
      "value": -67
    },
    {
      "minute": 75,
      "value": -39
    },
    {
      "minute": 76,
      "value": -14
    },
    {
      "minute": 77,
      "value": 10
    },
    {
      "minute": 78,
      "value": -5
    },
    {
      "minute": 79,
      "value": 7
    },
    {
      "minute": 80,
      "value": -12
    },
    {
      "minute": 81,
      "value": -6
    },
    {
      "minute": 82,
      "value": 8
    },
    {
      "minute": 83,
      "value": -6
    },
    {
      "minute": 84,
      "value": -11
    },
    {
      "minute": 85,
      "value": 16
    },
    {
      "minute": 86,
      "value": 12
    },
    {
      "minute": 87,
      "value": 24
    },
    {
      "minute": 88,
      "value": 45
    },
    {
      "minute": 89,
      "value": 35
    },
    {
      "minute": 90,
      "value": 61
    },
    {
      "minute": 90.5,
      "value": 19
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What formats does event_id accept?
Pass either a numeric SofaScore event ID such as 16363907 or a full SofaScore match URL containing the event ID.

### How should positive and negative points[].value numbers be interpreted?
Positive values indicate home-team attacking pressure and negative values indicate away-team pressure at that minute.

### How do I find an event_id before calling this endpoint?
Use the SofaScore Live Events API, Matches by Date API, or Team Matches API to list matches and extract event IDs.

### Does this endpoint return goal or card events?
No. It returns momentum samples and period metadata; pair it with the SofaScore Event Incidents API for goals, cards and substitutions.

### How do I bypass cached responses during a live match?
Pass fresh=1 to skip the 24-hour cache and fetch live upstream data.

### Can I reduce payload size or request CSV output?
Output is JSON only. Pass raw=0 to omit bulky raw source blocks or use fields to select specific keys.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-attack-momentum-api/b9a80ef6-7087-415b-af1f-f5461a41edf4/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
