# Zing MP3 Scraper: Dữ liệu nhạc công khai (`getascraper/zing-mp3-media-resolver`) Actor

Scrape public Zing MP3 (ZingMP3.vn) song, album, playlist, and artist metadata. Export dữ liệu nhạc công khai with clear availability status. No audio extraction or regional-control bypass. $0.00263 per metadata row.

- **URL**: https://apify.com/getascraper/zing-mp3-media-resolver.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** Social media, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.97 / 1,000 music records

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Zing MP3 Scraper: Dữ liệu nhạc công khai

Scrape public Zing MP3 (ZingMP3.vn) song, album, playlist, and artist metadata into a clean dataset. Each row includes a clear availability status so catalog, research, and rights teams can distinguish publicly available pages from unavailable or region-restricted pages. No audio extraction or regional-control bypass.

### What it collects

| Public metadata                                                                                           | Availability and provenance                                                                                 |
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Title, artist names, album, duration, release date, genre, language, and artwork when exposed on the page | Canonical public page URL, scrape time, and an honest `status` with a reason when a page cannot be resolved |

The Actor accepts normally accessible public Zing MP3 song, album, playlist, and artist pages. It does not use accounts or credentials, extract audio or media links, download music, expose premium content, collect full lyrics, or bypass geographic restrictions.

### How to use

1. Add one or more public `zingmp3.vn` URLs.
2. Choose the maximum number of metadata rows for the run.
3. Review the dataset, including each row's `status`, `statusReason`, and `canonicalUrl`.

The default input contains one public Zing MP3 song page and is ready for a small cloud test run.

### Input

| Field         | Type          | Default             | Description                                                                                                                    |
| ------------- | ------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `startUrls`   | array of URLs | One public song URL | Public Zing MP3 song, album, playlist, or artist URLs. Account, premium, download, and personal-library URLs are out of scope. |
| `deduplicate` | boolean       | `true`              | Skip repeated canonical URLs in the same run.                                                                                  |
| `maxItems`    | integer       | `5`                 | Maximum metadata rows written to the dataset.                                                                                  |

### Dataset fields

| Field             | Type   | Description                                                                       |
| ----------------- | ------ | --------------------------------------------------------------------------------- |
| `input`           | string | Submitted URL.                                                                    |
| `inputIndex`      | number | Position of the submitted URL.                                                    |
| `platform`        | string | Always `zingmp3`.                                                                 |
| `id`              | string | Zing MP3 identifier parsed from the canonical public URL when available.          |
| `resourceType`    | string | Public page type when available.                                                  |
| `title`           | string | Public page title when available.                                                 |
| `description`     | string | Public page description when available. This is metadata only, not lyric content. |
| `artistNames`     | array  | Public artist names when available.                                               |
| `albumName`       | string | Public album or release name when available.                                      |
| `durationSeconds` | number | Public duration in seconds when available.                                        |
| `releaseDate`     | string | Public release date when available.                                               |
| `genres`          | array  | Public genre labels when available.                                               |
| `language`        | string | Public language value when available.                                             |
| `artworkUrls`     | array  | Public artwork URLs when available.                                               |
| `canonicalUrl`    | string | Canonical public source page.                                                     |
| `status`          | string | `ok`, `invalid_input`, `not_found`, `geo_restricted`, or `upstream_error`.        |
| `statusReason`    | string | Reason for a non-`ok` result.                                                     |
| `fetchedAt`       | string | ISO timestamp when the page was fetched.                                          |

Missing public fields are omitted rather than filled with placeholder data.

### Availability status

| Status           | Meaning                                                                                                           |
| ---------------- | ----------------------------------------------------------------------------------------------------------------- |
| `ok`             | Public metadata was found.                                                                                        |
| `invalid_input`  | The submitted URL is not an HTTPS Zing MP3 URL.                                                                   |
| `not_found`      | The public page did not provide metadata or returned HTTP 404.                                                    |
| `geo_restricted` | Zing MP3 did not make the page available from the current authorized region. The Actor does not attempt a bypass. |
| `upstream_error` | The public page could not be fetched successfully.                                                                |

### Example result

