- Kamigawa Neon Dynasty added.
- Strixhaven (STX) added.
I apologize for missing the past few changelog entries!
- MTGJSON 4.6.2: https://mtgjson.com/changelog/#_4-6-2
- MTGJSON 4.4.1
- Modern Horizons (MH1)
- Updated with latest mtgjson files.
- Ravnica Guild Kit (GK2) added
- GRN Added
- Commander 2018 (C18) Added
- Battlebond (BBD) Added
- Elves vs Inventors (DDU) Added
- Dominaria (DOM) Added
Masters 25 (A25) Added
- Bug fix for booster generation.
- Bug fix for filtering on Urza's Saga.
Rivals of Ixalan added (RIX)
Unstable and Explorers of Ixalan added
DDT and IMA added
Ixalan (XLN) Added
Commander 2017 (C17) Added
Can now filter on id
and multiverseid
via URL query parameters.
- Split cards fixed
- Hour of Devastation (HOU) released
*Note - Patch coming weekend of 7/15-7/16 to address issues with split cards
AKH legalities updated
The text
url parameter now supports logical and/or.
Example: https://api.magicthegathering.io/v1/cards?text=haste,trample,flying
- Duel Decks: Mind vs. Might (late)
- Amonkhet (AKH) released
Modern Masters 2017 (mm3) Released
- Fixed CHK flip cards
- Fixed KLD, AER block information
- Fixed Release date for UNH
Sets Added:
- PCA (Planchase Anthology)
- AER (Aether Revolt)
Fixes issue with using the orderBy parameter with cmc or other integer like strings (power, toughness)
Adds the ability to filter sets by their type, such as core or expansion.
Adds ability to filter on cards that contain a specific field.
For example: https://api.magicthegathering.io/v1/cards?contains=imageUrl
Fixed bug with filtering on foreign name that contains an apostrophe.
Added a new query parameter that allows a user to retrieve cards randomly. Examples below:
https://api.magicthegathering.io/v1/cards?pageSize=1&random=true
https://api.magicthegathering.io/v1/cards?pageSize=10&random=true&rarity=rare
Commander 2016 added. (c16)
Fixes issue with filtering on the name of a card that contains a comma. The comma was still being recognized as a delimited, when that parameter does not allow logical AND operators, only the logical OR (|).
Fixes #14. Wizards has stopped using the Æ symbol in card names in favor of "Ae", with errata.
New endpoint for game formats added:
https://api.magicthegathering.io/v1/formats
The 'colorIdentity' field has also been added to the Card resource.
Kaladesh standard. DTK and ORI dropped from standard.
*Note - this update was a bit slower due to issues with mtgjson. This update DOES introduce issues with flip cards which will have to be patched.
Fixes bug #9 - filtering by layout
Updated Access-Control-Expose-Headers in response to include custom headers. This should fix issues with CORS and trying to access custom headers.
Added support for partial name matching on foreign names:
Partial match:
https://api.magicthegathering.io/v1/cards?name=aplastacráneos&language=spanish&set=ktk
Exact match:
https://api.magicthegathering.io/v1/cards?name="zurgo aplastacráneos"&language=spanish&set=ktk
Added Set: Kaladesh (KLD)
orderBy
query string parameter now supported. Example:
https://api.magicthegathering.io/v1/cards?set=emn&orderBy=cmc
Fields that contain arrays (like colors) can now be filtered on exactly. For example:
https://api.magicthegathering.io/v1/cards?colors="red,blue"
The request above will search for cards that ONLY have the colors Red and Blue. That is, cards with Red, Blue, and another color will not be returned.
Request | Description |
---|---|
https://api.magicthegathering.io/v1/cards?colors="red,blue" |
Cards that only have the colors Red and Blue |
https://api.magicthegathering.io/v1/cards?colors=red,blue |
Cards that at least have the colors Red and Blue |
`https://api.magicthegathering.io/v1/cards?colors=red | blue` |
The id field is now supported when requesting a single card.
For example, previously you could request Zurgo Helmsmasher by its multiverseid with this endpoint:
https://api.magicthegathering.io/v1/cards/386380
Now, you can also request the same card using the id field:
https://api.magicthegathering.io/v1/cards/c0a202d529f57bc6e83cce412850a91dadd050d1
This is important because some cards do not have a multiverseid, but every card has an id. Support for multiverseid is staying in version 1 of the API, but will most likely be removed from version 2. Because of this, it is HIGHLY RECOMMENDED to use the id field from this point on when requesting a specific card.
Added sets:
- From the Vault: Lore
- Conspiracy: Take the Crown
Bug fix for filtering on sets by name. Querying for sets with an apostrophe no longer returns a 500 error. Set names with an apostrophe will also no longer have two single quotes in the response.
- Minor performance improvements
- Multiple new response headers added:
- Link: Link headers with prev, last, next, first links (when appropriate)
- Page-Size: The page size for the request
- Count: The amount of elements returned
- Total-Count: The total number of elements (all pages)
- Ratelimit-Limit: The ratelimit for a given user
- Ratelimit-Remaining: The number of requests left before the ratelimit is exceeded.
Examples:
Link: <http://api.magicthegathering.io/v1/cards?page=311>; rel="last", <http://api.magicthegathering.io/v1/cards?page=2>; rel="next"
Page-Size: 100
Count: 100
Total-Count: 31090
Ratelimit-Limit: 5000
Ratelimit-Remaining: 4999
Temporarily changed pageSize limit to 100 due to overloaded server issues.
Updated legalities for Eldritch Moon
Game format and legality can now be filtered on.
###Get all cards banned from Commander format
https://api.magicthegathering.io/v1/cards?gameFormat=commander&legality=banned
###Get all cards that are legal in Standard format
https://api.magicthegathering.io/v1/cards?gameFormat=standard
The 'Sets' resource can now be filtered via the 'block' url parameter.
###Match a block name exactly (not case sensitive):
https://api.magicthegathering.io/v1/sets?block="Battle for Zendikar"
###Match one or more block names (comma delimited, partial matching)
https://api.magicthegathering.io/v1/sets?block=zendikar,shadows
Fixes issue #4
Added set: Eldritch Moon (EMN)
Added set: Eternal Masters (EMA)