22bet.co.ke API22bet.co.ke ↗
Access live sports betting data from 22Bet Kenya via 4 endpoints. Get real-time match scores, odds markets, league lists, and in-play football matches.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/0982369d-a8bf-4b51-b8c2-72a75eaa7364/get_live_all_sports' \ -H 'X-API-Key: $PARSE_API_KEY'
Get all sports currently having live events with match counts and league counts.
No input parameters required.
{
"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": 181,
"leagues_count": 53
},
{
"id": 4,
"name": "Tennis",
"match_count": 62,
"leagues_count": 32
}
]
},
"status": "success"
}
}About the 22bet.co.ke API
The 22bet.co.ke API exposes live sports betting data across 4 endpoints, covering active sports, league listings, in-play football matches, and full match detail including scores and odds markets. The get_live_match_details endpoint returns structured betting markets with outcome types, prices, and parameters for any currently live match, making it straightforward to monitor shifting odds in real time.
What the API Covers
The 22bet.co.ke API provides four endpoints focused entirely on live (in-play) sports data from 22Bet Kenya. get_live_all_sports returns an array of sport objects — each with an id, name, match_count, and leagues_count — giving a snapshot of which sports currently have active events. From there, get_live_leagues_by_sport accepts a sport_id string (e.g. '1' for Football, '4' for Tennis) and returns the leagues within that sport alongside their game_count.
Match Discovery and Detail
get_live_football_matches retrieves all in-play football matches, returning objects that include a match_id, sport, tournament, slug, and a direct url for each match. These match_id values feed into get_live_match_details, which returns the fullest picture available: home_team, away_team, current score (formatted as 'home-away'), status indicating the current match period, league, league_id, sport_id, and sport_name.
Betting Markets
The markets array in get_live_match_details is the core data structure for odds monitoring. Each market object carries a market_group_id and an outcomes array. Every outcome exposes type_id, type_name, price (the decimal odds), and a parameter field that covers handicap lines or over/under totals where relevant. Note that get_live_match_details only works for currently live matches — passing a stale or concluded match_id returns an input_not_found error rather than historical data.
Scope and Freshness
All four endpoints reflect the live state of 22Bet Kenya at call time. There is no pagination on any endpoint; each call returns the full current set. Coverage is limited to in-play events — pre-match odds and upcoming schedules are not part of the current endpoint set.
- Track real-time odds movements across all betting markets for a specific live football match using
markets[].outcomes[].price. - Build a live sports dashboard showing active sport counts and league breakdowns from
get_live_all_sportsandget_live_leagues_by_sport. - Alert users when new in-play football matches appear by polling
get_live_football_matchesand comparingmatch_idsets. - Monitor live score updates for in-play matches by periodically calling
get_live_match_detailsand reading thescoreandstatusfields. - Aggregate handicap and over/under lines from the
parameterfield in match outcomes for line-shopping comparisons. - Filter live events by sport using
sport_idto focus a feed on Tennis, Basketball, or other non-football sports viaget_live_leagues_by_sport.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 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.
Does 22Bet Kenya offer an official public developer API?+
What does `get_live_match_details` return for betting markets?+
markets array where each entry has a market_group_id and an outcomes array. Each outcome includes type_id, type_name, price (decimal odds), and parameter (used for values like handicap lines or totals). The endpoint also returns the current score, match status (period), both team names, and league information.What happens if I pass a match ID for a finished match?+
input_not_found error for any match_id that is no longer live. The endpoint is designed for in-play matches only. Historical results, final scores, or post-match data are not available through the current endpoint set. You can fork this API on Parse and revise it to add an endpoint covering pre-match or settled event data.Does the API cover pre-match (upcoming) odds or only live events?+
get_live_all_sports, get_live_leagues_by_sport, get_live_football_matches, and get_live_match_details — reflect the live state at call time. You can fork this API on Parse and revise it to add an endpoint for pre-match odds and upcoming fixtures.Is match discovery for non-football sports supported?+
get_live_football_matches is specific to football and returns match slugs and IDs for that sport only. For other sports, get_live_leagues_by_sport provides league-level data when a valid sport_id is supplied. Individual match discovery and detailed odds retrieval for non-football sports are not currently exposed as dedicated endpoints. You can fork this API on Parse and revise it to add per-sport match listing endpoints for Tennis, Basketball, or others.