The Odds API · JSON-LD Context

The Odds Api Context

JSON-LD context defining the semantic vocabulary for The Odds Api from The Odds API.

24 Classes 5 Properties 3 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
odds: https://the-odds-api.com/vocabulary/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Event Sport Bookmaker Team id sport_key sport_title bookmakers markets outcomes key title price point name description completed scores score active group has_outrights previous_timestamp next_timestamp

Properties

Property Type Container
commence_time dateTime
home_team schema:SportsTeam
away_team schema:SportsTeam
last_update dateTime
timestamp dateTime

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "odds": "https://the-odds-api.com/vocabulary/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Event": "schema:SportsEvent",
    "Sport": "schema:SportsOrganization",
    "Bookmaker": "schema:Organization",
    "Team": "schema:SportsTeam",

    "id": "schema:identifier",
    "sport_key": "odds:sportKey",
    "sport_title": "schema:name",
    "commence_time": { "@id": "schema:startDate", "@type": "xsd:dateTime" },
    "home_team": { "@id": "odds:homeTeam", "@type": "schema:SportsTeam" },
    "away_team": { "@id": "odds:awayTeam", "@type": "schema:SportsTeam" },
    "bookmakers": "odds:bookmakers",
    "markets": "odds:markets",
    "outcomes": "odds:outcomes",

    "key": "schema:identifier",
    "title": "schema:name",
    "last_update": { "@id": "schema:dateModified", "@type": "xsd:dateTime" },
    "price": "odds:price",
    "point": "odds:pointSpread",
    "name": "schema:name",
    "description": "schema:description",

    "completed": "odds:completed",
    "scores": "odds:scores",
    "score": "odds:score",

    "active": "odds:active",
    "group": "schema:category",
    "has_outrights": "odds:hasOutrights",

    "timestamp": { "@id": "schema:dateCreated", "@type": "xsd:dateTime" },
    "previous_timestamp": "odds:previousTimestamp",
    "next_timestamp": "odds:nextTimestamp"
  }
}