# Dewu Scraper & API | EveryInfra (`blushing_parachute/everyinfra-dewu-api`) Actor

Unofficial Dewu data via one Actor: product_summary. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-dewu-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.10 / 1,000 product_summary requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Dewu Scraper & API | EveryInfra

Dewu `product_summary` reads one SPU from a numeric ID or a supported product share link. It returns a product-level CNY price snapshot, brand, style code, images, size labels, and SKU count.

This is a product summary, not complete product detail. Size labels are a separate set and do not match SKU rows by position. Per-size price, stock, and buyability are not returned.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `product_summary` | Check one Dewu product by SPU number or product link. Get the price range, official retail price, brand, article number, size labels and images. Prices are CNY at product level, not per-size quotes. `sku_count` counts SKU IDs, not stock. | url | — | 1 | $0.0041 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "product_summary",
  "url": "https://www.dewu.com/product-detail.html?spuId=19504911"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `product_summary`: `spu_id`, `url`, `title`, `original_title`, `brand_id`, `brand`, `article_number`, `category_id`, `category`, `price`, `price_min`, `price_max`, `official_retail_price`, `currency`, `image_url`, `images`, `size_labels`, `sku_count`, `fetched_at`, `scope`, `platform`, `selected_sku_id`

#### Field notes

- `article_number`: Brand or manufacturer article number.
- `brand`: Brand name.
- `brand_id`: Brand identifier in Dewu's public records.
- `category_id`: Dewu product category identifier.
- `fetched_at`: Collection time of the public record, in ISO 8601 format.
- `official_retail_price`: Official or suggested retail price at product level. It does not represent the current transaction price of each size.
- `original_title`: Original product title, returned when it exists in the public record.
- `price_max`: Highest price in CNY in this product summary. It is not a per-size price.
- `price_min`: Lowest price in CNY in this product summary. It is not a per-size price.
- `scope`: Always product_summary. It states that the response is not the full product detail.
- `selected_sku_id`: SKU ID explicitly selected by the input share link and verified to exist in the returned SKU list. It carries no per-size price, stock or availability inference.
- `size_labels`: Set of standalone size or specification labels shown on the product page. It does not correspond by position to the SKU array.
- `sku_count`: Number of unique SKU IDs in this record. It is not a stock quantity.
- `spu_id`: Dewu product SPU identifier.

### Pricing

Pay per event, charged only when a run delivers data:

- `product_summary`: $0.0041, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Dewu or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `url` (type: `string`):

Used by `product_summary` (required). For product_summary, provide one positive numeric Dewu SPU, a supported Dewu product URL, or one dw4.co share link that safely resolves to a unique SPU. The result is a product-level summary and does not promise per-size price, stock, or buyability.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "product_summary",
  "url": "https://www.dewu.com/product-detail.html?spuId=19504911"
}
```

# Actor output Schema

## `records` (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 = {
    "url": "https://www.dewu.com/product-detail.html?spuId=19504911"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-dewu-api").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 = { "url": "https://www.dewu.com/product-detail.html?spuId=19504911" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-dewu-api").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 '{
  "url": "https://www.dewu.com/product-detail.html?spuId=19504911"
}' |
apify call blushing_parachute/everyinfra-dewu-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blushing_parachute/everyinfra-dewu-api"
        }
    }
}
```

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/WLeVVeXr1Ex1yhSDa/builds/Kapkilwfg7wdDNFzy/openapi.json
