API moneyline NBA Pinnacle in tempo reale
Risposta: lo slug PinnFeed per la NBA (e il basket) è basketball. Poll GET /v1/odds?sport=basketball&market=moneyline&main=true su Free/Hobby, o WebSocket "sports":["basketball"],"markets":["moneyline"],"main":true su Builder (€99/mese). Nessuno slug nba — filtra per league.name.
Snapshot REST (Free, ritardo 30 s)#
export PINNFEED_KEY="ps_live_..."
curl -sS -H "x-api-key: $PINNFEED_KEY" \
"https://pinnfeed.io/v1/odds?sport=basketball&market=moneyline&main=true&live=true&limit=20"
Sottoscrizione WebSocket (Builder)#
// Example Node fragment — needs Builder key
const ws = new WebSocket('wss://pinnfeed.io/v1/stream', {
headers: { 'x-api-key': process.env.PINNFEED_KEY },
});
ws.on('open', () => ws.send(JSON.stringify({
type: 'subscribe',
sports: ['basketball'],
markets: ['moneyline'],
main: true,
live: true,
specials: false,
})));
ws.on('message', (buf) => {
const msg = JSON.parse(buf);
if (msg.type === 'ping') ws.send(JSON.stringify({ type: 'pong' }));
// filter NBA: if (event.league?.name?.includes('NBA')) ...
});
CTA#
Builder (99 €/mese). Prova 3 giorni; carta richiesta. REST gratis: signup. Vedi anche: props NBA, sport ids. Storico NBA (EN): historical NBA.
Domande frequenti#
Slug nba o basketball?#
basketball.
Contenuto educativo per adulti?#
Sì (18+).
Contenuto educativo per maggiorenni (18+): non pronostici né promesse di guadagno. In Italia scommetti solo con operatori autorizzati ADM.