Milanuncios Scraper — Spain Classifieds Ads & Prices avatar

Milanuncios Scraper — Spain Classifieds Ads & Prices

Pricing

from $0.90 / 1,000 listing scrapeds

Go to Apify Store
Milanuncios Scraper — Spain Classifieds Ads & Prices

Milanuncios Scraper — Spain Classifieds Ads & Prices

Scrape Milanuncios.com Spanish classifieds by keyword, category, province or URL. Flat rows include title, EUR price, city and province, seller type, images and dates, with no cookies or login.

Pricing

from $0.90 / 1,000 listing scrapeds

Rating

0.0

(0)

Developer

Khadin Akbar

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

20 hours ago

Last modified

Features

Limited permissions

Share

Milanuncios Scraper — Spain Classified Ads & Prices

Use this Apify Actor to scrape public Milanuncios Spain classified ads by keyword, category, province, or Milanuncios search/detail URL. Resellers, dealers, price monitors, and AI agents get flat MCP-ready rows with EUR price, city/province, seller type, images, and dates — cookieless, no login, HTTP-only.

Use this Actor when you need Spanish second-hand inventory from Milanuncios into JSON. When the next workflow is Spanish real-estate portals or another marketplace, continue with a sibling Actor instead.

What's new in 0.2

  • Car and property fields in every search row (free, no extra page): vehicleYear, vehicleKm, fuelType, areaSqm, rooms, bathrooms, pricePerSqm.
  • Monitor mode: get only ads that are new or changed price since your last run (changeType, previousPriceEur, priceDropped).
  • Only ads published in the last N days (publishedWithinDays). The site's own "newest" sort really means "recently refreshed", so every row says how it was ordered (sortedBy).
  • Runs above 2,000 ads: big searches are split into price bands and joined without duplicates.
  • Lower prices, faster runs. Pages are read in parallel and memory fits the run size.
  • Ads with no price now show an empty price and priceType: "not-given" instead of 0.
  • Free plan: 25 ads per run. The adult-contacts section is never read.

Best fit for this Actor

  • You need public Milanuncios listings across Spain (phones, cars, property, pets, and other categories).
  • You want flat fields (title, priceEur, city, province, sellerType, url, imageUrl) plus optional detail enrichment.
  • You want one MCP-ready tool with terminal OUTPUT.outcome and Pay per event billing.
  • For Idealista/Fotocasa property-only workflows, Wallapop, or private seller phones, route to a different tool.

Use case: Madrid iPhone sourcing sheet

A reseller preparing a weekend buy list runs this Actor with keyword: "iphone", category: "telefonos-moviles", province: "madrid", and maxItems: 20. Each row has title, priceEur, city, and url. They sort by price, open the best five ad pages, then turn on fetchDetails for a shortlist of three to pull seller score, attributes, and contact flags before messaging.

Quick start input

{
"keyword": "iphone",
"category": "telefonos-moviles",
"province": "madrid",
"maxItems": 5,
"maxPages": 1,
"fetchDetails": false,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"],
"apifyProxyCountry": "ES"
}
}

Also supports startUrls (search or -{id}.htm detail), price filters, seller type, sort, and stripSellerPII. Prefill keeps quality tests at five iPhone mobiles listings.

What data you receive

One dataset row per unique public ad.

{
"listingId": "536827480",
"title": "IPhone",
"priceEur": 15,
"currency": "EUR",
"condition": "mejorable",
"sellerType": "private",
"city": "Sabadell",
"province": "Barcelona",
"category": "iPhone",
"categoryPath": "Telefonía > Móviles > Teléfonos móviles > iPhone",
"url": "https://www.milanuncios.com/iphone/iphone-536827480.htm",
"imageUrl": "https://images.milanuncios.com/api/v1/example.jpg",
"publishDate": "2026-05-04T13:56:22Z",
"scrapedAt": "2026-09-21T12:00:00.000Z"
}
FieldDescription
title, priceEur, conditionListing card basics
city, province, url, imageUrlWhere and how to open it
sellerTypeprivate or professional
description, attributes, seller*When fetchDetails or direct detail URLs
publishDate / updateDateTimestamps when Milanuncios exposes them

Pricing

Pay per event plus platform usage (isPPEPlatformUsagePaidByUser: true). Open the live Pricing tab in Apify Console for the current source of truth.

EventWhenPrice
apify-actor-startEvery run$0.00005
listing-scrapedEach ad saved$0.0012 Free, $0.0010 Bronze, $0.0009 Silver, $0.0008 Gold and above
listing-enrichedEach ad whose page was read (extra)$0.008 Free, $0.0075 Bronze, $0.0070 Silver, $0.0065 Gold and above

Example: 1,000 ads cost about $1.20 on the Free plan and $0.80 on Gold. Invalid input, empty searches and fully blocked runs charge nothing for listings. Rows saved always equal rows charged.

