# Mexc Market Data Scraper (`bigibyte/mexc-market-data-scraper`) Actor

Collect 24h MEXC market stats, prices, and trading volume for any crypto symbols. Set row limits and export clean results to JSON, CSV, or Excel for dashboards, monitoring, or market research

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## MEXC Market Data Scraper

![MEXC Market Data Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/mexc-market-data-scraper-cover.png)

The **MEXC Market Data Scraper** collects cryptocurrency market data and 24-hour ticker statistics from MEXC. Retrieve prices, price changes, bid and ask values, trading volumes, and other market details for selected trading pairs. Export structured results for cryptocurrency research, dashboards, and market monitoring.

### What This Actor Does

This Actor collects 24-hour ticker information for the trading symbols you provide and organizes the results into clean, structured records.

You can collect data for multiple symbols, such as `BTCUSDT` and `ETHUSDT`. If you leave the symbols list empty, the Actor uses `BTCUSDT` by default.

Each successful record includes price changes, previous closing price, latest price, bid and ask prices, opening price, 24-hour high and low, trading volume, quote volume, timestamps, and trade count.

The Actor prevents duplicate records using the symbol, applies your selected output limit, and includes the source URL and collection timestamp. If a request fails for a particular symbol, an error entry is saved while the remaining collection continues.

### Key Features

- **24-Hour Ticker Collection:** Retrieve MEXC market statistics for selected trading symbols.
- **Multiple Symbol Support:** Collect ticker information for several trading pairs in one run.
- **Price Tracking:** Capture latest prices, price changes, previous closing prices, and opening prices.
- **Bid and Ask Information:** Collect bid and ask prices along with their available quantities.
- **Trading Statistics:** Retrieve 24-hour high and low prices, base volume, quote volume, and trade count.
- **Duplicate Prevention:** Avoid repeated records using trading symbols.
- **Flexible Exports:** Export results as JSON, CSV, Excel, and other supported dataset formats.

### Input Configuration

Configure the Actor using the following parameters:

| Parameter | Description | Default |
|---|---|---|
| `mode` | Collection mode. Use `search` to retrieve 24-hour ticker data. | `search` |
| `symbols` | Array of trading symbols to collect. | `["BTCUSDT"]` |
| `requestDelayMs` | Delay between requests, in milliseconds. | `1000` |

#### Input Example

```json
{
  "mode": "search",
  "symbols": [
    "BTCUSDT",
    "ETHUSDT"
  ],
  "requestDelayMs": 1000
}
```

You can replace the symbols with any supported MEXC trading pairs.

### Output Data

Each successfully collected trading symbol is saved as a structured dataset record.

#### Output Example

