Avito scraper API: search results as JSON
Send any Avito page URL with recipe=avito and get title, price, location and 1 more field as JSON. No selectors to write, no proxies to pick.
- 1 page type
- 4 fields
- 5 credits a page · $0.50 per 1,000
- Working · 100% in 7 days
5,000 free credits for 7 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.avito.ma/fr/maroc/ordinateurs_portables' \
--data-urlencode 'recipe=avito'
{
"result": {
"title": "MacBook Pro 16” | M5 MAX | 36Go | 2To (Officiel)",
"price": "48 000",
"location": "Rabat",
"posted": "il y a 4 heures"
},
"success": true
}
What you get from Avito
The fields of each page type and a real sample from our last validation, shortened.
Search and listing pages recipe=avito 5 credits a page
| Field | Type | Example |
|---|---|---|
ads | list of 3+ items | |
ads[].title | text | MacBook Pro 16” | M5 MAX | 36Go | 2To (Officiel) |
ads[].price | number (as text) | 48 000 |
ads[].location | text | Rabat |
ads[].posted | text | il y a 4 heures |
Sample answer, validated 2026-10-29
{
"ads": [
{
"title": "MacBook Pro 16” | M5 MAX | 36Go | 2To (Officiel)",
"price": "48 000",
"location": "Rabat",
"posted": "il y a 4 heures"
},
{
"title": "Pack – HP EliteBook 855 G8 Ryzen 5 Pro 16/256 15.6",
"price": "3 790",
"location": "Salé",
"posted": "il y a 22 heures"
}
]
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on Avito (JavaScript rendering).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.avito.ma/fr/maroc/ordinateurs_portables' \
--data-urlencode 'recipe=avito'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://www.avito.ma/fr/maroc/ordinateurs_portables", "recipe": "avito"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
print(r.json()["result"])
const params = new URLSearchParams({
url: "https://www.avito.ma/fr/maroc/ordinateurs_portables",
recipe: "avito",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
console.log((await res.json()).result);
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
Search Avito with parameters
Fill in the parameters and we build the Avito search URL. The Playground and the Request builder do it for you.
| Parameter | Type | Values |
|---|---|---|
category required | string | Category slug from avito.ma URLs, for example ordinateurs_portables or voitures. |
city | string | City (casablanca, rabat...), default maroc = the whole country. |
query | string | Search words inside the category. |
page | int | 1 to 20 |
Works today: the built URL with recipe=avito/listing (category=ordinateurs_portables)
GET https://api.ujeebu.com/scrape?url=https%3A%2F%2Fwww.avito.ma%2Ffr%2Fmaroc%2Fordinateurs_portables&recipe=avito%2Flisting
A single call with the parameters and no URL is coming to the API; it is not live yet. Search with parameters in the docs
What people build with Avito data
Price research
See what similar items sell for, by condition and location.
Learn moreNew ads alerts
Catch new ads for the searches you care about shortly after they appear.
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Search results | 5 | $0.82 | $0.50 |
FAQ
What does the Avito recipe return?
JSON with 4 fields from search results (recipe=avito), for example title, price, location, posted. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape Avito?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on Avito: JavaScript rendering. Send only the URL and recipe=avito.
What happens when Avito changes its pages?
We check Avito every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I search Avito with parameters?
Yes. Fill in category, city, query, page: we build the Avito search URL, and the call is that URL with recipe=avito/listing. A single call with the parameters and no URL is coming to the API; it is not live yet.
Related recipes
CraigslistSearch results · 1 credits
VintedSearch results, Ad page · 5 credits
KleinanzeigenSearch results · 5 credits
LeboncoinSearch results · 25 credits
GumtreeAd page · 25 credits- OLX BrazilSearch results, Ad page · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Avito.
Get Avito data as JSON today.
5,000 free credits for 7 days. No card.