# SS.com Scraper - Latvia Classifieds & Marketplace (`studio-amba/ss-com-scraper`) Actor

Scrape classified listings from SS.com (SS.lv) - Latvia's largest marketplace. Extract cars, real estate, electronics, jobs, and more. Search by category, keyword, and location. No login or cookies required.

- **URL**: https://apify.com/studio-amba/ss-com-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 result scrapeds

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

## SS.com Scraper

Scrape classified listings from SS.com (also known as SS.lv) -- Latvia's largest and most popular classifieds platform. Extract cars, real estate, electronics, jobs, and more across 12 categories. No login or cookies required.

### Why use this actor?

SS.com is the dominant classifieds marketplace in Latvia with hundreds of thousands of active listings. It covers every major category from vehicles and real estate to jobs, electronics, and agriculture. This actor navigates the site using a headless browser, handles pagination, and extracts structured data from both listing pages and individual detail pages.

**Use cases:**

- **Car market analysis** -- monitor used car prices across all brands in Latvia's largest vehicle marketplace
- **Real estate monitoring** -- track apartment and house listings in Riga, Jurmala, and across Latvia
- **Price intelligence** -- compare prices for electronics, furniture, and household goods in the Baltic market
- **Job market research** -- extract vacancy listings and salary data from Latvia's top jobs board
- **Lead generation** -- identify active sellers, dealers, and businesses advertising on SS.com
- **Market research** -- analyze listing volumes, pricing trends, and supply across the Latvian market
- **Cross-border sourcing** -- find deals on vehicles, electronics, and goods in Latvia for Baltic region buyers

