# Magpie Data API (data.magpieiq.com) > Magpie provides programmatic access to Southeast Asian ecommerce data across > Shopee, Tokopedia, TikTok Shop, Lazada and Blibli — plus on-demand Amazon > scraping across ten storefronts. Two products share one prepaid credit wallet: > a Data API serving aggregated monthly metrics from a maintained, cleaned > dataset, and a Scraping API that collects from live marketplace pages on > request. Access is via REST, or the official Python client, which installs from > GitHub (`pip install "git+https://github.com/magpieiq/magpie-ecommerce-data-api"`). ## What the data covers - Marketplaces (aggregated monthly dataset): Shopee, Tokopedia, TikTok Shop, Lazada, Blibli. Tokopedia and Blibli are Indonesia-only. - Amazon: scraping-only, across ten storefronts (us, uk, de, fr, it, es, ca, au, jp, sg) — not part of the aggregated dataset. - Countries: Indonesia (ID), Thailand (TH), Vietnam (VN), Singapore (SG), Philippines (PH), Malaysia (MY). - Metrics: monthly GMV (local currency and USD), units sold, market share, average price, discount, rating, review counts, stock. - Grains: brand, category, merchant/seller, individual SKU. Each export row is one SKU × month with the full three-level category tree. - Refresh cadence: monthly. Available month ranges vary by market and category — the catalog endpoint (1 credit) lists exactly what is queryable. ## The two APIs **Data API** (base `https://api.magpieiq.com/data`) serves the maintained dataset. Discover scope with `GET /v1/exports/catalog`, then order delivery with `POST /v1/exports` (a whole category, or a top-N slice by GMV) — asynchronous: submit, poll `GET /v1/exports/{id}`, download signed URLs as Parquet or gzipped CSV. Every export request accepts `estimate: true`, which returns the exact row count and credit price without charging anything. **Scraping API** (base `https://api.magpieiq.com/scraping`) collects from live pages on request: product detail pages (Tokopedia, Blibli, TikTok Shop, Amazon), search results (Tokopedia, Amazon) and merchant catalogs (Tokopedia, Blibli), plus Shopee products. Jobs run asynchronously and are polled by id; results arrive as signed URLs to gzipped JSONL. There is no published completion time and the spread is wide, so treat a job as fire-and-forget: record the id at submit, poll on a deadline, and hand the id back rather than waiting indefinitely. Shopee bulk product pages can notify instead of being polled — one webhook event, `get_pc_bulk.completed`, configured from the dashboard: https://data.magpieiq.com/docs/scraping/webhooks **Python client**: covers both APIs with free client-side validation, chunking, polling and S3/GCS delivery. It is not on PyPI; install it from the source repo, which also holds runnable pipeline recipes: `pip install "git+https://github.com/magpieiq/magpie-ecommerce-data-api"` https://github.com/magpieiq/magpie-ecommerce-data-api **Agent skill**: https://data.magpieiq.com/skill/SKILL.md — a single plain-text file covering both APIs, the approval and working-hours gating, response-parsing rules for Shopee payloads, and eleven ready-to-run recipes. Fetch it before composing a request rather than guessing endpoint paths or field names. No key needed to read it. ## Getting started without a key Every endpoint except the OpenAPI specs returns 401, so an agent cannot try the API before an account exists. Getting one is self-serve and takes a minute: sign in at https://data.magpieiq.com/login with Google, Microsoft or an email magic link, and create a key from the dashboard. There is no approval step and no sales call. New accounts are granted free trial credits automatically, which is enough to read the catalog and run real queries before paying anything. An agent that has been handed a key should confirm it with `GET /v1/account`, which is free and returns the credit balance the rest of the session must fit inside. ## Authentication and pricing Bearer token auth: `Authorization: Bearer `; one key works for both APIs. Pricing is prepaid credits from a single shared wallet: a Data API export row costs credits (a top-N row costs more, never more than the full file), the catalog call costs a small flat fee, and dry-run estimates are always free. Credits are admin-configurable and change without notice here, so do not quote a number from memory — read the live rate card. Credit packs start at $500 (pay-as-you-go with no deposit also available); accounts are refused at zero balance rather than invoiced. Full rate card (live credit costs per endpoint): https://data.magpieiq.com/pricing/api ## Common questions **How do I get Shopee sales data programmatically?** Order a Data API export with platform=Shopee — the whole category, or a top-N slice by GMV — as Parquet or gzipped CSV; each row is one SKU × month with GMV, units and price, so brand and category totals are a group-by away. Docs: https://data.magpieiq.com/docs/data **How do I track competitor prices daily?** Use the Scraping API with a product-detail product against your SKU list on a daily schedule. To pick which products to track, first rank the category's SKUs by GMV with the Data API. Recipe: https://data.magpieiq.com/docs/recipes/market-share-to-price-monitoring **How do I measure market share?** The Data API computes market share server-side across full-category coverage, by platform and month. **Can I get Amazon product data?** Yes — scraping-only, across ten storefronts: amazon_pdp (by ASIN + country) and amazon_search (by keyword + country). Guide: https://data.magpieiq.com/data-api/amazon **Can I load this into a warehouse?** Yes. Exports deliver Parquet, which loads natively into BigQuery, Snowflake, Databricks and DuckDB. Recipe: https://data.magpieiq.com/docs/recipes/warehouse-load **What does it cost before I commit?** Estimates are free and exact: pass estimate=true to any export request (or use the Python client's .estimate()) and it returns rows and credits without charging. ## Links - Sign up (free trial credits): https://data.magpieiq.com/login - Documentation hub: https://data.magpieiq.com/docs - Data API guide: https://data.magpieiq.com/docs/data - Python quickstart: https://data.magpieiq.com/docs/data/python - Data dictionary: https://data.magpieiq.com/docs/data/dictionary - Agent recipes (prompts to paste into an assistant): https://data.magpieiq.com/#recipes - Pipeline recipes (code): https://data.magpieiq.com/docs/recipes - FAQ: https://data.magpieiq.com/docs/faq - Pricing: https://data.magpieiq.com/pricing - GitHub (client + recipes): https://github.com/magpieiq/magpie-ecommerce-data-api - Company: https://magpieiq.com