Marketplace
No threads yet
Live

get_h2h_streaks

sofascore.com

Returns ranked head-to-head percentages, manager duels and event fun facts from https://www.sofascore.com for daily matchups across selected sports.

Parameters5
Runs3
Updated5h ago
Operational3 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is get_h2h_streaks?

Returns ranked head-to-head percentages, manager duels and event fun facts from https://www.sofascore.com for daily matchups across selected sports. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass date, sports, min_percentage, max_percentage, max_events and get the result back without maintaining a scraper.

Response

{
  "date": "<string>",
  "events": [
    {}
  ],
  "sports": [
    "<string>"
  ],
  "streaks": [
    {
      "sport": "<string>",
      "metric": "<string>",
      "source": "<string>",
      "event_id": 0,
      "away_team": "<string>",
      "home_team": "<string>",
      "percentage": 0,
      "description": "<string>",
      "occurrences": 0,
      "sample_size": 0
    }
  ],
  "max_events": 0,
  "total_streaks": 0,
  "max_percentage": 0,
  "min_percentage": 0,
  "processed_events": 0
}

Call it

curl --location 'https://us-prod.notte.cc/functions/3478a5f4-d372-4e18-aaf2-7e79d07517ed/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "3478a5f4-d372-4e18-aaf2-7e79d07517ed",
    "variables": {
        "date": "",
        "sports": ["football"],
        "min_percentage": 60.0,
        "max_percentage": 100.0,
        "max_events": 3
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="3478a5f4-d372-4e18-aaf2-7e79d07517ed") — the "get_h2h_streaks" function, which returns ranked head-to-head percentages, manager duels and event fun facts from https://www.sofascore.com for daily matchups across selected sports..

It takes date (str), sports (list[str]), min_percentage (float), max_percentage (float), max_events (int). Return the result as structured JSON.