No cookies, no login, no session management -- configure your category and get back structured JSON.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQuery` | String | No | Search term (e.g. "BMW", "iPhone", "dzivoklis") |
| `category` | String | No | Main category: transport, real-estate, electronics, work, construction, clothes-footwear, home-stuff, production-work, for-children, animals, agriculture, entertainment |
| `subcategory` | String | No | Subcategory path (e.g. "cars", "flats/riga", "phones/apple-iphone") |
| `transactionType` | String | No | Filter: "sell" (default), "buy", "hand\_over", "all" |
| `startUrls` | Array | No | Direct SS.com URLs to scrape (overrides category settings) |
| `maxResults` | Integer | No | Maximum listings to return (default: 100, max: 10,000) |
| `scrapeDetails` | Boolean | No | Visit detail pages for full data (default: true) |
| `proxyConfiguration` | Object | No | Proxy settings for reliable access |

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `listingTitle` | String | `"BMW 530d 258zs. , automātiskā ātrumkārba"` |
| `price` | Number | `6990` |
| `currency` | String | `"EUR"` |
| `location` | String | `"Riga"` |
| `category` | String | `"transport"` |
| `attributes` | Object | `{"Year of issue": "2012", "Engine": "3.0 diesel", "Run, km": "335 000"}` |
| `sellerType` | String | `"private"` or `"company"` |
| `imageUrl` | String | Image URL |
| `url` | String | Full listing URL |
| `listingDescription` | String | Full description text from the detail page |
| `postedDate` | String | `"09.06.2026"` |
| `scrapedAt` | String | ISO 8601 timestamp |

### Example output

```json
{
    "listingTitle": "BMW 530d 258zs., automātiskā ātrumkārba",
    "price": 6990,
    "currency": "EUR",
    "location": "Tukums and reg.",
    "category": "transport",
    "attributes": {
        "Year of issue": "2012 june",
        "Engine": "3.0 diesel",
        "Gearbox": "Automatic",
        "Run, km": "335 000",
        "Color": "Grey metalic",
        "Body type": "Sedan",
        "Checkup": "07.2027"
    },
    "sellerType": "company",
    "imageUrl": "https://i.ss.com/gallery/8/1508/376885/75376881.800.jpg",
    "url": "https://www.ss.com/msg/en/transport/cars/bmw/530/cdofkd.html",
    "listingDescription": "Tikko no Vācijas, pilna servisa vēsture...",
    "postedDate": "09.06.2026",
    "scrapedAt": "2026-06-09T12:00:00.000Z"
}
```

### Tips for best results

**Browse by category (default):** Set `category` to "transport" and `subcategory` to "cars" to get all car listings. Works well for broad market scans.

**Use start URLs for specific pages:** If you know the exact SS.com page you want (e.g. BMW listings in Riga), paste the URL into `startUrls` for precise targeting.

**Disable detail scraping for speed:** Set `scrapeDetails` to false to only extract data from list pages. Much faster but returns less data per listing.

**Transaction types matter:** SS.com separates "sell", "buy", and "hand\_over" (rent) listings. Default is "sell" which shows items for sale.

### Categories available

| Category | Description | Example subcategories |
|----------|-------------|----------------------|
| `transport` | Cars, trucks, motorcycles, bicycles | cars, cargo, motorcycles, bicycles |
| `real-estate` | Apartments, houses, land, offices | flats, houses, land, offices |
| `electronics` | Phones, computers, audio, TV | phones, computers, audio-video |
| `work` | Jobs, vacancies, courses, services | vacancies, job-search, courses |
| `construction` | Building materials, tools, plumbing | building-materials, tools |
| `clothes-footwear` | Men's, women's, children's clothing | womens-clothes, mens-clothes |
| `home-stuff` | Furniture, health, antiques, gifts | furniture, health-beauty |
| `for-children` | Toys, baby items, school supplies | toys, clothing, carriages |
| `animals` | Dogs, cats, birds, exotic animals | dogs, cats, fish, birds |
| `agriculture` | Machinery, livestock, seeds, gardening | machinery, animal-husbandry |
| `entertainment` | Sports, music, books, tourism | sports, music, books |

### Cost estimate

It costs $0.02 per run plus $0.002 per result — about $0.22 per 100 results — regardless of whether detail page scraping is on.

### Limitations

- SS.com content is primarily in Latvian. The English version (`/en/`) has translated navigation but listing content remains in Latvian.
- Some attribute names may vary between categories (cars have "Engine", real estate has "Rooms").
- The `attributes` field is a flexible key-value object that adapts to whatever data the listing contains.
- Data is scraped from the public website and structure may change without notice.
- Respect the website's terms of service and use responsibly.

### How to scrape SS.com data

1. Go to this actor's page on the [Apify Store](https://apify.com/store).
2. Click **Try for free** to open it in Apify Console.
3. Choose a category (transport, real-estate, electronics, etc.) and optionally enter a search query.
4. Set the maximum number of results and adjust proxy settings if needed.
5. Click **Start** and wait for the run to finish.
6. Download your data in JSON, CSV, Excel, or connect it to your workflow via API.

You can also schedule regular runs, set up webhooks for real-time notifications, or integrate the results directly into your application using the [Apify API](https://docs.apify.com/api).

# Actor input Schema

## `searchQuery` (type: `string`):

Search term (e.g. 'BMW', 'iPhone', 'dzivoklis'). Leave empty to browse a category.

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

Main category to scrape listings from.

## `subcategory` (type: `string`):

Optional subcategory path (e.g. 'cars', 'flats/riga', 'phones/apple-iphone'). Check SS.com URL structure for valid paths.

## `transactionType` (type: `string`):

Filter by listing type.

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

Direct SS.com listing page URLs to scrape. Overrides category/query settings.

## `maxResults` (type: `integer`):

Maximum number of listings to scrape.

## `scrapeDetails` (type: `boolean`):

Visit each listing's detail page to extract full description, attributes, and contact info. Slower but more complete data.

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

Proxy settings for accessing SS.com.

## Actor input object example

```json
{
  "searchQuery": "BMW",
  "category": "transport",
  "transactionType": "sell",
  "maxResults": 5,
  "scrapeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "LV"
  }
}
```

# 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 = {
    "searchQuery": "BMW",
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "LV"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/ss-com-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 = {
    "searchQuery": "BMW",
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "LV",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/ss-com-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 '{
  "searchQuery": "BMW",
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "LV"
  }
}' |
apify call studio-amba/ss-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/ss-com-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/KAFe2UmK6TDl2LG3s/builds/t2FP0Wp8R24vLffbf/openapi.json
