# Yupoo Scraper — Album Images & Store Catalogs (`skyfishdev/yupoo-scraper`) Actor

Export Yupoo store, category, or album data to JSON, CSV, or Excel: titles, descriptions, original image URLs, and album links. Deduplicates overlapping inputs, reports preview limits and failures, and supports optional image rehosting plus owner-authorized passwords.

- **URL**: https://apify.com/skyfishdev/yupoo-scraper.md
- **Developed by:** [Ibrahim](https://apify.com/skyfishdev) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 53 total users, 4 monthly users, 90.4% runs succeeded, 0 bookmarks
- **User rating**: 2.00 out of 5 stars

## Pricing

from $1.75 / 1,000 albums

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

## Yupoo Scraper — Album Images & Store Catalogs

Extract Yupoo album titles, descriptions, full-resolution image URLs, and album links into one exportable dataset. Supports public pages and owner-authorized password-protected pages.

**Start with one album.** Defaults intentionally preview a store: at most 25 albums and three listing pages. Limits, failed URLs, and partial results are explained in the run statistics.

### Quick start

One album:

```json
{
  "urls": ["https://chaosmade20.x.yupoo.com/albums/246388734?uid=1"],
  "rehostImages": false
}
```

A bounded store preview:

```json
{
  "urls": ["unionkingdom"],
  "maxAlbumsPerStore": 25,
  "maxPages": 3
}
```

A larger store pass (up to 500 index pages):

```json
{
  "urls": ["https://unionkingdom.x.yupoo.com/albums"],
  "maxAlbumsPerStore": 0,
  "maxPages": 500
}
```

Mix store, category, and album URLs. Bare store names work. Overlapping inputs produce one record per store/album identity. The working album URL, including its query parameters, is retained.

### Output

```json
{
  "store": "demo",
  "albumUrl": "https://demo.x.yupoo.com/albums/123456789?uid=1",
  "title": "Washed Black Tee",
  "description": "Seller's original description",
  "images": ["https://photo.yupoo.com/demo/example/big.jpg"]
}
```

Export JSON, CSV, or Excel from the run dataset. Select only the fields you need with `fields`: images, title, description. Unselected fields are omitted. Store and albumUrl are always included.

### Make image links display outside Yupoo

Raw Yupoo images are hotlink-protected. Correct URLs can appear broken when opened or embedded without the store's Referer header. This does not mean the album extraction failed.

Either download images with the correct Referer and host them yourself, or explicitly enable rehosting:

```json
{
  "urls": ["https://chaosmade20.x.yupoo.com/albums/246388734?uid=1"],
  "rehostImages": true,
  "imageHost": "freeimage",
  "imageHostApiKey": "YOUR_IMAGE_HOST_KEY",
  "maxImagesPerAlbum": 5
}
```

Hosts: freeimage (freeimage.host), imgbb (api.imgbb.com), or custom (an HTTPS Chevereto-compatible uploadEndpoint). Custom hosts require your own key. A built-in key is used only if the Actor owner has configured one for the selected preset; do not assume one is available.

The key is checked before a rehosting run. Missing keys leave original URLs with a warning; invalid supplied keys fail before the crawl. Failed uploads preserve originals, so output can contain both hosted and raw links. Stats report that split. Rehosting preserves requested resolution, but hosts may re-encode files. Expiration zero requests no expiry; indefinite retention still depends on the host's policy.

```sh
curl -H "Referer: https://STORE.x.yupoo.com/" "https://photo.yupoo.com/STORE/example/big.jpg" -o image.jpg
```

### Password-protected pages

Set password to a password the store owner supplied. It is secret input, excluded from output and logs, and sent only to the requested store origin. Off-site album links and cross-origin redirects are rejected. A rejected password is reported as a failure, not an empty album.

### Pricing and limits

Current price: **$2.50 per 1,000 album records**, plus **$0.18 per 1,000 successfully rehosted images**. Actor start is $0.00005 per start event (Apify applies its memory-based start-event rules). Platform usage is included in the published pay-per-event pricing. Check the Pricing tab for authoritative current rates.

URL-only mode returns the same billed album records. It reduces requests and runtime, **not the per-record price**. Fields selection also does not change that price.

Example: 100 albums with 50 successfully rehosted images each = $0.25 in album events + $0.90 in image events, plus start events. Your image host may impose its own quotas or charges.

**Free Apify plan:** runs are limited to 10 albums as a preview, and owner-funded image rehosting is off. Any paid Apify plan removes these limits.

Use a run maximum-charge limit, test one album first, and cap maxImagesPerAlbum before scaling rehosting. Upload concurrency is a global limit across all albums. A charge error or exhausted image allowance stops further uploads. Already prepared albums retain raw URLs for photos that were not uploaded.

### Input reference

| Field | Default | Meaning |
| --- | --- | --- |
| urls | Required | Store, category, or album URLs; bare store names accepted |
| password | Empty | Owner-provided secret password |
| fields | images, title, description | Fields to include |
| albumUrlsOnly | false | List unique album links without opening albums; same record price |
| maxAlbumsPerStore | 25 | Per store/category preview cap; 0 disables the album cap |
| maxPages | 3 | Listing-page cap, up to 500; increase alongside the album cap |
| imageSize | big | small, medium, big |
| maxImagesPerAlbum | 0 | Image cap; 0 means all extracted images |
| albumConcurrency | 3 | Concurrent album workers |
| requestDelayMs | 250 | Shared minimum request-start interval per host |
| maxRetries | 3 | Retries for transient errors |
| rehostImages | false | Explicitly enable download and upload |
| imageHost | freeimage | freeimage, imgbb, custom |
| imageHostApiKey | Empty | Secret hosting key |
| uploadEndpoint | Empty | HTTPS custom Chevereto endpoint |
| imageLinkExpirySeconds | 0 | No requested expiry; ImgBB supports timed expiry |
| imageConcurrency | 2 | Global image-work concurrency |
| proxyConfiguration | Off | Optional Apify proxy configuration |

### Understand run results

- **complete**: all selected work finished, possibly within a stated preview cap.
- **partial**: useful records were saved, but some pages, albums, or uploads failed.
- **failed**: requested work failed and no album records were delivered.
- **truncated**: the album or page preview limit was reached. Increase the appropriate input limit for another pass.

RUN_STATS includes pagination stop reasons and failed URLs. Missing albums served as HTTP 200, password prompts, and unrecognized album pages are detected rather than emitted as blank records. A successful empty store and a failed request are counted differently.

Completed dataset records and upload results are checkpointed for the same run's restart/migration. A brand-new run has a new dataset and is billed separately. Failed work remains retryable. Long Retry-After cooldowns stop affected requests rather than being ignored or retried early.

### API integration

Use the Actor identifier skyfishdev~yupoo-scraper and an Apify token in an Authorization header. For small jobs, POST input JSON to:
`https://api.apify.com/v2/acts/skyfishdev~yupoo-scraper/run-sync-get-dataset-items`

For larger jobs, POST to /runs, poll /actor-runs/RUN_ID until a terminal status, then export /datasets/DATASET_ID/items. Retrieve RUN_STATS too: partial results can exist even when not every requested album succeeded.

### Local development

```sh
npm ci
npm test
npm start
```

Put local input in storage/key_value_stores/default/INPUT.json. Local output is written to storage/datasets/default. The tests exercise parsing, redirects, pagination, failure reporting, deduplication, restarts, upload concurrency, and billing errors without paid cloud calls.

This Actor returns seller-published data. It does not invent prices, perform AI enrichment, crack passwords, extract videos, or bypass access controls. Use pages and images you are authorized to access and follow the source and image-host terms.

# Actor input Schema

## `urls` (type: `array`):

Album, category, or store URLs - each one is detected automatically. A store or category URL is expanded into its albums; an album URL is scraped directly. Bare store names work too.

## `password` (type: `string`):

Optional password for a protected Yupoo store or album. The same password is applied only to the URLs in this run and is never written to the dataset or logs.

## `fields` (type: `array`):

What to pull from each album page. Unselected fields are left out of the results entirely.

## `albumUrlsOnly` (type: `boolean`):

List unique album links without opening album pages. Saves requests and runtime; the per-record price is the same as full album mode.

## `maxAlbumsPerStore` (type: `integer`):

Default previews 25 albums. Set 0 for no album cap, and increase maxPages too. Run statistics report when this limit is reached.

## `maxPages` (type: `integer`):

Default previews three listing pages. Raise up to 500 for a larger pass. Page-limit truncation is reported in RUN_STATS.

## `imageSize` (type: `string`):

Which Yupoo image variant to return. This is a URL rewrite, so larger sizes cost no extra requests.

## `maxImagesPerAlbum` (type: `integer`):

Cap the images returned per album. Defaults to 0 (no limit) — albums commonly hold 30 to 100 images.

## `albumConcurrency` (type: `integer`):

How many album pages to fetch at once. Keep this low to stay polite and avoid rate limiting.

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

Shared minimum interval between request starts to each host. Rate-limit cooldowns apply to every worker using that host.

## `maxRetries` (type: `integer`):

How many times to retry a failed request before giving up on it.

## `rehostImages` (type: `boolean`):

Optional and off by default because image transfer is the most expensive part of a run. Downloads each image from Yupoo and re-uploads it so the returned URLs work outside Yupoo. Requires an image-host API key.

## `imageHost` (type: `string`):

Where to re-upload images. freeimage.host and ImgBB both offer free API keys.

## `imageHostApiKey` (type: `string`):

Secret key for your selected image host. Custom endpoints require your own key. A built-in key is available only when configured by the Actor owner for that preset.

## `uploadEndpoint` (type: `string`):

Only used when Image host is "Custom". Full URL of a Chevereto-compatible v1 upload endpoint.

## `imageLinkExpirySeconds` (type: `integer`):

0 keeps images forever. Otherwise 60 to 15552000 (180 days). Only ImgBB supports expiry; ignored on other hosts.

## `imageConcurrency` (type: `integer`):

Global limit on simultaneous image download/upload work across every album, not a separate limit per album.

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

Optional. Direct requests are cheaper and are used by default. Enable an Apify proxy only if Yupoo is unreachable from your run region.

## Actor input object example

```json
{
  "urls": [
    "https://unionkingdom.x.yupoo.com/albums",
    "https://zs888.x.yupoo.com/albums/123456789?uid=1"
  ],
  "fields": [
    "images",
    "title",
    "description"
  ],
  "albumUrlsOnly": false,
  "maxAlbumsPerStore": 25,
  "maxPages": 3,
  "imageSize": "big",
  "maxImagesPerAlbum": 0,
  "albumConcurrency": 3,
  "requestDelayMs": 250,
  "maxRetries": 3,
  "rehostImages": false,
  "imageHost": "freeimage",
  "imageLinkExpirySeconds": 0,
  "imageConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing one item per scraped album.

## `runStats` (type: `string`):

Counts of discovered, scraped, missing, and failed albums and image uploads.

# 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 = {
    "urls": [
        "https://chaosmade20.x.yupoo.com/albums/246388734?uid=1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("skyfishdev/yupoo-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 = { "urls": ["https://chaosmade20.x.yupoo.com/albums/246388734?uid=1"] }

# Run the Actor and wait for it to finish
run = client.actor("skyfishdev/yupoo-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 '{
  "urls": [
    "https://chaosmade20.x.yupoo.com/albums/246388734?uid=1"
  ]
}' |
apify call skyfishdev/yupoo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,skyfishdev/yupoo-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/Vw1EDApmqzgczTA1a/builds/VX1JjebBKc3xVdGJx/openapi.json
