Skip to content
Scrappa Get API key
SS.lv API 1 credit/request

SS.lv Search API Documentation

GET https://scrappa.co/api/ss-lv/search

SS.lv Search API: Lists ads of one category and location, 30 per page, for sale or for rent. Pick a category and a region, then add a district for Riga, filter by price, rooms, area, floor and series, sort, and page through the results. Each item has price, price per square metre, rooms, area, floor, series, land area, location and thumbnail. Item url works in the listing route. The site is in Latvian: text such as titles, descriptions and series stays Latvian or Russian, field names are English. Bedrooms and bathrooms do not exist on SS.lv, only rooms.

Filters are never ignored. Price, price per square metre, rooms, area, floor, series and sort run on the one source page that was fetched. Items that break a requested filter are not returned. pagination.source_page names the page and pagination.filtered_from counts its rows, so a strict filter can return few or no items. Riga without a district lists the whole city (all). Page N is always page N of the site. When the site shows no price per square metre, price_per_sqm is the sale price divided by the area for flats, offices and premises, otherwise it stays null.

SS.lv Search API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/ss-lv/search
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "items": [
            {
                "id": "58219672",
                "url": "https://www.ss.lv/msg/lv/real-estate/flats/jurmala/kauguri/aagfc.html",
                "area": 30,
                "code": "aagfc",
                "size": null,
                "floor": 5,
                "price": 48800,
                "rooms": 1,
                "title": "P\u0101rdodu dz\u012bvokli p\u0113c kapit\u0101la remonta, ir nomain\u012bts viss iz\u0146",
                "series": "Hru\u0161\u010d.",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

19 optional filters available.

category string Optional

flats (default), homes, farms, plots, offices, wood, premises or other.

Example value example
sub_category string Optional

Required for premises and other. Slug from the autocomplete route with type sub_category, such as garages or parkings.

Example value example
region string Optional

Region slug from the autocomplete route, such as riga, jurmala, riga-region or aizkraukle-and-reg. Required for every category except other.

Example value US
district string Optional

Area slug for riga and riga-region from the autocomplete route. Default all: the whole city or region.

Example value example
listing_type string Optional

sale (default) or rent.

Example value example
posted string Optional

Only ads posted today, within 2 days (2d) or within 5 days (5d). The site applies this filter.

Example value example
min_price number Optional

Minimum price in EUR. Applied to the fetched source page.

Example value 10
max_price number Optional

Maximum price in EUR. Applied to the fetched source page.

Example value 10
min_price_per_sqm number Optional

Minimum price per square metre. Applied to the fetched source page.

Example value 10
max_price_per_sqm number Optional

Maximum price per square metre. Applied to the fetched source page.

Example value 10
min_rooms integer Optional

Minimum rooms. SS.lv lists rooms only, not bedrooms.

Example value 10
max_rooms integer Optional

Maximum rooms.

Example value 10
min_area number Optional

Minimum area in square metres. Hectares are converted.

Example value 10
max_area number Optional

Maximum area in square metres.

Example value 10
min_floor integer Optional

Minimum floor.

Example value 10
max_floor integer Optional

Maximum floor.

Example value 10
series string Optional

Building series exactly as shown on the site, such as Staļina or Hrušč.

Example value example
sort string Optional

price_asc, price_desc, area_asc, area_desc, price_per_sqm_asc or price_per_sqm_desc. Sorts the fetched source page only.

Example value relevance
page integer Optional

One-based page number, 1 to 1000 (default 1). Page N fetches page N of the site list.

Example value 1

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "items": [
            {
                "id": "58219672",
                "url": "https://www.ss.lv/msg/lv/real-estate/flats/jurmala/kauguri/aagfc.html",
                "area": 30,
                "code": "aagfc",
                "size": null,
                "floor": 5,
                "price": 48800,
                "rooms": 1,
                "title": "P\u0101rdodu dz\u012bvokli p\u0113c kapit\u0101la remonta, ir nomain\u012bts viss iz\u0146",
                "series": "Hru\u0161\u010d.",
                "company": null,
                "currency": "EUR",
                "location": {
                    "region": "jurmala",
                    "address": "Kauguri Talsu \u0161oseja31 8",
                    "district": null,
                    "region_name": "J\u016brmala",
                    "district_name": null
                },
                "area_unit": "m2",
                "land_area": null,
                "thumbnail": "https://i.ss.lv/gallery/8/1561/390147/78029282.th2.jpg",
                "price_text": "48,800 \u20ac",
                "floors_total": 5,
                "listing_type": "sale",
                "price_period": null,
                "category_path": null,
                "price_per_sqm": 1627
            },
            {
                "id": "58219258",
                "url": "https://www.ss.lv/msg/lv/real-estate/flats/jurmala/lielupe/bxnebx.html",
                "area": 48,
                "code": "bxnebx",
                "size": null,
                "floor": 2,
                "price": 52800,
                "rooms": 2,
                "title": "Tiek pied\u0101v\u0101ts divistabu neremont\u0113ts dz\u012bvoklis \u0137ie\u0123e\u013cu m\u0101j\u0101",
                "series": "Specpr.",
                "company": null,
                "currency": "EUR",
                "location": {
                    "region": "jurmala",
                    "address": "Lielupe La\u0161u 7 4",
                    "district": null,
                    "region_name": "J\u016brmala",
                    "district_name": null
                },
                "area_unit": "m2",
                "land_area": null,
                "thumbnail": "https://i.ss.lv/gallery/8/1561/390136/78027193.th2.jpg",
                "price_text": "52,800 \u20ac",
                "floors_total": 2,
                "listing_type": "sale",
                "price_period": null,
                "category_path": null,
                "price_per_sqm": 1100
            }
        ],
        "notices": [
            "Filters and sort apply to the one source page that was fetched. See source_page and filtered_from."
        ],
        "pagination": {
            "page": 1,
            "has_more": true,
            "per_page": 3,
            "source_page": 1,
            "total_pages": 5,
            "filtered_from": 5
        },
        "applied_filters": {
            "sort": "price_asc",
            "max_price": 60000
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing, unknown or not supported, or the location has no list. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "search"
    },
    "error": {
        "code": "VALIDATION_ERROR",
        "message": "region is required. Use one of: riga, jurmala, riga-region."
    },
    "success": false
}
503

Upstream Unavailable

SS.lv could not be reached or returned a page that does not match the request. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "search"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "SS.lv could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.