360 Secure SkillHub
360 安全技能中心

Odds for sports events

封装 Odds-API.io v3 API 的轻量 Python CLI,需用户自备 API 密钥。可按运动项目搜索赛事获取事件 ID、列出博彩公司并拉取指定赛事的赔率,支持 --dry-run 预览请求 URL 与 --summary 精简输出,另附端点参考文档。

diegopetrucci
diegopetrucci
热度 90.27
最近更新 2026-05-11 15:50:52
分类:搜索依赖:代码执行 / 第三方 API应用场景:API 集成 / 研究 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add odds-checker-api
Metadata
name
odds-api-io
description
Query Odds-API.io for sports events, bookmakers, and betting odds (e.g., "what are the odds for Inter vs Arsenal", "get odds for Paddy the Baddie vs Gaethje"). Use when you need to call the Odds-API.io v3 API or interpret its responses; requires a user-provided API key.

Odds-API.io

Overview

Use Odds-API.io to search events and fetch odds by event ID. This skill includes a small CLI helper and a concise endpoint reference.

Quick workflow

  1. Provide the API key via ODDS_API_KEY or --api-key (never store it in this skill).
  2. Find sports and bookmakers if needed.
  3. Search for the event to get its ID.
  4. Fetch odds for the event with a bookmaker list.
# 1) List sports and bookmakers
python3 odds-api-io/scripts/odds_api.py sports
python3 odds-api-io/scripts/odds_api.py bookmakers

# 2) Search for an event
python3 odds-api-io/scripts/odds_api.py search --query "Inter vs Arsenal" --sport football

# 3) Fetch odds for the chosen event ID
python3 odds-api-io/scripts/odds_api.py odds --event-id 123456 --bookmakers "Bet365,Unibet"

# Optional: one-step search + odds
python3 odds-api-io/scripts/odds_api.py matchup --query "Inter vs Arsenal" --sport football --bookmakers "Bet365,Unibet"

CLI helper

Use scripts/odds_api.py for API calls. Pass global flags like --api-key and --dry-run before the subcommand. Prefer --dry-run to preview the URL when testing without a key. Use --summary on odds or matchup for a compact output.

Reference material

Load references/odds-api-reference.md for base URL, endpoint summaries, and response fields.