get-npb-game-results▌
baseball.yahoo.co.jp/get-npb-game-results-oa66vq · updated May 21, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Given a date, return every Nippon Professional Baseball (NPB) game on that day with final score, both teams + team IDs, venue, winning / losing / save pitchers, game status, and the canonical Yahoo game_id — parsed from baseball.yahoo.co.jp's weekly schedule page.
| name | get-npb-game-results |
| title | NPB Game Results by Date |
| description | >- Given a date, return every Nippon Professional Baseball (NPB) game on that day with final score, both teams + team IDs, venue, winning / losing / save pitchers, game status, and the canonical Yahoo game_id — parsed from baseball.yahoo.co.jp's weekly schedule page. |
| website | baseball.yahoo.co.jp |
| category | sports |
| tags | - sports - baseball - npb - japan - schedule - read-only |
| source | 'browserbase: agent-runtime 2026-05-20' |
| updated | '2026-05-20' |
| recommended_method | fetch |
| alternative_methods | - method: browser rationale: >- Functionally equivalent — the page is server-rendered and every field lives in the initial HTML. Use only if the fetch path is ever blocked (it isn't today: 200 OK with no anti-bot, no auth, no proxies needed). Browser pays ~50× the cost for zero added information. |
| verified | false |
| proxies | false |
NPB Game Results by Date
Purpose
Given a calendar date, return every NPB (Nippon Professional Baseball / 日本プロ野球) regular-season and pre-season game on that date — final score, both teams (with team IDs), venue, winning / losing / save pitchers, game status, and the canonical game_id that links to Yahoo's game-detail page. Source is Yahoo Japan's Sportsnavi weekly schedule (baseball.yahoo.co.jp/npb/schedule/). Read-only — never posts, comments, or interacts with users.
When to Use
- Building a daily NPB results digest / RSS / Slack bot.
- Backfilling a season database with scores, pitchers of record, and venues from any single date.
- Discovering the
game_idfor downstream skills that scrape box scores, play-by-play, or stats (e.g./npb/game/{game_id}/score,/npb/game/{game_id}/stats). - Pulling tomorrow's matchups + probable starters (the same page shows pre-game rows with announced pitchers prefixed with
(予)).
Workflow
The site is a server-rendered Vue page with no anti-bot, no auth, no cookies, no rate-limit gate. Every game-row data point (teams, score, pitcher tags, venue, game-id) is in the initial HTML — browse cloud fetch returns 200 with the full markup in ~400 ms. Lead with the fetch path; the rendered browser path is a strict-equivalent fallback that pays a ~50× cost premium for zero added information.
1. Fetch the weekly schedule page
GET https://baseball.yahoo.co.jp/npb/schedule/?date=YYYY-MM-DD
- The
date=query param positions the page to the week containing that date (Mon–Sun, e.g.?date=2026-05-19returns the row block5月18日(月) 〜 5月24日(日)). Confirm via the<li class="bb-scheduleNavi__item">element. - Equivalent (verified identical body):
https://baseball.yahoo.co.jp/npb/schedule/first/all?date=YYYY-MM-DD. Theog:urlcanonicalizes both to/npb/schedule/?date=…. - Farm-league (2軍 / minor-league) schedule lives at
/npb/schedule/farm/all?date=…— same HTML shape, different teams. - No
--proxies, no--verified, no special headers required. Plaincurlworks;browse cloud fetch <url>is the cleanest entry point inside the agent.
2. Parse rows from the schedule table
Each game is one <tr class="bb-scheduleTable__row"> (the row also gets bb-scheduleTable__row--today for the day that matches the server's current date — informational only, do not key on it). Capture these per row:
| Field | Selector / regex | Notes |
|---|---|---|
| Date | <th class="bb-scheduleTable__head" … rowspan="N">5月19日(火)</th> | Only present on the first row of each date; subsequent rows in that date inherit it via the rowspan. Carry forward as you iterate top-to-bottom. |
| Home team name + id | bb-scheduleTable__homeName → <a href="/npb/teams/{id}/index">{name}</a> | id is the integer in the team URL. |
| Away team name + id | bb-scheduleTable__awayName → same pattern | — |
| Home pitchers | <ul class="bb-scheduleTable__homePlayer"> → <li class="bb-scheduleTable__player">(TAG)NAME</li> | Multiple <li> per side. TAG is in parens. See pitcher-tag table below. |
| Away pitchers | <ul class="bb-scheduleTable__awayPlayer"> → same | — |
| Score | <p class="bb-scheduleTable__score"> HOME <span class="bb-scheduleTable__center">-</span> AWAY </p> | Whitespace-padded numbers; empty for un-played / cancelled games. Score order is home–away (matches the surrounding home / away DOM blocks). |
| Start time (pre-game) | <div class="bb-scheduleTable__info"><span>HH:MM</span> | Only present for un-started games. Absent on 試合終了 and 試合中止 rows. |
| Game status + game_id + game URL | <p class="bb-scheduleTable__status"><a href="/npb/game/{game_id}/index">{status}</a></p> | See status enum below. The link target is always /npb/game/{game_id}/index; the live game page may redirect to /top, /score, /live, /stats etc. — {game_id} itself is the stable handle. |
| Venue | <td class="bb-scheduleTable__data bb-scheduleTable__data--stadium">神宮</td> | Last cell of each row. |
| No-game days | <td class="bb-scheduleTable__data bb-scheduleTable__data--nogame" colspan="8">試合はありません</td> | Whole row, no game data. Skip and continue. |
Pitcher tag enum (the character inside the leading parens of each <li class="bb-scheduleTable__player">):
| Tag | Meaning | Encoding note |
|---|---|---|
勝 | Winning pitcher | half-width kanji |
敗 | Losing pitcher | half-width kanji |
S | Save | full-width Latin S (U+FF33) — === 'S'.charCodeAt(0) === 65 will NOT match. Use S or check for both. |
予 | Probable / announced starter (pre-game only) | becomes irrelevant once the game finishes. |
H | Hold (rare, mostly minor leagues) | half-width Latin H. |
Tags only appear on rows with status 試合終了. Pre-game rows show (予)山野 style placeholders; cancelled rows show neither score nor pitchers.
Status enum (text inside the bb-scheduleTable__status link):
| Status (ja) | Romaji | Meaning |
|---|---|---|
試合終了 | shiai shūryō | Final — score + W/L/S pitchers populated. |
試合中止 | shiai chūshi | Cancelled (rain-out, etc.). Score is empty; no pitchers. Often re-scheduled — the same game_id may resurface later in the season. |
見どころ | midokoro | "Highlights / Preview" — same-day game that hasn't started yet. The page shows projected starters tagged (予). |
試合前 | shiai-mae | Future game (later this week). Same shape as 見どころ. |
試合中 | shiai-chū | In-progress (live). Score reflects current inning. (Not seen in our sample but documented in the page's JS bundle.) |
3. Filter by the requested date
The HTTP response is week-scoped, not day-scoped, even when ?date= names a specific day. Carry the inherited <th class="bb-scheduleTable__head"> value forward through subsequent rows in that date block, then filter the parsed games[] array to entries whose date matches the requested day (format: M月D日(曜), e.g. 5月19日(火)). The page also has a <h2 class="bb-head01__title">5月19日(火)</h2> showing the focused day in Japanese — useful for sanity-checking your filter key.
4. (Optional) Hydrate game details
For each game_id, the canonical detail entry point is:
https://baseball.yahoo.co.jp/npb/game/{game_id}/index
which auto-redirects to /top once the game has started. Sibling paths under the same id: /score (box score), /stats (player stats), /live (play-by-play), /preview (lineups + probables), /text (text-cast log). These are out of scope for this skill — fetch them only when downstream callers explicitly need more than the schedule-page row.
Browser fallback
If the fetch path is ever blocked (it isn't today), open the same URL in a browse cloud sessions create session — no --verified / --proxies needed — then browse get html body and apply the same regex set. browse snapshot / browse get text body also work but are noisier than the raw HTML because the table renders inside layout chrome.
Site-Specific Gotchas
(S) = Saveuses full-widthS(U+FF33), not ASCIIS. A naïvetag === 'S'check silently drops every save pitcher. Match/[SS]/or compare codepoints. Verified across iter-1 (2026-05-19, 5 games with saves: 大勢, 岩崎, ハーン, etc.).?date=is week-scoped. The response always contains the full Mon–Sun block surrounding the requested date — never just that single day. Always filter the parsed rows by the date header before returning. Cross-week ranges require multiple fetches stepping by 7 days.- Date headers use Japanese formatting with
rowspaninheritance. The<th class="bb-scheduleTable__head">appears once per date androwspans over the day's game rows. Subsequent rows in the same date block omit the<th>entirely — you must carry forward the most recently-seen date label as you iterate. Filtering bydaterequires the Japanese key (5月19日(火)), not an ISO string; build a Japanese-formatter helper or regex-extract(\d+)月(\d+)日and compare numerically. - Out-of-season dates fall back, they don't 404.
?date=2025-06-15(a past-but-not-current-season date in our 2026-server-time world) returns the closest in-range week (2月2日 〜 2月8日) withstatusCode=200. Always verify the returned week header matches the requested date before parsing. - Rakuten's team_id is
376, not in the 1–12 sequence. All other NPB clubs map cleanly to ids 1–12 (1=巨人, 2=ヤクルト, 3=DeNA, 4=中日, 5=阪神, 6=広島, 7=西武, 8=日本ハム, 9=ロッテ, 11=オリックス, 12=ソフトバンク), but Rakuten Eagles is376. Don't validate-with-a-range-check; trust the/npb/teams/{id}/indexURL as the source of truth. - Cancelled-game rows have a slightly different DOM.
試合中止rows usebb-scheduleTable__home--preGame/bb-scheduleTable__away--preGameclasses (with the--preGamesuffix) instead of the plainbb-scheduleTable__home/bb-scheduleTable__away, omit the pitcher<ul>s entirely, and have an empty<p class="bb-scheduleTable__score">. A regex that requiresbb-scheduleTable__homeName(substring, not exact-class) still catches them because the team-name child div retains its non-suffixed class. Match onhomeName/awayName, not on the parent's exact class string. bb-scheduleTable__row--todayis a UI hint, not a filter. It marks the day the server considers "today" (which may differ from your?date=target). Do not use it to filter — use the date header text. (Observed during 2026-05-20 fetch: today-row was 5/21, not 5/20; the page rolls over before midnight JST.)/npb/schedule/,/npb/schedule/first/all, and/npb/schedule/?all serve identical first-team (1軍) data. The canonical form (perog:url) is/npb/schedule/?date=…. Use that to dedup if you cache.- Farm league is at
/npb/schedule/farm/all?date=…with the same HTML shape but Eastern + Western League teams. Out of scope for the default first-team skill unless the caller explicitly asks. (予)NAMEpitcher entries are projections, not facts. Once the game's status flips to試合終了, the(予)rows are replaced by actual(勝)/(敗)/(S)/(H)tags. Do not emit(予)pitchers in the final-results payload — they are pre-game noise.- No structured JSON endpoint observed. The Sportsnavi mobile / app API (
sportsnavi-app-categoryVary header) is gated by Yahoo Japan app credentials and not callable from a browser session. The HTML page is the canonical public source.
Expected Output
{
"requested_date": "2026-05-19",
"week_range_ja": "5月18日(月) 〜 5月24日(日)",
"league": "first",
"games": [
{
"date_ja": "5月19日(火)",
"date_iso": "2026-05-19",
"game_id": "2021038878",
"game_url": "https://baseball.yahoo.co.jp/npb/game/2021038878/index",
"status": "試合終了",
"status_en": "final",
"start_time_local": null,
"venue": "いわき",
"home": {
"team_id": "2",
"name": "ヤクルト",
"score": 0,
"pitchers": [{ "tag": "敗", "name": "高橋" }]
},
"away": {
"team_id": "1",
"name": "巨人",
"score": 2,
"pitchers": [
{ "tag": "勝", "name": "戸郷" },
{ "tag": "S", "name": "大勢" }
]
},
"winning_pitcher": "戸郷",
"losing_pitcher": "高橋",
"save_pitcher": "大勢",
"hold_pitchers": []
}
]
}
Additional outcome shapes the parser must handle without throwing:
// Cancelled / rained-out game — both scores null, no pitchers.
{
"date_ja": "4月15日(水)", "game_id": "2021038717",
"status": "試合中止", "status_en": "cancelled", "venue": "甲子園",
"home": { "team_id": "5", "name": "阪神", "score": null, "pitchers": [] },
"away": { "team_id": "1", "name": "巨人", "score": null, "pitchers": [] },
"winning_pitcher": null, "losing_pitcher": null, "save_pitcher": null
}
// Pre-game (今日 or future date) — score null, start_time set, pitchers are projections.
{
"date_ja": "5月21日(木)", "game_id": "2021038889",
"status": "見どころ", "status_en": "preview",
"start_time_local": "18:00", "venue": "神宮",
"home": { "team_id": "2", "name": "ヤクルト", "score": null, "pitchers": [{ "tag": "予", "name": "山野" }] },
"away": { "team_id": "1", "name": "巨人", "score": null, "pitchers": [{ "tag": "予", "name": "田中将" }] },
"winning_pitcher": null, "losing_pitcher": null, "save_pitcher": null
}
// No-game day (e.g. Monday off-day) — game array filtered to []; week_range_ja still populated.
{
"requested_date": "2026-05-18",
"week_range_ja": "5月18日(月) 〜 5月24日(日)",
"games": []
}
How to use get-npb-game-results on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add get-npb-game-results
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches get-npb-game-results from GitHub repository baseball.yahoo.co.jp/get-npb-game-results-oa66vq and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate get-npb-game-results. Access the skill through slash commands (e.g., /get-npb-game-results) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★25 reviews- ★★★★★Isabella Rahman· Dec 24, 2024
Keeps context tight: get-npb-game-results is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Mia Desai· Dec 12, 2024
Registry listing for get-npb-game-results matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Tariq Okafor· Nov 3, 2024
Useful defaults in get-npb-game-results — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Diego Huang· Oct 22, 2024
I recommend get-npb-game-results for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Rahul Santra· Sep 13, 2024
Registry listing for get-npb-game-results matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Diego Diallo· Sep 13, 2024
Keeps context tight: get-npb-game-results is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Fatima Abbas· Sep 9, 2024
get-npb-game-results fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Maya Flores· Aug 28, 2024
We added get-npb-game-results from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Pratham Ware· Aug 4, 2024
get-npb-game-results reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Kofi Desai· Aug 4, 2024
get-npb-game-results is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 25