Skip to content
Scrappa Get API key
Otomoto API 1 credit/request

Otomoto Search API Documentation

GET https://scrappa.co/api/otomoto/search?make_id=volvo

Endpoint documentation for searching Otomoto vehicle listings as JSON

How to call the Otomoto search endpoint, which filters it accepts, and what each listing field means.

Scrappa's GET /api/otomoto/search endpoint is the Otomoto Search API documentation page for developers who need Polish vehicle listings as structured JSON instead of building their own scraper.

Endpoint reference for Otomoto search

Use this endpoint to search used and new cars anywhere in Poland. The request takes a make, an optional model, and optional price, year, mileage, engine-power, fuel, gearbox, body-type, location, sort and pagination filters.

What the Otomoto search response returns

Each listing returns its full card field set: id, url, title, price (value + currency), location (city + region), make, model, year, mileage, engine_power, engine_capacity, fuel, transmission, images and price_evaluation. The response also carries pagination (page, page_size, current_offset, total, has_more, live_snapshot), the resolved facets and a meta block.

How this differs from an Otomoto scraper build

Otomoto publishes no public API and serves filtered search only from server-rendered page state. This endpoint performs that translation for you, so your application never has to maintain a browser, a proxy pool or a state parser.

Otomoto search API use cases

Dealership tools can run repeatable supply feeds for Polish cities. Market analysts can compare asking prices and availability across the whole country. Alerting tools can poll the same filtered search on a schedule and trigger on newly published listings.

For cross-portal coverage, query Otomoto beside other vehicle APIs and deduplicate by listing URL and price.

When to pair this endpoint with the other Otomoto endpoints

Use GET /api/otomoto/listing with a result id for the full description, equipment, parameters and seller data. Use GET /api/otomoto/dealer with a listing's seller.url subdomain for the dealer profile. Use GET /api/otomoto/taxonomy for the make/model reference lists behind the filters.

Related Otomoto endpoints

  • GET /api/otomoto/listing — full detail for one listing id
  • GET /api/otomoto/dealer — dealer profile and inventory categories
  • GET /api/otomoto/taxonomy — make/model taxonomy and filter values

Implementation playbook

What teams build with this endpoint

Supply Monitoring by City

Poll the same city filter on a schedule and diff `id` sets to detect newly published listings.

Price Benchmarking

Combine make, model and price filters across regions to compare asking prices without scraping pages.

Cross-Portal Deduplication

Match Otomoto listings against other portals by URL and price.

