Discover/Co API
live

Co API22bet.co.ke

Access live sports betting data from 22Bet Kenya via 4 endpoints. Get in-play match details, odds markets, league lists, and live football match discovery.

Endpoint health
verified 4d ago
get_live_all_sports
get_live_leagues_by_sport
get_live_football_matches
get_live_match_details
4/4 passing latest checkself-healing
Endpoints
4
Updated
26d ago

What is the Co API?

The 22bet.co.ke API exposes live sports betting data across 4 endpoints, covering in-play match discovery, league listings, and full match details with odds markets. The get_live_match_details endpoint returns current score, match status, home and away teams, and a complete set of betting markets with prices for any live event. Data is limited to currently in-play events and updates dynamically as matches go live or conclude.

Try it

No input parameters required.

api.parse.bot/scraper/0982369d-a8bf-4b51-b8c2-72a75eaa7364/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/0982369d-a8bf-4b51-b8c2-72a75eaa7364/get_live_all_sports' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace 22bet-co-ke-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""22Bet Kenya: live sports, leagues, matches, and betting markets."""
from parse_apis.bet22_kenya_api import Bet22Kenya, MatchNotFound

client = Bet22Kenya()

# List all sports with live events — each carries match and league counts.
for sport in client.sports.list(limit=5):
    print(sport.name, sport.match_count, sport.leagues_count)

# Drill into a sport's leagues via sub-resource navigation.
sport = client.sports.list(limit=1).first()
if sport:
    for league in sport.leagues.list(limit=3):
        print(league.name, league.game_count)

# Discover live football matches and inspect one's betting markets.
match = client.footballmatches.list(limit=1).first()
if match:
    try:
        detail = match.details()
        print(detail.home_team, detail.score, detail.away_team, detail.status)
        for market in detail.markets[:2]:
            for outcome in market.outcomes:
                print(outcome.type_name, outcome.price, outcome.parameter)
    except MatchNotFound as exc:
        print(f"Match expired: {exc}")

print("exercised: sports.list / leagues.list / footballmatches.list / match.details")
All endpoints · 4 totalmissing one? ·

Get all sports currently having live events. Returns each sport's numeric ID, display name, total live match count, and leagues count. The list is dynamic — sports appear only when they have at least one in-play event.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "sports": "array of sport objects with id, name, match_count, and leagues_count"
  },
  "sample": {
    "data": {
      "sports": [
        {
          "id": 1,
          "name": "Football",
          "match_count": 39,
          "leagues_count": 24
        },
        {
          "id": 4,
          "name": "Tennis",
          "match_count": 16,
          "leagues_count": 8
        },
        {
          "id": 3,
          "name": "Basketball",
          "match_count": 25,
          "leagues_count": 15
        }
      ]
    },
    "status": "success"
  }
}

About the Co API

Endpoints and Data Coverage

The API is built around four endpoints that work together. Start with get_live_all_sports to retrieve the current list of sports that have at least one in-play event. Each result includes a numeric id, name, match_count, and leagues_count. This list is fully dynamic — a sport only appears when it has active live events.

Use the sport_id from that response to call get_live_leagues_by_sport, which returns an array of league objects (id, name, game_count) scoped to the selected sport. For football specifically, get_live_football_matches returns every currently in-play football match with its match_id, tournament slug, and full url — making it the primary entry point for bulk football match discovery.

Match Detail and Odds Markets

Passing a match_id to get_live_match_details returns the richest data the API provides: home_team, away_team, current score formatted as home-away, status (current period), league, league_id, sport_id, and a markets array. Each market object carries a market_group_id and an outcomes array where each outcome has a type_id, type_name, price (the decimal odds), and an optional parameter (e.g. handicap lines or totals values).

Limitations and Freshness

All four endpoints reflect live, in-play state only — there is no pre-match or historical data exposed. Match IDs are ephemeral; passing a match_id for a match that has already concluded returns an input_not_found error. Coverage spans multiple sports wherever 22Bet Kenya offers in-play betting, but the available sports and leagues depend entirely on what is live at the moment of the request.

Reliability & maintenanceVerified

The Co API is a managed, monitored endpoint for 22bet.co.ke — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when 22bet.co.ke changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official 22bet.co.ke API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Monitor real-time odds movements across all in-play football markets using price fields from get_live_match_details
  • Build a live odds aggregator by polling get_live_football_matches for active match IDs and fetching their markets
  • Track in-play score and match status updates for multiple sports using score and status fields
  • Identify which sports and leagues are currently active by querying get_live_all_sports and get_live_leagues_by_sport
  • Detect arbitrage opportunities by comparing price values across outcomes within a match's markets array
  • Power a live match dashboard by combining team names, current score, and market data from a single get_live_match_details call
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does 22Bet Kenya offer an official developer API?+
22bet.co.ke does not publish a public developer API or developer documentation. This Parse API is how developers access structured live betting data from the site.
What does `get_live_match_details` return beyond the score?+
It returns home_team, away_team, score (formatted as home-away), status (current match period), league, league_id, sport_id, sport_name, and a markets array. Each market includes a market_group_id and an outcomes array where every outcome carries type_id, type_name, price (decimal odds), and an optional parameter for lines such as handicaps or totals.
Does the API cover pre-match or upcoming events?+
Not currently. All four endpoints reflect in-play events only — sports, leagues, and matches appear only while they are live. You can fork this API on Parse and revise it to add endpoints that target pre-match listings.
What happens if I pass a match ID for a match that has finished?+
Match IDs are only valid while the match is in-play. Passing a stale or finished match ID to get_live_match_details returns an input_not_found error. IDs should be refreshed by re-calling get_live_football_matches or get_live_leagues_by_sport frequently.
Does the API expose player-level statistics or bet settlement data?+
Not currently. The API covers match-level data: score, status, team names, league, and betting market odds. Player statistics and bet settlement results are not included. You can fork this API on Parse and revise it to add an endpoint targeting those data points.
Page content last updated . Spec covers 4 endpoints from 22bet.co.ke.
Related APIs in SportsSee all →
sportybet.com API
Get real-time betting odds and live scores for football, basketball, and other sports from SportyBet. Browse upcoming events with full market odds, monitor live matches as they happen, and view sport listings with event counts across multiple markets.
unibet.com API
Access live betting odds, browse sports categories and upcoming matches, and search for specific events across multiple leagues in real-time. Get detailed event information including current odds for thousands of sports matchups to inform your betting decisions.
oddsportal.com API
Track sports betting odds, matches, and results across multiple sports and leagues in real-time, while viewing team standings and match details to stay informed on upcoming games. Access comprehensive betting data and historical results from OddsPortal to compare odds and analyze sports outcomes.
bet9ja.com API
Place and manage sports bets on live events with real-time odds data through Bet9ja's betting platform. Create and decode booking codes to track your wagers and access current betting information across available sports events.
betpawa.com.gh API
Access upcoming, live, and popular sports events from BetPawa Ghana with real-time odds, markets, and detailed match statistics across multiple sports and leagues. Retrieve comprehensive event information including season fixtures, league details, and in-depth match stats.
snai.it API
Get real-time Serie A match information, odds, and top betting opportunities directly from SNAI.it, plus discover live matches and football leagues to inform your betting decisions. Access match details, current odds, and curated top bets all in one place to stay updated on Italian football betting options.
superbet.ro API
Access sports betting data from Superbet.ro, including the full sports and competition hierarchy, pre-match and live event listings, detailed odds, boosted prices, popular accumulator suggestions, and Bet Builder markets.
bet365.com.au API
Browse available sports on bet365 Australia and retrieve current in-play markets with selections and odds across sports.