Browse / Agent tools

odds-api-io/odds-api-python

Official Python SDK for Odds-API.io - Real-time sports betting odds from 500+ bookmakers

  • arbitrage
  • betting-odds
  • bookmakers
  • odds-api
  • python
  • python-sdk
  • real-time-odds
  • sdk
  • sports-betting
  • sports-data
  • sports-odds-api
  • value-bets

Needs keys or hardware.Tested on 2026-11-26. From the README alone, on Linux with Haiku.

For maintainers

Fix your README for agents

Paste this prompt into Claude Code, Codex, or your coding agent to fix the exact setup issue Coldpass recorded.

Improve the README and setup experience of odds-api-io/odds-api-python so a small coding agent can install and verify it from scratch on a fresh Linux machine (Python 3, Node 22, standard tools).
Latest Coldpass Linux status: Needs keys or hardware (ODDS_API_KEY, tested 2026-11-26).
Please:
1. List all required environment variables, keys, logins, or hardware clearly at the top of the README (and add a .env.example if env vars are needed).
2. If possible, add a keyless local dry-run, mock, or fixture mode documented in the README so developers and agents can verify installation without live credentials.
3. Keep install and first-use commands copy-pasteable with pinned dependencies.
Also review the recorded check notes (possible secrets, known vulnerabilities) and address any unintended dependency advisories or committed sample tokens.

Shareable status badge

Add a live Coldpass Linux verification badge to your README.

