Keep the meaning

Build richer prop cards with home and away teams, live flags and flash-line details.

  1. 1Read the projection
  2. 2Inspect source_context
  3. 3Render what is present
source_context · Projection JSON
Read context in JavaScript
const response = await fetch(
  "https://prizepicksapi.com/api/v1/projections?league=NBA&limit=5",
  { headers: { Authorization: `Bearer ${process.env.PRIZEPICKS_API_KEY}` } }
);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const { data } = await response.json();
for (const offer of data) {
  console.log(offer.id, offer.line, offer.source_context?.event);
}
Response
pp_16258896 13.5 {
  status: 'created', is_live: false,
  home_team: { abbreviation: 'LAL' },
  away_team: { abbreviation: 'POR' }
}

Key facts

Matchup and game state

Home and away team abbreviations, event status, an is_live flag and end time when the source provides them.

Promotions

Flash lines and discounts are reported in their own fields. The base line field always stays the normalized PrizePicks line.

Popularity

Source-reported popularity rank and trending count ride along with the observation that carried them.

Implementation guide