How it works

  1. Primary path: HTTP Cheerio reads Milanuncios embedded window.__INITIAL_PROPS__ (search cards ~41/page; detail props.ad). Spanish residential connections are required — datacenter IPs get interruptions.
  2. Search pages are read in parallel up to maxPages / maxItems; blocked pages are retried with a fresh connection.
  3. Each row is saved and charged in one step, so saved rows equal charged rows.
  4. Terminal OUTPUT / RUN_SUMMARY use COMPLETE, PARTIAL, VALID_EMPTY, INVALID_INPUT, UPSTREAM_FAILED, or CONFIG_ERROR.

Honest contract and best results

  • Public Milanuncios listing pages only. No Milanuncios account, private chat, or unlocked seller phone numbers.
  • Empty search results → VALID_EMPTY (succeeded, zero listing charges).
  • Total block with zero rows → UPSTREAM_FAILED (honest upstream outage).
  • Keep maxItems small while testing; raise it only after a keyword+category returns useful cards.
  • For daily tracking turn on monitorMode: the first run returns everything, later runs return only new or price-changed ads.
  • 'Newest' sort means recently refreshed. For truly new ads use publishedWithinDays.
  • The adult-contacts section is refused; links into it and ads from it are never saved.
  • Prefer category + province over bare keywords for cleaner inventory.
  • Leave fetchDetails off for discovery; turn it on for shortlists that need seller/attribute fields.
  • Always pin apifyProxyCountry: "ES" — non-ES exits often fail Akamai checks.
  • Enable stripSellerPII when you need enriched attributes without private-seller identity fields.

Why agents choose this Actor

  • One tool for keyword builders, category/province filters, and paste-ready Milanuncios URLs.
  • Predictable pay-per-event pricing, a hard maxItems ceiling and a spending-limit stop that ends the run as PARTIAL.
  • Flat fields stay inside a small token budget for MCP clients.
  • Terminal OUTPUT.outcome makes empty, upstream-outage, and invalid-input states machine-readable.

Agent checklist

  1. Supply keyword + optional category / province, or Milanuncios startUrls.
  2. Cap maxItems to the budget you can spend (about $0.0008 to $0.0012 per ad, plus $0.0065 to $0.008 when enriched).
  3. Keep Residential ES in proxyConfiguration.
  4. After the run, read OUTPUT.outcome, then the dataset.
  5. Zero rows with VALID_EMPTY means the query matched nothing public — change keyword, category, or province.
  6. When OUTPUT.outcome is UPSTREAM_FAILED, retry once with a fresh Residential ES session before escalating.

Use through the API

curl "https://api.apify.com/v2/acts/khadinakbar~milanuncios-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"keyword": "iphone",
"category": "telefonos-moviles",
"province": "madrid",
"maxItems": 5,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"],
"apifyProxyCountry": "ES"
}
}'

When the Actor completes, read dataset items from the default dataset and the OUTPUT record from the default key-value store.

Use with AI agents through Apify MCP

Scrape Milanuncios Spain listings for "iphone" in category telefonos-moviles, province madrid. Return up to 10 rows with title, EUR price, city, and URL. Keep Residential ES. Stay on public listing fields only.

Point the MCP client at https://mcp.apify.com?tools=khadinakbar/milanuncios-scraper, call khadinakbar/milanuncios-scraper, then read the dataset and OUTPUT.outcome.

Builder's note

I built this Actor on Milanuncios embedded __INITIAL_PROPS__ after live probes showed datacenter exits return Akamai 403 while Residential ES returns 200 with search adListPagination.adList.ads and detail props.ad. In my testing, CSS-only scrapes were brittle across category templates, so the Actor reads the JSON blob first and finishes UPSTREAM_FAILED when every route is unavailable rather than inventing listings. My goal is truthful billing: rows saved equal rows charged, and the detail price is only charged when the ad page was really read.

Connect the workflow

When the next market is Spanish property portals after Milanuncios discovery, continue with Idealista Scraper.

For Fotocasa property research after Milanuncios discovery, feed titles into Fotocasa All-in-One Scraper.

FAQ and responsible use

Is this affiliated with Milanuncios? Milanuncios is a trademark of its owner. This independent Actor is not affiliated with, associated with, or endorsed by Milanuncios or Adevinta.

Is scraping allowed? You are responsible for complying with Milanuncios Terms of Service, robots rules, and applicable laws (including GDPR when processing seller personal data). Use only for legitimate purposes on publicly available data.

Why was my run empty? A valid keyword with zero public matches finishes SUCCEEDED / VALID_EMPTY. Missing input finishes INVALID_INPUT. When every search route is unavailable the outcome is UPSTREAM_FAILED.

Does it return emails or phones? No. Public listing fields and contact flags only — it does not unlock private seller phone numbers.

Open the Actor Issues tab for bugs. This Actor is independent research tooling, not legal, investment, or sourcing advice.