# SS.com Scraper: Latvia Classified Ads & Prices (`getascraper/ss-com-latvia-scraper`) Actor

Scrape classified ads from ss.com, Latvia's largest listings portal. Get listing titles, prices in EUR, item specs like car year, mileage, rooms, and floor, plus image links and ad URLs. Search any category by URL, filter by price and year, then export to Excel, Google Sheets, CSV, or JSON.

- **URL**: https://apify.com/getascraper/ss-com-latvia-scraper.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** E-commerce, Automation, Real estate
- **Stats:** 2 total users, 0 monthly users, 99.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.74 / 1,000 listing records

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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## 🇱🇻 ss.com Latvia inventory monitor

See the repository README for the complete input and output contract. This Actor is limited to source-backed ss.com / ss.lv vehicles (`cars`, `motorcycles`, `trucks`) and property (`flats`, `houses`, `land`, `commercial`) inventory.

It supports deterministic price, year, and area filters, stable IDs, explicit source failures, and named `snapshot` or `changes` monitoring. Missing values are omitted. Seller classifications are emitted only with exact owner or dealer wording from the public listing row.

# Actor input Schema

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

Validated ss.com vehicle or property branch. Broad, unrelated sections are intentionally not supported.

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

Optional ss.com txt keyword applied to the category or direct source URL.

## `categoryUrl` (type: `string`):

Optional ss.com or ss.lv vehicle/property category or filtered list URL. Unsupported sections are reported as an explicit failure.

## `startUrls` (type: `array`):

Optional list of supported ss.com or ss.lv vehicle/property list URLs. Each object may provide inputId for source correlation.

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

Only listings with a published EUR price at or above this value are returned.

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

Only listings with a published EUR price at or below this value are returned.

## `minYear` (type: `integer`):

Vehicle year lower bound. Listings without a published year do not pass this bound.

## `maxYear` (type: `integer`):

Vehicle year upper bound. Listings without a published year do not pass this bound.

## `minAreaM2` (type: `number`):

Property area lower bound in square metres. Missing source area does not pass this bound.

## `maxAreaM2` (type: `number`):

Property area upper bound in square metres. Missing source area does not pass this bound.

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

Maximum returned listing records after filtering and deterministic sorting.

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

Stable sort field. Missing numeric values sort after published values.

## `sortOrder` (type: `string`):

Choose ascending or descending order for the selected sort field.

## `monitorMode` (type: `string`):

snapshot returns the current complete result set. changes returns NEW, UPDATED, PRICE\_CHANGED, STATUS\_CHANGED, REAPPEARED, and evidence-backed EXPIRED rows.

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

Named history in the Actor key-value store. Required for changes mode. Reuse the same key for a recurring monitor.

## `emitUnchanged` (type: `boolean`):

In changes mode, also return rows whose source fields did not change.

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

Optional Apify proxy settings for public ss.com requests.

## Actor input object example

```json
{
  "category": "cars",
  "query": "",
  "categoryUrl": "https://www.ss.com/en/transport/cars/audi/",
  "startUrls": [],
  "maxItems": 100,
  "sortBy": "listing_id",
  "sortOrder": "asc",
  "monitorMode": "snapshot",
  "stateKey": "ss-latvia-cars-watch",
  "emitUnchanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

# Actor output Schema

## `results` (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 = {
    "category": "cars",
    "query": "",
    "categoryUrl": "https://www.ss.com/en/transport/cars/audi/",
    "startUrls": [],
    "maxItems": 100,
    "stateKey": "ss-latvia-cars-watch",
    "emitUnchanged": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": []
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/ss-com-latvia-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 = {
    "category": "cars",
    "query": "",
    "categoryUrl": "https://www.ss.com/en/transport/cars/audi/",
    "startUrls": [],
    "maxItems": 100,
    "stateKey": "ss-latvia-cars-watch",
    "emitUnchanged": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": [],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/ss-com-latvia-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 '{
  "category": "cars",
  "query": "",
  "categoryUrl": "https://www.ss.com/en/transport/cars/audi/",
  "startUrls": [],
  "maxItems": 100,
  "stateKey": "ss-latvia-cars-watch",
  "emitUnchanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}' |
apify call getascraper/ss-com-latvia-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/xwV0onNEX5sPH9sIH/builds/fOAoswaOXT4hPNeXk/openapi.json
