Avito API for search results
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 21 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": {
"ads": [
{
"title": "Lenovo ThinkPad T14 | Ultra 7 | 32Go | 512Go",
"price": "9 800",
"location": "Rabat"
}
]
},
"success": true
}
Is there an official Avito API?
No official API
No. Avito.ma has no public API for listing data and no developer program.
Source: avito.ma on avito.ma, checked November 6, 2026.
How to get Avito data as JSON today
- Get a free API key: 5,000 free credits for 21 days, no card.
- Send any Avito page URL with
recipe=avitoto the Scrape API (the call). - Get 4 fields as JSON, 5 credits a page, billed only when the call succeeds.
Ujeebu's Avito recipe returns title, price, location and 1 more fields from any public Avito page as JSON: send the URL with recipe=avito to the Scrape API, 5 credits a page, no Avito account or partner approval needed.
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-11-21
{
"ads": [
{
"title": "Lenovo ThinkPad T14 | Ultra 7 | 32Go | 512Go",
"price": "9 800",
"location": "Rabat",
"posted": "il y a 6 heures"
},
{
"title": "HP EliteBook 840 G11 – Ultra 7 – 16Go/512Go",
"price": "8 499",
"location": "Rabat",
"posted": "il y a 6 minutes"
}
]
}
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,
)
for item in r.json()["result"]["ads"][:3]:
print(item["title"], item["price"], item["location"])
# Example output:
# Lenovo ThinkPad T14 | Ultra 7 | 32Go... 9 800 Rabat
# HP EliteBook 840 G11 – Ultra 7 – 16Go... 8 499 Rabat
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 },
});
const { result } = await res.json();
for (const item of result.ads.slice(0, 3)) {
console.log(item.title, item.price, item.location);
}
// Example output:
// Lenovo ThinkPad T14 | Ultra 7 | 32Go... 9 800 Rabat
// HP EliteBook 840 G11 – Ultra 7 – 16Go... 8 499 Rabat
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
Search Avito with parameters
One call, no URL: send recipe=avito/search with the parameters below. We build the Avito search URL and answer the listing JSON, at the same credits as the page call.
| 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 |
One call (category=ordinateurs_portables)
curl -G 'https://api.ujeebu.com/scrape' \
-H 'ApiKey: YOUR_API_KEY' \
-d 'recipe=avito/search' \
-d 'category=ordinateurs_portables'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"recipe": "avito/search", "category": "ordinateurs_portables"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["ads"][:3]:
print(item["title"], item["price"], item["location"])
# Example output:
# Lenovo ThinkPad T14 | Ultra 7 | 32Go... 9 800 Rabat
# HP EliteBook 840 G11 – Ultra 7 – 16Go... 8 499 Rabat
const params = new URLSearchParams({
recipe: "avito/search",
category: "ordinateurs_portables",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.ads.slice(0, 3)) {
console.log(item.title, item.price, item.location);
}
// Example output:
// Lenovo ThinkPad T14 | Ultra 7 | 32Go... 9 800 Rabat
// HP EliteBook 840 G11 – Ultra 7 – 16Go... 8 499 Rabat
The answer carries the built URL in the Ujb-Url header; a missing or invalid parameter answers 400 naming it (free). Have the URL already? Send it with recipe=avito/listing. 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
Is there a Avito API?
No. Avito.ma has no public API for listing data and no developer program. Ujeebu's Avito recipe returns title, price, location and 1 more fields from any public Avito page as JSON: send the URL with recipe=avito to the Scrape API, 5 credits a page, no Avito account or partner approval needed.
Does Avito have a public API?
No. Avito.ma has no public API for listing data and no developer program. The public pages are the way in: Ujeebu's Avito recipe returns title, price, location and 1 more fields from any public Avito page as JSON: send the URL with recipe=avito to the Scrape API, 5 credits a page, no Avito account or partner approval needed.
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, in one call: send recipe=avito/search with category, city, query, page and no URL. We build the Avito search URL (returned in the Ujb-Url header), apply recipe=avito/listing and answer its JSON, at the same credits as the page call. A missing or invalid parameter answers 400 naming it, and that call is free.
Related recipes
Facebook MarketplaceSearch results · 5 credits
VintedSearch results, Ad page · 5 credits
KleinanzeigenSearch results · 5 credits
LeboncoinSearch results · 25 credits
GumtreeSearch results, Ad page · 25 credits
OLXSearch results · 25 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 21 days. No card.