# New Listing Alert — Craigslist & tori.fi Saved Search Alerts (`xtracto/new-listing-alert`) Actor

Turn any Craigslist search (cars, apartments, for sale, jobs - any area) or tori.fi search into an alert. Each scheduled run reports only listings that are new since the last run, plus price drops on listings you have already seen.

- **URL**: https://apify.com/xtracto/new-listing-alert.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.33 / 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

## New Listing Alert — Craigslist & tori.fi Saved Search Alerts

Turn any Craigslist search (cars, apartments, furniture, jobs, in any of ~700 areas) or any tori.fi search into an alert. Each run lists the current listings and marks the ones that are new since the last run, plus price drops on listings you have already seen. Turn on `onlyNew` and schedule it to get only the new ones.

### Why use this actor

- **Paste the search you already use**: set the filters on Craigslist (area, category, keywords, price range, bedrooms, make/model…), copy the URL, done.
- **New listings flagged**: every row carries `isNew`. With `onlyNew` on, each listing is reported once, and a quiet run outputs nothing and costs nothing.
- **Price drops**: a listing you've already seen that gets cheaper by your threshold comes back as `price_drop`, with the old price.
- **Honest labels**: on tori.fi, an older ad that its seller bumped back to the top is marked `resurfaced`, not "new".
- **No flood on day one** (with `onlyNew`): the first run only remembers what's already listed; alerts start with genuinely new listings.
- No account, no login, no API key.

### How it works

1. Add Craigslist search URLs and/or tori.fi keywords.
2. Schedule the actor, e.g. every 15 minutes for hot categories or every morning.
3. Each run reads the newest listings for every search and compares them with what that search has seen before.
4. New listings and price drops come out as rows. Connect a webhook, Slack, email or Telegram integration to get pinged.

No scraping setup and no database to maintain; history is kept for you between runs.

### Input

```json
{
  "craigslistSearchUrls": [
    "https://sfbay.craigslist.org/search/cta?query=toyota+tacoma",
    "https://newyork.craigslist.org/search/apa?query=studio"
  ],
  "toriSearchQueries": ["polkupyörä"],
  "maxListingsPerSearch": 120,
  "minPriceDropPercent": 5,
  "onlyNew": false,
  "reportBaseline": false
}
```

| Field | Type | Description |
|---|---|---|
| `craigslistSearchUrls` | array | Craigslist search URLs with your filters (price range, bedrooms, make/model, distance from a postal code…) |
| `toriSearchQueries` | array | Keywords for tori.fi for-sale listings (Finland) |
| `maxListingsPerSearch` | integer | Newest listings read per search and run (Craigslist: up to 360). Keep it above what one schedule interval adds |
| `minPriceDropPercent` | integer | Report a price drop when a seen listing got at least this much cheaper |
| `onlyNew` | boolean | Output only new listings and price drops (for scheduled runs). Off: every run lists all current listings |
| `reportBaseline` | boolean | With `onlyNew`: also output the listings that already exist on a search's first run |
| `proxyConfiguration` | object | Optional |

### Output

Real rows from a run on 2026-10-22:

```json
{
  "search": "polkupyörä",
  "events": ["new_listing"],
  "firstRun": false,
  "isNew": true,
  "previousPrice": null,
  "priceDropPercent": null,
  "source": "tori",
  "listingId": "tori:48130141",
  "title": "Myydään täysin uusi ja käyttämätön Helkama Jopo 24\" – Musta",
  "price": 230.0,
  "currency": "EUR",
  "url": "https://www.tori.fi/recommerce/forsale/item/48130141",
  "location": "Leppävirta Keskus, Leppävirta",
  "postedAt": null,
  "imageUrl": "https://img.tori.net/dynamic/default/item/48130141/1230adca-5437-462e-867c-1a4f3d624857",
  "isPromoted": false,
  "condition": null
}
```

```json
{
  "search": "polkupyörä",
  "events": ["resurfaced"],
  "source": "tori",
  "listingId": "tori:36348842",
  "title": "Tunturi akseli 28 4v",
  "price": 125.0,
  "currency": "EUR",
  "url": "https://www.tori.fi/recommerce/forsale/item/36348842",
  "location": "Haapavesi Keskus, Haapavesi",
  "postedAt": "2026-10-20T10:23:29Z"
}
```

