# Maxi Scraper (`one_house/maxi-scraper`) Actor

Scrape product listings from maxi.rs categories, subcategories, and search results.

- **URL**: https://apify.com/one\_house/maxi-scraper.md
- **Developed by:** [One House](https://apify.com/one_house) (community)
- **Categories:** E-commerce, Integrations, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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/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

Extract product listings from [maxi.rs](https://www.maxi.rs) — any category, subcategory, or search results — including price, discount, promotion, rating, and stock status.

### What does Maxi Scraper do?

This Actor scrapes product data from maxi.rs category pages, subcategory pages, and search results. Give it one or more category URLs (e.g. `https://www.maxi.rs/Picje-kafa-i-chaj/c/01`) or plain keywords (e.g. `coca cola`), and it returns every matching product with title, brand, price, discount/promotion info, rating, and stock status. Use the Apify platform to schedule recurring price/catalog monitoring, export results via API, or integrate with your own pipeline.

### Why use Maxi Scraper?

- **Price and promotion tracking** — monitor Maxi's rotating promotions and discounts across whole categories.
- **Catalog monitoring** — track new products, availability, and rating changes for a category over time.
- **Market research** — pull structured pricing and assortment data for competitor analysis.

### How to use Maxi Scraper

1. Open this Actor and click **Start**.
2. Add one or more **Start URLs** — copy any maxi.rs category or subcategory URL from your browser (e.g. `https://www.maxi.rs/Picje-kafa-i-chaj/c/01` or `https://www.maxi.rs/Picje-kafa-i-chaj/Sokovi-i-osvezhavajucja-bezalkoholna-picja/c/0102`), or a search results URL (e.g. `https://www.maxi.rs/online/search?q=coca%20cola`).
3. Alternatively (or in addition), add plain keywords under **Search queries** — no URL needed.
4. Optionally set **Sort by** to control result order.
5. Set **Max items per source** to cap how many products come back per URL/query (0 = all matching products).
6. Run and download results from the **Dataset** tab.

### Input example

```json
{
    "startUrls": [
        { "url": "https://www.maxi.rs/Picje-kafa-i-chaj/c/01" },
        { "url": "https://www.maxi.rs/Picje-kafa-i-chaj/Sokovi-i-osvezhavajucja-bezalkoholna-picja/c/0102" }
    ],
    "searchQueries": ["coca cola"],
    "maxItemsPerSource": 200
}
```

### Output example

```json
{
    "productId": "7247647",
    "title": "Coca-Cola Zero 1.5l PET",
    "brand": "Coca Cola Zero",
    "url": "https://www.maxi.rs/Picje-kafa-i-chaj/Sokovi-i-osvezhavajucja-bezalkoholna-picja/Gazirani-napici/Coca-Cola-Zero-1-5l-PET/p/7247647",
    "price": 154.99,
    "discountedPrice": 139.99,
    "onSale": true,
    "currency": "RSD",
    "promotionText": "Ustedi 10% i kupi za 139.99 rsd",
    "rating": 4.5,
    "available": true,
    "inStock": true,
    "category": "Piće, kafa i čaj",
    "source": "www.maxi.rs",
    "scrapedAt": "2026-08-09T00:00:00.000Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data table

| Field                                | Description                                              |
| ------------------------------------ | -------------------------------------------------------- |
| `title` / `brand`                    | Product name and manufacturer                            |
| `price` / `currency`                 | Regular price                                            |
| `discountedPrice` / `onSale`         | Current discounted price, when on promotion              |
| `promotionText` / `promotionEndDate` | Active promotion message and expiry, when applicable     |
| `unitPrice` / `unitPriceLabel`       | Price per unit (e.g. per liter/kg), when applicable      |
| `rating` / `ratingCount`             | Average rating and review count                          |
| `available` / `inStock`              | Stock status                                             |
| `image` / `images`                   | Product image URLs                                       |
| `category` / `categoryCode`          | Top-level category name and code                         |
| `url`                                | Product page URL                                         |
| `raw`                                | Full unmodified API item, for any field not mapped above |

### Tips

- Start with a small **Max items per source** to confirm results look right before scaling up.
- Combine several category URLs and search queries in a single run — each is fetched and paginated independently.
- `raw` always contains the complete original API response item, so nothing is lost even if a named field mapping goes stale.

# Actor input Schema

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

Category pages (e.g. https://www.maxi.rs/Picje-kafa-i-chaj/c/01), subcategory pages (e.g. https://www.maxi.rs/Picje-kafa-i-chaj/Sokovi-i-osvezhavajucja-bezalkoholna-picja/c/0102), or search result pages (e.g. https://www.maxi.rs/online/search?q=coca%20cola).

## `searchQueries` (type: `array`):

Plain keywords to search for, as an alternative (or addition) to Start URLs.

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

Result order. Leave unset to use maxi.rs's own default (relevance).

## `maxItemsPerSource` (type: `integer`):

Maximum number of products to return per start URL or search query. Set 0 for all matching products.

## `pageSize` (type: `integer`):

Products fetched per API request (1-50; the API rejects larger page sizes).

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.maxi.rs/Picje-kafa-i-chaj/c/01"
    }
  ],
  "searchQueries": [
    "coca cola"
  ],
  "maxItemsPerSource": 200,
  "pageSize": 20
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.maxi.rs/Picje-kafa-i-chaj/c/01"
        }
    ],
    "searchQueries": [
        "coca cola"
    ],
    "maxItemsPerSource": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("one_house/maxi-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 = {
    "startUrls": [{ "url": "https://www.maxi.rs/Picje-kafa-i-chaj/c/01" }],
    "searchQueries": ["coca cola"],
    "maxItemsPerSource": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("one_house/maxi-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 '{
  "startUrls": [
    {
      "url": "https://www.maxi.rs/Picje-kafa-i-chaj/c/01"
    }
  ],
  "searchQueries": [
    "coca cola"
  ],
  "maxItemsPerSource": 200
}' |
apify call one_house/maxi-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,one_house/maxi-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/m4ALyyOxW6DJY9cPJ/builds/981cpK7j1E9STNzja/openapi.json
