# Milanuncios Scraper: Spanish Classified Ads Search (`happyendpoint/milanuncios-search-scraper`) Actor

Search Milanuncios, the Spanish classified ads site, by keyword, category, province, city or map radius. Each ad has title, price, photos, category, place, date and seller type. Also price drops, ads of one seller or shop, and place and category lookups.

- **URL**: https://apify.com/happyendpoint/milanuncios-search-scraper.md
- **Developed by:** [Happy Endpoint](https://apify.com/happyendpoint) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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/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

### What this Actor does

This Actor reads the public classified ads on Milanuncios, the Spanish marketplace for cars, homes, electronics, furniture and second-hand goods of every kind. Search by words, category, province, city, district or a radius around a map point, and narrow the results by price, seller type, model year, mileage, rooms, surface and more. Every ad row has its title, description, price, earlier price, category, place, photos, publication dates and the kind of seller. Separate operations list price drops, the ads of one seller or shop, and look up categories, places and addresses.

The data is what Milanuncios shows to any visitor on its public results pages: the ads, their prices, photos, places and dates, and the site category and place lists.

### Use cases

- Track the asking prices of used bicycles, cars or furniture in one province to see where a market is heading.
- Build a daily list of newly published ads in a category and pass the best ones to your own buyers.
- Find price cuts on things you want to buy by running Price drops with a keyword and a price ceiling.
- Compare private sellers and professional dealers for the same model, year and mileage.
- Map the supply of homes or vehicles by city and district for market research.
- List the professional sellers and shops of a category and follow their stock ad by ad.

### How to use

1. Open the Actor's input form in Apify Console, or prepare a JSON input for the API.
2. Pick an `operation`: each one is a different kind of request to Milanuncios.
3. Set `maxItems` to the number of results you need. It is the only quantity setting; paging is handled for you.
4. Start the run. The results land in the run's dataset, where you can download them as JSON, CSV, Excel and
   other formats, or read them through the Apify API.

This is the example input, the one the input form starts with:

```json
{
  "operation": "searchListings",
  "maxItems": 10,
  "query": "bicicleta"
}
```

### Input

| Field | Type | Description | Used by |
| --- | --- | --- | --- |
| `operation` | string | Which data to fetch. Each option is one kind of request. | all operations |
| `maxItems` | integer | The most results to return. The run stops once it has this many. | all operations |
| `query` | string | Words to look for in the ads. Leave it empty on a search to list every ad that fits the other filters. Find categories and Ad counts by category cannot run without it. | Find categories, Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `category` | integer | Only ads in this category. The numbers come from Category tree and Find categories. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `categoryId` | string | The category that Category filters describes, taken from the category ID of a Category tree row. | Category filters |
| `parentCategoryId` | string | Show only the children of this category in Category tree. Leave it empty to start at the top. | Category tree |
| `categoryFormat` | string | Whether Category tree nests the children inside their parents or returns one flat list. The nested layout is the default. | Category tree |
| `locationId` | string | The place that Coordinates of a place resolves, taken from the place ID of a Find addresses row. | Coordinates of a place |
| `sellerId` | string | The seller whose ads Ads of a seller lists, as shown on ad rows. | Ads of a seller |
| `storeId` | string | The professional shop whose ads Ads of a shop lists. | Ads of a shop |
| `url` | string | A link to a Milanuncios results page, copied from your browser. Search by page link reads the filters from it. | Search by page link |
| `location` | string | The first letters of a town, district or street. Used to look places up, never to filter ads. | Find locations, Find addresses |
| `zoneCityId` | string | The town whose districts City zones lists. Use the city number from a Find locations result. | City zones |
| `latitude` | number | North-south position of a map point, as a decimal number. A search around a point needs this, Longitude and Radius (meters) all filled in. Place at coordinates needs it too. | Place at coordinates, Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `longitude` | number | East-west position of a map point, as a decimal number; places west of Greenwich are negative. Give it with Latitude. | Place at coordinates, Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `radiusMeters` | integer | How far from the map point an ad may be, in meters. It works only when Latitude and Longitude are filled in as well. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `provinceId` | integer | Only ads in this Spanish province. Find locations returns the numbers. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `cityId` | integer | Only ads in this city. Find locations returns the numbers. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `districtId` | integer | Only ads in this district of a city. City zones returns the numbers. Needs City number too. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minPrice` | integer | Only ads priced at or above this amount. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxPrice` | integer | Only ads priced at or below this amount. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `sellerType` | string | Only ads from this kind of seller. Leave it empty for both kinds. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `adType` | string | Whether to list ads that offer something or ads that look for something. Leave it empty to keep the site default. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `listedWithinDays` | integer | Only ads that appeared in the last number of days given here. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minYear` | integer | Oldest model year to include (vehicles). | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxYear` | integer | Newest model year to include (vehicles). | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `sort` | string | How to order the ads. Closest first needs a map point and a radius. | Search ads, Price drops, Ads of a seller, Ads of a shop |

#### Advanced filters

Put these keys inside the `advancedFilters` object. Any other key is refused.

| Key | Type | Description | Used by |
| --- | --- | --- | --- |
| `regionId` | integer | Only ads in this autonomous region. Find locations returns the numbers. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minDaysOnMarket` | integer | Only ads that appeared at least this many days ago. Combined with Published within, it cuts the results into date slices. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `shippableOnly` | boolean | Keep only ads whose item the seller can ship. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `priceReduced` | boolean | Keep only ads whose price has gone down. | Search ads, Ad counts by category, Ads of a seller, Ads of a shop |
| `listingIds` | string | Comma-separated ad IDs to look for, for example to refresh a saved list. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `itemCondition` | string | Condition of the item, in the wording that Category filters lists for the category. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `brand` | string | Vehicle make, in the wording that Category filters lists. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `model` | string | Model name of the item. Fill in Brand as well. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `fuel` | string | Fuel of a vehicle, in the wording that Category filters lists. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `transmission` | string | Gearbox of a vehicle. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `color` | string | Color of the item, in the wording that Category filters lists. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `doors` | integer | Number of doors of a car, from 2 to 5. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `seats` | string | Number of seats, in the wording that Category filters lists. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minMileage` | integer | Vehicles with at least this many kilometers. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxMileage` | integer | Vehicles with at most this many kilometers. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minPowerHp` | integer | Engines with at least this much horsepower. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxPowerHp` | integer | Engines with at most this much horsepower. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minEngineCc` | integer | Engines with at least this displacement. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxEngineCc` | integer | Engines with at most this displacement. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `environmentalLabel` | string | Emissions label of a vehicle, in the wording that Category filters lists. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `certifiedBrand` | boolean | Keep only vehicles that the brand itself certifies. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `withWarranty` | boolean | Keep only vehicles that come with a warranty. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minBeds` | integer | Homes with at least this many bedrooms. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxBeds` | integer | Homes with at most this many bedrooms. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minBaths` | integer | Homes with at least this many bathrooms. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxBaths` | integer | Homes with at most this many bathrooms. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minArea` | integer | Properties with at least this many square meters. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxArea` | integer | Properties with at most this many square meters. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `floor` | string | Floor of a home, in the wording that Category filters lists. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `features` | string | Extra features, in the wording that Category filters lists for the category. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `garageType` | string | Kind of garage space, in the wording that Category filters lists. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minBeachDistanceMeters` | integer | Homes at least this far from the beach. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxBeachDistanceMeters` | integer | Homes at most this far from the beach. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minBoatLengthMeters` | integer | Boats at least this long. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxBoatLengthMeters` | integer | Boats at most this long. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minAxles` | integer | Trucks and trailers with at least this many axles. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxAxles` | integer | Trucks and trailers with at most this many axles. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minLoadCapacityKg` | integer | Vehicles that carry at least this weight. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxLoadCapacityKg` | integer | Vehicles that carry at most this weight. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minPermittedWeightKg` | integer | Vehicles whose permitted total weight is at least this. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxPermittedWeightKg` | integer | Vehicles whose permitted total weight is at most this. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `minFinancedPrice` | integer | Only ads whose financed price is at or above this amount. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |
| `maxFinancedPrice` | integer | Only ads whose financed price is at or below this amount. | Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop |

### Output

Every row holds the run's own fields first (`operation`, `scrapedAt` and `sourceUrl`),
then the core fields `id`, `url`, `title`, `price`, `currency`, `location`, which are empty when the source has no such value,
and then every field of the source item as Milanuncios returns it. The dataset has an overview view and one view per
operation.

A sample of Search ads rows from a test run. Personal data, contact data, outside links and anything
that looks like a credential are replaced with `(removed)`:

```json output-excerpt
[
  {
    "operation": "searchListings",
    "scrapedAt": "2026-11-19T10:22:14.807Z",
    "sourceUrl": "(removed)",
    "id": "(removed)",
    "url": "(removed)",
    "title": "(removed)",
    "price": 659900,
    "currency": "EUR",
    "location": "Málaga",
    "category": {
      "category_id": "131",
      "name": "Venta de pisos",
      "slug": "venta-de-pisos"
    },
    "listing_id": "(removed)",
    "published_at": "2026-05-13T17:40:40Z",
    "photo_count": 36,
    "is_highlighted": true
  }
]
```

### Pricing

This Actor uses pay-per-event pricing: a start fee of $0.002 for each run, plus
$0.002 for each result in the dataset. Every operation is priced the same way.

| Operation | Start fee per run | Price per result |
| --- | --- | --- |
| Category tree | $0.002 | $0.002 |
| Find categories | $0.002 | $0.002 |
| Category filters | $0.002 | $0.002 |
| Find locations | $0.002 | $0.002 |
| City zones | $0.002 | $0.002 |
| Find addresses | $0.002 | $0.002 |
| Coordinates of a place | $0.002 | $0.002 |
| Place at coordinates | $0.002 | $0.002 |
| Search ads | $0.002 | $0.002 |
| Search by page link | $0.002 | $0.002 |
| Ad counts by category | $0.002 | $0.002 |
| Price drops | $0.002 | $0.002 |
| Ads of a seller | $0.002 | $0.002 |
| Ads of a shop | $0.002 | $0.002 |

Worked examples for one run:

| Results | Total cost |
| --- | --- |
| 10 | $0.022 |
| 100 | $0.202 |
| 1,000 | $2.002 |

Invalid input, a not-found answer or an internal error adds no charge of its own: such a run pays the start
fee plus only the results it delivered before it stopped (none for invalid input). To cap what one run may
cost, set the maximum cost per run when you start it.

### Limits and tips

- One run returns at most 1,000 results; the input form allows no higher `maxItems`.
- Set `maxItems` to what you need: you pay per result, and a smaller run finishes sooner.
- A request that matches nothing ends with an empty dataset and costs only the start fee.
- One run returns at most 1,000 ads from a search. For a wider scan, cut it into slices of fewer than 1,000 ads with Published within, Older than or the price filters.
- Search by page link reads Milanuncios results pages only, not single ads and not links to other sites.
- Category, province, city and district numbers come from the lookup operations. Run Category tree or Find locations first, then use the numbers in your searches.
- Find categories and Ad counts by category cannot run without Search words, and Place at coordinates needs both Latitude and Longitude.
- When Search words are set and Order of results is Best match, or the link for Search by page link has search words and the best-match order, ads can trade places between pages during a long run, so a few may be skipped; an ad seen on two pages is returned once. Choose Newest first, in the field or in the link, to walk the whole list.

### Resume a run that stopped at your cost limit

If you set a maximum cost per run and a run reaches it, the run stops early. To get the rest, resurrect the
run in Apify Console, or through the API, with a higher limit. The Actor resumes where it stopped: results
already in the dataset are not fetched or charged again, and the run still ends at `maxItems`.
Resurrecting can charge the start fee again.

### Running without input

The example input above is also this Actor's example run input. Apify's API documents that a run started with
no input at all uses the example run input: Search ads, at most 10 results,
which costs at most $0.022 (the start fee plus 10 results). For your own runs, always send an input with the fields you need.

### FAQ

#### Do I need an account on Milanuncios?

No. The Actor reads public data, so an Apify account is all you need.

#### How do I get the data into my own tools?

Download the dataset from the run's page, or read it through the Apify API and its integrations.

#### How do I search one city for a keyword?

Run Find locations with the town name and note the city number in its row. Then run Search ads with your Search words and that number in City number.

#### How can I get more than 1,000 ads for a broad keyword?

Split the search into slices that each stay under the limit. Run it several times with different Published within and Older than values, or with price ranges, and join the results.

#### Can I see professional dealers only?

Yes. Pick Professional sellers in Kind of seller. Private sellers is the other choice, and an empty field returns both kinds.

#### What sits in Advanced filters?

Vehicle, home and boat details such as brand, model, fuel, mileage, bedrooms, surface and boat length, plus the shippable and warranty switches. Category filters shows which of them fit a category.

### More Milanuncios Actors

This is the only Milanuncios Actor in this collection for now.

### Related Actors

- [njuskalo-classifieds-search-scraper](https://apify.com/happyendpoint/njuskalo-classifieds-search-scraper)
- [gumtree-uk-listings-scraper](https://apify.com/happyendpoint/gumtree-uk-listings-scraper)
- [4sale-kuwait-listings-scraper](https://apify.com/happyendpoint/4sale-kuwait-listings-scraper)

### Disclaimer

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Milanuncios. All
trademarks belong to their owners.

### Is it legal to use this data?

This Actor collects data that Milanuncios shows publicly.
Some fields can hold personal data about private people: `description`, `location › latitude`, `location › longitude`, `resume`, `seller › name`, `seller › seller_id`, `title`.
Personal data is protected by laws such as the GDPR in the EU. Collect and use it only when you have a lawful
reason, keep only what you need, and do not use it for unsolicited messages. If you are unsure, ask a lawyer.

# Changelog

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

# Actor input Schema

## `operation` (type: `string`):

Which data to fetch. Each option is one kind of request.

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

The most results to return. The run stops once it has this many.

## `query` (type: `string`):

Words to look for in the ads. Leave it empty on a search to list every ad that fits the other filters. Find categories and Ad counts by category cannot run without it. Used by: Find categories, Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `category` (type: `integer`):

Only ads in this category. The numbers come from Category tree and Find categories. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `categoryId` (type: `string`):

The category that Category filters describes, taken from the category ID of a Category tree row. Used by: Category filters.

## `parentCategoryId` (type: `string`):

Show only the children of this category in Category tree. Leave it empty to start at the top. Used by: Category tree.

## `categoryFormat` (type: `string`):

Whether Category tree nests the children inside their parents or returns one flat list. The nested layout is the default. Used by: Category tree.

## `locationId` (type: `string`):

The place that Coordinates of a place resolves, taken from the place ID of a Find addresses row. Used by: Coordinates of a place.

## `sellerId` (type: `string`):

The seller whose ads Ads of a seller lists, as shown on ad rows. Used by: Ads of a seller.

## `storeId` (type: `string`):

The professional shop whose ads Ads of a shop lists. Used by: Ads of a shop.

## `url` (type: `string`):

A link to a Milanuncios results page, copied from your browser. Search by page link reads the filters from it. Used by: Search by page link.

## `location` (type: `string`):

The first letters of a town, district or street. Used to look places up, never to filter ads. Used by: Find locations, Find addresses.

## `zoneCityId` (type: `string`):

The town whose districts City zones lists. Use the city number from a Find locations result. Used by: City zones.

## `latitude` (type: `number`):

North-south position of a map point, as a decimal number. A search around a point needs this, Longitude and Radius (meters) all filled in. Place at coordinates needs it too. Used by: Place at coordinates, Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `longitude` (type: `number`):

East-west position of a map point, as a decimal number; places west of Greenwich are negative. Give it with Latitude. Used by: Place at coordinates, Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `radiusMeters` (type: `integer`):

How far from the map point an ad may be, in meters. It works only when Latitude and Longitude are filled in as well. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `provinceId` (type: `integer`):

Only ads in this Spanish province. Find locations returns the numbers. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `cityId` (type: `integer`):

Only ads in this city. Find locations returns the numbers. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `districtId` (type: `integer`):

Only ads in this district of a city. City zones returns the numbers. Needs City number too. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `minPrice` (type: `integer`):

Only ads priced at or above this amount. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `maxPrice` (type: `integer`):

Only ads priced at or below this amount. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `sellerType` (type: `string`):

Only ads from this kind of seller. Leave it empty for both kinds. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `adType` (type: `string`):

Whether to list ads that offer something or ads that look for something. Leave it empty to keep the site default. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `listedWithinDays` (type: `integer`):

Only ads that appeared in the last number of days given here. Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `minYear` (type: `integer`):

Oldest model year to include (vehicles). Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `maxYear` (type: `integer`):

Newest model year to include (vehicles). Used by: Search ads, Ad counts by category, Price drops, Ads of a seller, Ads of a shop.

## `sort` (type: `string`):

How to order the ads. Closest first needs a map point and a radius. Used by: Search ads, Price drops, Ads of a seller, Ads of a shop.

## `advancedFilters` (type: `object`):

More filters as one JSON object. The README lists every accepted key; any other key is refused.

## Actor input object example

```json
{
  "operation": "searchListings",
  "maxItems": 10,
  "query": "bicicleta"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `listCategories` (type: `string`):

No description

## `searchCategories` (type: `string`):

No description

## `getCategoryFilters` (type: `string`):

No description

## `searchLocations` (type: `string`):

No description

## `listCityZones` (type: `string`):

No description

## `searchAddresses` (type: `string`):

No description

## `geocodePlace` (type: `string`):

No description

## `reverseGeocode` (type: `string`):

No description

## `searchListings` (type: `string`):

No description

## `searchListingsByUrl` (type: `string`):

No description

## `getSearchCategoryCounts` (type: `string`):

No description

## `searchPriceDrops` (type: `string`):

No description

## `listSellerListings` (type: `string`):

No description

## `listStoreListings` (type: `string`):

No description

## `summary` (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 = {
    "operation": "searchListings",
    "maxItems": 10,
    "query": "bicicleta"
};

// Run the Actor and wait for it to finish
const run = await client.actor("happyendpoint/milanuncios-search-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 = {
    "operation": "searchListings",
    "maxItems": 10,
    "query": "bicicleta",
}

# Run the Actor and wait for it to finish
run = client.actor("happyendpoint/milanuncios-search-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 '{
  "operation": "searchListings",
  "maxItems": 10,
  "query": "bicicleta"
}' |
apify call happyendpoint/milanuncios-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,happyendpoint/milanuncios-search-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/9HDB06bcxq4uDZoky/builds/UuCM6ONnQRS8l9jHh/openapi.json
