API Documentation >> API 2.0 Main >> Stock Management >> Stock (File)
DEPRECATED see News for replacement
https://api.cardmarket.com/ws/v2.0/stock/fileidGame (query parameter)
1 for Magic the Gathering)isSealed (query parameter)
true|false)false for retrieving single cards)idLanguage (query parameter)
Local Name column in the resulting file1 for English){
stock: // The base64 encoded string
mime: // The MIME type of the file
links: // HATEOAS links
}
The response object and the relevant stock contains a string which is Base64 encoded. Decoding it returns a binary string that has to be written to an empty file. This file is gzipped and finally needs to be unpacked to retrieve the CSV file having the following columns:
idProduct - The product ID of the articleEnglish Name - The English name of the articleLocal Name - The localized name specified by the idLanguage query parameterExp. - The abbreviation for the expansion the product belongs toPrice - The price the article is listed forLanguage - The language of the articleisAttribute - Number of additional attribute fields depending on the game the article is fromcomments - Own comment for the articleamount - number of listed articles1. Downloading single cards in stock for Magic with Local Name column values set to English names (Default idGame=1, isSealed=false idLanguage=1)
GET https://api.cardmarket.com/ws/v2.0/stock/file
2. Downloading sealed products in stock for YGO with Local Name column values set to German names
GET https://api.cardmarket.com/ws/v2.0/stock/file?idGame=3&isSealed=true&idLanguage=3
3. Downloading non game related Accessories stock (isSealed must be true or code 429 is returned).
GET <https://api.cardmarket.com/ws/v2.0/stock/file?idGame=99&isSealed=true