# Tori.fi Scraper - Classifieds, Prices, Sellers & Listings (`abotapi/tori-fi-scraper`) Actor

Scrape Tori.fi, Finland's classifieds marketplace, by keyword, filters or URL. Extract listing titles, prices, photos, categories, item conditions, locations and seller details. Supports individual listings, shops and search URLs for market research and price comparison.

- **URL**: https://apify.com/abotapi/tori-fi-scraper.md
- **Developed by:** [Abot API](https://apify.com/abotapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 listing 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/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

## Tori Scraper

Collect listings from Tori (tori.fi), Finland's marketplace: price, photos, category path, condition, attributes, location, seller details and availability for any keyword, filter, listing, shop or search link. One clean record per listing, ready for research and price monitoring.

### Why This Scraper?

- **Full listing detail.** With details on, each listing carries its full description, category path, attributes such as condition, size and type, every photo with its size, precise position, postal code, edit time and availability.
- **Seller block included.** Company listings add the seller name, address, postal code, city, phone number, profile link, registry link and service badges.
- **Every filter of the site.** Keyword, categories, sub category, brand, price range, condition, seller type, listing type (for sale, given away, wanted), region, published today, delivery and a radius around any point.
- **Many ways in.** Search by keyword and filters, or paste search, category, brand, radius, map, listing, short listing, shop, latest listings and sitemap links, alone or mixed in one run.
- **Search context kept.** Each row records the match count, sort order, page and rank of the search that returned it.
- **Change tracking.** Schedule recurring runs and receive only new listings and real price or availability changes, optionally as compact rows.
- **Safe caps.** One clear item cap, with resume support for interrupted runs.

### Use Cases

- **Price monitoring:** track asking prices of a product or category and get only the changes.
- **Market research:** compare prices, conditions and seller types across Finnish regions and categories.
- **Lead and stock tracking:** follow the listings of a shop or a category as new items appear.
- **Catalog enrichment:** add Finnish descriptions, attributes and photos to your own item data.

### Data You Get

> Sample shape: values are illustrative placeholders, not from a live record.

| Field | Example |
| --- | --- |
| `adId` | `00000000` |
| `title` | `Example bicycle` |
| `description` | `Full listing text` |
| `price` | `100` |
| `currency` | `EUR` |
| `tradeType` | `For sale (Finnish label)` |
| `sellerType` | `private` |
| `condition` | `Good (Finnish label)` |
| `organisationName` | `Example Shop Oy` |
| `brand` | `Example Brand` |
| `location` | `District, City` |
| `postalCode` | `00000` |
| `lat` | `60.17` |
| `lng` | `24.94` |
| `publishedAt` | `2026-01-01T00:00:00Z` |
| `editedAt` | `2026-01-01T00:00:00+02:00` |
| `imageUrl` | `Main photo URL` |
| `images` | `Photos with width and height` |
| `categoryPath` | `Top level, Sub level, Leaf` |
| `attributes` | `Id, label, value per attribute` |
| `availability` | `InStock` |
| `eligibleForShipping` | `true` |
| `shop` | `Seller company block` |
| `url` | `tori.fi/recommerce/forsale/item/00000000` |
| `scrapedAt` | `2026-01-01T00:00:00Z` |

### How to Use

1. Pick a mode: search by keyword and filters, or paste Tori links.
2. Set the sort order, filters and the maximum number of items.
3. Run the actor.
4. Download the dataset as JSON, CSV or Excel, or read it through the API.

**Search by keyword:**

```json
{ "mode": "search", "searchTerms": ["polkupyora"], "sortBy": "PUBLISHED_DESC", "minPrice": 50, "maxPrice": 300, "maxItems": 100 }
```

**Browse a category in a region:**

```json
{ "mode": "search", "searchTerms": [], "categories": ["0.69"], "regions": ["0.100018"], "conditions": ["1", "2"], "maxItems": 200 }
```

**Paste links:**

```json
{ "mode": "url", "urls": ["https://www.tori.fi/recommerce/forsale/search?q=polkupyora&page=2", "https://www.tori.fi/recommerce/forsale/item/00000000", "https://www.tori.fi/tori-kaupat/example-shop"], "maxItems": 100 }
```

**Recurring price monitoring:**

```json
{ "mode": "search", "searchTerms": ["polkupyora"], "incrementalMode": true, "changeScope": "priceAndStock", "compactUpdates": true, "maxItems": 500 }
```

#### Run it from your code

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("<ACTOR_ID>").call(run_input={"mode": "search", "searchTerms": ["polkupyora"], "maxItems": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["price"])
```

JavaScript:

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('<ACTOR_ID>').call({ mode: 'search', searchTerms: ['polkupyora'], maxItems: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length);
```

#### Tips

- The site shows at most 50 pages (about 2,650 listings) of any one search. Split larger searches with filters such as categories, regions or price ranges.
- Turn off Add listing details for the quickest runs when the search row fields are enough: the description, category path, postal code, edit time, photo sizes and availability come from the listing page.
- Leave the keywords empty to browse every listing that matches the filters.
- Use Price and availability only with Compact update rows for the leanest monitoring feed.
- Listings given away have a price of 0.

### Send results into your apps (MCP connectors)

Optionally send a condensed summary of the results into Notion, Linear, Airtable or Apify through Model Context Protocol connectors. Authorize a connector once in your Apify integrations settings, then select it in the input. The full records always stay in the dataset.

### Input Parameters

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `mode` | string | search | Search by keyword and filters or paste links. |
| `searchTerms` | array | polkupyora | Keywords, one per line. Empty browses all listings that match the filters. |
| `categories` | array | empty | Top level categories to include. |
| `productCategory` | string | empty | Product category code from a Tori search link. |
| `brandId` | string | empty | Brand code from a Tori search link. |
| `sortBy` | string | RELEVANCE | Most relevant, newest first, price low to high or high to low. |
| `minPrice` | integer | empty | Keep listings priced at or above this many euros. |
| `maxPrice` | integer | empty | Keep listings priced at or below this many euros. |
| `conditions` | array | empty | Conditions to include: new, like new, good, fair, needs repair. |
| `sellerType` | string | any | Any seller, private sellers only or companies only. |
| `tradeType` | string | any | Any type, for sale, given away or wanted. |
| `regions` | array | empty | Regions of Finland to include. |
| `publishedToday` | boolean | false | Only listings published today. |
| `deliveryOnly` | boolean | false | Only listings whose seller offers delivery. |
| `latitude` | number | empty | Centre of a radius search. |
| `longitude` | number | empty | Centre of a radius search. |
| `radiusMeters` | integer | empty | Radius around the centre in meters. |
| `urls` | array | sample links | Search, listing, shop, latest listings or sitemap links. |
| `fetchDetails` | boolean | true | Adds description, category path, attributes, photos, position, edit time and the seller block from the listing page, and is the only setting that adds the per-listing details charge. Listing and feed links still open their page for the base row without it. |
| `maxPages` | integer | empty | Pages per search; does not cap the run on its own. |
| `maxItems` | integer | 20 | Maximum results; 0 means unlimited. |
| `proxy` | object | Apify Proxy | Connection settings. |
| `resumeFromRunId` | string | empty | Skip listings already collected by an earlier run. |
| `incrementalMode` | boolean | false | Return only new or changed listings. |
| `stateKey` | string | empty | Name a monitoring campaign. |
| `baselineDatasetId` | string | empty | Start incremental tracking from an earlier dataset. |
| `emitExpired` | boolean | false | Also return listings that are no longer found, after a complete scan. |
| `changeScope` | string | all | All tracked fields, or price and availability only. |
| `compactUpdates` | boolean | false | Short UPDATED and EXPIRED rows with old and new values. |
| `expireAfterMissedScans` | integer | 1 | Complete scans a listing must be missing before it expires. |
| `ignoreFieldsForChanges` | array | empty | Extra fields that never mark a listing as updated. |
| `mcpConnectors` | array | empty | Connectors to send results to. |
| `notionParentPageUrl` | string | empty | Notion parent page. |
| `maxNotifyListings` | integer | 50 | Items exported per connector. |

#### Connection and plans

The default Apify Proxy connection was measured against this site and loads its search, listing and shop pages without a block, so it is the default and normal runs do not need residential. Residential is optional; it is billed by traffic on your account, and an automatic switch to residential after a refusal is billed to your Apify plan too. If the selected connection is refused, the run switches to Apify Residential and then to a backup connection on its own and says so in the log. Apify free plans do not include residential proxies or Apify Proxy access: on a free plan the run continues on the backup connection and some pages may be unavailable.

If you enter your own proxy URLs, the run uses them instead of Apify Proxy. When many listing pages are refused in a row, the run stops opening listing pages for the rest of the run: search and shop rows are still returned from the search data, marked `degraded: true` and without the details charge, and the status message says so. In incremental mode those listings are neither compared nor returned, and their saved state is kept for the next run.

### Output Example

> Sample shape: values are illustrative placeholders, not from a live record.

```json
{
  "adId": "00000000",
  "title": "Example bicycle",
  "price": 100,
  "currency": "EUR",
  "tradeType": "Myydään",
  "sellerType": "private",
  "condition": "Hyvä",
  "location": "District, City",
  "postalCode": "00000",
  "lat": 60.17,
  "lng": 24.94,
  "categoryPath": ["Top level", "Sub level", "Leaf"],
  "attributes": [{ "id": "condition", "label": "Condition", "value": "Hyvä", "valueId": 3 }],
  "images": [{ "url": "https://example.com/photo.jpg", "width": 1600, "height": 900 }],
  "availability": "InStock",
  "eligibleForShipping": true,
  "shop": null,
  "url": "https://www.tori.fi/recommerce/forsale/item/00000000",
  "scrapedAt": "2026-01-01T00:00:00Z"
}
```

### Plan Requirement

A paid Apify plan is recommended: the default Apify Proxy connection is included with it and needs no action. Apify free plans have no Apify Proxy access, so the run falls back to a backup connection where some pages may be unavailable. Billing follows the pricing shown on the Store page.

### FAQ

#### How much does a run cost?

You pay per run start, per listing returned and, when details are on, per listing whose page was read. Set Max items to control the total.

#### Is it legal to scrape Tori?

The actor reads publicly visible listing information. You are responsible for using the data in line with applicable law and the site terms.

#### Can I schedule runs?

Yes. Use Incremental mode on a schedule to receive only changes, and Price and availability only when prices are all you care about.

#### Why did a run return nothing?

The keyword may match no listing, the filters may be too strict, a listing may have been removed, or a pasted link may be a home page or another page without listings. Try a broader keyword or relax the filters.

#### Why do some rows have no description or postal code?

Those fields come from the listing page. Turn on Add listing details, or paste listing links, to fill them.

#### Can I use it with AI tools?

Yes, through the Apify MCP server or the connectors above.

### 🔗 More scrapers you might like

Pair this actor with these related scrapers from the same team:

<table>
<tr><td>🛒 <a href="https://apify.com/abotapi/depop-scraper"><b>Depop Scraper</b></a><br>Scrape Depop search results, listings, shops, and reviews to JSON, CSV, or Excel. Extract...</td><td>🥦 <a href="https://apify.com/abotapi/resq-club-surplus-food-scraper"><b>ResQ Club Scraper</b></a><br>Scrape ResQ Club surplus food offers in Finland, Sweden and Estonia: name, price, current...</td></tr>
<tr><td>🏷️ <a href="https://apify.com/abotapi/marktplaats-nl-scraper"><b>Marktplaats.nl Scraper</b></a><br>Scrape Marktplaats.nl listings by keyword or URL. Extract title, price, condition...</td><td>🏷️ <a href="https://apify.com/abotapi/kleinanzeigen-de-scraper"><b>Kleinanzeigen.de Scraper</b></a><br>Scrape Kleinanzeigen.de ads by keyword, category, location, price, seller type, or search...</td></tr>
<tr><td>🧩 <a href="https://apify.com/abotapi/tiktok-shop-scraper"><b>TikTok Shop Scraper</b></a><br>Scrape TikTok Shop by keyword, category or product URL. Extract prices, discounts, sales...</td><td>🏷️ <a href="https://apify.com/abotapi/vinted-fr-scraper"><b>Vinted France Scraper</b></a><br>Scrape Vinted.fr second-hand fashion listings by keyword, brand, price, condition, sort...</td></tr>
</table>

👉 [Browse all abotapi scrapers](https://apify.com/abotapi)

### 💬 Support

- 🐞 **Found a bug or a missing field?** Open a ticket on the [Issues tab](https://apify.com/abotapi/tori-fi-scraper/issues/open). We usually reply within hours.
- 🛠️ **Need another site, extra fields or a private build?** Email <contact@abotapi.com>.
- ⭐ **Enjoying it?** A quick review on the actor page helps other users find it.

# Actor input Schema

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

Search runs the keywords and filters below. URL mode scrapes the Tori links you paste (search, listing, shop, latest listings or sitemap links) and ignores the search fields.

## `searchTerms` (type: `array`):

One keyword per line, Finnish works best (for example polkupyora, iPhone, sohva). Each keyword is walked page by page, 53 listings per page. Leave empty to browse every listing that matches the filters below. The site shows at most 50 pages (about 2,650 listings) per search, so use filters to split larger searches.

## `categories` (type: `array`):

Only listings in these top level categories. Leave empty for all categories.

## `productCategory` (type: `string`):

Optional product category code from a Tori search link (the product_category value, for example 2.69.3963.257 for bicycles). Narrower than Categories.

## `brandId` (type: `string`):

Optional brand code from a Tori search link (the brand value, for example 9289). Leave empty for all brands.

## `sortBy` (type: `string`):

Order of the results for every keyword.

## `minPrice` (type: `integer`):

Keep only listings priced at least this many euros. Empty or 0 keeps all.

## `maxPrice` (type: `integer`):

Keep only listings priced at most this many euros. Empty or 0 keeps all.

## `conditions` (type: `array`):

Only listings in these conditions. Leave empty for any condition.

## `sellerType` (type: `string`):

Private sellers, companies, or both.

## `tradeType` (type: `string`):

Items for sale, items given away, or wanted ads.

## `regions` (type: `array`):

Only listings located in these regions. Leave empty for all of Finland.

## `publishedToday` (type: `boolean`):

Only listings published today.

## `deliveryOnly` (type: `boolean`):

Only listings whose seller offers delivery through the site's own delivery service.

## `latitude` (type: `number`):

Centre of a radius search, for example 60.17 (Helsinki). Used together with Longitude and Radius.

## `longitude` (type: `number`):

Centre of a radius search, for example 24.94 (Helsinki).

## `radiusMeters` (type: `integer`):

Only listings within this distance of the latitude and longitude above. Empty or 0 turns the radius search off.

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

Tori links, one per line. Accepted: a search link (tori.fi/recommerce/forsale/search?..., filters, sort and page in the link are kept, a link with page 2 or more starts at that page), a category, brand, radius, free (given away) or map link, a listing link (also the short tori.fi/<number> form), a shop link (tori.fi/tori-kaupat/...), the latest listings feed and the listing sitemap (its first 25 searches). Tracking parameters are ignored. Home and editorial pages carry no listings and are skipped with a warning. Filter fields are ignored in this mode.

## `fetchDetails` (type: `boolean`):

Open each listing to add the full description, category path, attributes, condition, all photos, precise position, postal code, edit time, delivery flags, availability and the seller company block (name, address, phone, registry link). Off returns the search row fields only and adds no details charge. Listing and feed links still open their listing page for the base row; that read is not charged as details.

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

Optional. Result pages to walk per keyword or link. This does not cap the run by default: empty or 0 means no page limit (the site itself stops at 50 pages) and it defers to Max items, which is the one default cap (20).

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

The single default cap of the run: maximum listings to return across the whole run (default 20). Max pages has no finite default and defers to this field. 0 means no limit. In incremental mode, unchanged listings count toward this number.

## `proxy` (type: `object`):

Proxy settings. The default Apify Proxy connection was measured on this site and loads every page without a block, so normal runs do not need residential. Residential is optional; it is billed by traffic on your account. If the selected connection is refused, the run switches to Apify Residential and then to a backup connection on its own.

## `resumeFromRunId` (type: `string`):

Run ID (or dataset ID) of a previous run of this Actor. Listings already collected there are skipped, so this run returns only the delta. Leave empty for a normal run. For recurring monitoring of the same search, use Incremental mode instead.

## `incrementalMode` (type: `boolean`):

For recurring price monitoring. A listing is returned as NEW the first time and as UPDATED when a tracked field changes: price, currency, title, description, availability, inactive flag, buy now, shipping flags, condition and other attributes, category, location, seller block, photos. Unchanged listings are not returned or billed. Never compared: rank, search keyword, collection time, match count, paging, search key, sort, publish and edit time stamps, image links and sizes. State is kept per tracked search or link set, or per State key when you set one.

## `stateKey` (type: `string`):

Optional name for a monitoring campaign. Runs sharing a key share their incremental state. Leave empty to scope it automatically to the search or links.

## `baselineDatasetId` (type: `string`):

Optional. Pick the dataset of an earlier full run of this Actor so the first incremental run returns only listings that changed since then. Pick it unedited. Only used on the first run for a state key and not combined with Resume.

## `emitExpired` (type: `boolean`):

Off by default. Also returns listings that were tracked before and are no longer found, marked EXPIRED. Only produced after a complete scan, never when Max items, Max pages, the 50 page limit of the site, a pasted page beyond 1, a listing, shop, feed or sitemap link, or Resume limited the run. These synthetic rows are returned and billed, so leave it off unless you need expiry tracking.

## `changeScope` (type: `string`):

All fields (default): any change to the tracked fields returns an UPDATED row. Price and availability only: only price, currency, availability, inactive flag, buy now and the listing attributes (condition, size, and so on) return an UPDATED row; title, description, photos, location and seller details never do.

## `compactUpdates` (type: `boolean`):

Off by default. When on, UPDATED and EXPIRED rows are short: listing id, url, title, current price and availability, plus priceChanges and variantChanges with the old and new value of each moved field. NEW rows always carry the complete record.

## `expireAfterMissedScans` (type: `integer`):

Only used with Emit expired listings. A listing is marked EXPIRED only after it was missing from this many complete scans in a row (default 1). Raise it so a listing that briefly drops out of the results is not reported as gone.

## `ignoreFieldsForChanges` (type: `array`):

Extra field names that must not mark a listing as UPDATED in incremental mode. Rank, search context, time stamps and image details are already ignored. Use a dotted name such as shop.phoneNumber to ignore one key inside a nested block, or attributes.label for one key inside every attribute.

## `mcpConnectors` (type: `array`):

Optionally send the scraped results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize a connector once under Apify Settings, Integrations, then select it here. The connector receives a condensed summary per item; the full record stays in the dataset. Leave empty to skip.

## `notionParentPageUrl` (type: `string`):

URL (or id) of the Notion page under which item pages are created. Required to enable the Notion export; ignored by other connectors.

## `maxNotifyListings` (type: `integer`):

Cap on items written to each connector per run. Does not affect the dataset.

## Actor input object example

```json
{
  "mode": "search",
  "searchTerms": [
    "polkupyora"
  ],
  "sortBy": "RELEVANCE",
  "sellerType": "any",
  "tradeType": "any",
  "publishedToday": false,
  "deliveryOnly": false,
  "urls": [
    "https://www.tori.fi/recommerce/forsale/search?q=polkupyora",
    "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&page=2",
    "https://www.tori.fi/recommerce/forsale/search",
    "https://www.tori.fi/recommerce/forsale/search?category=0.69",
    "https://www.tori.fi/recommerce/forsale/search?product_category=2.69.3963.257",
    "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&price_from=50&price_to=200&sort=PUBLISHED_DESC&dealer_segment=1&trade_type=1&condition=2",
    "https://www.tori.fi/recommerce/forsale/search?trade_type=2",
    "https://www.tori.fi/recommerce/forsale/search?brand=9289",
    "https://www.tori.fi/recommerce/forsale/search?lat=60.17&lon=24.94&radius=5000",
    "https://www.tori.fi/recommerce/forsale/item/49931144",
    "https://www.tori.fi/recommerce/forsale/item/49931144?utm_source=x&ref=y",
    "https://www.tori.fi/49931144",
    "https://www.tori.fi/tori-kaupat/e-fat-finland-oy",
    "https://www.tori.fi/map/recommerce/forsale",
    "https://www.tori.fi/recommerce/forsale/search/api/search/SEARCH_ID_BAP_COMMON?q=polkupyora",
    "https://www.tori.fi/feed/recommerce/atom.xml",
    "https://www.tori.fi/sitemap-bap.xml"
  ],
  "fetchDetails": true,
  "maxItems": 20,
  "proxy": {
    "useApifyProxy": true
  },
  "incrementalMode": false,
  "emitExpired": false,
  "changeScope": "all",
  "compactUpdates": false,
  "expireAfterMissedScans": 1,
  "ignoreFieldsForChanges": [],
  "maxNotifyListings": 50
}
```

# Actor output Schema

## `overview` (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 = {
    "mode": "search",
    "searchTerms": [
        "polkupyora"
    ],
    "urls": [
        "https://www.tori.fi/recommerce/forsale/search?q=polkupyora",
        "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&page=2",
        "https://www.tori.fi/recommerce/forsale/search",
        "https://www.tori.fi/recommerce/forsale/search?category=0.69",
        "https://www.tori.fi/recommerce/forsale/search?product_category=2.69.3963.257",
        "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&price_from=50&price_to=200&sort=PUBLISHED_DESC&dealer_segment=1&trade_type=1&condition=2",
        "https://www.tori.fi/recommerce/forsale/search?trade_type=2",
        "https://www.tori.fi/recommerce/forsale/search?brand=9289",
        "https://www.tori.fi/recommerce/forsale/search?lat=60.17&lon=24.94&radius=5000",
        "https://www.tori.fi/recommerce/forsale/item/49931144",
        "https://www.tori.fi/recommerce/forsale/item/49931144?utm_source=x&ref=y",
        "https://www.tori.fi/49931144",
        "https://www.tori.fi/tori-kaupat/e-fat-finland-oy",
        "https://www.tori.fi/map/recommerce/forsale",
        "https://www.tori.fi/recommerce/forsale/search/api/search/SEARCH_ID_BAP_COMMON?q=polkupyora",
        "https://www.tori.fi/feed/recommerce/atom.xml",
        "https://www.tori.fi/sitemap-bap.xml"
    ],
    "proxy": {
        "useApifyProxy": true
    },
    "incrementalMode": false,
    "emitExpired": false,
    "compactUpdates": false,
    "expireAfterMissedScans": 1,
    "ignoreFieldsForChanges": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/tori-fi-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",
    "searchTerms": ["polkupyora"],
    "urls": [
        "https://www.tori.fi/recommerce/forsale/search?q=polkupyora",
        "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&page=2",
        "https://www.tori.fi/recommerce/forsale/search",
        "https://www.tori.fi/recommerce/forsale/search?category=0.69",
        "https://www.tori.fi/recommerce/forsale/search?product_category=2.69.3963.257",
        "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&price_from=50&price_to=200&sort=PUBLISHED_DESC&dealer_segment=1&trade_type=1&condition=2",
        "https://www.tori.fi/recommerce/forsale/search?trade_type=2",
        "https://www.tori.fi/recommerce/forsale/search?brand=9289",
        "https://www.tori.fi/recommerce/forsale/search?lat=60.17&lon=24.94&radius=5000",
        "https://www.tori.fi/recommerce/forsale/item/49931144",
        "https://www.tori.fi/recommerce/forsale/item/49931144?utm_source=x&ref=y",
        "https://www.tori.fi/49931144",
        "https://www.tori.fi/tori-kaupat/e-fat-finland-oy",
        "https://www.tori.fi/map/recommerce/forsale",
        "https://www.tori.fi/recommerce/forsale/search/api/search/SEARCH_ID_BAP_COMMON?q=polkupyora",
        "https://www.tori.fi/feed/recommerce/atom.xml",
        "https://www.tori.fi/sitemap-bap.xml",
    ],
    "proxy": { "useApifyProxy": True },
    "incrementalMode": False,
    "emitExpired": False,
    "compactUpdates": False,
    "expireAfterMissedScans": 1,
    "ignoreFieldsForChanges": [],
}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/tori-fi-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",
  "searchTerms": [
    "polkupyora"
  ],
  "urls": [
    "https://www.tori.fi/recommerce/forsale/search?q=polkupyora",
    "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&page=2",
    "https://www.tori.fi/recommerce/forsale/search",
    "https://www.tori.fi/recommerce/forsale/search?category=0.69",
    "https://www.tori.fi/recommerce/forsale/search?product_category=2.69.3963.257",
    "https://www.tori.fi/recommerce/forsale/search?q=polkupyora&price_from=50&price_to=200&sort=PUBLISHED_DESC&dealer_segment=1&trade_type=1&condition=2",
    "https://www.tori.fi/recommerce/forsale/search?trade_type=2",
    "https://www.tori.fi/recommerce/forsale/search?brand=9289",
    "https://www.tori.fi/recommerce/forsale/search?lat=60.17&lon=24.94&radius=5000",
    "https://www.tori.fi/recommerce/forsale/item/49931144",
    "https://www.tori.fi/recommerce/forsale/item/49931144?utm_source=x&ref=y",
    "https://www.tori.fi/49931144",
    "https://www.tori.fi/tori-kaupat/e-fat-finland-oy",
    "https://www.tori.fi/map/recommerce/forsale",
    "https://www.tori.fi/recommerce/forsale/search/api/search/SEARCH_ID_BAP_COMMON?q=polkupyora",
    "https://www.tori.fi/feed/recommerce/atom.xml",
    "https://www.tori.fi/sitemap-bap.xml"
  ],
  "proxy": {
    "useApifyProxy": true
  },
  "incrementalMode": false,
  "emitExpired": false,
  "compactUpdates": false,
  "expireAfterMissedScans": 1,
  "ignoreFieldsForChanges": []
}' |
apify call abotapi/tori-fi-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,abotapi/tori-fi-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/XQDY6jMeQd5wM7ei2/builds/2IOQbQ6YcK8UNTcSj/openapi.json
