Data API
Data API · monthly datasetMaintained marketplace dataset, refreshed monthly.
The Data API serves the Magpie universe — SKU-level ecommerce data (Shopee, Lazada, TikTok Shop, Tokopedia and more) across Southeast Asia that we already scraped, cleaned and deduplicated. It refreshes monthly: you query GMV, market share, brands, merchants and SKUs the moment you need them — no scrape to run, no waiting. If you instead need a specific page fetched right now, that's the Scraping API.
Base URL https://api.magpieiq.com/data. Authenticate with an API key from your dashboard as a Bearer token.
1 · See what's available (1 credit)
curl "https://api.magpieiq.com/data/v1/exports/catalog?country=ID" \ -H "Authorization: Bearer mgk_live_..."
2 · Estimate an export before you buy (free dry-run — exact rows & price, charges nothing)
curl -X POST "https://api.magpieiq.com/data/v1/exports" \
-H "Authorization: Bearer mgk_live_..." -H "Content-Type: application/json" \
-d '{"country":"ID","category_3":["Facial Serum"],"date_from":"2026-01","date_to":"2026-05","estimate":true}'3 · Pull metrics (paid — credits per row returned)
curl "https://api.magpieiq.com/data/v1/brands/metrics?country=ID&category_3=Facial%20Serum&date_from=2026-04&date_to=2026-05" \ -H "Authorization: Bearer mgk_live_..."
Every endpoint, parameter and response shape is in the API reference.
A data row costs 5 credits; catalog/discovery calls are 1 credit flat, and dry-run estimates are always free. Credits come from the same wallet the Scraping API uses — one balance covers both products.