# Mobile.bg Scraper - Bulgaria Used Car Listings (`rastriq/mobilebg-scraper`) Actor

Scrape car ads from mobile.bg, Bulgaria's largest car marketplace: price in EUR and BGN, year, mileage, fuel, gearbox, horsepower, engine size, body type, location and photo. No login.

- **URL**: https://apify.com/rastriq/mobilebg-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 car listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Mobile.bg Scraper

**Mobile.bg Scraper** extracts used and new car ads from [mobile.bg](https://www.mobile.bg), Bulgaria's largest car marketplace. Paste the URL of any search you made on the site, with your filters, and get a clean dataset with the asking price in **EUR and BGN**, first registration year, mileage in km, fuel type, gearbox, horsepower, engine size, body type, colour, location, main photo and a direct link to every ad. Export it to JSON, CSV or Excel, or read it through the Apify API. No browser, no login, no mobile.bg account.

Fuel, gearbox and body type are translated from Bulgarian to English (`Diesel`, `Automatic`, `SUV`...), so the data is ready for analysis without a dictionary.

### What data can you get from mobile.bg?

| Field | Type | Description |
|---|---|---|
| `listingId` | string | mobile.bg ad ID. |
| `title` | string | Ad title: make, model and the seller's headline. |
| `url` | string | Direct link to the ad. |
| `priceEUR` | number | Asking price in euros. |
| `priceBGN` | number | Asking price in Bulgarian lev. |
| `currency` | string | Currency the ad shows first (`EUR` or `BGN`); `null` when there is no price. |
| `year` | integer | First registration year. |
| `mileageKm` | integer | Mileage in kilometres. |
| `fuelType` | string | `Petrol`, `Diesel`, `LPG`, `LPG/Petrol`, `Electric`, `Hybrid`, `Plug-in Hybrid` or `CNG`. |
| `gearbox` | string | `Manual`, `Automatic` or `Semi-automatic`. |
| `horsePower` | integer | Engine power in hp. |
| `engineCc` | integer | Engine displacement in cm³. |
| `bodyType` | string | `Sedan`, `Hatchback`, `Estate`, `SUV`, `Coupe`, `Convertible`, `Van`, `Pickup`, `Minivan`, or the site's own text. |
| `color` | string | Exterior colour, as written on the site (Bulgarian). |
| `imageUrl` | string | Main photo. |
| `location` | string | Region and town, e.g. `обл. София, гр. София`, when the card shows them (about 1 ad in 3 in our tests). |
| `scrapedAt` | string | Extraction time (ISO 8601, UTC). |

Every row has every field. When the ad card does not show a value, the field is `null`; nothing is guessed. When an ad shows only one currency, the other is converted at the fixed euro rate (1 EUR = 1.9558 BGN).

The **Output** tab has two views: **Car listings** (photo, price, year, km, fuel, gearbox, power, location) and **All fields**.

### Use cases

- **Price monitoring:** track asking prices of a make or model in Bulgaria week after week.
- **Market research:** compare supply, mileage and age of diesel, petrol, hybrid and electric cars.
- **Dealer sourcing:** find stock that matches your buying criteria across the whole country, then follow the link to the ad.
- **Valuation models:** feed year, mileage, power and price into a pricing model for the Bulgarian market.
- **Cross-border comparison:** stack Bulgarian prices next to other European markets with the Rastriq car scrapers listed below.

### How to scrape mobile.bg

1. Open [mobile.bg](https://www.mobile.bg), choose **Автомобили и Джипове** and set your filters: make, model, price, year, fuel, region, sorting.
2. Run the search and copy the URL from your browser's address bar.
3. Open **Mobile.bg Scraper** on Apify and paste the URL into **mobile.bg search URL**.
4. Set **Max pages** (about 20 ads per page) and **Max items**. The prefill (1 page, 20 ads) is a cheap first test.
5. Click **Start**. When the run finishes, download the dataset from the **Output** tab or through the API.

URLs that work:

| What you want | Example URL |
|---|---|
| All cars and SUVs | `https://www.mobile.bg/obiavi/avtomobili-dzhipove` |
| One make | `https://www.mobile.bg/obiavi/avtomobili-dzhipove/bmw` |
| One model | `https://www.mobile.bg/obiavi/avtomobili-dzhipove/volkswagen/golf` |
| Any search with filters | copy it from the browser after searching |

The Actor follows mobile.bg's own pagination (`/p-2`, `/p-3`...) and stops when a page has no ads, when **Max pages** is reached or when **Max items** is reached.

### Input example

```json
{
  "startUrl": "https://www.mobile.bg/obiavi/avtomobili-dzhipove",
  "maxPages": 1,
  "maxItems": 20,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrl` | string | all cars and SUVs | mobile.bg search results URL, with any filters. |
| `maxPages` | integer | `3` | Result pages to read (about 20 ads per page). |
| `maxItems` | integer | `50` | Maximum ads in the run. |
| `proxyConfiguration` | object | Apify Proxy | Datacenter proxy first; see the FAQ if mobile.bg blocks it. |

### Output example

A real item from a beta run on 15 November 2026:

```json
{
  "listingId": "11794395752744773",
  "title": "Ford Focus",
  "url": "https://www.mobile.bg/obiava-11794395752744773-ford-focus",
  "priceBGN": 4887.54,
  "priceEUR": 2499,
  "currency": "EUR",
  "year": 2004,
  "mileageKm": 186778,
  "fuelType": "Diesel",
  "gearbox": "Manual",
  "horsePower": 90,
  "bodyType": "Sedan",
  "engineCc": 1753,
  "color": "Сребърен",
  "imageUrl": "https://mobistatic1.focus.bg/mobile/photosorg/773/1/11794395752744773_Ot.webp",
  "location": "обл. София, гр. София",
  "scrapedAt": "2026-11-15T10:59:08.945581+00:00"
}
```

### How much does it cost to scrape mobile.bg?

Pay-per-event pricing: **$0.005 per run start** plus **$0.0015 per ad** ($1.50 per 1,000 ads). You pay only for ads delivered to the dataset; Apify platform usage is included.

| Run | Cost |
|---|---|
| 20 ads (prefill) | $0.035 |
| 50 ads (default) | $0.080 |
| 1,000 ads | $1.505 |
| 10,000 ads | $15.005 |

Set a maximum cost per run in the Apify Console if you want a hard cap; the Actor stops delivering ads when it is reached.

### Limitations

- Data comes from the search results cards. Fields that are only on the ad page (full description, equipment, VIN, seller phone) are not extracted, which keeps runs fast and cheap.
- Not every card shows every value. In a 20-ad test: horsepower 90 %, colour 85 %, engine size 70 %, region only 20-35 %. Missing values are `null`.
- `bodyType` and `color` come from short card labels. Unknown labels are kept in the site's text.
- The Actor reads one search URL per run. For several searches, start several runs or use Apify tasks.
- Promoted ads can appear on more than one page while you scrape a long search.
- Seller names and phone numbers are not collected.

### FAQ

**Does it need a proxy?** The default Apify datacenter proxy is tried first, and each page is retried with a new proxy session on HTTP 403. mobile.bg refuses some non-Bulgarian IP ranges; if every request is refused, the run fails with a clear message instead of returning an empty dataset. Then choose Apify Proxy **RESIDENTIAL** with country **BG**. Residential traffic for a search page is small: about $0.06 per 1,000 ads in our tests.

**Why did my run return fewer ads than I asked for?** The run stops at **Max pages** (about 20 ads each) or **Max items**, whichever comes first, and when the search has no more results. Raise both to scrape a large search.

**Is it legal to scrape mobile.bg?** The Actor reads publicly visible search pages at a low request rate, without logging in or bypassing access controls, and it does not collect seller names or contact details. Check the website terms and make sure your use of the data complies with the law that applies to you, including data protection rules.

**Can I schedule it or call it from my code?** Yes: Apify schedules, the API, webhooks, or integrations such as Make, Zapier and Google Sheets.

**Are prices in euros?** Both: `priceEUR` and `priceBGN` are always filled when the ad has a price, and `currency` tells you which one the seller entered.

**Something broke or a field is missing?** mobile.bg changes its pages from time to time. Open an issue on the Actor page and include the run link.

### Related Actors

| Country | Actor | Notes |
|---|---|---|
| Germany | [Mobile.de Scraper](https://apify.com/rastriq/mobile-de-scraper) | Germany's largest car marketplace |
| Serbia | [Polovni Automobili Scraper](https://apify.com/rastriq/polovniautomobili-scraper) | used cars in Serbia |
| Croatia | [Njuškalo Scraper](https://apify.com/rastriq/njuskalo-scraper) | Croatian classifieds |
| Romania | [Autovit Scraper](https://apify.com/rastriq/autovit-scraper) | Romanian car marketplace |
| Poland | [OtoMoto Scraper](https://apify.com/rastriq/otomoto-scraper) | largest Polish car marketplace |

# Changelog

This Actor's version history is a separate document: https://apify.com/rastriq/mobilebg-scraper/changelog.md

# Actor input Schema

## `startUrl` (type: `string`):

Any mobile.bg search results page, with the filters you set on the site. Examples:<br><code>https://www.mobile.bg/obiavi/avtomobili-dzhipove</code> (all cars and SUVs)<br><code>https://www.mobile.bg/obiavi/avtomobili-dzhipove/bmw</code><br><code>https://www.mobile.bg/obiavi/avtomobili-dzhipove/volkswagen/golf</code><br>Leave empty to scrape the newest cars and SUVs of the whole site.

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

Search result pages to read (about 20 ads per page). Use 1 for a quick test.

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

Maximum number of ads to return in the whole run. Example: <code>20</code> costs about $0.035.

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

Apify datacenter proxy is tried first. On HTTP 403 the Actor retries each page with a new proxy session; if mobile.bg still refuses the requests, the run fails with a clear message: then select <b>RESIDENTIAL</b> with country <code>BG</code> (adds roughly $0.06 per 1,000 ads in proxy traffic).

## Actor input object example

```json
{
  "startUrl": "https://www.mobile.bg/obiavi/avtomobili-dzhipove",
  "maxPages": 1,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

Car ads extracted from mobile.bg.

# 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 = {
    "startUrl": "https://www.mobile.bg/obiavi/avtomobili-dzhipove",
    "maxPages": 1,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/mobilebg-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 = {
    "startUrl": "https://www.mobile.bg/obiavi/avtomobili-dzhipove",
    "maxPages": 1,
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/mobilebg-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 '{
  "startUrl": "https://www.mobile.bg/obiavi/avtomobili-dzhipove",
  "maxPages": 1,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rastriq/mobilebg-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rastriq/mobilebg-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/wRZUhhYgWNdAVfUut/builds/ajhAoi1Cq4HdKzst8/openapi.json
