About this API
Each record holds title, price, description, location, category, url and 15 more fields.
What you can filter
Choose what a run reads with category, search, from_url and urls.
- Output fields
- 21
- Inputs
- 4
Sample listing record
Saved sample, not a live run.
title- Moto
price- 7000
description- Detail de l'annonce : Kilometrage 2866 baki jdid
location- Marrakech
category- 1
annonce_n- 10503266
city- Marrakech
vehicle.model- —
vehicle.year- —
All 21 fields
vehicle.mileage- —
image.alt- —
image.original- —
dates.posted_at- —
dates.published_at- —
vehicle.fuel_type- —
vehicle.make- —
vehicle.power- —
other_details- —
_page.twitter_url- —
views- —
Try it
Records
Saved sample, not a live run.
title |
price |
description |
location |
category |
url |
annonce_n |
city |
|---|---|---|---|---|---|---|---|
| Moto | 7000 | Detail de l'annonce : Kilometrage 2866 baki jdid | Marrakech | 1 | marocannonces.com/categorie/341/Moto-2-ro… | 10503266 | Marrakech |
| 20velo pliant bonne decathlon occasion | 400 | Detail de l'annonce : je vends velo pliant decathlon a partire de 400 dirhams A… | Casablanca | 2 | marocannonces.com/categorie/341/Moto-2-ro… | 10503243 | Casablanca |
| Dacia logan tout option a vendre | 45000 | Detail de l'annonce : En cause de depart à l'étranger je mets en vente une daci… | Tanger | 12 | marocannonces.com/categorie/314/Voitures-… | 10477277 | — |
| داسيا 2015 يد وحدة ما | 100000 | Detail de l'annonce : داسيا 2015 يد وحدة مازوط التمن 1000000 درهم | Tetouan | 8 | marocannonces.com/categorie/314/Voitures-… | 10502808 | — |
| Ssd solution monetaire automatique | 1000 | Detail de l'annonce : Contactez-nous dans le besoin de nettoyer vos billets Si … | Berkane | 11 | marocannonces.com/categorie/314/Voitures-… | 10502797 | — |
| Dfsk fengon glory automatique essence 2020 | 170000 | Detail de l'annonce : Dfsk fengon glory toutes options boîte à vitesses automat… | Casablanca | 5 | marocannonces.com/categorie/314/Voitures-… | 10422519 | — |
| Kia ceed automatique model 2020 | 180000 | Detail de l'annonce : Kia Ceed Automatique Model 2020 Mazal fiha garantie hta 1… | Casablanca | 9 | marocannonces.com/categorie/314/Voitures-… | 10474734 | — |
| Fiat tipo diesel automatique 2020 | 155000 | Detail de l'annonce : Fiat tipo automatique 06/2020 diesel 6cv pneus neufs pneu… | Casablanca | 4 | marocannonces.com/categorie/314/Voitures-… | 10423331 | — |
| Peugeot 301 | 990000 | Detail de l'annonce : سمسارة بلا صداع راس Peugeot a vendre | Casablanca | 17 | marocannonces.com/categorie/314/Voitures-… | 10502398 | — |
| CitroËn c5 aircross | 265000 | Detail de l'annonce : Citroën C5 aircross diesel boîte automatique 8 rapports p… | Casablanca | 7 | marocannonces.com/categorie/314/Voitures-… | 10501285 | — |
Scroll sideways to see more columns.
Output fields
| Field | Description | Example | Type | Returned |
|---|---|---|---|---|
title |
— | Moto | string | Required |
price |
Price | 7000 | number | Optional |
description |
— | Detail de l'annonce : Kilometrage 2866 baki jdid | string | Optional |
location |
— | Marrakech | string | Optional |
category |
— | 1 | string | Optional |
url |
Link | marocannonces.com/categorie/341/Moto-2-ro… | string | Required |
annonce_ |
Annonce N° | 10503266 | string | Optional |
city |
Ville | Marrakech | string | Optional |
vehicle.model |
Modèle | — | string | Optional |
vehicle.year |
Année | — | string | Optional |
vehicle.mileage |
Kilométrage | — | string | Optional |
image.alt |
— | — | string | Optional |
image.original |
— | — | string | Optional |
dates.posted_ |
Date or time | — | string | Optional |
dates.published_ |
Publiée le | — | string | Optional |
vehicle.fuel_ |
Carburant | — | string | Optional |
vehicle.make |
Marque | — | string | Optional |
vehicle.power |
Puissance | — | string | Optional |
other_ |
— | — | object | Optional |
_ |
twitter url | — | string | Optional |
views |
Vue | — | string | Optional |
Inputs
-
categorytext · requiredFree text: any category the site serves, written with letters, digits, underscores, hyphens and dots, up to 128 characters. A name the site does not serve is refused.
-
searchstring | array of stringOptional. Text for the site's search box. Leave it out to read everything.
-
from_urlURLOptional. A results link copied from the site (its own address bar): a category page, a search or a filtered list. It is read as this API's own inputs and the run echoes them as `decoded`. Tracking and paging keys are dropped. A link from another site, or one that names a page or filter this API has no input for, is refused with the unread parts listed; it is never served from another page.
-
urlsstring | array of stringOptional. Record pages to read instead of searching: one address or a list (a record's page, path shaped /categorie/{int}/{slug}/annonce/{int}/{slug}). One record comes back per page, in this order, in this API's fields, read from the page alone (fields only the list shows stay empty). Take no other input but enrich_records, which a page read ignores. A page off that shape, on another site or unreadable is told by its code in the run's metadata (record_pages), never served from another page; the run fails only when no page was read.
enrich_records is on by default and adds the fields that only appear on each record's detail page. Send false to read list fields only. See Run an API.
Request
POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_63192213b68f333666b99814/endpoints/generated_63192213b68f333666b99814_search/run
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_63192213b68f333666b99814/endpoints/generated_63192213b68f333666b99814_search/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{
"input": {
"category": "mes-favoris.html"
},
"version": 1,
"max_items": 25
}'
Save the Idempotency-Key before you send, and reuse it only to retry the same request. The key needs the run scope. See Run a catalog API.
version pins major v1, whose newest minor (1.0) answers. Leave it out and the call runs on the latest major.
Use it from an AI agent
Open in your coding agent
Add CleanedWeb to your agent as an MCP server, such as a custom connector in Claude or ChatGPT, then sign in with your CleanedWeb account. An API key with the read and run scopes works too.
https://api.cleanedweb.com/mcp?profile=catalog
Then ask, for example: Use CleanedWeb to get 25 records from the marocannonces.com Listings by Category API.
The agent finds the API, runs it and reads the records. Runs are charged like any other run.
Coverage
- Version
- v1 1.0
- Category
- Products & shopping
- Updated
A run stops when the source has no more records, or when it reaches a limit you set: the number of records, the time, or your budget.
CleanedWeb is not affiliated with Marocannonces.
Changelog
-
v1.0 (major) ·