Lorcana-api.com

How to use lorcana-api.com (real documentation coming soon)

The endpoint for the api is https:// api.lorcana-api.com, using https://lorcana-api.com for requests will not work!

Currently, the API has 2 different subdirectories, /cards/, and /sets/. The /cards/ endpoint is used for everthing card related, and the /sets/ endpoint is used for you guessed it: sets.

Here is a short breakdown on how to use each subdirectory, real documentation for both are these are on their way, for now you have this horrible looking, barley functional page.

/cards/ endpoint

The cards endpoints has 2 different paths, "all", and "fetch"

 -all:

 -fetch:

Using these paths, you can also use parameters to further narrow down your requests

The search parameter

The text parameter is one of the most important parameters, it allows you to filter and sort cards based off of thier values, like only getting cards that cost more than 3 ink.

The syntax for search looks something like this : api.lorcana-api.com/cards/fetch?search=<key><comparison operator><value>. that would look something like this ?search=cost>=2  . You can also chain together multiple clauses by seperating them with semicolons, like this: ?search=Type=Item;Set_Num>1

This is not done yet...

🚧

🚧