A Craigslist price drop looks like `"events": ["price_drop"], "price": 1500.0, "priceText": "$1,500", "previousPrice": 1875.0, "priceDropPercent": 20.0`.

| Field | Type | Description |
|---|---|---|
| `isNew` | boolean | `true` the first time this alert sees the listing |
| `events` | array | `new_listing`, `resurfaced` (an older ad bumped back to the top), `price_drop`, `seen_before`, or `baseline` on a search's first run |
| `search` | string | The search URL or keywords that found it |
| `source`, `listingId` | string | `craigslist` / `tori` and the site's own listing id |
| `title`, `price`, `currency`, `url`, `location`, `imageUrl` | | Listing details. Craigslist also has `priceText` (as shown) and `latitude` / `longitude` |
| `postedAt` | string | Approximate post time (tori.fi; derived from the ad's age) |
| `previousPrice`, `priceDropPercent` | number | For `price_drop` rows |
| `isPromoted`, `condition` | | tori.fi extras |

### Notes and limits

- **With `onlyNew` on, the first run is a baseline.** Alerts start from the second run.
- Craigslist prices are shown in the area's own currency (USD or CAD); `currency` is left empty and `priceText` keeps the original text.
- Each search keeps its own history for 60 days; the same search URL in two tasks shares one history.
- An unknown Craigslist area or a failing search is named in the status message and the other searches still run. A run fails only when every search failed.

### Related actors

| Actor | Use it for |
|---|---|
| Craigslist Search Scraper | One-off pulls of every listing for a search |
| tori.fi Listings Scraper | One-off tori.fi searches with full details |
| Price & Stock Monitor | Price and stock alerts for store product pages |

# Actor input Schema

## `craigslistSearchUrls` (type: `array`):

Open a Craigslist search in your browser with the filters you want (area, category, keywords, price range...) and paste the URL. Works for cars, housing, for sale, jobs and every other category.

## `toriSearchQueries` (type: `array`):

Keywords to search on tori.fi for-sale listings.

## `maxListingsPerSearch` (type: `integer`):

Newest listings read per search and run (Craigslist returns up to 360). Keep it above what one schedule interval adds.

## `minPriceDropPercent` (type: `integer`):

Report a price_drop on a listing already seen when its price fell by at least this much.

## `onlyNew` (type: `boolean`):

Off: every run lists all current listings of each search, each marked isNew when this alert sees it for the first time, plus price drops. On: a run lists only new listings and price drops, and the first run of a search just remembers what is already listed. Turn it on when you schedule the alert.

## `reportBaseline` (type: `boolean`):

Only used with 'Only new listings'. Off (recommended): the first run of a search only remembers what is already listed. On: it also reports those listings once.

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

Optional; both sites answer without one.

## Actor input object example

```json
{
  "craigslistSearchUrls": [
    "https://sfbay.craigslist.org/search/cta?query=toyota+tacoma",
    "https://newyork.craigslist.org/search/apa?query=studio"
  ],
  "toriSearchQueries": [
    "polkupyörä"
  ],
  "maxListingsPerSearch": 120,
  "minPriceDropPercent": 5,
  "onlyNew": false,
  "reportBaseline": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per new listing or price drop, stored in the run's default dataset.

# 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 = {
    "craigslistSearchUrls": [
        "https://sfbay.craigslist.org/search/cta?query=toyota+tacoma",
        "https://newyork.craigslist.org/search/apa?query=studio"
    ],
    "toriSearchQueries": [
        "polkupyörä"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/new-listing-alert").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 = {
    "craigslistSearchUrls": [
        "https://sfbay.craigslist.org/search/cta?query=toyota+tacoma",
        "https://newyork.craigslist.org/search/apa?query=studio",
    ],
    "toriSearchQueries": ["polkupyörä"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/new-listing-alert").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 '{
  "craigslistSearchUrls": [
    "https://sfbay.craigslist.org/search/cta?query=toyota+tacoma",
    "https://newyork.craigslist.org/search/apa?query=studio"
  ],
  "toriSearchQueries": [
    "polkupyörä"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call xtracto/new-listing-alert --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/new-listing-alert"
        }
    }
}
```

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/5zfwjWyART0CKZtgr/builds/DpuzGEfpuH7izekha/openapi.json
