v4 · REST + WebSocket

Documentazione API

Base URL, endpoint, esempi. Per lo schema completo apri Swagger o ReDoc autogenerati sotto.

Base URL
https://api.aisharp.tech
Autenticazione

Ogni chiamata REST e ogni connessione WS richiede ?apiKey=…. La chiave nasce al primo login dalla pagina di accesso. Non condividerla mai.

Endpoint principali
GET/v4/odds_comparison/eventsSnapshot eventi + quote
WS/v4/odds_wsFeed push realtime (VIP)
GET/v1/dictionariesSport e mercati esposti
GET/v1/account/usageConsumi live del piano
POST/v1/auth/loginLogin e generazione key
Esempio curl
curl "https://api.aisharp.tech/v4/odds_comparison/events?apiKey=YOUR_KEY"
Esempio WebSocket
websocat "wss://api.aisharp.tech/v4/odds_ws?apiKey=YOUR_KEY"
Modello risposta (Event)
{
  "id": "evt_...",
  "sport_id": 1,
  "league_id": null,
  "home": "Genoa",
  "away": "Fiorentina",
  "start_time": "2026-10-10T13:00:00Z",
  "markets": [
    {
      "id": "mkt_...",
      "bet_type_id": 1,        // 1X2
      "period_id": 1,          // Full match
      "outcomes": [
        {
          "id": 1, "name": "1", "handicap": null,
          "odds": [
            { "bookmaker": 1, "value": 3.00 },   // Sisal
            { "bookmaker": 2, "value": 3.05 },   // Eurobet
            { "bookmaker": 3, "value": 3.00 }    // Goldbet
          ]
        }
      ]
    }
  ]
}