Cards

This section of the API documentation is dedicated to managing and accessing data related to individual cards within the Lorcana Trading Card Game. Featuring a couple of powerful endpoints, it enables developers and users to engage deeply with card-specific information.

Card Model

GET /cards/search

The /cards/search endpoint allows users to perform full-text searches on the card database using a query string that supports the full-text search syntax the main site uses. This endpoint is designed to facilitate complex queries to locate specific cards based on various attributes and conditions.

This endpoint is not currently paginated, but in the future it will be.

Query Parameters

Endpoint:

GET https://api.lorcast.com/v0/cards/search

Example Request

curl https://api.lorcast.com/v0/cards/search?q=elsa+set:1+rarity:enchanted
{
  "results": [
    {
      "id": "crd_cbc18e77d7ec4d50bf19650a9a559686",
      "name": "Elsa",
      "version": "Spirit of Winter",
      "layout": "normal",
      "released_at": "2023-08-18",
      "image_uris": {
        "digital": {
          "small": "https://cards.lorcast.io/card/digital/small/crd_cbc18e77d7ec4d50bf19650a9a559686.avif?1709690747",
          "normal": "https://cards.lorcast.io/card/digital/normal/crd_cbc18e77d7ec4d50bf19650a9a559686.avif?1709690747",
          "large": "https://cards.lorcast.io/card/digital/large/crd_cbc18e77d7ec4d50bf19650a9a559686.avif?1709690747"
        }
      },
      "cost": 8,
      "inkwell": false,
      "ink": "Amethyst",
      "type": ["Character"],
      "classifications": ["Floodborn", "Hero", "Queen", "Sorcerer"],
      "text": "Shift 6 (You may pay 6 {I} to play this on top of one of your characters named Elsa.)\nDEEP FREEZE When you play this character, exert up to 2 chosen characters. They can't ready at the start of their next turn.",
      "move_cost": null,
      "strength": 4,
      "willpower": 6,
      "lore": 3,
      "rarity": "Enchanted",
      "illustrators": ["Matthew Robert Davies"],
      "collector_number": "207",
      "lang": "en",
      "flavor_text": null,
      "tcgplayer_id": 510153,
      "legalities": {
        "core": "legal"
      },
      "set": {
        "id": "set_7ecb0e0c71af496a9e0110e23824e0a5",
        "code": "1",
        "name": "The First Chapter"
      },
      "prices": {
        "usd": null,
        "usd_foil": 1267.58
      }
    }
  ]
}

GET /cards/:set/:number

The /cards/:set/:number endpoint provides a method to retrieve a single card by specifying its set identifier and collector number. This endpoint is designed for precise lookups where the user knows the exact set and number of the card they wish to query.

Path Parameters

Endpoint:

GET https://api.lorcast.com/v0/cards/:set/:number

Example Request

curl https://api.lorcast.com/v0/cards/1/207

A successful request returns a single Card object. If no card matches the given set and number, a 404 error is returned.

{
  "id": "crd_cbc18e77d7ec4d50bf19650a9a559686",
  "name": "Elsa",
  "version": "Spirit of Winter",
  "layout": "normal",
  "released_at": "2023-08-18",
  "image_uris": {
    "digital": {
      "small": "https://cards.lorcast.io/card/digital/small/crd_cbc18e77d7ec4d50bf19650a9a559686.avif?1709690747",
      "normal": "https://cards.lorcast.io/card/digital/normal/crd_cbc18e77d7ec4d50bf19650a9a559686.avif?1709690747",
      "large": "https://cards.lorcast.io/card/digital/large/crd_cbc18e77d7ec4d50bf19650a9a559686.avif?1709690747"
    }
  },
  "cost": 8,
  "inkwell": false,
  "ink": "Amethyst",
  "type": ["Character"],
  "classifications": ["Floodborn", "Hero", "Queen", "Sorcerer"],
  "text": "Shift 6 (You may pay 6 {I} to play this on top of one of your characters named Elsa.)\nDEEP FREEZE When you play this character, exert up to 2 chosen characters. They can't ready at the start of their next turn.",
  "move_cost": null,
  "strength": 4,
  "willpower": 6,
  "lore": 3,
  "rarity": "Enchanted",
  "illustrators": ["Matthew Robert Davies"],
  "collector_number": "207",
  "lang": "en",
  "flavor_text": null,
  "tcgplayer_id": 510153,
  "legalities": {
    "core": "legal"
  },
  "set": {
    "id": "set_7ecb0e0c71af496a9e0110e23824e0a5",
    "code": "1",
    "name": "The First Chapter"
  },
  "prices": {
    "usd": null,
    "usd_foil": 1267.58
  }
}