Morocco classifieds as JSON, where a filter Avito quietly dropped becomes an error
- median response
- 1.3s
- fields per listing
- 34
- endpoints
- 4
Avito.ma API returns live Avito.ma data as clean JSON for avito.ma The primary endpoint, search, returns listings records including ad id, list id, title, description and price.
| title | price | ad_type | ad_type_label |
|---|---|---|---|
| **ULTRA HD IPTV SERVICES** divertissement Premium | 300 DH | SELL | à vendre |
| 🔴 ULTRA HD IPTV — La Référence du Streaming Premium | 500 DH | SELL | à vendre |
| 4K IPTV - Installation complète tous appareils | 300 DH | SELL | à vendre |
1 credit per call≈ $1/1,000 calls1,000 free credits, no card
Get a free API keyRun the call yourself, on the real endpoint
Change a parameter and press Try it. The response on the right is what your code will receive.
Avito.ma API
4 of 4 endpoints, ready to run
Search Avito.ma by keyword, category, city, area, price band, seller type and urgency. Every filter is confirmed against the canonical address Avito itself answers with, so anything the site dropped is reported rather than silently widening your result. Measured 2026-10-01: a city filter takes 8,085 ads down to 2,835 with every row carrying the requested city id. New-development project cards that Avito mixes into property pages come back separately in projects[], so listings holds only ads.
{ "ok": true, "data": { "listings": [ { "ad_id": "77103669", "list_id": "57646305", "url": "https://www.avito.ma/fr/autre_secteur/comptes_et_abonnements/__ULTRA_HD_IPTV_SERVICES___divertissement_Premium_57646305.htm", "title": "**ULTRA HD IPTV SERVICES** divertissement Premium", "description": "**ULTRA HD IPTV SERVICES** transforme votre **télévision, votre récepteur, votre smartphone, votre tablette ou votre ordinateur** en une véritable **plateforme de divertissement complète**.\n\nNotre serveur IPTV regroupe des **milliers de chaînes internationales** et un catalogue **VOD ultra complet** avec les meilleures chaînes sport, cinéma et séries.\n\n\n\n## 📺 Contenu disponible\n\n• Chaînes **marocaines et internationales**\n• **beIN Sports**, chaînes sport premium et grands événements sportifs\n• **OSN** et chaînes cinéma internationales\n• Bouquets **France, Allemagne, Pays Bas, Canada, Royaume Uni, USA et Europe**\n• Chaînes **cinéma, séries et documentaires**\n• Bibliothèque **VOD très complète**\n\n\n\n 🎬 Qualité d’image\n\n• Streaming **HD Full HD – Ultra HD 4K**\n• Serveurs **rapides et stables**\n• Mise à jour régulière des chaînes et du contenu\n• Streaming **fluide sans coupure avec connexion internet stable**\n\n\n\n## 📱 Appareils compatibles\n\nLe service **ULTRA HD IPTV SERVICES** fonctionne sur\n\n📺 **Smart TV**\nSamsung • LG • Sony • TCL • Xiaomi • Android TV\n\n📦 **TV Box / Récepteurs IPTV**\nAndroid TV Box • Mi Box • MAG Box • Formuler • Enigma2\n\n🔥 **Streaming devices**\nAmazon **Fire Stick** • **Chromecast** • **Mi Stick** • **Apple TV**\n\n📱 **Smartphones et Tablettes**\nAndroid • iPhone • iPad • Tablettes Android\n\n💻 **Ordinateurs**\nWindows • Mac\n\n\n\n## 📲 Applications IPTV compatibles\n\nNotre abonnement fonctionne avec les principales applications IPTV\n\n• **TiviMate**\n• **IPTV Smarters Pro**\n• **SmartOne IPTV**\n• **Duplex IPTV**\n• **IBO Player**\n• **Nanomid**\n• **SS IPTV**\n• **SET IPTV**\n\n ⭐ Avantages du service\n\n✔️ Installation simple et rapide\n✔️ Compatible avec presque tous les appareils\n✔️ Accès à des milliers de chaînes et contenus VOD\n✔️ Qualité **Full HD et 4K**\n✔️ Mise à jour régulière du contenu\n\n\n**ultra hd iptv services, iptv pro quality, iptv box 4k, beIN Sports IPTV, OSN IPTV, Smart TV IPTV, Fire Stick IPTV, Chromecast IPTV, serveur IPTV Europe USA**", "price": 300, "price_display": "300 DH", "currency": "DH", "price_matches_display": true, "old_price": null, "old_price_display": null, "monthly_payment": null, "ad_type": "SELL", "ad_type_label": "à vendre", "category_id": "5092", "category_name": "Comptes et Abonnements", "category_path": [ { "id": "7100", "name": "Avito Market" }, { "id": "5000", "name": "Informatique, Multimedia et Gadgets" }, { "id": "5092", "name": "Comptes et Abonnements" } ], "city_id": "5", "city": "Casablanca", "area_id": "1480", "area": "Autre secteur", "posted_at": "2026-09-30T18:25:09Z", "seller_type": "STORE", "image": "https://content.avito.ma/classifieds/images/10146529935?t=images", "images": [ "https://content.avito.ma/classifieds/images/10146529935?t=images", "https://content.avito.ma/classifieds/images/10146529938?t=images", "https://content.avito.ma/classifieds/images/10146529936?t=images" ], "image_count": 5, "is_premium": true, "is_highlighted": false, "is_urgent": false, "is_hot_deal": false, "is_promoted": true, "offers_shipping": false, "attributes": [] }, { "ad_id": "77473623", "list_id": "57989984", "url": "https://www.avito.ma/fr/autre_secteur/comptes_et_abonnements/___ULTRA_HD_IPTV___La_Référence_du_Streaming_Premium_57989984.htm", "title": "🔴 ULTRA HD IPTV — La Référence du Streaming Premium", "description": "--- \n\n## 🔴 ULTRA HD IPTV — La Référence du Streaming Premium\n\n**Ultra HD IPTV** est votre fournisseur de services IPTV haut de gamme, offrant une expérience de streaming inégalée en qualité **4K, Full HD et HD** sur tous vos appareils, 24h/24 et 7j/7. Grâce à notre infrastructure serveur à haute disponibilité, profitez de vos chaînes préférées sans coupure, sans freeze et sans interruption.\n\n---\n\n### 📡 Pourquoi choisir Ultra HD IPTV ?\n\nAvec **Ultra HD IPTV**, accédez à plus de **20 000 chaînes internationales** en direct, une **vidéothèque VOD illimitée** composée de films et séries, ainsi qu'une fonction **Catch-Up TV** (replay jusqu'à 7 jours). Notre service couvre les chaînes françaises, arabes, européennes, sportives et cinéma avec un zapping ultra-rapide et un support technique disponible **24h/24 et 7j/7**.\n\n---\n\n### 🔑 Mots Clés\n\nIPTV Premium · Ultra HD IPTV · Abonnement IPTV · IPTV 4K · Meilleur IPTV · IPTV France · IPTV Maroc · IPTV Algérie · IPTV Tunisie · IPTV Stable · Serveur IPTV · Liste IPTV M3U · IPTV Full HD · IPTV Anti-Freeze · IPTV Smart TV · IPTV Android · IPTV Firestick · VOD IPTV · Catch-Up TV · IPTV Box · IPTV Pas Cher · Streaming IPTV · IPTV MAG · IPTV Enigma2 · Test IPTV Gratuit · IPTV Sport · IPTV Foot · IPTV Xtream Codes · Panel IPTV · IPTV 4K Ultra HD\n\n---\n\n### 📱 Applications Compatibles\n\n**Ultra HD IPTV** fonctionne sur toutes les applications IPTV majeures :\n\n- **IPTV Smarters Pro**\n- **TiviMate IPTV Player**\n- **GSE Smart IPTV**\n- **Perfect Player IPTV**\n- **Kodi** (avec plugin PVR IPTV Simple Client)\n- **VLC Media Player**\n- **OTT Navigator IPTV**\n- **Televizo — IPTV Player**\n- **Smart IPTV (SIPTV)**\n- **NET IPTV** (pour Smart TV)\n- **IBO Player Pro**\n- **Duplex Play**\n- **MyIPTV Player** (Windows)\n- **Lazy IPTV** (Samsung)\n- **MX Player**\n\n---\n\n### 📺 Appareils Compatibles\n\nCompatible avec absolument tous vos écrans :\n\n- Smart TV **Samsung** (Tizen OS)\n- Smart TV **LG** (WebOS)\n- Smart TV **Sony / Philips** (Android TV)\n- **Apple TV** (tvOS)\n- **iPhone & iPad** (iOS)\n- **Smartphone & Tablette Android**\n- **PC / Mac / Linux**\n- **Amazon FireStick** / Fire TV Cube\n- **Nvidia Shield TV**\n- **Chromecast** avec Google TV\n- **Roku** Streaming Player\n- **Raspberry Pi**\n- **Xbox / PlayStation**\n- **Box opérateur** (Livebox, BBox, SFR Box…)\n\n---\n\n### 📦 TV Boxes Supportées\n\nUltra HD IPTV est entièrement compatible avec les TV boxes les plus populaires du marché :\n\n- **Amazon FireStick** 4K / HD / Lite / Fire TV Cube\n- **Android Box** — X96, H96, TX6, MXQ Pro, X88 Pro\n- **Nvidia Shield TV** Pro / 2023\n- **Apple TV** 4K (3ème génération)\n- **Chromecast** avec Google TV 4K\n- **Beelink / Minix** — EQ12, GT-King, U22-XJ, X68-M\n- **Zidoo** — Z9X Pro, Z10 Pro, X9S, UHD3000\n- **MAG Box** — MAG 522, 524, 420, 250\n\n---\n\n### 📡 Récepteurs Compatibles\n\n**Récepteurs Enigma2 (Linux)**\nDreambox DM900/DM920/DM7080 · VUplus Solo4K, Duo4K, Zero4K · Gigablue UHD Quad 4K · Formuler S4 / S Turbo 4K · Mutant HD51 / HD60 4K\n\n**Récepteurs Android Hybrides**\nFormuler Z Alpha / Z8 / Z11 Pro Max · Mecool KM2 Plus / KM6 / KM7 · Dreamlink T2 · Buzz TV XPL3000 / XRS4500 · Infomir MAG 420w1\n\n**Décodeurs Satellite HD/4K**\nStarsat SR-X1 Extreme / 2000HD · Géant GN-1000HD / RS-8800 · Tiger T8 Ultra / X800 · Echolink Platinum 4K · Technosat T10 Plus\n\n**Décodeurs TNT & Câble**\nManhattan Plaza HDR / T3-R · Strong SRT 7600 / SRT 8539 · Humax Aura / Freesat 4K · Kaon IPTV Set-Top Box · Amino A540 / A145\n\n---\n\n### 🎁 Essai Gratuit 24H — Sans Engagement\n\nTestez **Ultra HD IPTV** gratuitement pendant 24 heures et rejoignez des milliers de clients satisfaits à travers le monde. Activation instantanée, aucun engagement, support inclus.\n\n**👉 Contactez-nous dès maintenant pour votre test gratuit **\n\n---\n\n*© 2026 Ultra HD IPTV · Streaming Premium · 4K · Full HD · Anti-Coupure · plus de 20 000 Chaînes*", "price": 500, "price_display": "500 DH", "currency": "DH", "price_matches_display": true, "old_price": null, "old_price_display": null, "monthly_payment": null, "ad_type": "SELL", "ad_type_label": "à vendre", "category_id": "5092", "category_name": "Comptes et Abonnements", "category_path": [ { "id": "7100", "name": "Avito Market" }, { "id": "5000", "name": "Informatique, Multimedia et Gadgets" }, { "id": "5092", "name": "Comptes et Abonnements" } ], "city_id": "5", "city": "Casablanca", "area_id": "1480", "area": "Autre secteur", "posted_at": "2026-09-30T19:22:21Z", "seller_type": "STORE", "image": "https://content.avito.ma/classifieds/images/10149697244?t=images", "images": [ "https://content.avito.ma/classifieds/images/10149697244?t=images", "https://content.avito.ma/classifieds/images/10149697240?t=images", "https://content.avito.ma/classifieds/images/10149697237?t=images" ], "image_count": 5, "is_premium": true, "is_highlighted": false, "is_urgent": false, "is_hot_deal": false, "is_promoted": true, "offers_shipping": false, "attributes": [] }, { "ad_id": "77602221", "list_id": "58118229", "url": "https://www.avito.ma/fr/centre_ville/comptes_et_abonnements/4K_IPTV___Installation_complète_tous_appareils_58118229.htm", "title": "4K IPTV - Installation complète tous appareils", "description": "Abonnement IPTV ULTRA HD 4K Premium - Installation complète tous appareils Maroc\n\nIPTV ULTRA HD Premium - Qualité 4K UHD - Installation rapide partout au Maroc\n\nVous cherchez une solution IPTV stable, fluide et en vraie qualité Ultra HD\nService premium avec accompagnement complet, installation à distance en 10 minutes, support 7j7\n\nAppareils compatibles\nSmart TV Samsung, LG, Sony, TCL, Hisense, Philips, Android TV, Google TV\nFire TV Stick, Fire Cube, Nvidia Shield, Xiaomi Mi Box, Mecool, Chromecast\nApple TV 4K\nMAG Box 254 256 322 420 424 524\nFormuler Z8 Z10 Z11\nEnigma2, Vu plus, Dreambox, Starsat, Geant, Tiger, Mediastar\nPC Windows, MacBook, iMac\nSmartphone Android, iPhone, iPad, Tablette\n\nApplications compatibles\nIPTV Smarters Pro, Smart IPTV SIPTV, Net IPTV, TiviMate, XCIPTV\nFlix IPTV, Duplex Play, Duplex IPTV, IBO Player, IBO Pro Player\nSet IPTV, Smartone IPTV, SS IPTV, OTT Navigator, GSE Smart IPTV\nVLC, Kodi, Perfect Player, Televizo\n\nCe que vous recevez\nQualité SD, HD, Full HD, 4K UHD, anti freeze\nVOD Films et Séries mise à jour régulière\nInstallation et activation à distance\nTest disponible\nSupport technique WhatsApp rapide\nFonctionne avec WiFi, 4G, 5G, Fibre Maroc Telecom, Orange, Inwi\nCompatible M3U, Xtream Codes, Portal Stalker\n\nInstallation possible à Rabat, Salé, Casablanca, Tanger, Fès, Marrakech, Agadir, Meknès, Oujda, Kénitra, Témara, et partout au Maroc à distance\n\nService réservé à l'utilisation de contenus légaux avec vos abonnements officiels. Nous proposons l'installation, la configuration et le support technique.\n\nContactez moi pour un test et une offre premium adaptée à votre appareil\n\niptv, iptv maroc, iptv france, iptv europe, abonnement iptv, iptv premium, iptv 4k, iptv uhd, iptv smarters pro, smart iptv, tivimate, flix iptv, ibo player, net iptv, set iptv, duplex play, xc iptv, ott navigator, gse smart iptv, vlc, kodi, smart tv samsung, smart tv lg, android tv, fire tv stick, apple tv, mag box, formuler, enigma2, windows, mac, android, ios, vod, films, series, sport live, bein sports, canal plus, netflix, disney plus, prime video, arabe, français, english, español, 4k, uhd, m3u, xtream codes, iptv maroc 2026, best iptv, iptv subscription, اشتراك iptv, iptv حلال, قنوات عربية, مسلسلات رمضان, أفلام, رسيفر, تلفاز ذكي", "price": 300, "price_display": "300 DH", "currency": "DH", "price_matches_display": true, "old_price": null, "old_price_display": null, "monthly_payment": null, "ad_type": "SELL", "ad_type_label": "à vendre", "category_id": "5092", "category_name": "Comptes et Abonnements", "category_path": [ { "id": "7100", "name": "Avito Market" }, { "id": "5000", "name": "Informatique, Multimedia et Gadgets" }, { "id": "5092", "name": "Comptes et Abonnements" } ], "city_id": "5", "city": "Casablanca", "area_id": "216", "area": "Centre Ville", "posted_at": "2026-09-30T09:33:40Z", "seller_type": "STORE", "image": "https://content.avito.ma/classifieds/images/10150678274?t=images", "images": [ "https://content.avito.ma/classifieds/images/10150678274?t=images", "https://content.avito.ma/classifieds/images/10150678272?t=images", "https://content.avito.ma/classifieds/images/10150678271?t=images" ], "image_count": 4, "is_premium": true, "is_highlighted": false, "is_urgent": false, "is_hot_deal": false, "is_promoted": true, "offers_shipping": false, "attributes": [] } ] } }
What Avito.ma endpoints does ReefAPI ship?
4 live read endpoints. Read-only data API: no writes, no account actions, no dashboard access on the target site.
search
1 crSearch Avito.ma by keyword and/or category, narrowed by city, district, price range, seller t…
- required
- —
- optional
- q, category, city, area, ad_type, price_min, price_max, seller_type, ad_options, page, lang
detail
1 crOne Avito.ma ad in full, by its list_id or by its address.
- required
- —
- optional
- list_id, url, lang
categories
1 crThe live Avito.ma category tree.
- required
- —
- optional
- lang
locations
1 crEvery city and town Avito.ma publishes.
- required
- —
- optional
- city, lang
Every parameter, every allowed value →
Missing a Avito.ma endpoint, or need a source we don't have yet?Contact us real people · same-day reply.How the Avito.ma API works
Avito.ma is a normal ReefAPI surface — the same four rules that hold for every other engine on the key.
No OAuth app, no request signing, no per-site account. One key covers all 694 engines.
Every route is a POST with a JSON body. Parameters are validated against the published schema before anything is charged.
Credits, not seats. Failed and blocked calls are never charged, and nothing is cached: every call reads the source live.
One envelope everywhere. meta carries latency_ms, record_count and the endpoint that answered.
Resolve the city first, because a spelling Avito does not know returns the whole country
Three separate traps were measured on this site, all answering HTTP 200 with the entire catalogue: the parameter name Avito's own filter block publishes for cities is stripped and never applied; an accented city slug falls back to the country; and an unknown parameter changes nothing at all. Each of them looks like a successful, oddly broad search. The engine re-reads the canonical address Avito answers with and refuses when a filter was dropped.
{}Cities and areas with the slugs Avito actually accepts. Cache it; this is what keeps an accented spelling from silently widening your search.
{"lang": "fr"}The category tree with ids.
{"q": "iphone", "city": "casablanca"}Ads with price, seller type, attributes and images. What Avito actually applied comes back in meta.resolved.
{"list_id": 56251043}The full ad. Prices matched their printed string on 400 of 400 sampled rows.
Moroccan classified ads with the price in dirhams, the city and area, the seller type, the category attributes and the images, plus a record of exactly which filters Avito applied.
curl -X POST https://api.reefapi.com/avito-ma/v1/search \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"q":"iphone","category":5010}'{
"ok": true,
"data": { … },
"meta": {
"api": "avito-ma",
"endpoint": "search",
"mode": "live",
"latency_ms": …,
"record_count": …
},
"error": null
}Morocco, in dirhams, and services and job ads carry no price
Measured 2026-10-01 against the live gateway: 25 fixed cases run twice at 25/25, 427 rows for the field counts. Two of these lines go against us.
Morocco, prices in MAD. Content is French and Arabic mixed. Currency is read from each row, never derived from the country.
ad_id, list_id, url, title, description, category_id, category_name, city, posted_at and seller_type on 100% of 427 rows. image 96.3%.
The remainder are services and job ads that publish no price, so the field is null rather than zero. The parsed number matched the printed string on 400 of 400 rows.
The documented city parameter name, an accented city slug, and any unknown parameter all return HTTP 200 with the whole country. Closed by re-reading Avito's own canonical address; a dropped filter returns an invalid-parameter error naming it, never a wall.
Avito publishes no sort facet and none was measured, so none is offered rather than invented.
One live ad published a current price of 1,100 DH next to an old price of 750 DH. Both are carried verbatim and no discount is calculated from them.
Every row carries the seller's phone number, the street address and the map point wherever Avito's own payload has them, and the seller block adds the website and the phone's verification flag. When Avito hides a number behind its reveal button it stays hidden and has_hidden_phone says so. Promoted rows are exposed rather than removed, and the sample deliberately includes them.
What people build with Avito.ma
The jobs this data is most often used for.
Price-intelligence teams use Avito.ma to search Avito.ma by keyword and/or category, narrowed by city, district, price range, seller t….
Classifieds aggregators use Avito.ma to get one Avito.ma ad in full, by its `list_id` or by its address.
Resale and arbitrage tools use Avito.ma to get the live Avito.ma category tree.
Lead-generation teams use Avito.ma to get every city and town Avito.ma publishes.
endpoints
credit per call
What Avito.ma data costs
The cheapest call here is 1 credit, so $15/mo (Pro) buys 10,000 of them — $1.50 per 1,000 credits. Credits roll over and never expire, and failed or blocked calls are not charged.
- 1,000 free credits on signup, no card
- One key, all 694 APIs, one credit pool
- Failed and blocked calls are never charged
- Credits roll over and never expire
Call it in two lines
Sign up, get 1,000 credits and one key that works on every engine. Then this is the whole protocol.
curl -X POST https://api.reefapi.com/avito-ma/v1/search \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"q":"iphone","category":5010}'import os
import requests
REEF_KEY = os.environ["REEF_KEY"]
r = requests.post(
"https://api.reefapi.com/avito-ma/v1/search",
headers={"x-api-key": REEF_KEY},
json={
"q": "iphone",
"category": 5010
},
timeout=90,
)
print(r.json()["data"])Questions developers ask about Avito.ma data
Collected from Stack Overflow, Reddit and search, and answered with live calls on 2 Nov 2026.
Is there an official Avito.ma API for listings and prices?▾
Not a public one. Scraper vendors on Apify state that Avito.ma publishes no public data API, and an open-source Avito.ma MCP server on GitHub says it relies on private endpoints found by analysing the Android app, which Avito may change at any time.
ReefAPI's Avito.ma API returns the site's public listings as JSON: search covers every section (phones, cars, apartments, jobs) with city, district, price and seller-type filters, and detail returns one ad in full. categories and locations give the live category ids and city slugs.
curl -X POST https://api.reefapi.com/avito-ma/v1/search \
-H "x-api-key: $REEF_KEY" -H "content-type: application/json" \
-d '{"q":"iphone 15","category":5010,"city":"casablanca","price_min":3000,"price_max":8000}'Real response, 2 Nov 2026: total 396 · page 1: 35 ads from 3,005 to 8,000 DH, median 6,700 · "iPhone 15 Pro Max 256G importé d'Europe non recyclé" 7,500 DH · 256 GB · Bon état · Aïn Chock · seller_type STORE
My Playwright scraper for Avito.ma works locally but gets a Cloudflare 403 ("Un instant…") on AWS Lambda. Why?▾
A developer on Stack Overflow describes exactly this: the same Playwright code loads Avito.ma on a laptop, but from AWS Lambda it gets HTTP 403 and Cloudflare's Turnstile page ("Vérification de sécurité en cours"), even with a French locale and the Africa/Casablanca timezone. The answer there points at the Lambda network and the browser's signals together, not at Playwright itself.
If the function only needs the data, call ReefAPI's Avito.ma API instead: it is one HTTPS POST, so there is no Chromium to ship in the Lambda, and detail takes the same avito.ma ad URL you were opening.
import json, os, urllib.request
def handler(event, context):
req = urllib.request.Request(
"https://api.reefapi.com/avito-ma/v1/detail",
data=json.dumps({"url": event["url"]}).encode(),
headers={"x-api-key": os.environ["REEF_KEY"], "content-type": "application/json"},
)
ad = json.load(urllib.request.urlopen(req, timeout=60))["data"]["listing"]
return {"title": ad["title"], "price": ad["price"], "city": ad["city"],
"attributes": {a["id"]: a["value"] for a in ad["attributes"]}}Real response, 2 Nov 2026: "Skoda Octavia" · 209000 DH · Casablanca, Sidi Moumen · brand Skoda · model Octavia · regdate 2022 · mileage_exact 77800 · Manuelle · Diesel · 8 CV · 12 photos · verified store with 180 active ads
Why does Avito.ma ignore my keyword, city or district filter and return ads from all of Morocco?▾
The author of an open-source Avito.ma search tool on GitHub documents it: ?keyword= is silently ignored, a single-value ?cities= is dropped, ?areas= does nothing and there is no sort parameter at all, yet the page still loads with ads from the whole country.
ReefAPI's Avito.ma API takes city and area as Avito slugs or names, accents optional (Fès resolves to fes), lists what Avito actually applied in meta.filters_applied and meta.resolved, and answers INVALID_PARAM at no charge when Avito does not know a value. English names such as Fez, Marrakesh, Tangier or Casa resolve too; take the accepted slugs and every city's districts from locations.
curl -X POST https://api.reefapi.com/avito-ma/v1/search \
-H "x-api-key: $REEF_KEY" -H "content-type: application/json" \
-d '{"category":2010,"city":"Fès","seller_type":"private","ad_options":"has_price"}'Real response, 2 Nov 2026: resolved.city "fes" · filters_applied city, category, seller_type, ad_options · total 5,789 · 38 of 38 rows in Fès
How do I get apartment prices per m² by neighbourhood in Casablanca, Rabat or Marrakech?▾
Moroccan real-estate projects on GitHub, such as AvitoTrackr ("prix moyen par m2 des appartements dans différentes villes"), scrape Avito.ma apartment ads and divide the price by the surface.
With ReefAPI, search category 1010 with city, area and ad_options: has_price; each row carries price in dirham and the surface as the size attribute. New-development project cards that Avito mixes into the page come back separately in projects, so listings holds only ads; take the median, because sellers sometimes post a monthly rental in the sale section.
import requests, statistics
ppm2 = []
for page in (1, 2):
r = requests.post(
"https://api.reefapi.com/avito-ma/v1/search",
headers={"x-api-key": REEF_KEY},
json={"category": 1010, "city": "casablanca", "area": "maarif",
"ad_options": "has_price", "page": page},
)
for ad in r.json()["data"]["listings"]:
size = next((a["value"] for a in ad["attributes"] if a["id"] == "size"), None)
if ad["list_id"] and ad["price"] and size:
ppm2.append(ad["price"] / size)
print(len(ppm2), round(statistics.median(ppm2)))Real response, 2 Nov 2026: Maarif, Casablanca: 755 ads, median 14,545 DH/m² over 67 priced ads on pages 1–2 · Agdal, Rabat: 171 ads, 17,940 DH/m² (52) · Guéliz, Marrakech: 853 ads, 19,819 DH/m² (44)
How do I build a used-car price dataset from Avito.ma for a price-prediction model?▾
It is a common Moroccan ML project: one CarPrice AI repository on GitHub trained on 99,506 cars scraped from 500 Avito.ma pages, and when an r/Morocco poster shared an analysis of 1,815 Avito.ma used-car listings, the first question was how he scraped them; only 1,158 of his 1,815 had a usable asking price.
With ReefAPI, page through category 2010 (Voitures d'occasion) with ad_options: has_price: each row already carries the model year (regdate), mileage_exact, gearbox and fuel, and detail adds brand, model, fiscal horsepower and first-owner status. Mileage is whatever the seller typed, so clean it before training.
import requests
rows, seen = [], set()
for page in range(1, 6):
r = requests.post(
"https://api.reefapi.com/avito-ma/v1/search",
headers={"x-api-key": REEF_KEY},
json={"category": 2010, "ad_options": "has_price", "page": page},
)
data = r.json()
for ad in data["data"]["listings"]:
if ad["list_id"] in seen:
continue
seen.add(ad["list_id"])
attrs = {a["id"]: a["value"] for a in ad["attributes"]}
rows.append({"list_id": ad["list_id"], "title": ad["title"], "price": ad["price"],
"city": ad["city"], "year": attrs.get("regdate"),
"km": attrs.get("mileage_exact"), "gearbox": attrs.get("bv"),
"fuel": attrs.get("fuel")})
if not data["meta"]["has_more"]:
breakReal response, 2 Nov 2026: category 2010: 141,620 ads, 111,758 with a price · "Skoda Octavia" 209000 DH, regdate 2022, mileage_exact 77800, Manuelle, Diesel → detail: brand Skoda, model Octavia, 8 CV, first_owner Non · a 1995 Renault 19 lists 99 km
How do I get an alert when a new Avito.ma rental appears in Rabat under my budget?▾
Developers build this as a small bot: one open-source Avito.ma bot on GitHub polls new apartment ads, filters them by price and location and sends each match to Telegram once, keeping the ids it has already sent in SQLite, because "the best opportunities are often gone within minutes".
With ReefAPI, poll page 1 of search with category 1300 (Locations Immobilières; 1500 is holiday rentals by the night), city and price_max, and alert on any list_id you have not stored. Dedupe on list_id rather than on the date: rows come roughly newest first, and an older ad can come back near the top with a fresh posted_at.
import requests
seen = set() # load from your database
r = requests.post(
"https://api.reefapi.com/avito-ma/v1/search",
headers={"x-api-key": REEF_KEY},
json={"category": 1300, "city": "rabat", "price_max": 6000},
)
for ad in r.json()["data"]["listings"]:
if ad["category_id"] == "1010" and ad["list_id"] not in seen:
seen.add(ad["list_id"])
print(ad["price"], ad["area"], ad["title"], ad["url"]) # send to Telegram hereReal response, 2 Nov 2026: Rabat, up to 6,000 DH a month: total 1,614 · newest "APPARTEMENT MEUBLÉ CENTRE-VILLE PRÈS BAB AL HAD" 5000 DH, 40 m², Hassan, posted_at 22:17 UTC · page 1: 27 apartments, 5 shops, 3 offices
Have a question? We got answers.
The questions people actually ask before wiring up Avito.ma.
What is the Avito.ma API?▾
Avito.ma API is a ReefAPI endpoint group for avito.ma It returns live JSON through POST requests under /avito-ma/v1.
Is the Avito.ma API free to try?▾
Yes. ReefAPI starts with 1,000 free credits, no card required. Avito.ma calls use the same shared credit balance as every other ReefAPI engine.
Do I need an Avito.ma login or account?▾
No login to Avito.ma is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.
How fresh is the Avito.ma data?▾
The page example is captured from a live search call, and production requests fetch live data through ReefAPI rather than a static sample.
How many credits does the Avito.ma API use?▾
Avito.ma actions currently cost 1 credit per successful call. Failed or blocked calls are free. All APIs draw from one credit pool.
Can I call Avito.ma from an AI assistant or MCP client?▾
Yes. Connect ReefAPI once through MCP and your assistant can call avito-ma actions with the same key, credit pool and JSON envelope used by normal REST requests.
Is the Avito.ma API an Avito.ma scraper?▾
It is the managed alternative to a DIY Avito.ma scraper. Instead of building and maintaining your own scraper — proxies, headless browsers, captcha and constant breakage — you call one ReefAPI endpoint and get the same avito.ma back as clean JSON.
Why does my Avito.ma scraper keep getting blocked?▾
Most Avito.ma scrapers break on anti-bot defenses, rate limits and IP bans that need rotating residential proxies and browser fingerprinting to clear. ReefAPI handles all of that for you — no proxies, no captchas, no maintenance — and returns live JSON. Blocked calls are free.
121 Classifieds & Second-hand APIs on the same key
One key, one credit pool, one response envelope. If you are pulling Avito.ma, you are one call away from the rest of the category — no second contract, no second integration.
Need something this API does not do?
Name the endpoint, the field, or a source we do not carry yet. We ship new APIs every week and you would be first to get the key. Real people read every message and reply the same day.
Try it on your own data before you pay anything
The call above is the real endpoint, not a recording. A free key gives you 1,000 credits, the other 693 APIs, and the same envelope everywhere.
Endpoints, parameters and credit costs on this page are read from the live catalog and cannot drift from what the API accepts. Field notes were captured on 2026-10-01.