Sheypoor Classifieds
v0.2.2Read-only Sheypoor (sheypoor.com) classifieds: search ads, ad details, price summaries.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sp_search Search ads
Search Sheypoor classified ads (cars, real estate, goods, jobs, services) by words, city, category and price. Call sp_ad with an ad `id` for details; sp_filters first for attribute filters. `price` is Toman (null = negotiable, see `price_text`); 1,000 is a placeholder, so set min_price when sorting by price. Rentals carry `prices` ({رهن deposit, اجاره rent}). `nearby` and `promoted` ads may not match your filters. `matching` is the real match count; `total` includes padding. For a median use sp_price_summary.
| Parameter | Type | Description |
|---|---|---|
category | Slug from sp_categories (car, mobile-phone) or sp_filters path (car/peugeot/206). Omit for all. | |
city | string | City or province slug from sp_cities, e.g. tehran. 'iran' = all Iran. |
filters | Filters from sp_filters as {name: value}: a<id> option id, mn<id>/mx<id> range ends (mn68101: '1400' = year from). | |
limit | integer | Max ads. |
max_price | Highest price, Toman. | |
min_price | Lowest price, Toman. | |
neighbourhoods | Neighbourhood ids from sp_filters(area=...), e.g. ['888']. City-level only. | |
page | integer | 24 ads per page. |
query | Persian words, e.g. پراید. | |
sort | string | Cars also: km and year orders. |
sp_ad Ad details
Get one Sheypoor ad in full: description, price, location, seller, every attribute and photo links. `city_slug` and `category_slug` plug into sp_search; sp_similar finds comparable ads. Rentals have `prices` (رهن deposit, اجاره rent). The seller's phone is not available; open `url` to contact the seller.
| Parameter | Type | Description |
|---|---|---|
id * | string | Ad id from sp_search. |
photos | integer | Photo URLs to include. |
sp_price_summary Price summary for a search
Summarise asking prices of the newest ads for a search: count, min, median, quartiles, max, plus cheapest and priciest ads. Use it for "what does X cost on Sheypoor": asking prices of the newest ads, not sold prices. Ads without a numeric price and prices under 10,000 Toman are left out. Narrow the query (year, brand, city) for a useful median. Values are in Toman.
| Parameter | Type | Description |
|---|---|---|
category | Slug from sp_categories (car, mobile-phone) or sp_filters path (car/peugeot/206). Omit for all. | |
city | string | City or province slug from sp_cities, e.g. tehran. 'iran' = all Iran. |
filters | Filters from sp_filters as {name: value}: a<id> option id, mn<id>/mx<id> range ends (mn68101: '1400' = year from). | |
max_price | Highest price, Toman. | |
min_price | Lowest price, Toman. | |
neighbourhoods | Neighbourhood ids from sp_filters(area=...), e.g. ['888']. City-level only. | |
pages | integer | Result pages (24 ads each) to sample. |
query | Persian words, e.g. پراید. |
sp_categories Categories
List Sheypoor's categories with the slug sp_search and sp_filters take, grouped under 11 top-level groups. Car brands and models are deeper: sp_filters(category="car") lists them (car/peugeot). Use a sub-category slug alone (car, not vehicles/car).
| Parameter | Type | Description |
|---|---|---|
query | Part of a category name or slug, e.g. خودرو. |
sp_cities Cities and provinces
Find the city or province slug that sp_search, sp_price_summary and sp_filters take. A province slug also works as `city` and covers all its cities. Without `query`, lists the 31 provinces.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max cities. |
query | Part of a city or province name or slug, e.g. مشهد. Omit to list provinces. |
sp_filters Filters of a category
List the filters, sort orders, sub-categories (car brands, models) and neighbourhoods Sheypoor offers in one category. Call before using `filters` in sp_search or sp_price_summary. Choice filters have a `name` and `options` {id, label}: pass {name: id}. Range filters list min/max names: pass a plain number. Yes/no filters have `value` '1'. `subcategories` slugs go in `category`; `neighbourhoods` ids go in `neighbourhoods`; `area` searches the full list by name. Prices use min_price/max_price.
| Parameter | Type | Description |
|---|---|---|
category * | string | Slug from sp_categories, e.g. car, house-apartment-for-rent. A brand path (car/peugeot) lists its models. |
area | Part of a neighbourhood name, e.g. پونک. Needs a city (not 'iran'). | |
city | string | City or province slug from sp_cities, e.g. tehran. 'iran' = all Iran. |
sp_similar Similar ads
Find ads comparable to one ad: same city and deepest category (car model...), price within a percent band. Use it to judge whether an ad is cheap or dear. With fewer than 3 matches it widens to the parent category (shown in `category`). Rentals and ads without a numeric price match by category only. Newest first; the ad itself and paid showcase ads are left out.
| Parameter | Type | Description |
|---|---|---|
id * | string | Ad id from sp_search. |
limit | integer | Max ads. |
price_range_pct | integer | Keep ads within this percent of the ad's price. |
sp_shops Internet shops
List Sheypoor's internet shops and agencies (real-estate offices, car dealers...) in a city and group. Call sp_shop with a shop `slug` for details. `category` is a top-level group, not a sub-category such as car. Shops with no ads are left out, so a page may hold fewer than `limit`.
| Parameter | Type | Description |
|---|---|---|
category | Top-level group slug from sp_categories, e.g. real-estate, vehicles. Omit for all. | |
city | string | City or province slug from sp_cities, e.g. tehran. 'iran' = all Iran. |
limit | integer | Shops per page. |
page | integer | Page. |
sp_shop Shop details
Get one internet shop or agency: name, hours, group, its agents and its current ads. Phone numbers are left out. Each ad has an `id` for sp_ad.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Shop slug from sp_shops. |
limit | integer | Max of the shop's ads. |
sp_car_prices Daily car prices
Get Sheypoor's daily car price list (قیمت روز خودرو): market price and factory price per model and year, with the day's change. Use it to check a car's price against the market average (quotes, not ads). `market` is the open-market price, `factory` the maker's list price. Toman; `change_pct` is today's market move. For ad prices use sp_price_summary.
| Parameter | Type | Description |
|---|---|---|
group | Maker group. Omit for all. | |
limit | integer | Max models. |
query | Brand or model words, Persian or English, e.g. پراید, 206. | |
year | Model year, e.g. 1404. |
sp_area_prices Prices per neighbourhood
Compare asking prices between neighbourhoods of a city: median price, price per square metre, rent and deposit. Use it for "where is renting cheapest in Tehran". It samples each area's newest 24 ads, so medians are rough. Sale: `median_price`, `median_per_m2`; rentals: `median_deposit`, `median_rent`. Toman. Pick ids with sp_filters(category, city, area=...).
| Parameter | Type | Description |
|---|---|---|
category * | string | Category slug, e.g. house-apartment-for-rent, car. |
city * | string | City slug, e.g. tehran (not 'iran'). |
neighbourhoods | Neighbourhood ids from sp_filters(area=...). Omit for the busiest. | |
top | integer | Busiest neighbourhoods when none are given. |