{"data":{"billing":{"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":[]}},"capabilityId":"3bdc2a04-3ff4-41d1-8eea-e7644f723e86","catalogType":"api","categories":["data"],"dataPlatform":"sofascore","dataPlatformLogoUrl":"https://api.sh/logos/sofascore.png","dataPlatformTranslations":{},"dataProduct":"sports","description":"Get SofaScore Pre-Match Form 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, general statistical streak description, and name to render pre-match form badges, highlight editorial talking points, and enrich odds and preview pages.","descriptionTranslations":{"ar":"استرجع حالة الفرق والسلاسل الإحصائية قبل المباراة من SofaScore عبر OpenAny REST لتلخيص الزخم الأخير والترتيب قبل الانطلاق. أرسل معرف الحدث أو رابط المباراة للحصول على نتائج آخر خمس مباريات ومتوسط التقييم والمركز والسلاسل العامة والمباشرة بصيغة JSON.","ja":"OpenAny REST で SofaScore の試合前フォームとチーム連勝・傾向データを取得し、キックオフ前の勢いや順位を把握できます。イベント ID または試合リンクを指定すると、ホーム・アウェイの直近成績、平均評価、順位、各種連続記録を JSON で返します。","zh":"通过 OpenAny REST 获取 SofaScore 赛前状态与球队走势数据，在开赛前快速掌握近期战绩、积分排名与连胜连败趋势。传入赛事编号或比赛链接，即可获取主客队近五场走势、场均评分、联赛排名及综合与交锋趋势的 JSON 数据。"},"effectContentHtml":"","executionMode":"sync","id":"924c9f1b-508b-4f5b-8133-87d03f6affbb","includedContentHtml":"","inputs":[{"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.","location":"query","name":"event_id","nullable":false,"required":true,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"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.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/sofascore.png","method":"GET","name":"SofaScore pre-match form and streaks API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eSofaScore Pre-Match Form API\u003c/h2\u003e\n\u003cp\u003ePass event_id as a SofaScore numeric ID or match URL to pull pre-match context. The response pairs pregame_form (homeTeam and awayTeam form arrays, avgRating, position and points value) with team_streaks.general[] and team_streaks.head2head[].\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired query: event_id (SofaScore event ID or match URL). Optional: raw=0, fields, fresh=1, output=json.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · SofaScore pre-match form and streaks API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eRender pre-match form badges\u003c/strong\u003e: Display W/D/L sequences, table positions and average ratings side by side.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eHighlight editorial talking points\u003c/strong\u003e: Surface team_streaks.general[] and head2head[] trends like unbeaten runs or both-teams-to-score streaks.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eEnrich odds and preview pages\u003c/strong\u003e: Combine pre-match streaks with Event Odds and Head-to-Head APIs for comprehensive match previews.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eevent_id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRequested SofaScore event identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epregame_form.label\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eForm summary label such as Pts\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epregame_form.homeTeam.avgRating\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHome team average SofaScore rating\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epregame_form.homeTeam.position\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHome team current competition rank\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epregame_form.homeTeam.form\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRecent home team W/D/L form sequence\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epregame_form.awayTeam.avgRating\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAway team average SofaScore rating\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epregame_form.awayTeam.form\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRecent away team W/D/L form sequence\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eteam_streaks.general[].name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eGeneral statistical streak description\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eteam_streaks.general[].value\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eStreak length or ratio value\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eteam_streaks.head2head[].name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHead-to-head statistical streak description\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/form \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode event_id=16363907 \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=0\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/924c9f1b-508b-4f5b-8133-87d03f6affbb\"\u003ePublished SofaScore Pre-Match Form API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat does pregame_form.homeTeam.form contain?\u003c/h3\u003e\n\u003cp\u003eIt contains an array of recent match result codes (such as W, D, L) representing the team\u0026#39;s recent form sequence.\u003c/p\u003e\n\u003ch3\u003eWhat is the difference between team_streaks.general and team_streaks.head2head?\u003c/h3\u003e\n\u003cp\u003egeneral covers each team\u0026#39;s recent streaks across all opponents, while head2head covers streaks specifically in meetings between the two teams.\u003c/p\u003e\n\u003ch3\u003eCan event_id be a SofaScore match link?\u003c/h3\u003e\n\u003cp\u003eYes. Pass either a numeric event ID or a full SofaScore match URL.\u003c/p\u003e\n\u003ch3\u003eWhere can I retrieve available past meetings?\u003c/h3\u003e\n\u003cp\u003eUse the SofaScore Head-to-Head API for returned past fixtures between the sides; source coverage does not guarantee a complete history.\u003c/p\u003e\n\u003ch3\u003eHow do I refresh form data right before kickoff?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1 to bypass the 24-hour cache.\u003c/p\u003e\n\u003ch3\u003eCan I trim response fields or request CSV?\u003c/h3\u003e\n\u003cp\u003eOutput is JSON only. Pass raw=0 to omit raw source blocks or use fields to select specific keys.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/sofascore/sofascore-head-to-head-api\"\u003eSofaScore Head-to-Head API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/sofascore/sofascore-event-odds-api\"\u003eSofaScore Event Odds API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/sofascore/sofascore-event-detail-api\"\u003eSofaScore Event Detail API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/sofascore/sofascore-pre-match-form-and-streaks-api?offering=924c9f1b-508b-4f5b-8133-87d03f6affbb","providerId":"apish","publicPath":"/v1/agent-apis/apish/sofascore/v1/event/form","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"event_id":"16363907","output":"json","raw":"0"}},"response_body":{"cached":false,"credits_used":1,"event_id":16363907,"fetched_at":"2026-11-19T12:22:59.536Z","pregame_form":{"awayTeam":{"avgRating":"7.76","form":["W","L","W","W","W"],"position":2,"value":"21"},"homeTeam":{"avgRating":"7.56","form":["D","W","L","W","W"],"position":5,"value":"15"},"label":"Pts"},"team_streaks":{"general":[{"continued":false,"name":"Wins","team":"home","value":"5"},{"continued":false,"name":"Both teams scoring","team":"home","value":"4/5"},{"continued":true,"name":"First to score","team":"away","value":"4/5"},{"continued":false,"name":"Less than 4.5 cards","team":"both","value":"4/5"}],"head2head":[{"continued":false,"name":"No losses","team":"home","value":"5"},{"continued":false,"name":"Less than 4.5 cards","team":"both","value":"4/5"},{"continued":false,"name":"Less than 10.5 corners","team":"both","value":"9/10"}]}}}],"seoDescription":"Get SofaScore Pre-Match Form data via REST or MCP powered by Apish. Pay per call, no subscription or proxies. Built to render pre-match form badges.","updatedAt":"2026-12-03T02:55:25.617Z","usageInstructionsHtml":""}}