Antwort · Node.js · Drops
Pinnacle-Preisdrops in Node.js pollen
Antwort: GET /v1/drops liefert aktuelle Steam-Moves. OpenAPI-Params: sport, minutes (1–60, Default 15), min_pct/minPct (Default 3), limit (max. 200) plus übliche Marktfilter.
30-Sekunden-Poller (Node 18+)#
const KEY = process.env.PINNFEED_KEY;
const params = new URLSearchParams({
sport: "soccer",
minutes: "15",
min_pct: "4",
limit: "50",
main: "true",
});
async function poll() {
const r = await fetch(`https://pinnfeed.io/v1/drops?${params}`, {
headers: { "x-api-key": KEY, accept: "application/json" },
});
if (!r.ok) throw new Error(`${r.status} ${await r.text()}`);
const body = await r.json();
const drops = body.drops || body || [];
for (const d of drops) {
console.log(d.eventId || d.event?.id, d.market?.type, d.pct ?? d.minPct, d);
}
}
setInterval(() => poll().catch(console.error), 30_000);
poll();
Free deckt Drops ab (verzögert). Sub-Sekunden-Steam: WebSocket auf Builder (€99/Monat) und der Steam-Guide. Bezahlte Pläne: 3-Tage-Test; Karte erforderlich, Belastung nach Tag 3, sofern nicht gekündigt. Bildungsinhalt für Erwachsene (18+).
Fragen, die Leute stellen#
Was misst min_pct?#
Mindest-Prozent-Drop im Fenster. Werte grob 0,5–90 laut OpenAPI.
Kann ich nach Liga filtern?#
Ja — league/leagues (IDs) wie bei /v1/odds.