```json
{
    "input": "https://zingmp3.vn/bai-hat/Em-Cua-Ngay-Hom-Qua-Son-Tung-M-TP/ZW6W9W0F.html",
    "inputIndex": 0,
    "platform": "zingmp3",
    "canonicalUrl": "https://zingmp3.vn/bai-hat/Em-Cua-Ngay-Hom-Qua-Son-Tung-M-TP/ZW6W9W0F.html",
    "status": "geo_restricted",
    "statusReason": "Zing MP3 did not make this page available from the current authorized region.",
    "fetchedAt": "2026-07-28T00:00:00.000Z"
}
````

### Pricing

$0.00263 per metadata row. A row is written for each processed input that produces public metadata or a clear availability status.

### FAQ

#### Zing MP3 có tải nhạc không?

No. This Actor does not download music, return audio, or extract media links.

#### Zing MP3 bị giới hạn khu vực thì kết quả thế nào?

The dataset returns `geo_restricted` with a clear reason. It does not attempt to change region, use a proxy to bypass access controls, or return restricted content.

#### Does it return full lyrics or premium content?

No. Full lyrics, premium content, audio streams, downloads, account data, and personal-library data are outside this Actor's scope.

### Feedback

If you use this Actor, feedback about metadata coverage and availability statuses is welcome on its Apify page.

# Actor input Schema

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

Public song, album, playlist, or artist URLs from zingmp3.vn. Do not provide account, premium, download, or personal-library URLs.

## `deduplicate` (type: `boolean`):

Skip repeated canonical URLs within the same run.

## `maxItems` (type: `integer`):

Maximum dataset rows to write. The default is a small, cloud-ready test run.

## Actor input object example

```json
{
  "startUrls": [
    "https://zingmp3.vn/bai-hat/Em-Cua-Ngay-Hom-Qua-Son-Tung-M-TP/ZW6W9W0F.html"
  ],
  "deduplicate": true,
  "maxItems": 5
}
```

# Actor output Schema

## `results` (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": [
        "https://zingmp3.vn/bai-hat/Em-Cua-Ngay-Hom-Qua-Son-Tung-M-TP/ZW6W9W0F.html"
    ],
    "deduplicate": true,
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/zing-mp3-media-resolver").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": ["https://zingmp3.vn/bai-hat/Em-Cua-Ngay-Hom-Qua-Son-Tung-M-TP/ZW6W9W0F.html"],
    "deduplicate": True,
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/zing-mp3-media-resolver").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "https://zingmp3.vn/bai-hat/Em-Cua-Ngay-Hom-Qua-Son-Tung-M-TP/ZW6W9W0F.html"
  ],
  "deduplicate": true,
  "maxItems": 5
}' |
apify call getascraper/zing-mp3-media-resolver --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=getascraper/zing-mp3-media-resolver",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Zing MP3 Scraper: Dữ liệu nhạc công khai",
        "description": "Scrape public Zing MP3 (ZingMP3.vn) song, album, playlist, and artist metadata. Export dữ liệu nhạc công khai with clear availability status. No audio extraction or regional-control bypass. $0.00263 per metadata row.",
        "version": "0.1",
        "x-build-id": "e5dMOm5qOoCwpwUdb"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/getascraper~zing-mp3-media-resolver/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-getascraper-zing-mp3-media-resolver",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/getascraper~zing-mp3-media-resolver/runs": {
            "post": {
                "operationId": "runs-sync-getascraper-zing-mp3-media-resolver",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/getascraper~zing-mp3-media-resolver/run-sync": {
            "post": {
                "operationId": "run-sync-getascraper-zing-mp3-media-resolver",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Public Zing MP3 URLs",
                        "minItems": 1,
                        "type": "array",
                        "description": "Public song, album, playlist, or artist URLs from zingmp3.vn. Do not provide account, premium, download, or personal-library URLs.",
                        "default": [
                            "https://zingmp3.vn/bai-hat/Em-Cua-Ngay-Hom-Qua-Son-Tung-M-TP/ZW6W9W0F.html"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "deduplicate": {
                        "title": "Deduplicate URLs",
                        "type": "boolean",
                        "description": "Skip repeated canonical URLs within the same run.",
                        "default": true
                    },
                    "maxItems": {
                        "title": "Maximum metadata rows",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum dataset rows to write. The default is a small, cloud-ready test run.",
                        "default": 5
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
