# Wish.com Product Price & Rating Scraper (`nimbryxo-studio/wish-com-product-price-and-rating-scraper`) Actor

Search, browse, or look up Wish.com products and get price, rating, merchant ID, and image for each one, filterable by price range, rating, and sale status.

- **URL**: https://apify.com/nimbryxo-studio/wish-com-product-price-and-rating-scraper.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Wish.com Product Price & Rating Scraper

Wish.com lists budget, direct-from-manufacturer products across dozens of categories, each with its own price, discount, rating, and merchant information. This actor queries Wish by keyword, category, or specific product ID and returns one structured record per product.

### What this actor does

- Searches Wish by keyword, browses a category, or looks up specific products by ID.
- Collects the public listing rows Wish renders; anonymous Wish currently exposes about 12 items per search/category, so the source may cap the requested `maxItems`.
- Filters `search`/`byCategory` results by price range, minimum rating, and sale status.
- Returns price, rating, merchant ID, review count and discount from search/category listings; `byProductId` lookups return a lighter record (see below).
- Fields Wish doesn't provide for a given product are left out of that product's record.

### Output per product

`search` and `byCategory` return:

| Field | Description |
|---|---|
| `productId` | Wish product ID (24-character hex string). |
| `name` | Product name/title. |
| `price` | Listed price in USD. |
| `rating` | Average customer rating (0–5), when shown on the listing tile. |
| `ratingCount` | Number of reviews shown for the listing, when greater than zero. |
| `numBought` | Purchase count shown on the tile (e.g. `42 bought this`), when present. |
| `merchantId` | Seller/merchant identifier. |
| `mainImageUrl` | Main product image URL. |
| `isOnSale` | Whether the listing currently has a crossed/list price above the current price. |
| `discountPercent` | Discount percentage derived from the tile's local current and crossed prices, when on sale. |
| `productUrl` | Direct link to the Wish product page. |
| `recordType` | Always `"product"`. |
| `siteName` | Always `"Wish"`. |
| `scrapedAt` | ISO 8601 timestamp of when this actor fetched the record. |

`byProductId` returns a lighter record from the product detail page — `productId`, `productUrl`, `mainImageUrl` (when found), plus the same `recordType`/`siteName`/`scrapedAt` — without `name`, `price`, `rating`, or `merchantId`. `isOnSale` on a `byProductId` record is always `false`, since the detail page lookup doesn't carry sale-price data; set `onSaleOnly: true` only with `search`/`byCategory`, since it will exclude every `byProductId` result.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | String (select) | `"search"` | What to fetch: `search` (keyword), `byProductId` (specific products), or `byCategory` (browse). |
| `query` | String | `"phone case"` | Search keyword, used when `mode` is `search`. |
| `productIds` | Array of strings | `[]` | Wish product IDs to fetch directly, used when `mode` is `byProductId`. |
| `category` | String (select) | `"electronics"` | Category to browse, used when `mode` is `byCategory` (e.g. Fashion & Clothing, Home & Garden, Beauty & Personal Care, Toys & Games, and 16 others). |
| `minPrice` | Number | – | Drop products cheaper than this price (USD). |
| `maxPrice` | Number | – | Drop products more expensive than this price (USD). |
| `minRating` | Number | – | Drop products with an average rating below this value (0.0–5.0). |
| `onSaleOnly` | Boolean | `false` | Only return products that currently have a discounted price. |
| `maxItems` | Integer | `5` | Maximum number of products to return (1–500). |

#### Example: keyword search under a price cap

```json
{
    "mode": "search",
    "query": "wireless earbuds",
    "maxPrice": 30,
    "maxItems": 40
}
```

#### Example: browse a category, on-sale items only

```json
{
    "mode": "byCategory",
    "category": "electronics",
    "onSaleOnly": true,
    "maxItems": 50
}
```

#### Example: look up specific products by ID

```json
{
    "mode": "byProductId",
    "productIds": ["5e955e7d91a1d604c5af24b2"]
}
```

### Use cases

- **Dropshipping research** — scan a category or keyword for low-priced, well-rated products worth sourcing.
- **Price monitoring** — track `price` for a set of search results over time.
- **Catalog building** — collect product images and listing prices for a category to seed a comparison feed.

### FAQ

**Do I need a Wish account to use this?**
No. This actor reads publicly accessible Wish product pages and listings.

**What categories can I browse?**
`byCategory` accepts any of 20 categories covering fashion, electronics, home & garden, beauty, toys, sports, automotive, pets, jewelry, health, bags & accessories, office & school, tools, baby, gaming, outdoor, shoes, phone accessories, computers, and kitchen.

**Why are some fields missing on certain products?**
Not every product tile exposes every field, and `byProductId` lookups return a smaller field set than `search`/`byCategory` (see Output above). Fields that Wish doesn't provide for a given product, or that this actor doesn't extract for that mode, are omitted rather than filled with a placeholder.

**What is a Wish product ID, and where do I find one?**
It's the 24-character hex string that appears in a product's URL (`wish.com/product/{productId}`). Any product returned by `search` or `byCategory` includes its own `productId` you can reuse with `byProductId`.

**Is `maxItems` always reached?**

No. The public listing surface currently exposes about 12 products per search/category; there is no working anonymous offset pagination. The actor emits what Wish serves and documents the cap.

**How current is `rating`?**
It reflects Wish's displayed 0-5 rating on the search/category listing tile. `ratingCount` is a separate field from the tile's review count; it is never used as the rating.

**Can I combine `minPrice`, `maxPrice`, `minRating`, and `onSaleOnly` in one run?**
Yes, but they only have an effect on `search` and `byCategory` results — `byProductId` records don't carry price/rating/sale data, so `onSaleOnly: true` will exclude every `byProductId` result.

**Is this affiliated with Wish?**
No. This actor is an independent tool that reads Wish's public product pages and is not affiliated with or endorsed by Wish (ContextLogic Inc.).

# Actor input Schema

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

What to fetch from Wish.com.

## `query` (type: `string`):

Keyword to search for (mode=search). E.g. 'phone case'.

## `productIds` (type: `array`):

One or more Wish product IDs (24-character hex strings). E.g. '5e955e7d91a1d604c5af24b2'.

## `category` (type: `string`):

Wish product category to browse.

## `minPrice` (type: `number`):

Filter out products cheaper than this price.

## `maxPrice` (type: `number`):

Filter out products more expensive than this price.

## `minRating` (type: `number`):

Filter out products with average rating below this value (0.0–5.0).

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

Only emit products that have a discounted (sale) price.

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

Hard cap on emitted records (1–500).

## Actor input object example

```json
{
  "mode": "search",
  "query": "phone case",
  "productIds": [],
  "category": "electronics",
  "onSaleOnly": false,
  "maxItems": 3
}
```

# Actor output Schema

## `records` (type: `string`):

Dataset containing all scraped Wish products.

# 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 = {
    "mode": "search",
    "query": "phone case",
    "productIds": [],
    "category": "electronics",
    "onSaleOnly": false,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/wish-com-product-price-and-rating-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 = {
    "mode": "search",
    "query": "phone case",
    "productIds": [],
    "category": "electronics",
    "onSaleOnly": False,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/wish-com-product-price-and-rating-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 '{
  "mode": "search",
  "query": "phone case",
  "productIds": [],
  "category": "electronics",
  "onSaleOnly": false,
  "maxItems": 3
}' |
apify call nimbryxo-studio/wish-com-product-price-and-rating-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/wish-com-product-price-and-rating-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/OdpCviyaMqxLPWUbK/builds/VGH5j0j2JmqTZwOOk/openapi.json
