Cardmarket Scraper
Scrape Cardmarket, Europe's biggest trading card marketplace, into structured data. List every card in a set (Magic, Pokémon, Yu-Gi-Oh!, Lorcana, One Piece, ...) with its rarity, collector number, items available, lowest price and lowest foil price. Open a card for its price guide (from, price trend, 30/7/1-day averages), the 30-day average sell price history and the 50 cheapest offers with condition, language, foil, seller country, price and quantity. JSON or CSV.
pip install cardmarket-scraper
export SCRAPEDO_TOKEN=your_token
cardmarket-scraper -f csv -o mh3.csv set "Modern Horizons 3" --pages 0 # all 300 singles, 10 credits
cardmarket-scraper -f csv -o mh3_top.csv set "Modern Horizons 3" --details # price guide of the 30 most expensive
cardmarket-scraper -f csv -o ring.csv product --offers \
https://www.cardmarket.com/en/Magic/Products/Singles/The-Lord-of-the-Rings-Tales-of-Middle-earth/The-One-Ring
cardmarket-scraper set "Prismatic Evolutions" --game pokemon
Why plain requests fail
import requests
r = requests.get("https://www.cardmarket.com/en/Magic/Products/Singles/Modern-Horizons-3")
print(r.status_code) # 403
print(r.text[:200]) # ... <title>Attention Required! | Cloudflare</title> ...
Cardmarket sits behind Cloudflare, which blocks scripts with 403. This package sends each request through Scrape.do, which returns the real server-rendered page: 1 credit per page. Cloudflare sometimes refuses Scrape.do's datacenter IPs for a while; Scrape.do then answers 502, doesn't charge it, and the client retries with backoff. Pass fallback_to_super=True (or --super on the CLI) to switch to residential proxies when that happens.
Where the data is
- Set pages:
/en/<Game>/Products/Singles/<Expansion>?mode=list&sortBy=price_desc&site=N. The list view has 30 rows per page, each cell tagged withdata-testid(name,rarity,collector_number,availability,from_price,available_foils,price_from_foils), and a "300 Hits" / "Page 1 of 10" header. - Product pages:
/en/<Game>/Products/Singles/<Expansion>/<Card>. The price guide is a<dl class="labeled">(Available items, From, Price Trend, 30/7/1-day averages), the price chart is a Chart.js config with 30 days of average sell prices, and the offers arediv#articleRow…rows.
In a live test, all 10 list pages of Modern Horizons 3 gave the set's 300 singles for 10 credits. One cheapest copy of every card added up to €333.36, and the 10 most expensive cards made up 47% of that; 204 cards started under €0.10. Opening the 10 most expensive cards showed the gap between offers and the price guide: Ocelot Pride started at €32.45 against a €39.35 price trend, Flooded Strand at €11.00 against €15.23, and for 8 of the 10 cards every one of the 50 cheapest offers was below the trend. The One Ring from The Lord of the Rings: Tales of Middle-earth had 467 copies listed from €88.00 against a €105.62 trend.
Python
from cardmarket_scraper import Cardmarket
cm = Cardmarket(token="YOUR_SCRAPEDO_TOKEN") # or set SCRAPEDO_TOKEN
for card in cm.expansion("Modern Horizons 3", pages=1): # 30 most expensive first
print(card.name, card.rarity, card.available, card.from_price, card.from_price_foil)
ring = cm.product("https://www.cardmarket.com/en/Magic/Products/Singles/The-Lord-of-the-Rings-Tales-of-Middle-earth/The-One-Ring")
print(ring.from_price, ring.price_trend, ring.avg_30, ring.avg_7, ring.avg_1)
print(ring.history[-3:]) # [("2026-11-21", 115.7), ...]
for offer in ring.offers[:5]:
print(offer.price, offer.condition, offer.language, offer.location, offer.foil)
print(cm.credits_used)
examples/below_trend.py lists the offers on a card that sit below its price trend.
Fields
Card (set and search pages): id, name, expansion, rarity, number, available, from_price, available_foils, from_price_foil, url.
Product: id, name, expansion, category, rarity, number, available, from_price, price_trend, avg_30, avg_7, avg_1, versions, rules_text, image, url, history (date, average sell price), offers.
Offer: id, seller, seller_type (Professional, Powerseller or empty), seller_sales, location, condition (MT, NM, EX, GD, LP, PL, PO), language, foil, specials (Foil, Signed, Altered, Playset, First Edition, Reverse Holo), price, quantity, comment.
Prices are in euros. Logged-out product pages show the 50 cheapest offers; filters such as language or condition are Cardmarket URL parameters you can add to the product URL.
Use it responsibly
Cardmarket's prices are public, but respect its terms, keep request rates low, and don't republish seller data. Sellers' usernames are in the seller field for analysis; leave them out of anything you publish. This is not legal advice.
Tests
pip install pytest
PYTHONPATH=src pytest
The fixtures are fictional ("Example Set", "ExampleCards", "Exampleland").
License
MIT
Metadata
Release files for cardmarket-scraper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cardmarket_scraper-0.1.0.tar.gz | 19.5 kB | Without provenance | Details for cardmarket_scraper-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cardmarket_scraper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cardmarket_scraper-0.1.0-py3-none-any.whl |
Total release size: 33.6 kB
Release files / cardmarket_scraper-0.1.0.tar.gz
| Download URL | cardmarket_scraper-0.1.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaf37c5d0b66bb8fe4a6baf5d242dff7d449bdc573b2edd983afdfde4b4ae265
|
|
BLAKE2b-256 checksum How to use checksums |
0ef3a0670f009777b18bec6a85178c2629ef371461dcac9f23550ca6bb888b38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / cardmarket_scraper-0.1.0-py3-none-any.whl
| Download URL | cardmarket_scraper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9449b0f2be533ab34c55db2c9626c44b454bc2aec95fa3fbdea3952ef5336e31
|
|
BLAKE2b-256 checksum How to use checksums |
4a05451ccfe527b66f3b406274265056d1a4893c56a65f79e687ffcdd70f1a0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for cardmarket-scraper 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.