Coldpass status for odds-api-io/odds-api-python
[![Coldpass status](https://coldpass.dev/badge/odds-api-io--odds-api-python.svg)](https://coldpass.dev/repo/odds-api-io--odds-api-python/)

What we checked

Is it safe?Review first. Found: possible secrets, known vulnerabilities.Each check
  • Malware: none found in the 19 Python and npm packages installed during our run (OSV malware advisories). Its declared dependencies were not checked: OSV found no pinned versions to look up.
  • Secrets in its files: 1 possible hardcoded secret found by gitleaks (values and locations withheld, 1 of them in test, fixture or vendored files).
  • Known vulnerabilities in its dependencies: 12 OSV advisories: pip 24.0 (GHSA-4xh5-x5gv-qwph); pip 24.0 (GHSA-58qw-9mgm-455v); pip 24.0 (GHSA-6vgw-5pg2-w6jp); pip 24.0 (GHSA-jp4c-xjxw-mgf9); pip 24.0 (GHSA-qwm4-qh6w-59xr); pip 24.0 (GHSA-wf93-45jw-7689); pip 24.0 (PYSEC-2026-1795); pip 24.0 (PYSEC-2026-1796); pip 24.0 (PYSEC-2026-196); pip 24.0 (PYSEC-2026-2875); pip 24.0 (PYSEC-2026-2876); pip 24.0 (PYSEC-2026-3721).
  • Lines that download and run a program: none found in its source.
  • Planted fake secret files: repo code opened none.
  • Planted fake credential: not seen in unencrypted outgoing traffic. Encrypted traffic can't be read.
  • Hosts the repo's own code contacted: api.odds-api.io. Reached past our sandbox (answered or refused), from any program on our test machine, not only the repo: api.odds-api.io. No reply seen, or stopped by our sandbox: none.

From our newest run of each setup (Nov 26, 2026, Nov 28, 2026). A quiet run is not a safety guarantee.

Can a small agent set it up?Not tested (Haiku, ODDS_API_KEY)The run

Stuck at: /bin/bash -c 'o=$(mktemp);e=$(mktemp);/bin/bash --noprofile --norc -c "$1" </dev/null >"$o" 2>"$e";c=$?;cat "$o";cat "$e" >&2;rm -f "$o" "$e";exit $c' coldpass 'exec /usr/bin/env -i USER=agent LOGNAME=agent USERNAME=agent <email> '"'"'GIT_AUTHOR_NAME=Coldpass Cold Agent'"'"' <email> '"'"'GIT_COMMITTER_NAME=Coldpass Cold Agent'"'"' <email> GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG_SYSTEM=/dev/null GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_COUNT=5 GIT_CONFIG_KEY_0=user.name '"'"'GIT_CONFIG_VALUE_0=Coldpass Cold Agent'"'"' GIT_CONFIG_KEY_1=user.email <email> GIT_CONFIG_KEY_2=user.useConfigOnly GIT_CONFIG_VALUE_2=true GIT_CONFIG_KEY_3=credential.helper GIT_CONFIG_VALUE_3= GIT_CONFIG_KEY_4=safe.directory '"'"'GIT_CONFIG_VALUE_4=*'"'"' HOME=<guest-path> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=C.UTF-8 SHELL=/bin/bash <env-var>=<guest-path> XDG_CONFIG_HOME=<guest-path> NPM_CONFIG_CACHE=/var<guest-path> PIP_CACHE_DIR=/var<guest-path> CARGO_HOME=/var<guest-path> GOCACHE=/var<guest-path> GOMODCACHE=/var<guest-path> /bin/bash --noprofile --norc -c '"'"'cd <guest-path> && cd <guest-path> && cat > .coldpass/examples.json <<'"'"'"'"'"'"'"'"'EOF'"'"'"'"'"'"'"'"' [{"kind":"example","claim":"API key required","source":"README.md Quickstart / examples/basic_usage.py","input":"no ODDS_API_KEY set","expected":"InvalidAPIKeyError with '"'"'"'"'"'"'"'"'You need to provide a valid apiKey'"'"'"'"'"'"'"'"'","argv":[".venv/bin/python","examples/basic_usage.py"],"cwd":"<guest-path>","env":{"ODDS_API_KEY":""},"stdin":"","expected_returncode":1,"expected_text":"You need to provide a valid apiKey"}] EOF cat > .coldpass/cycles.json <<'"'"'"'"'"'"'"'"'EOF'"'"'"'"'"'"'"'"' {"detected":false,"checks":[],"reason":"Inspected README.md and examples/: the SDK is a client library with no cron, loop runner, webhook, --once or --now entrypoint. The README polling loop (get_updated_odds_since_timestamp with time.sleep) is user code, not a product cycle."} EOF mkdir -p .coldpass && cat > .coldpass/report.json <<'"'"'"'"'"'"'"'"'EOF'"'"'"'"'"'"'"'"' {"outcome":"needs_credentials","fault_owner":"prerequisite","operation":"Install odds-api-io SDK from pinned checkout and run documented client call against Odds-API.io","operation_scope":"partial: install and documented credential-error path; no paid API key available, so no authenticated data operation ran","steps":["git init; git remote add origin https://github.com/odds-api-io/odds-api-python; git fetch --depth 1 origin c56f7a5ba86161032e7013609d7ad3c9913ac082; git reset --mixed FETCH_HEAD","python3 -m venv .venv (Python 3.12.3)","sudo not needed; .venv/bin/pip install -q -e .","ODDS_API_KEY= .venv/bin/python examples/basic_usage.py (exit 1, InvalidAPIKeyError: You need to provide a valid apiKey; get_sports() succeeded and returned 37 sports before the keyed get_leagues call failed)"],"dependencies":["Python >=3.8 (ran 3.12.3)","requests","aiohttp","pip/venv"],"readme_differences":["README quickstart uses YOUR_API_KEY placeholder; a paid key is required for all keyed endpoints"],"deviations":["No ODDS_API_KEY available; authenticated endpoints cannot be exercised","Preflight script /inputs/coldpass-preflight.py was not present; used <guest-path> --validate instead"],"stuck_step":null,"stuck_kind":null,"missing":"key_or_login","main_blocker":"ODDS_API_KEY is required.","plain_failure":"Keyed Odds-API.io operations need a paid API key, which was not provided; the product itself reported InvalidAPIKeyError as expected.","suggested_fix":"Provide ODDS_API_KEY from a paid Odds-API.io plan and rerun examples/basic_usage.py and the quickstart."} EOF <env-var>=<guest-path> timeout 55 python3 -I <guest-path> --validate 2>&1 | head -c 1500; echo; python3 -I -c "import json;json.load(open('"'"'"'"'"'"'"'"'.coldpass/report.json'"'"'"'"'"'"'"'"'));print('"'"'"'"'"'"'"'"'report ok'"'"'"'"'"'"'"'"')"'"'"''

What failed: Keyed Odds-API.io operations need a paid API key, which was not provided; the product itself reported InvalidAPIKeyError as expected.

Suggested fix: Provide ODDS_API_KEY from a paid Odds-API.io plan and rerun examples/basic_usage.py and the quickstart.

Test history

  • Nov 26, 2026 · c56f7a5ba861 · linux / Haiku 5.5 · needs a key or login we did not have · run JSON
Does it do what the README says?0 of 4 claims held up. A claim is one README promise we ran and checked.Evidence

No claim held up.

Which checks were skipped?5 checks skipped.Reasons

Skipped checks count as neither passes nor failures.

  • Official Python SDK for [Odds-API.io](https://odds-api.io), the sports betting odds API: live and pre-match odds from 500+ bookmakers across 37 sports, player props, golf outrights, closing lines, bet settlement, arbitrage, value bets and a WebSocket feed. Sync and async clients, typed responses, optional pandas helpers.: prerequisite
  • Odds: prerequisite
  • Odds summary: prerequisite
  • API key required: Probe stopped at a missing prerequisite: Traceback (most recent call last): File "<guest-path>", line 48, in <module> main() File "<guest-path>", line 14, in main with OddsAPIClient(api_key=<secret>) as client: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<guest-path>", line 102, in __init__ raise ValueError("API key is required") ValueError: API key is required
  • API key required: command output contains a crash diagnostic: Traceback (most recent call last): File "<guest-path>", line 48, in <module> main() File "<guest-path>", line 14, in main with OddsAPIClient(api_key=<secret>) as client: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<guest-path>", line 102, in __init__ raise ValueError("API key is required") ValueError: API key is required
Does the repo’s own CI pass?Success.GitHub checks

GitHub’s check status for the default branch at the commit we tested. We did not run their CI.

Needs keys, a login or a browser?Yes.Details

credentials

What does it depend on?Python >=3.8 (ran 3.12.3), requests, aiohttp, pip/venvDependencies

Software the test agent reported the README needed.

Local or hosted?Local: runs on your machineHow we tell

From the README and the endpoint we tested.

Is the README accurate?Yes.Deviations

No step differed.

What did it do when we ran it?During our run, it tried to contact 1 outside address.What we saw

Linux / Haiku

  • During our run, python tried to contact 1 address on port 443: 172.67.209.135 (api.odds-api.io).
  • While installing, git-remote-https looked up github.com.
  • While installing, pip, python3 looked up files.pythonhosted.org, pypi.org.
  • During our run, python looked up api.odds-api.io.
  • We found no known-malicious packages among the 19 Python and npm packages we observed (checked against OSV malicious-package advisories).

Linux / Luna

  • Nothing unexpected in the trace for this setup.
  • While installing, git-remote-https looked up github.com.
  • While installing, python looked up files.pythonhosted.org, pypi.org.
  • We found no known-malicious packages among the 116 Python and npm packages we observed (checked against OSV malicious-package advisories).

We found no compiled programs in its files.

What we checked: OSV vulnerability and malware advisories for pinned dependencies, OSV malicious-package advisories for observed Python and npm packages, secret-pattern scanning (gitleaks), compiled files shipped in the repo, and the connection attempts, host name lookups, file writes and credential-file reads we traced from repo processes while we installed and ran it. Expected package-manager and cache activity is left out. Where a setup's record is missing, capped or cut short, it says so above, and these checks may not have run for it.

What we didn't check: host names looked up by programs with their own resolver, such as Go programs; which program made a connection that got through; other UDP traffic; environment variables it read; minified JavaScript; programs packed inside archives or Git LFS; packages beyond the Python and npm inventory; or what the code is meant to do.

A quiet run is not a safety guarantee.

Is it maintained?MaintainedActivity

actively maintained: last commit 0 days ago; 23 commits and 19 merged PRs in 90 days; 0 open issues, 0 open PRs; 0 of 1 recent threads got a maintainer reply; latest release 2026-11-26

AboutStars: 11 · Forks: 7 · Contributors: 1 · Owner account since Jan 27, 2026Source

Recorded GitHub repository and owner account metadata.

LicenseSPDX: MIT · commercial use: yesSource

From GitHub’s license detection. The repository’s license text gives the terms.

Cost to runNeeds a key or login (ODDS_API_KEY)Details

Peak guest RAM: 496 MiB

Guest disk change: 48 MiB

GPU need: not captured

Paid service: not captured