# RapidAPI · 1xbet-api (cosmx)

Gateway provider `rapidapi-1xbet-api` · call `https://fetchapi.co/api/gw/rapidapi-1xbet-api/<path>` with header `x-api-key` (get a key at https://fetchapi.co/keys) · MCP: tools `search_endpoints`, `get_endpoint`, `call_endpoint` at https://fetchapi.co/api/mcp · listing: https://rapidapi.com/cosmx-cosmx-default/api/1xbet-api/pricing

Upstream plan: Pro: $39/month for 20,000 requests; free tier: Basic: 500 requests/month, hard limit, 10 requests/minute (https://rapidapi.com/cosmx-cosmx-default/api/1xbet-api/pricing).

4 working endpoints, each tested live through this gateway. Endpoints that returned no data in our latest test, write actions and endpoints that need the end user's own login are not listed.

## `rapidapi-1xbet-api.get_game_types` — Get Game Types

`GET /onlinegames/game-types` · ✓ working (tested 2026-11-02) · sampled 2026-10-22, 394 ms

1xBet's casino game categories (slots, live casino...) with their ids and images, for /onlinegames. 1 request.

Fields: `data.categories[].id` game type id; `data.categories[].name` category

```bash
curl "https://fetchapi.co/api/gw/rapidapi-1xbet-api/onlinegames/game-types" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "data": {
  "categories": [
   {
    "id": 1,
    "name": "Slots",
    "text": null,
    "game_id": null,
    "image_url": "https://1xbet.com/genfiles/third-party-files/0ba671730a95af8e2628ee857d8ffe62/1slots.png",
    "banner_url": null,
    "product_id": null
   },
   {
    "id": 37,
    "name": "Live casino",
    "text": null,
    "game_id": null,
    "image_url": "https://1xbet.com/genfiles/third-party-files/bea2039e54f5016c1075c02c844145c0/37live.png",
    "banner_url": null,
    "product_id": null
   },
   {
    "id": 149,
    "name": "Crash",
    "text": null,
    "game_id": null,
    "image_url": "https://1xbet.com/genfiles/third-party-files/da0a1333e0c34e246111c12ed104006f/149crash.png",
    "banner_url": null,
    "product_id": null
   },
   "… 14 more"
  ],
  "total_count": 17
 },
 "status": "success"
}
```

## `rapidapi-1xbet-api.get_leagues_for_sport` — Get leagues for sport

`GET /sports/{id}/leagues` · ✓ working (tested 2026-11-02) · sampled 2026-10-22, 303 ms

The leagues of one sport that have games in play (mode=live) or upcoming (mode=line): league id, name and logo; 27 football leagues in play at 18:50 UTC on 2026-10-22. Optional country filter. 1 request.

| param | required | example / default |
|---|---|---|
| `country` | no |  |
| `id` | yes | 1 |
| `mode` | no | live |
| `lng` | no | en |

Fields: `data[].league_id` league id for /matches and /results/{id}; `data[].league_name` league, e.g. UEFA Europa League

```bash
curl "https://fetchapi.co/api/gw/rapidapi-1xbet-api/sports/1/leagues?lng=en&mode=live" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "data": [
  {
   "logo": "https://v3.traincdn.com/sfiles/logo-champ/52ccc7a2015c783627fbd4d5b4e11049.png",
   "league_id": 118593,
   "league_name": "UEFA Europa League"
  },
  {
   "logo": "https://v3.traincdn.com/sfiles/logo-champ/1e55bf5aae5d34b662c2a624598cebca.png",
   "league_id": 2252762,
   "league_name": "UEFA Conference League"
  },
  {
   "league_id": 889383,
   "league_name": "National Collegiate Athletic Association (NCAA)"
  },
  "… 25 more"
 ],
 "status": "success"
}
```

## `rapidapi-1xbet-api.get_sport` — Get sport

`GET /sports/{id}` · ✓ working (tested 2026-11-01) · sampled 2026-10-22, 244 ms

One sport (by 1xBet sport id) with the leagues that have games in the chosen mode (live or line): league id, name and logo. 1 request.

| param | required | example / default |
|---|---|---|
| `mode` | no | live |
| `id` | yes | 1 |
| `lng` | no | en |

Fields: `data.name` sport; `data.leagues[].league_id` league id for /matches; `data.leagues[].league_name` league, country first

```bash
curl "https://fetchapi.co/api/gw/rapidapi-1xbet-api/sports/1?lng=en&mode=live" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "data": {
  "id": 1,
  "name": "Football",
  "leagues": [
   {
    "logo": "https://v3.traincdn.com/sfiles/logo-champ/52ccc7a2015c783627fbd4d5b4e11049.png",
    "league_id": 118593,
    "league_name": "UEFA Europa League"
   },
   {
    "logo": "https://v3.traincdn.com/sfiles/logo-champ/1e55bf5aae5d34b662c2a624598cebca.png",
    "league_id": 2252762,
    "league_name": "UEFA Conference League"
   },
   {
    "league_id": 889383,
    "league_name": "National Collegiate Athletic Association (NCAA)"
   },
   "… 25 more"
  ]
 },
 "status": "success"
}
```

## `rapidapi-1xbet-api.list_sports` — List Sports

`GET /sports` · ✓ working (tested 2026-11-01) · sampled 2026-10-22, 274 ms

Every sport 1xBet offers, one row each: its numeric id (1 football, 3 basketball, 4 tennis, 2 ice hockey) and name; mode=live lists the sports with games in play, mode=line (default) the pre-match ones. 1 request.

| param | required | example / default |
|---|---|---|
| `mode` | no | live |
| `lng` | no | en |

Fields: `data[].id` 1xBet sport id, for /sports/{id}/leagues and /matches?sport_id; `data[].name` sport name

```bash
curl "https://fetchapi.co/api/gw/rapidapi-1xbet-api/sports?lng=en&mode=live" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "data": [
  {
   "id": 1,
   "name": "Football"
  },
  {
   "id": 4,
   "name": "Tennis"
  },
  {
   "id": 3,
   "name": "Basketball"
  },
  "… 139 more"
 ],
 "status": "success"
}
```
