# Yad2 Product Search Scraper (`stealth_mode/yad2-product-search-scraper`) Actor

Scrape product listings from Yad2.co.il marketplace with ease. This scraper collects titles, prices, conditions, images, seller info, and 19+ fields per listing — perfect for market researchers, resellers, and price intelligence analysts.

- **URL**: https://apify.com/stealth\_mode/yad2-product-search-scraper.md
- **Developed by:** [Stealth mode](https://apify.com/stealth_mode) (community)
- **Categories:** Automation, Developer tools, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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

## Yad2 Product Search Scraper: Extract Market Listings from Yad2.co.il
---

### What Is Yad2.co.il?

Yad2 (יד2) is Israel's largest online marketplace, covering categories from real estate and vehicles to second-hand electronics and consumer goods. Its "Market" section functions similarly to Facebook Marketplace or Craigslist, where both private sellers and small businesses list products. Manually tracking listings — especially for competitive pricing or inventory research — is impractical at scale. The **Yad2 Product Search Scraper** automates collection of structured product data from any Yad2 Market category or search results page.

---

### Overview

The **Yad2 Product Scraper** targets Yad2's marketplace collection and search pages, extracting rich listing data into clean, structured records. It is built for:

- **Resellers** monitoring second-hand electronics pricing
- **Market researchers** analyzing consumer goods supply and demand in Israel
- **Price intelligence tools** tracking listing price changes over time
- **Developers** building product aggregators or comparison platforms

Core capabilities include configurable item limits per URL, resilient error handling via `ignore_url_failures`, and support for paginated category pages.

---

### Input Format

The scraper accepts a JSON configuration object with three parameters:

```json
{
  "urls": [
    "https://www.yad2.co.il/market/collections/mobile-phones?page=2"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 50
}
````

| Field | Type | Default | Description |
|---|---|---|---|
| `urls` | `array` | — | URLs of Yad2 Market **product list pages** to scrape. Accepts category pages, collection pages, or search result pages. Add one per line or use bulk edit. Example: `https://www.yad2.co.il/market/collections/mobile-phones` |
| `ignore_url_failures` | `boolean` | `true` | If `true`, the scraper continues running even if individual URLs fail, skipping them instead of stopping the entire run. Recommended for bulk jobs. |
| `max_items_per_url` | `integer` | `20` | Maximum number of product listings to collect per URL. Increase for deeper category coverage (e.g., `50` for broader datasets). |

> **Tip:** Use paginated URLs (e.g., `?page=2`, `?page=3`) as separate entries in the `urls` array to collect listings beyond the first page.

***

### Output Format

#### Sample Output Record

```json
{
  "id": 8896927105084,
  "address": {
    "area": {
      "id": "69",
      "text_heb": "אזור בית שמש והסביבה",
      "text_eng": "beit_shemesh_and_surroundings"
    },
    "city": {
      "id": "2610",
      "text_heb": "בית שמש",
      "text_eng": "Beit Shemesh"
    }
  },
  "category_id": 20,
  "condition": {
    "id": "2",
    "text_heb": "כמו חדש"
  },
  "cust_id": 8702057,
  "images": [
    "https://cdn.shopify.com/s/files/1/0590/7860/6908/files/y2_0pa_010592_20260427224549.jpg?v=1777320003",
    "https://cdn.shopify.com/s/files/1/0590/7860/6908/files/y2_0pa_010976_20260427225135.jpg?v=1777320003"
  ],
  "is_smb": null,
  "is_verified": false,
  "order_type_id": 3,
  "price": 200,
  "previous_price": null,
  "product_type": {
    "id": "543626",
    "text_heb": "אוזניות"
  },
  "promotions": [],
  "tags": [
    "כמו חדש",
    "במצב מושלם"
  ],
  "title": "אוזניות בלוטוס JBL",
  "url_identifier": "אוזניות-בלוטוס-jbl-1",
  "ad_id": "47165557-dff0-4231-8635-30ed6d0cc2d3",
  "video": null,
  "agent": {
    "phone": "053-3178238"
  },
  "from_url": "https://www.yad2.co.il/market/collections/mobile-phones?srsltid=AfmBOor-2AuwxDTNoESombqhgyZ9e96wlI5UiJH01PvRgOyhKPajF9Fq"
}
```

Each scraped listing returns up to 19 fields:

#### Core Listing Identity

| Field | Meaning |
|---|---|
| `ID` | Unique internal Yad2 listing identifier |
| `Ad ID` | Advertisement ID used in Yad2's ad system — may differ from `ID` |
| `URL Identifier` | Slug or token used to construct the listing's direct URL |
| `Title` | Product title as written by the seller |

#### Pricing

| Field | Meaning |
|---|---|
| `Price` | Current asking price (in ILS ₪) |
| `Previous Price` | Price before the most recent reduction — useful for tracking markdowns |

#### Product Details

| Field | Meaning |
|---|---|
| `Condition` | Item condition (e.g., new, used, refurbished) |
| `Product Type` | Category or type classification assigned by Yad2 |
| `Category ID` | Internal category identifier for the listing's product group |
| `Tags` | Descriptive tags attached to the listing by the seller or system |

#### Seller & Verification

| Field | Meaning |
|---|---|
| `Customer ID` | Identifier for the seller's Yad2 account |
| `Is SMB` | `true` if the seller is a small/medium business rather than a private individual |
| `Is Verified` | `true` if the seller's account has passed Yad2's verification process |
| `Agent` | Agent or broker information if the listing is managed by a third party |

#### Media

| Field | Meaning |
|---|---|
| `Images` | Array of image URLs attached to the listing |
| `Video` | Video URL if the seller uploaded a product video |

#### Listing Behavior & Promotion

| Field | Meaning |
|---|---|
| `Order Type ID` | Indicates the listing's transaction type (e.g., sale, auction) |
| `Promotions` | Active promotional boosts or featured placement applied to the listing |
| `Address` | Location associated with the listing (city or region level) |

***

### How to Use

1. **Find a category or search page** — Browse Yad2 Market and navigate to a category (e.g., `/market/collections/mobile-phones`) or run a search. Copy the full URL including filters and page number.
2. **Add URLs to input** — Paste into the `urls` array. For multi-page coverage, add each paginated URL separately.
3. **Set item limit** — Adjust `max_items_per_url` based on how many results you need per page (max depends on Yad2's page size, typically 20–40).
4. **Enable failure tolerance** — Keep `ignore_url_failures: true` for multi-URL runs.
5. **Run and export** — Download results as JSON, CSV, or Excel.

**Common issues:**

- If a URL returns no results, confirm it is a **listing/collection page**, not a single product detail page.
- Some filters or query strings may expire (e.g., `srsltid` tracking tokens) — use clean category URLs when possible for stable runs.

***

### Use Cases & Business Value

- **Competitive pricing:** Track mobile phone or electronics prices across hundreds of listings daily
- **Inventory research:** Identify supply levels for specific product categories in the Israeli market
- **Price drop alerts:** Compare `Price` vs `Previous Price` to detect discounts automatically
- **Seller analysis:** Filter by `Is SMB` and `Is Verified` to distinguish professional sellers from private individuals

***

### Conclusion

The **Yad2 Product Search Scraper** delivers structured, actionable marketplace data from Israel's most-used classifieds platform. With 19 output fields covering pricing, condition, seller trust signals, and media, it equips analysts, resellers, and developers with the data they need — without manual browsing.

# Actor input Schema

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

Add the URLs of the product list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped.

## `max_items_per_url` (type: `integer`):

The maximum number of items to scrape per URL.

## Actor input object example

```json
{
  "urls": [
    "https://www.yad2.co.il/market/collections/mobile-phones?srsltid=AfmBOor-2AuwxDTNoESombqhgyZ9e96wlI5UiJH01PvRgOyhKPajF9Fq"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}
```

# 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://www.yad2.co.il/market/collections/mobile-phones?srsltid=AfmBOor-2AuwxDTNoESombqhgyZ9e96wlI5UiJH01PvRgOyhKPajF9Fq"
    ],
    "ignore_url_failures": true,
    "max_items_per_url": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("stealth_mode/yad2-product-search-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://www.yad2.co.il/market/collections/mobile-phones?srsltid=AfmBOor-2AuwxDTNoESombqhgyZ9e96wlI5UiJH01PvRgOyhKPajF9Fq"],
    "ignore_url_failures": True,
    "max_items_per_url": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("stealth_mode/yad2-product-search-scraper").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 '{
  "urls": [
    "https://www.yad2.co.il/market/collections/mobile-phones?srsltid=AfmBOor-2AuwxDTNoESombqhgyZ9e96wlI5UiJH01PvRgOyhKPajF9Fq"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}' |
apify call stealth_mode/yad2-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=stealth_mode/yad2-product-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Yad2 Product Search Scraper",
        "description": "Scrape product listings from Yad2.co.il marketplace with ease. This scraper collects titles, prices, conditions, images, seller info, and 19+ fields per listing — perfect for market researchers, resellers, and price intelligence analysts.",
        "version": "0.0",
        "x-build-id": "QpBNqr2RFAF5qyMG7"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/stealth_mode~yad2-product-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-stealth_mode-yad2-product-search-scraper",
                "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/stealth_mode~yad2-product-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-stealth_mode-yad2-product-search-scraper",
                "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/stealth_mode~yad2-product-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-stealth_mode-yad2-product-search-scraper",
                "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",
                "properties": {
                    "urls": {
                        "title": "URLs of the product list urls to scrape",
                        "type": "array",
                        "description": "Add the URLs of the product list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "ignore_url_failures": {
                        "title": "Continue running even if some URLs fail to be scraped",
                        "type": "boolean",
                        "description": "If true, the scraper will continue running even if some URLs fail to be scraped."
                    },
                    "max_items_per_url": {
                        "title": "Max items per URL",
                        "type": "integer",
                        "description": "The maximum number of items to scrape per URL."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
