Battle.net · JSON-LD Context

Battle Net Context

JSON-LD context defining the semantic vocabulary for Battle Net from Battle.net.

10 Classes 39 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/
battle: https://battle.net/schema#

Classes

CardBack ErrorResponse CardBackSearchResponse Card CardSearchResponse DeckCard DeckClass Deck MetadataItem Metadata

Properties

Property Type Container
id integer
sortCategory integer
text string
name string
image reference
slug string
code integer
type string
detail string
cardBacks list
cardCount integer
pageCount integer
page integer
collectible integer
classId integer
multiClassIds list
cardTypeId integer
cardSetId integer
rarityId integer
artistName string
health integer
attack integer
manaCost integer
flavorText string
cropImage reference
childIds list
cards list
count integer
deckCode string
version integer
format string
class reference
sets list
setGroups list
classes list
keywords list
types list
rarities list
minionTypes list

JSON-LD Document

Raw ↑
{
  "@context": {
    "@vocab": "https://battle.net/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "battle": "https://battle.net/schema#",
    "CardBack": "battle:CardBack",
    "id": {
      "@id": "battle:id",
      "@type": "xsd:integer"
    },
    "sortCategory": {
      "@id": "battle:sortCategory",
      "@type": "xsd:integer"
    },
    "text": {
      "@id": "battle:text",
      "@type": "xsd:string"
    },
    "name": {
      "@id": "battle:name",
      "@type": "xsd:string"
    },
    "image": {
      "@id": "battle:image",
      "@type": "@id"
    },
    "slug": {
      "@id": "battle:slug",
      "@type": "xsd:string"
    },
    "ErrorResponse": "battle:ErrorResponse",
    "code": {
      "@id": "battle:code",
      "@type": "xsd:integer"
    },
    "type": {
      "@id": "battle:type",
      "@type": "xsd:string"
    },
    "detail": {
      "@id": "battle:detail",
      "@type": "xsd:string"
    },
    "CardBackSearchResponse": "battle:CardBackSearchResponse",
    "cardBacks": {
      "@id": "battle:cardBacks",
      "@container": "@list"
    },
    "cardCount": {
      "@id": "battle:cardCount",
      "@type": "xsd:integer"
    },
    "pageCount": {
      "@id": "battle:pageCount",
      "@type": "xsd:integer"
    },
    "page": {
      "@id": "battle:page",
      "@type": "xsd:integer"
    },
    "Card": "battle:Card",
    "collectible": {
      "@id": "battle:collectible",
      "@type": "xsd:integer"
    },
    "classId": {
      "@id": "battle:classId",
      "@type": "xsd:integer"
    },
    "multiClassIds": {
      "@id": "battle:multiClassIds",
      "@container": "@list"
    },
    "cardTypeId": {
      "@id": "battle:cardTypeId",
      "@type": "xsd:integer"
    },
    "cardSetId": {
      "@id": "battle:cardSetId",
      "@type": "xsd:integer"
    },
    "rarityId": {
      "@id": "battle:rarityId",
      "@type": "xsd:integer"
    },
    "artistName": {
      "@id": "battle:artistName",
      "@type": "xsd:string"
    },
    "health": {
      "@id": "battle:health",
      "@type": "xsd:integer"
    },
    "attack": {
      "@id": "battle:attack",
      "@type": "xsd:integer"
    },
    "manaCost": {
      "@id": "battle:manaCost",
      "@type": "xsd:integer"
    },
    "flavorText": {
      "@id": "battle:flavorText",
      "@type": "xsd:string"
    },
    "cropImage": {
      "@id": "battle:cropImage",
      "@type": "@id"
    },
    "childIds": {
      "@id": "battle:childIds",
      "@container": "@list"
    },
    "CardSearchResponse": "battle:CardSearchResponse",
    "cards": {
      "@id": "battle:cards",
      "@container": "@list"
    },
    "DeckCard": "battle:DeckCard",
    "count": {
      "@id": "battle:count",
      "@type": "xsd:integer"
    },
    "DeckClass": "battle:DeckClass",
    "Deck": "battle:Deck",
    "deckCode": {
      "@id": "battle:deckCode",
      "@type": "xsd:string"
    },
    "version": {
      "@id": "battle:version",
      "@type": "xsd:integer"
    },
    "format": {
      "@id": "battle:format",
      "@type": "xsd:string"
    },
    "class": {
      "@id": "battle:class",
      "@type": "@id"
    },
    "MetadataItem": "battle:MetadataItem",
    "Metadata": "battle:Metadata",
    "sets": {
      "@id": "battle:sets",
      "@container": "@list"
    },
    "setGroups": {
      "@id": "battle:setGroups",
      "@container": "@list"
    },
    "classes": {
      "@id": "battle:classes",
      "@container": "@list"
    },
    "keywords": {
      "@id": "battle:keywords",
      "@container": "@list"
    },
    "types": {
      "@id": "battle:types",
      "@container": "@list"
    },
    "rarities": {
      "@id": "battle:rarities",
      "@container": "@list"
    },
    "minionTypes": {
      "@id": "battle:minionTypes",
      "@container": "@list"
    }
  },
  "@type": "schema:Dataset",
  "schema:name": "Battle.net API JSON-LD context",
  "schema:description": "A JSON-LD @context for the objects Battle.net's own API contract declares: one class per component schema, one property per declared field, typed from the contract. Derived by script (derive-json-ld.py, 2026-11-05) from openapi/battle-net-card-backs-api-openapi.yml, openapi/battle-net-cards-api-openapi.yml, openapi/battle-net-decks-api-openapi.yml.",
  "dcterms:created": "2026-11-05",
  "dcterms:source": [
    "openapi/battle-net-card-backs-api-openapi.yml",
    "openapi/battle-net-cards-api-openapi.yml",
    "openapi/battle-net-decks-api-openapi.yml",
    "openapi/battle-net-metadata-api-openapi.yml"
  ]
}