# Market.mn Scraper (`aboo.script/market-mn-scraper`) Actor

⚡ Fast Market.mn scraper. No login, no API key. Get products from Mongolia's online store by category, brand, sale, search URL or keyword: prices, discounts, every color and size variant with stock, bulk prices, images and descriptions. Perfect for price monitoring.

- **URL**: https://apify.com/aboo.script/market-mn-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Market.mn Scraper

![Market.mn Scraper](https://i.ibb.co/GQsDgdfx/market-mn-banner.png)

**Market.mn Scraper** extracts product data from [Market.mn](https://market.mn/), one of the largest online stores in Mongolia, into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste a category, brand, sale, or search URL, or type a few keywords, and get the title, brand, category, price, discount, stock, every color and size variant, and images for each product. No account or login required.

### Introduction

[Market.mn](https://market.mn/) is a Mongolian online department store that sells clothing, shoes, bags, electronics, home goods, furniture, sports gear, baby products, and books, with delivery across Ulaanbaatar. Its prices, discounts, and stock levels give a clear view of consumer retail in Mongolia.

This actor collects the same public information you see in your browser and turns it into a ready-to-use dataset. You can run it once, schedule it to run daily, or connect it to your own tools.

### What data can you extract from Market.mn?

- 🏷️ Product title, product code, SKU, and description
- 🏢 Brand name and brand page URL
- 🗂️ Category and full category path
- 💲 Current price, original price before discount, discount percent, and currency (MNT)
- 📦 Bulk prices for 6 to 8 items and for 9 or more items, when the store offers them
- 🎨 Every color and size variant with its own price, discount, and stock count
- ✅ Total stock and availability
- ⭐ Number of ratings and number of customer questions
- 🖼️ Main image, all product images, and product videos
- 🔗 Direct URL and ID of each product

### Use Cases

- 📈 **Market research**: track prices, discounts, and assortment of Mongolian e-commerce across categories.
- 🕵️ **Competitor monitoring**: follow which products and brands Market.mn sells, and at what price.
- 💸 **Price tracking**: schedule daily runs and watch price drops, sales, and stock changes per variant.
- 🗂️ **Database building**: create your own searchable catalog of products with images and descriptions.
- 🤖 **AI and automation**: feed clean, structured data into spreadsheets, dashboards, or AI workflows.

### How to scrape Market.mn step by step

1. Paste one or more Market.mn URLs into **Start URLs**, or type keywords into **Search queries**.
2. Set **Maximum number of results** to how many products you want per URL or per query.
3. Optionally choose **Sort by** and **On sale only** for your search queries.
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Start URLs**: Market.mn URLs to scrape. Supported pages: category pages, brand pages, sale and new arrival pages, search result pages (all under `market.mn/products`), and single product pages (`market.mn/products/<id>`). Filters and sort order in the URL are kept in the results.
- **Search queries**: keywords to search on Market.mn, in Mongolian or English, one per line. Each query is scraped separately.
- **Maximum number of results**: how many products to collect for each start URL or search query. Use 0 for no limit.
- **Sort by**: sort order for search queries: default, price low to high, price high to low, or newest first.
- **On sale only**: return only discounted products for search queries.

You can use start URLs, search queries, or both in the same run.

### Input Examples

Scrape a category page from Market.mn:

```json
{
  "startUrls": [{ "url": "https://market.mn/products?group=64" }],
  "maxResults": 5
}
```

Search by keywords:

```json
{
  "searchQueries": ["гутал"],
  "maxResults": 5,
  "sortBy": "",
  "onSaleOnly": false
}
```

### Output

Each product is saved as one item in the dataset. Here is an example of a single item:

```json
{
  "url": "https://market.mn/products/90202",
  "id": 90202,
  "productCode": "190201",
  "sku": "T33",
  "title": "Ихэр хүүхдийн тэрэг, гар шилждэг, Kidilo, T33, 0-4 нас хүртэлх хэрэглэх боломжтой, Нуруу амраах түшлэг нь 3 төрлөөр налуулах боломжтой",
  "brand": "Kidilo",
  "brandUrl": "https://market.mn/products?brand_id=283",
  "category": "Дөрвөн дугуйт тэрэг",
  "categories": [
    { "name": "Ээж, хүүхэд", "url": "https://market.mn/products?category_id=123" },
    { "name": "Хүүхдийн тэрэг", "url": "https://market.mn/products?category_id=142" },
    { "name": "Дөрвөн дугуйт тэрэг", "url": null }
  ],
  "price": 535000,
  "originalPrice": 649000,
  "discountPercent": 17.57,
  "currency": "MNT",
  "price6to8": null,
  "price9Plus": null,
  "inStock": true,
  "stock": 3,
  "colors": ["Хар", "Хар саарал"],
  "sizes": [],
  "variants": [
    {
      "variantId": 130406,
      "color": "Хар",
      "colorHex": "#000000",
      "size": null,
      "price": 535000,
      "originalPrice": 649000,
      "discountPercent": 17.57,
      "price6to8": null,
      "price9Plus": null,
      "stock": 2,
      "inStock": true
    },
    {
      "variantId": 130405,
      "color": "Хар саарал",
      "colorHex": "#4d4b4b",
      "size": null,
      "price": 535000,
      "originalPrice": 649000,
      "discountPercent": 17.57,
      "price6to8": null,
      "price9Plus": null,
      "stock": 1,
      "inStock": true
    }
  ],
  "ratingCount": 0,
  "questionCount": 1,
  "description": "Ихэр хүүхдийн эвхэгддэг тэрэг:\n0-4 нас хүртэлх хэрэглэх боломжтой\n4-н дугуйн амортизатортой\nГар шилжих боломжтой\nUPF 50+ нарны хаалтай\n...",
  "image": "https://mrp.market.mn/products/picture/000/090/202/original.webp?1776665196",
  "images": [
    "https://mrp.market.mn/products/picture/000/090/202/original.webp?1776665196",
    "https://mrp.market.mn/product_feature_items/image/000/130/406/original.webp?1776665198",
    "https://mrp.market.mn/product_feature_items/image/000/130/405/original.webp?1776665200"
  ],
  "videos": []
}
```

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Only listing pages under `market.mn/products` and single product pages are supported; other URLs are skipped.
- Titles, categories, colors, and descriptions are in Mongolian, as shown on the website. Prices are in Mongolian tugrik (MNT).
- `price` is the price you pay after the discount; `originalPrice` and `discountPercent` are only filled when the product is on sale.
- Stock comes from the product page, so a product can show as out of stock even if it still appears in a category list.
- Category links from the website menu and breadcrumbs return the products of that category.
- Bulk prices (`price6to8`, `price9Plus`) are `null` for most products, because the store only offers them on some items.
- Market.mn rarely shows customer ratings, so `ratingCount` is usually 0.
- A product found by two different start URLs or queries is saved once for each of them.

### Why use the Market.mn Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🎯 **Keeps your filters**: paste any category, brand, sale, or search URL and get the same products you see there.
- 🎨 **Every variant**: each color and size comes with its own price and stock count.
- 🧹 **Clean data**: prices and stock are real numbers, and descriptions are plain text without HTML.
- 💸 **Pay for what you need**: set a result limit per URL or query and keep every run small and cheap.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many results can I scrape?

You can set any number in **Maximum number of results**, or 0 for no limit. The actor keeps going until it reaches your limit or runs out of products.

#### Do I need a Market.mn account?

No. The actor only collects publicly available data. You do not need to log in or provide any account details.

#### Can I scrape data on a schedule?

Yes. Use Apify Schedules to run the actor every hour, day, or week, and get fresh prices and stock automatically.

#### Why are some fields empty?

Some products simply do not show every piece of information, such as a brand, SKU, or bulk price. When a field is not available on the website, it is returned as `null`.

#### Can I request a new feature or filter?

Yes. Right now the actor supports start URLs, search queries, sort order, and an on-sale filter. If you need other filters or inputs, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

### Need to scrape other e-commerce platforms?

- [Cobone Deals Scraper](https://apify.com/aboo.script/cobone-scraper): deals in the UAE and Saudi Arabia with prices, discounts, and all deal options.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [Market.mn](https://market.mn/)

# Actor input Schema

## `startUrls` (type: `array`):

Market.mn listing URLs (category, brand, sale, new or search pages under /products) or product URLs (/products/<id>). Filters and sort order in the URL are kept.

## `searchQueries` (type: `array`):

Keywords to search on Market.mn (Mongolian or English). Each query is scraped separately.

## `maxResults` (type: `integer`):

Maximum number of products to scrape per start URL or search query. Use 0 for no limit.

## `sortBy` (type: `string`):

Sort order for search queries. Start URLs keep the sort order from their URL.

## `onSaleOnly` (type: `boolean`):

Only return discounted products for search queries. Start URLs keep the filters from their URL.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://market.mn/products?group=64"
    }
  ],
  "searchQueries": [
    "гутал"
  ],
  "maxResults": 5,
  "sortBy": "",
  "onSaleOnly": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://market.mn/products?group=64"
        }
    ],
    "searchQueries": [
        "гутал"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/market-mn-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://market.mn/products?group=64" }],
    "searchQueries": ["гутал"],
}

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/market-mn-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://market.mn/products?group=64"
    }
  ],
  "searchQueries": [
    "гутал"
  ]
}' |
apify call aboo.script/market-mn-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/market-mn-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2AyipRoWzwW25xqh8/builds/baCUB0cfMHf1rgu57/openapi.json