Otomoto Search API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/otomoto/search?make_id=volvo
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "success": true,
    "data": {
        "listings": [
            {
                "id": "6151011578",
                "url": "https://www.otomoto.pl/osobowe/oferta/volvo-xc-60-ID6Ih16a.html",
                "title": "Volvo XC 60",
                "price": {
                    "value": 66000,
                    "currency": "PLN"
                },
                "location": {
                    "city": "Warszawa",
...

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.

17 optional filters available.

make_id string Optional

Make slug from the taxonomy endpoint, e.g. volvo.

Example value volvo
model_id string Optional

Model slug from the taxonomy endpoint, e.g. xc-90. Requires make_id.

Example value 1234567890
generation string Optional

Generation slug from the taxonomy endpoint, e.g. gen-b8-2007-2015.

Example value example
price_min integer Optional

Minimum price in PLN.

Example value 10
price_max integer Optional

Maximum price in PLN.

Example value 10
year_min integer Optional

Minimum first-registration year.

Example value 10
year_max integer Optional

Maximum first-registration year.

Example value 10
mileage_min integer Optional

Minimum mileage in km.

Example value 10
mileage_max integer Optional

Maximum mileage in km.

Example value 10
engine_power_max integer Optional

Maximum engine power in KM.

Example value 10
fuel array Optional

Fuel type, e.g. petrol. Repeat for several values.

Example value ["example"]
transmission array Optional

Gearbox, e.g. automatic. Repeat for several values.

Example value ["example"]
body_type array Optional

Body type, e.g. suv. Repeat for several values.

Example value ["example"]
city_id integer Optional

City id from the location filter, e.g. 17871 for Warszawa.

Example value 1234567890
dist integer Optional

Radius in km around the city.

Example value 10
sort string Optional

Sort id from the embedded sort options, e.g. filter_float_price:desc.

Example value relevance
page integer Optional

Page number, 1-based. Page size is fixed at 32.

Example value 1

Request Examples

PHP
<?php

$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => "https://scrappa.co/api/otomoto/search?make_id=volvo",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "x-api-key: YOUR_API_KEY_HERE"
    ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #:" . $err;
} else {
    echo $response;
}
PHP
<?php

use Illuminate\Support\Facades\Http;

$response = Http::timeout(30)
    ->withHeaders(['x-api-key' => 'YOUR_API_KEY_HERE'])
    ->get('https://scrappa.co/api/otomoto/search?make_id=volvo');

if ($response->successful()) {
    echo $response->body();
} else {
    echo "Error: " . $response->status();
}
JavaScript
const options = {
    method: 'GET',
    headers: {
        'x-api-key': 'YOUR_API_KEY_HERE'
    }
};

fetch('https://scrappa.co/api/otomoto/search?make_id=volvo', options)
    .then(response => {
        if (!response.ok) {
            throw new Error(`HTTP error! status: ${response.status}`);
        }
        return response.text();
    })
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));
JavaScript
const axios = require('axios');

const options = {
    method: 'GET',
    url: 'https://scrappa.co/api/otomoto/search?make_id=volvo',
    headers: {
        x-api-key: 'YOUR_API_KEY_HERE',
    }
};

try {
    const response = await axios(options);
    console.log(response.data);
} catch (error) {
    console.error('Error:', error.message);
}
Ruby
require 'net/http'
require 'uri'

uri = URI.parse("https://scrappa.co/api/otomoto/search?make_id=volvo")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == 'https'

request = Net::HTTP::Get.new(uri.request_uri)
request['x-api-key'] = 'YOUR_API_KEY_HERE'

begin
    response = http.request(request)
    puts response.body
rescue => e
    puts "Error: #{e.message}"
end
Python
import http.client
import json

conn = http.client.HTTPSConnection("scrappa.co")

headers = {
    'x-api-key': 'YOUR_API_KEY_HERE',
}

try:
    conn.request("GET", "/api/otomoto/search?make_id=volvo", headers=headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
except Exception as e:
    print(f"Error: {e}")
finally:
    conn.close()
Python
import requests

headers = {
    'x-api-key': 'YOUR_API_KEY_HERE',
}

try:
    response = requests.get('https://scrappa.co/api/otomoto/search?make_id=volvo', headers=headers)
    response.raise_for_status()
    print(response.text)
except requests.exceptions.RequestException as e:
    print(f"Error: {e}")
Java
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;

public class ApiExample {
    public static void main(String[] args) {
        OkHttpClient client = new OkHttpClient();

        Request request = new Request.Builder()
            .url("https://scrappa.co/api/otomoto/search?make_id=volvo")
        .addHeader("x-api-key", "YOUR_API_KEY_HERE")
            .build();

        try (Response response = client.newCall(request).execute()) {
            if (response.isSuccessful()) {
                System.out.println(response.body().string());
            } else {
                System.out.println("Error: " + response.code());
            }
        } catch (IOException e) {
            System.out.println("Error: " + e.getMessage());
        }
    }
}
Go
package main

import (
    "fmt"
    "net/http"
    "io/ioutil"
)

func main() {
    client := &http.Client{}
    req, err := http.NewRequest("GET", "https://scrappa.co/api/otomoto/search?make_id=volvo", nil)
    if err != nil {
        fmt.Println("Error creating request:", err)
        return
    }
    req.Header.Set("x-api-key", "YOUR_API_KEY_HERE")

    resp, err := client.Do(req)
    if err != nil {
        fmt.Println("Error making request:", err)
        return
    }
    defer resp.Body.Close()

    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        fmt.Println("Error reading response:", err)
        return
    }

    fmt.Println(string(body))
}
Terminal
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/otomoto/search?make_id=volvo"
C#
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program
{
    static async Task Main()
    {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY_HERE");

        try
        {
            var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "https://scrappa.co/api/otomoto/search?make_id=volvo"));
            var content = await response.Content.ReadAsStringAsync();
            Console.WriteLine(content);
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}
TypeScript
import axios from 'axios';

async function run(): Promise<void> {
    try {
        const response = await axios({
            method: 'GET',
            url: 'https://scrappa.co/api/otomoto/search?make_id=volvo',
            headers: {
        'x-api-key': 'YOUR_API_KEY_HERE',
            },
        });

        console.log(response.data);
    } catch (error) {
        console.error('Error:', error);
    }
}

void run();
RUST
use reqwest::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();

    let response = client
        .get("https://scrappa.co/api/otomoto/search?make_id=volvo")
        .header("x-api-key", "YOUR_API_KEY_HERE")
        .send()
        .await?;

    println!("{}", response.text().await?);

    Ok(())
}

Response Schema

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

Example response fields

Scan these fields before integrating.

success data meta
JSON Response
200 OK
{
    "success": true,
    "data": {
        "listings": [
            {
                "id": "6151011578",
                "url": "https://www.otomoto.pl/osobowe/oferta/volvo-xc-60-ID6Ih16a.html",
                "title": "Volvo XC 60",
                "price": {
                    "value": 66000,
                    "currency": "PLN"
                },
                "location": {
                    "city": "Warszawa",
                    "region": "Mazowieckie"
                },
                "make": "volvo",
                "model": "xc-60",
                "year": 2019,
                "mileage": 49153,
                "fuel": "petrol",
                "transmission": "automatic",
                "images": [
                    "https://ireland.apollo.olxcdn.com/v1/files/0rxly0yq5vph1-OTOMOTOPL/image;s=640x480"
                ],
                "price_evaluation": "NONE"
            }
        ],
        "pagination": {
            "page": 1,
            "page_size": 32,
            "current_offset": 0,
            "total": 9338,
            "has_more": true,
            "live_snapshot": true
        },
        "facets": {
            "make": "volvo",
            "model": null,
            "sort": "relevance_web"
        }
    },
    "meta": {
        "endpoint_family": "search"
    }
}

Errors

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

INVALID_PARAMETERS

HTTP INVALID_PARAMETERS

The make or model slug does not resolve. Not billed.

UPSTREAM_ERROR

HTTP UPSTREAM_ERROR

Otomoto could not be reached. Not billed.

upstream_unavailable

HTTP upstream_unavailable

The upstream service is temporarily unavailable. Please retry shortly.

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.

Otomoto API FAQ

How do I find a make slug?

Call the Otomoto taxonomy endpoint and use the id of the make you want.

Why is my result count much larger than I expected?

An unrecognized make or model slug silently returns the whole corpus. The endpoint validates both against the taxonomy and rejects an unresolvable pair instead of billing it.

Is a request billed when it fails?

No. Failed requests return an error object and are never charged.

Are image files downloaded?

No. Only image URLs are returned, which is cheaper and lets you choose any resolution.

Try It Live

Test this endpoint in our interactive playground with real data.