hgservices/apify-actor-espn
hgservices--apify-actor-espnThis tool calls the Actor "hgservices/apify-actor-espn" and retrieves its output results. Actor description: Get live scores, schedules, and game results from ESPN — covering NBA, NFL, MLB, NHL, MLS, EPL, NCAA, and more. Find the next game of any team. No API key needed. Filter by team, date, or status. Empty results explain why.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hgservices--apify-actor-espn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date for 'single' date mode, as YYYYMMDD (or YYYY-MM-DD). | |
| teams | No | Only return games of these teams. Use an ESPN code (LAL, GS, NY, WSH), a common code (GSW, NYK, WAS, LAK) or a team name (Lakers, Golden State Warriors). An entry applies to every selected league. To limit it to one league, add a league prefix, for example nba:LAC. Entries that match no team are reported in a notice item. Leave empty for all teams. | |
| endDate | No | Last day for 'range' date mode, as YYYYMMDD (or YYYY-MM-DD). A range can be up to 366 days. A longer range is cut to 366 days, and the run reports this in a notice item. | |
| leagues | No | League codes: nba, wnba, ncaam (NCAA men's basketball), ncaaw (NCAA women's basketball), nfl, ncaaf (NCAA football), mlb, nhl, mls, epl (English Premier League), laliga, ucl (UEFA Champions League). Ask only for the leagues you need: each league costs one request per day. Example values: ["nba","nfl","mlb","nhl","ncaam","wnba"] | |
| dateMode | No | nextGames: the next games that are not over, from today - per league the next game day, or with 'teams' the next game of each team. Use it for 'when do they play next'. Many leagues skip days (NFL: mostly Thu, Sun, Mon), so 'today' is often empty. today, tomorrow, yesterday: one day. thisWeek: Mon-Sun. thisWeekend: Sat-Sun. next7Days, last7Days: 7 days from or to today. single: 'date'. range: 'startDate' to 'endDate', up to 366 days. Days are in 'timezone'. Example values: "today" | today |
| liveOnly | No | Only games in progress at the moment of the run. Often empty: most games are in the evening (US time). For a schedule or scores, leave it false and read status.state of each game. | |
| timezone | No | IANA timezone (for example America/New_York, America/Los_Angeles, Europe/London). It sets what today, tomorrow and the other relative modes mean, and the time in dateLocal. Use the user's timezone. Example values: "America/New_York" | America/New_York |
| waitSecs | No | Max seconds (0–45, default 30) to cap the wait for the Actor run to reach terminal state. For long-running Actors the response returns at the cap with the current run status; follow `nextStep` to poll via get-actor-run. Set to 0 to fire-and-forget. | |
| startDate | No | First day for 'range' date mode, as YYYYMMDD (or YYYY-MM-DD). | |
| gameStatus | No | pre = scheduled (not started), in = in progress, post = final (also postponed or canceled). Keep all three unless you need only one kind, for example ["post"] for results only. Example values: ["pre","in","post"] | |
| networkFilter | No | Only games on these networks, as ESPN names them (for example ESPN, TNT, ABC, Prime Video). Not case-sensitive. | |
| homeAwayFilter | No | Only with teams: all games of those teams, only their home games, or only their away games. With dateMode nextGames, it finds the next home (or away) game. Example values: "all" | all |
| includeNotices | No | When a run returns no games, or the Actor ignored or changed part of the input, write one item with type 'notice' at the start of the dataset. It says why (for example: no NFL games today, the next ones are on Thursday) and what to change. Game items have type 'game'. Turn this off if your pipeline must get game items only. The explanation is also in the run's status message and in the SUMMARY record. Example values: true | |
| nationalTvOnly | No | Only games on a US national TV or streaming network (ESPN, ABC, TNT, FOX, NBC, CBS, Prime Video and others). | |
| startingWithinHours | No | Only scheduled games that start in the next N hours (1-72). Games in progress and final games are kept. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | No | Advisory guidance RAG Web Browser wrote to its key-value store under the reserved "TIP" key | |
| runId | Yes | Actor run ID | |
| stats | No | Run statistics | |
| status | Yes | Run status: READY | RUNNING | TIMING-OUT | TIMED-OUT | ABORTING | ABORTED | SUCCEEDED | FAILED | |
| actorId | Yes | Stable Apify Actor ID from the run record | |
| summary | Yes | Past-tense summary of the run state | |
| exitCode | No | Actor process exit code; populated for terminal states (especially FAILED) | |
| nextStep | Yes | One primary follow-up action with identifiers interpolated | |
| storages | Yes | Dataset and key-value store metadata, keyed by alias. "default" is always the primary entry. | |
| actorName | No | "username/actor-name" | |
| startedAt | No | ISO timestamp when the run started | |
| finishedAt | No | ISO timestamp when the run finished (terminal states only) | |
| statusMessage | No | Pass-through from Apify run.statusMessage | |
| apifyConsoleUrl | No | Personalized Apify Console link to the run; present only for Console sessions |