{"openapi":"3.1.0","info":{"title":"HomeSports public agent API","version":"1.1","description":"Read-only current matchboard snapshots. Inspect source quality and timestamps. Demo records are not real matches; results are opt-in. No full archive or guaranteed real-time telemetry. This is an HTTP API, not an MCP server."},"servers":[{"url":"https://homesports.vercel.app"}],"security":[],"paths":{"/api/agent/site":{"get":{"operationId":"describeSite","summary":"Discover public pages and route families across HomeSports","description":"Static navigation catalog without provider calls. Describes HTML content, supported agent APIs, and coverage gaps. Not a full page-content or historical-data export.","responses":{"200":{"description":"Site-wide route catalog.","content":{"application/json":{"schema":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"language":{"type":"string"},"access":{"type":"object","properties":{"authentication":{"type":"string","const":"none"},"readOnly":{"type":"boolean","const":true},"mcpAvailable":{"type":"boolean","const":false}},"required":["authentication","readOnly","mcpAvailable"],"additionalProperties":false},"coverage":{"type":"string"},"resources":{"type":"object","properties":{"guide":{"type":"string","format":"uri"},"fullGuide":{"type":"string","format":"uri"},"discovery":{"type":"string","format":"uri"},"openapi":{"type":"string","format":"uri"},"sitemap":{"type":"string","format":"uri"},"matches":{"type":"string","format":"uri"}},"required":["guide","fullGuide","discovery","openapi","sitemap","matches"],"additionalProperties":false},"pages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"reading":{"type":"string"},"url":{"type":"string","format":"uri"},"format":{"type":"string","const":"text/html"}},"required":["path","title","description","reading","url","format"],"additionalProperties":false}},"routeFamilies":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"reading":{"type":"string"},"urlTemplate":{"type":"string"},"format":{"type":"string","const":"text/html"}},"required":["path","title","description","reading","urlTemplate","format"],"additionalProperties":false}},"exclusions":{"type":"array","items":{"type":"string"}}},"required":["schemaVersion","name","url","language","access","coverage","resources","pages","routeFamilies","exclusions"],"additionalProperties":false}}}}}}},"/api/agent/matches":{"get":{"operationId":"listMatches","summary":"Read public League of Legends or Valorant matches","description":"Poll at most once per minute per game. Follow pagination.next for the current snapshot. Provider data can be partial or stale even on HTTP 200. Cite match.url. Score inclusion must match the user's spoiler preference.","parameters":[{"name":"game","in":"query","required":false,"schema":{"type":"string","enum":["lol","valorant"],"default":"lol"},"description":"Game to query."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["all","running","upcoming","finished"],"default":"all"},"description":"Provider match status."},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":""},"description":"Case-insensitive substring of team, league, tournament, or series names."},{"name":"min_importance","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":5,"default":1},"description":"Minimum editorial importance. Not a probability."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20},"description":"Maximum results per page."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000,"default":0},"description":"Results to skip within this filtered snapshot."},{"name":"include_results","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"Include available series scores only when explicitly requested."}],"responses":{"200":{"description":"Current snapshot. Inspect source.demo and source.status before using data.","content":{"application/json":{"schema":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.1"},"game":{"type":"string","enum":["lol","valorant"]},"source":{"type":"object","properties":{"name":{"type":"string","enum":["PandaScore","Demo"]},"status":{"type":"string","enum":["healthy","not-configured","unavailable"]},"demo":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time","description":"Oldest available timestamp among populated source pages, falling back to load time. Not each record’s change time."},"freshUntil":{"type":["string","null"],"format":"date-time","description":"Earliest known provider-page freshness deadline, or null when unknown. Recheck if it has passed."}},"required":["name","status","demo","updatedAt","freshUntil"],"additionalProperties":false},"coverage":{"type":"string"},"refreshAfterSeconds":{"type":"integer","const":60},"resultsIncluded":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"pagination":{"type":"object","properties":{"offset":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer"},"next":{"type":["string","null"],"format":"uri"}},"required":["offset","limit","total","next"],"additionalProperties":false},"matches":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"integer"},"url":{"type":"string","format":"uri"},"status":{"type":"string","enum":["running","upcoming","finished"]},"startsAt":{"type":["string","null"],"format":"date-time"},"rescheduled":{"type":"boolean"},"league":{"type":"string"},"tournament":{"type":"object","properties":{"id":{"type":["integer","null"]},"name":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"bracketUrl":{"type":["string","null"],"format":"uri"}},"required":["id","name","url","bracketUrl"],"additionalProperties":false},"series":{"type":"object","properties":{"id":{"type":["integer","null"]},"name":{"type":"string"},"url":{"type":["string","null"],"format":"uri"}},"required":["id","name","url"],"additionalProperties":false},"opponents":{"type":"array","items":{"type":"object","properties":{"id":{"type":["integer","null"]},"name":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"score":{"type":"number","description":"Present only when include_results=true and a finite provider score exists."}},"required":["id","name","url"],"additionalProperties":false}},"bestOf":{"type":"integer"},"importance":{"type":"object","properties":{"stars":{"type":"integer","minimum":1,"maximum":5},"reason":{"type":"string"}},"required":["stars","reason"],"additionalProperties":false},"streams":{"type":"array","description":"Provider-listed or source-matched links for running matches only. Empty for upcoming/completed matches; not proof a channel is live.","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"language":{"type":"string"},"official":{"type":"boolean"},"source":{"type":"string"},"sourceUrl":{"type":"string","format":"uri"},"main":{"type":"boolean"}},"required":["url","language","official"],"additionalProperties":false}}},"required":["id","url","status","startsAt","rescheduled","league","tournament","series","opponents","bestOf","importance","streams"],"additionalProperties":false}}},"required":["schemaVersion","game","source","coverage","refreshAfterSeconds","resultsIncluded","warnings","pagination","matches"],"additionalProperties":false}}}},"400":{"description":"Invalid, repeated, or unknown query parameter.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false}}}},"503":{"description":"Feed unavailable. Respect Retry-After; do not interpret as an empty schedule.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false}}}}}}}}}