```json
{
  "symbol": "BTCUSDT",
  "priceChange": "1054.02",
  "priceChangePercent": "0.0126",
  "prevClosePrice": "83099.58",
  "lastPrice": "84153.6",
  "bidPrice": "84143.8",
  "bidQty": "0.00121351",
  "askPrice": "84143.81",
  "askQty": "0.43154976",
  "openPrice": "83099.58",
  "highPrice": "84272.7",
  "lowPrice": "82975.55",
  "volume": "1234.5",
  "quoteVolume": "98765432.1",
  "openTime": 1761436800000,
  "closeTime": 1761523199999,
  "count": 100000,
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Description |
|---|---|
| `symbol` | Trading pair symbol, such as `BTCUSDT`. |
| `priceChange` | Absolute price change over the 24-hour period. |
| `priceChangePercent` | Percentage price change over the 24-hour period, as returned by the source. |
| `prevClosePrice` | Previous closing price. |
| `lastPrice` | Latest traded price. |
| `bidPrice` | Highest bid price. |
| `bidQty` | Quantity available at the bid price. |
| `askPrice` | Lowest ask price. |
| `askQty` | Quantity available at the ask price. |
| `openPrice` | Opening price for the 24-hour period. |
| `highPrice` | Highest price over the 24-hour period. |
| `lowPrice` | Lowest price over the 24-hour period. |
| `volume` | Trading volume in the base asset. |
| `quoteVolume` | Trading volume in the quote asset. |
| `openTime` | Opening timestamp in milliseconds. |
| `closeTime` | Closing timestamp in milliseconds. |
| `count` | Number of trades reported for the period. |
| `scrapedAt` | Timestamp when the record was collected. |

### Use Cases

- **Market Research:** Analyze MEXC trading pairs using price changes, trading volumes, and 24-hour statistics.
- **Market Monitoring:** Refresh selected symbols on a schedule and compare market movements across runs.
- **Trading Dashboards:** Integrate structured ticker data into dashboards and business intelligence tools.
- **Market Alerts:** Compare ticker snapshots to identify significant price or volume changes.
- **Dataset Building:** Store cryptocurrency market snapshots for offline analysis and reporting.

### Usage and Limits

- The Actor supports the `search` mode.
- Provide one or more trading symbols through the `symbols` array.
- If no symbols are supplied, the Actor uses `BTCUSDT` by default.
- Each successful symbol request produces one dataset record.
- The actual number of successful records depends on the supplied symbols and their availability.
- A request delay of approximately 1,000–2,000 milliseconds is a reasonable starting point for controlled usage.
- Failed requests are recorded as error entries.
- This Actor collects 24-hour ticker snapshots, not historical candlesticks, full order-book depth, or complete trading history.

### Frequently Asked Questions

**1. What market data does this Actor collect?**

It collects 24-hour ticker statistics, including latest price, price changes, bid and ask prices, trading quantities, volume, daily high and low, and trade count.

**2. Can I collect multiple trading pairs?**

Yes. Add multiple symbols to the `symbols` array, such as `BTCUSDT`, `ETHUSDT`, and other supported MEXC pairs.

**3. What happens if I leave the symbols list empty?**

The Actor uses `BTCUSDT` as the default symbol.

**4. Can I export the results to Excel or CSV?**

Yes. You can export the collected dataset in JSON, CSV, Excel, and other supported formats.

**5. Can I schedule automatic collection?**

Yes. Use Apify schedules to run the Actor periodically and collect updated ticker snapshots.

### Related Tools

Explore other BigiByte data collection tools:

- **Upbit Market Data Scraper** – Collect cryptocurrency ticker information and market statistics from Upbit.
- **BitMEX Market Data Scraper** – Retrieve BitMEX instrument details for market research and monitoring.
- **Gate.io Market Data Scraper** – Collect spot ticker prices, bid and ask values, and 24-hour statistics from dataset.

Looking for a scraper tailored to your business requirements? BigiByte builds custom web scrapers, data extraction tools, and automation solutions to help you collect and organize the data you need.

Visit [BigiByte](https://bigibyte.com) to explore our services.

### Trademark Notice

MEXC and its associated names, logos, and trademarks are the property of their respective owners. They are used solely to identify the source of the collected information. This Actor is an independent product and does not imply any affiliation, sponsorship, or endorsement by MEXC.

### Disclaimer

This Actor is provided for informational and research purposes. BigiByte does not guarantee the accuracy, completeness, or continued availability of information provided by the source. Market data can change rapidly, and collected ticker values should not be treated as guaranteed execution prices or financial advice. Users are responsible for evaluating data before making financial or commercial decisions.

### Is Web Scraping Legal?

This Actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** If collected information includes personal data, privacy laws such as GDPR and CCPA may apply. Collect and process such information responsibly.
- **Copyrighted Content:** Some website content may be protected by copyright. Check applicable permissions before reproducing or redistributing it.
- **Platform Terms and Rate Limits:** Respect MEXC's terms of use, applicable restrictions, and reasonable request limits.

This information is provided for general guidance only and does not constitute legal advice.

For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to fetch. Search loads MEXC 24h ticker rows for each symbol.

## `symbols` (type: `array`):

MEXC symbols to query (for example BTCUSDT, ETHUSDT). One request per symbol. Also accepts a single symbol string.

## `symbol` (type: `string`):

Optional single symbol. Used when symbols is empty. Tested value: BTCUSDT.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between requests. Raise if you see 429 responses.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "symbols": [
    "BTCUSDT"
  ],
  "symbol": "BTCUSDT",
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/mexc-market-data-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/mexc-market-data-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 '{}' |
apify call bigibyte/mexc-market-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/mexc-market-data-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/1IpwZGRjXyE1zmps1/builds/EEPLpUrUoeeXUnigF/openapi.json
