{
  "data": {
    "id": "nKS7w206wrJGz2lCv",
    "actId": "XKbH6VDPyDShNGmlK",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-27T18:00:48.341Z",
    "finishedAt": "2026-11-27T18:01:45.524Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"Haraj Scraper Input\",\n  \"description\": \"Search Haraj (haraj.com.sa) by keyword, browse by category/city, look up listings by ID or URL, pull all active listings or the profile of a seller, or fetch trending search keywords.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to fetch. `seller` returns one seller/store profile; the other modes return listings (or trending keywords).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"browse\",\n        \"byId\",\n        \"byAuthor\",\n        \"seller\",\n        \"trending\"\n      ],\n      \"enumTitles\": [\n        \"Search by keyword\",\n        \"Browse by category / city / latest\",\n        \"Lookup listings by ID or URL\",\n        \"All listings from a seller\",\n        \"Seller / store profile\",\n        \"Trending search keywords (no listings)\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query\",\n      \"type\": \"string\",\n      \"description\": \"Free-text keyword search, in Arabic or English (mode=search). Required for this mode.\",\n      \"editor\": \"textfield\",\n      \"prefill\": \"ايفون\"\n    },\n    \"category\": {\n      \"title\": \"Category\",\n      \"type\": \"string\",\n      \"description\": \"Restrict results to a Haraj top-level category (mode=search, browse). Jobs (وظائف) is included; leave as \\\"(any category)\\\" for no category filter.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"حراج السيارات\",\n        \"حراج الأجهزة\",\n        \"حراج العقار\",\n        \"اثاث\",\n        \"خدمات\",\n        \"مستلزمات شخصية\",\n        \"مواشي وحيوانات وطيور\",\n        \"وظائف\",\n        \"العاب وترفيه\",\n        \"تعليم وتدريب\",\n        \"اطعمة ومشروبات\",\n        \"حفلات ومناسبات\",\n        \"برمجة وتصاميم\",\n        \"زراعة وحدائق\",\n        \"نوادر و تراثيات\",\n        \"مشاريع واستثمارات\",\n        \"مكتبة وفنون\",\n        \"صيد ورحلات\",\n        \"سفر وسياحة\",\n        \"مفقودات\",\n        \"قسم غير مصنف\"\n      ],\n      \"enumTitles\": [\n        \"(any category)\",\n        \"Cars\",\n        \"Electronics & Devices\",\n        \"Real Estate\",\n        \"Furniture\",\n        \"Services\",\n        \"Fashion & Personal Care\",\n        \"Livestock, Pets & Birds\",\n        \"Jobs\",\n        \"Games & Entertainment\",\n        \"Education & Training\",\n        \"Food & Beverages\",\n        \"Events & Celebrations\",\n        \"Programming & Design\",\n        \"Agriculture & Gardens\",\n        \"Antiques & Collectibles\",\n        \"Projects & Investments\",\n        \"Books, Library & Arts\",\n        \"Hunting & Trips\",\n        \"Travel & Tourism\",\n        \"Lost & Found\",\n        \"Other / Uncategorized\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"city\": {\n      \"title\": \"City / region\",\n      \"type\": \"string\",\n      \"description\": \"Restrict results to a Saudi city/region (or Kuwait, UAE, Bahrain) (mode=search, browse). \\\"عسير\\\" is accepted as an alias of \\\"أبها\\\" (the value Haraj returns). Leave as \\\"(any city)\\\" for no city filter.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"الرياض\",\n        \"الشرقيه\",\n        \"جده\",\n        \"مكه\",\n        \"ينبع\",\n        \"حفر الباطن\",\n        \"المدينة\",\n        \"الطايف\",\n        \"تبوك\",\n        \"القصيم\",\n        \"حائل\",\n        \"أبها\",\n        \"عسير\",\n        \"الباحة\",\n        \"جيزان\",\n        \"نجران\",\n        \"الجوف\",\n        \"عرعر\",\n        \"الكويت\",\n        \"الإمارات\",\n        \"البحرين\"\n      ],\n      \"enumTitles\": [\n        \"(any city)\",\n        \"Riyadh\",\n        \"Eastern Province\",\n        \"Jeddah\",\n        \"Makkah\",\n        \"Yanbu\",\n        \"Hafr Al-Batin\",\n        \"Madinah\",\n        \"Taif\",\n        \"Tabuk\",\n        \"Qassim\",\n        \"Hail\",\n        \"Abha\",\n        \"Asir\",\n        \"Al Baha\",\n        \"Jazan\",\n        \"Najran\",\n        \"Al Jouf\",\n        \"Arar\",\n        \"Kuwait\",\n        \"UAE\",\n        \"Bahrain\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"subTag\": {\n      \"title\": \"Brand / model / sub-category tag\",\n      \"type\": \"string\",\n      \"description\": \"Narrower than `category` — a specific brand or model tag from Haraj's own hierarchical tag tree, e.g. `تويوتا` (Toyota), `كامري` (Camry), `ايفون` (iPhone) (mode=search, browse). Confirmed via live probing that Haraj's finer tags filter correctly server-side, but the full tag tree runs into the thousands (every brand/model/variant across every category) so it isn't a stable curated dropdown — enter the exact tag text, e.g. copied from a listing's own `categories[]` output field. When set, this takes priority over `category` for narrowing (only one tag value can be sent upstream at a time) — `category`/`excludeCategory` still apply as an extra check afterwards.\",\n      \"editor\": \"textfield\",\n      \"prefill\": \"\"\n    },\n    \"carBodyType\": {\n      \"title\": \"Car body type\",\n      \"type\": \"string\",\n      \"description\": \"Restrict results to a specific car body style (mode=search, browse). Haraj's own frontend uses this exact 12-value vocabulary as a hidden filter axis, distinct from `subTag`'s brand/model tags — confirmed via live probing that each value reliably narrows to the correct body style server-side. Since only one tag value can be sent upstream at a time, this takes priority over `subTag`/`category` for that slot when set (both still apply as extra client-side checks afterwards). Leave as \\\"(any body type)\\\" for no filter.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"سيدان صغيرة\",\n        \"سيدان\",\n        \"سيدان فاخرة\",\n        \"هاتشباك\",\n        \"كوبيه\",\n        \"اس يو في\",\n        \"جيوب\",\n        \"جيوب فاخرة\",\n        \"فان\",\n        \"بيك أب صغير\",\n        \"بيك أب كبير\",\n        \"تراثية\"\n      ],\n      \"enumTitles\": [\n        \"(any body type)\",\n        \"Small sedan\",\n        \"Sedan\",\n        \"Luxury sedan\",\n        \"Hatchback\",\n        \"Coupe\",\n        \"SUV\",\n        \"Jeep / off-road\",\n        \"Luxury jeep / off-road\",\n        \"Van\",\n        \"Small pickup\",\n        \"Large pickup\",\n        \"Antique / classic\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"cities\": {\n      \"title\": \"Multiple cities / regions\",\n      \"type\": \"array\",\n      \"description\": \"Restrict results to any of several Saudi cities/regions (or Kuwait, UAE, Bahrain) in one request — a listing matching ANY selected city passes (mode=search, browse). Combines with `city` above (both are OR'd together) if both are set. Leave empty for no multi-city filter.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"الرياض\",\n          \"الشرقيه\",\n          \"جده\",\n          \"مكه\",\n          \"ينبع\",\n          \"حفر الباطن\",\n          \"المدينة\",\n          \"الطايف\",\n          \"تبوك\",\n          \"القصيم\",\n          \"حائل\",\n          \"أبها\",\n          \"عسير\",\n          \"الباحة\",\n          \"جيزان\",\n          \"نجران\",\n          \"الجوف\",\n          \"عرعر\",\n          \"الكويت\",\n          \"الإمارات\",\n          \"البحرين\"\n        ],\n        \"enumTitles\": [\n          \"Riyadh\",\n          \"Eastern Province\",\n          \"Jeddah\",\n          \"Makkah\",\n          \"Yanbu\",\n          \"Hafr Al-Batin\",\n          \"Madinah\",\n          \"Taif\",\n          \"Tabuk\",\n          \"Qassim\",\n          \"Hail\",\n          \"Abha\",\n          \"Asir\",\n          \"Al Baha\",\n          \"Jazan\",\n          \"Najran\",\n          \"Al Jouf\",\n          \"Arar\",\n          \"Kuwait\",\n          \"UAE\",\n          \"Bahrain\"\n        ]\n      },\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"neighborhood\": {\n      \"title\": \"Neighborhood / town (fine-grained location)\",\n      \"type\": \"string\",\n      \"description\": \"Restrict results to an exact match of Haraj's finer town/neighbourhood-level location tag (the `geoCity` output field) — e.g. `الدرعية` (Diriyah) or `الخبر` (Al Khobar). More granular than `city`/`cities` (which match the broader region) and combines with them as an AND. Free-text because Haraj's town list runs into the hundreds and isn't a stable curated set — enter the exact value from a listing's own `geoCity` output field (mode=search, browse, byAuthor).\",\n      \"editor\": \"textfield\",\n      \"prefill\": \"\"\n    },\n    \"excludeCategory\": {\n      \"title\": \"Exclude category\",\n      \"type\": \"string\",\n      \"description\": \"Drop results from this category, even if they match other filters (mode=search, browse).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"حراج السيارات\",\n        \"حراج الأجهزة\",\n        \"حراج العقار\",\n        \"اثاث\",\n        \"خدمات\",\n        \"مستلزمات شخصية\",\n        \"مواشي وحيوانات وطيور\",\n        \"وظائف\",\n        \"العاب وترفيه\",\n        \"تعليم وتدريب\",\n        \"اطعمة ومشروبات\",\n        \"حفلات ومناسبات\",\n        \"برمجة وتصاميم\",\n        \"زراعة وحدائق\",\n        \"نوادر و تراثيات\",\n        \"مشاريع واستثمارات\",\n        \"مكتبة وفنون\",\n        \"صيد ورحلات\",\n        \"سفر وسياحة\",\n        \"مفقودات\",\n        \"قسم غير مصنف\"\n      ],\n      \"enumTitles\": [\n        \"(none)\",\n        \"Cars\",\n        \"Electronics & Devices\",\n        \"Real Estate\",\n        \"Furniture\",\n        \"Services\",\n        \"Fashion & Personal Care\",\n        \"Livestock, Pets & Birds\",\n        \"Jobs\",\n        \"Games & Entertainment\",\n        \"Education & Training\",\n        \"Food & Beverages\",\n        \"Events & Celebrations\",\n        \"Programming & Design\",\n        \"Agriculture & Gardens\",\n        \"Antiques & Collectibles\",\n        \"Projects & Investments\",\n        \"Books, Library & Arts\",\n        \"Hunting & Trips\",\n        \"Travel & Tourism\",\n        \"Lost & Found\",\n        \"Other / Uncategorized\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"postIds\": {\n      \"title\": \"Listing IDs or URLs (mode=byId)\",\n      \"type\": \"array\",\n      \"description\": \"Haraj numeric listing IDs or full listing URLs, e.g. `186610241` or `https://haraj.com.sa/11186610241/...`. Required for this mode.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"authorUsername\": {\n      \"title\": \"Seller / store username or URL (mode=byAuthor, seller)\",\n      \"type\": \"string\",\n      \"description\": \"Haraj seller display name, @handler, or a full https://haraj.com.sa/users/... URL. Required for mode=byAuthor (all listings) and mode=seller (profile).\",\n      \"editor\": \"textfield\"\n    },\n    \"includeSimilarListings\": {\n      \"title\": \"Include similar listings (mode=byId)\",\n      \"type\": \"boolean\",\n      \"description\": \"For each resolved listing, attach a `similarListings[]` array of related Haraj listings (id, title, url, priceSAR, thumbnailUrl, city) using Haraj's own \\\"related items\\\" lookup. Adds one extra request per listing ID, so only available for mode=byId.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeSeller\": {\n      \"title\": \"Include seller / store profile\",\n      \"type\": \"boolean\",\n      \"description\": \"Attach a compact `seller` object to every listing (username, seller URL, store type, public store phone numbers, rating, verified badges, coordinates). Adds up to two requests per distinct seller.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeLikeCounts\": {\n      \"title\": \"Include like counts\",\n      \"type\": \"boolean\",\n      \"description\": \"Add `likeCount` to every listing using Haraj's public likes endpoint. One extra request per listing.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeComments\": {\n      \"title\": \"Include comments\",\n      \"type\": \"boolean\",\n      \"description\": \"Add a `comments[]` array (author, body, date, reply info) to every listing. One request per listing page; slow for large runs.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxCommentsPerListing\": {\n      \"title\": \"Max comments per listing\",\n      \"type\": \"integer\",\n      \"description\": \"When `includeComments` is enabled, stop after this many comments per listing.\",\n      \"minimum\": 1,\n      \"maximum\": 100,\n      \"default\": 10,\n      \"prefill\": 10\n    },\n    \"trendingRangeDays\": {\n      \"title\": \"Trending window in days (mode=trending)\",\n      \"type\": \"integer\",\n      \"description\": \"How many trailing days of search activity to rank trending keywords over. Haraj's public trending-keywords endpoint only has data for 1-14 days.\",\n      \"minimum\": 1,\n      \"maximum\": 14,\n      \"default\": 1,\n      \"prefill\": 1\n    },\n    \"priceMin\": {\n      \"title\": \"Min price (SAR)\",\n      \"type\": \"integer\",\n      \"description\": \"Drop listings priced below this (SAR). Listings with no price stated always pass through.\",\n      \"minimum\": 0,\n      \"maximum\": 100000000\n    },\n    \"priceMax\": {\n      \"title\": \"Max price (SAR)\",\n      \"type\": \"integer\",\n      \"description\": \"Drop listings priced above this (SAR). Listings with no price stated always pass through.\",\n      \"minimum\": 0,\n      \"maximum\": 100000000\n    },\n    \"onlyWithImage\": {\n      \"title\": \"Only listings with images\",\n      \"type\": \"boolean\",\n      \"description\": \"Skip listings that have no photos.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"onlyWithVideo\": {\n      \"title\": \"Only listings with video\",\n      \"type\": \"boolean\",\n      \"description\": \"Skip listings that have no video.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"hideShowRooms\": {\n      \"title\": \"Hide dealer / store showroom listings\",\n      \"type\": \"boolean\",\n      \"description\": \"Exclude listings from dealer/store-type sellers (e.g. car-parts shops, showroom accounts), keeping only individual sellers (mode=search, browse — Haraj's seller-listings endpoint doesn't support this filter).\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"postedWithin\": {\n      \"title\": \"Posted within\",\n      \"type\": \"string\",\n      \"description\": \"Only keep listings posted within this window (mode=search, browse; also applied client-side for byAuthor).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"1days\",\n        \"3days\",\n        \"1week\",\n        \"1months\"\n      ],\n      \"enumTitles\": [\n        \"(any time)\",\n        \"Last 24 hours\",\n        \"Last 3 days\",\n        \"Last week\",\n        \"Last month\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"onlyWithPrice\": {\n      \"title\": \"Only listings with a stated price\",\n      \"type\": \"boolean\",\n      \"description\": \"Skip listings where the seller did not state a price.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"carCondition\": {\n      \"title\": \"Car condition\",\n      \"type\": \"string\",\n      \"description\": \"Only keep car listings in this condition (client-side over Haraj's structured car info). Listings without the attribute are skipped.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"NEW\",\n        \"USED\",\n        \"USED_AS_NEW\",\n        \"USED_EXCELLENT\",\n        \"USED_GOOD\",\n        \"USED_NOT_GOOD\",\n        \"DAMGED\"\n      ],\n      \"enumTitles\": [\n        \"(any condition)\",\n        \"New\",\n        \"Used\",\n        \"Used - as new\",\n        \"Used - excellent\",\n        \"Used - good\",\n        \"Used - not good\",\n        \"Damaged\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"fuelType\": {\n      \"title\": \"Fuel type\",\n      \"type\": \"string\",\n      \"description\": \"Only keep car listings with this fuel type (client-side). Listings without the attribute are skipped.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"GASOLINE\",\n        \"DIESEL\",\n        \"HYBRID\",\n        \"ELECTRIC\"\n      ],\n      \"enumTitles\": [\n        \"(any fuel)\",\n        \"Gasoline\",\n        \"Diesel\",\n        \"Hybrid\",\n        \"Electric\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"transmission\": {\n      \"title\": \"Transmission\",\n      \"type\": \"string\",\n      \"description\": \"Only keep car listings with this transmission (client-side). Listings without the attribute are skipped.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"AUTO\",\n        \"MANUAL\"\n      ],\n      \"enumTitles\": [\n        \"(any transmission)\",\n        \"Automatic\",\n        \"Manual\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"sellOrWaiver\": {\n      \"title\": \"Sale or lease transfer\",\n      \"type\": \"string\",\n      \"description\": \"Only keep car listings that are sold outright or offered as a lease transfer (client-side). Listings without the attribute are skipped.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"SELL\",\n        \"WAIVER\"\n      ],\n      \"enumTitles\": [\n        \"(any)\",\n        \"For sale\",\n        \"Lease transfer (تنازل)\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"is4WD\": {\n      \"title\": \"Only four-wheel drive\",\n      \"type\": \"boolean\",\n      \"description\": \"Only keep car listings marked as four-wheel drive (client-side).\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"mileageMinKm\": {\n      \"title\": \"Minimum mileage (km)\",\n      \"type\": \"integer\",\n      \"description\": \"Only keep car listings at or above this mileage in kilometres (client-side over Haraj's structured car info).\",\n      \"minimum\": 0,\n      \"maximum\": 1000000\n    },\n    \"mileageMaxKm\": {\n      \"title\": \"Maximum mileage (km)\",\n      \"type\": \"integer\",\n      \"description\": \"Only keep car listings at or below this mileage in kilometres (client-side).\",\n      \"minimum\": 0,\n      \"maximum\": 1000000\n    },\n    \"modelYearMin\": {\n      \"title\": \"Minimum model year\",\n      \"type\": \"integer\",\n      \"description\": \"Only keep car listings from this model year or newer (client-side).\",\n      \"minimum\": 1900,\n      \"maximum\": 2100\n    },\n    \"modelYearMax\": {\n      \"title\": \"Maximum model year\",\n      \"type\": \"integer\",\n      \"description\": \"Only keep car listings from this model year or older (client-side).\",\n      \"minimum\": 1900,\n      \"maximum\": 2100\n    },\n    \"splitByCity\": {\n      \"title\": \"Split search across cities (get more results)\",\n      \"type\": \"boolean\",\n      \"description\": \"Run the same search/browse query once per Saudi region and merge/dedupe the results. This gets past Haraj's ~300-row window for a single query. Ignored when `city` or `cities` is set. Adds one query per region, so it is slower.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"sortBy\": {\n      \"title\": \"Sort order\",\n      \"type\": \"string\",\n      \"description\": \"Ordering of results (mode=search, browse).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"recentlyActive\",\n        \"newestPosted\"\n      ],\n      \"enumTitles\": [\n        \"Recently active (bumped/renewed first)\",\n        \"Newest posted (by original post date)\"\n      ],\n      \"default\": \"recentlyActive\",\n      \"prefill\": \"recentlyActive\"\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted records. Haraj's own pagination exposes roughly 300 unique listings per unfiltered query before it starts repeating; narrow queries may return fewer than this cap. Set `splitByCity` to run the same query per region and collect more.\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 30,\n      \"prefill\": 30\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Haraj Classifieds Search & Seller Listings Scraper\n\nCollect live ads from **Haraj** (haraj.com.sa), Saudi Arabia's largest classifieds marketplace — cars, real estate, electronics, jobs, furniture, services, animals and more. The actor uses Haraj's own public JSON API, so it runs without login, cookies or a proxy. Search by keyword, browse by section or region, resolve specific ad IDs/URLs, download a seller's active inventory, or pull the public store profile behind a seller name.\n\n## Modes\n\n| Mode | What it returns |\n|---|---|\n| `search` | Ads matching a free-text keyword, optionally narrowed by section, region, price, recency, media and seller type |\n| `browse` | The same listing feed without a keyword — by section, region, or the site-wide latest feed |\n| `byId` | One record per ad ID or ad URL you provide |\n| `byAuthor` | Every active ad from one seller (accepts a display name, `@handler`, or `/users/...` link) |\n| `seller` | A seller/store profile: join date, followers, rating, verified badges, store description, public store phone/email, store pages and map point |\n| `trending` | Haraj's own trending search keywords (not ads) |\n\nAll 21 sections are selectable, including **Jobs (`وظائف`)**. There are 21 regions (20 Saudi regions plus Kuwait, UAE and Bahrain), and `cities` lets you combine several regions in one run.\n\n## Listing filters\n\n- **Recency:** `postedWithin` — last 24 hours, 3 days, week or month\n- **Price:** `priceMin` / `priceMax` in SAR; `onlyWithPrice` drops \"message me\" ads\n- **Media:** `onlyWithImage`, `onlyWithVideo`\n- **Section:** `category`, `excludeCategory`, free-text `subTag` (brand/model/generic tag), `carBodyType`\n- **Place:** one `city`, several `cities`, or an exact `neighborhood`\n- **Seller type:** `hideShowRooms` hides dealer/showroom accounts\n- **Cars:** `carCondition`, `fuelType`, `transmission`, `sellOrWaiver`, `is4WD`, `mileageMinKm`, `mileageMaxKm`, `modelYearMin`, `modelYearMax`\n- **Volume:** `splitByCity` runs the same query once per region and merges the results; this is the way past Haraj's roughly 300-row window for a single query\n\n## Listing output\n\nCore fields: `id`, `title`, `description`, `priceSAR`, `priceFormatted`, `category`, `categories[]`, `subcategory`, `city`, `geoCity`, `geoNeighborhood`, `geoHash`, `latitude`, `longitude`, `images[]`, `thumbnailUrl`, `imageCount`, `url`, `authorUsername`, `authorId`, `sellerUrl`, `postedDate`, `updatedDate`, `hasImage`, `hasVideo`, `isPromoted`, `postType`, `commentsEnabled`, `commentCount`, `upvotes`, `downvotes`, `recordType`, `scrapedAt`.\n\nOptional:\n\n- `specs` — key/value attributes Haraj stored (phone model/storage/colour, laptop specs, …)\n- `car` — `listingType`, `is4WheelDrive`, `modelYear`, `mileageThousandKm` (raw Haraj value), `mileageKm` (actual kilometres), `fuelType`, `transmission`, `condition`, `vehicleType`, `bank`, `make`, `modelName`\n- `realEstate` — REGA advertiser registration and authorization numbers\n- `job` — offer type, experience, contract type, qualification, commercial register, job family\n- `phones[]` — phone numbers the seller wrote in the ad, normalised to `+9665…`\n- `seller` — compact seller/store object when `includeSeller=true`\n- `likeCount` — when `includeLikeCounts=true`\n- `comments[]` — when `includeComments=true` (author, body, date, reply marker)\n- `similarListings[]` — when `mode=byId` and `includeSimilarListings=true`\n\nEmpty values are always omitted — never `null`, `\"\"`, `[]` or `{}`.\n\n## Seller profile output (`mode=seller`)\n\n`id`, `username`, `url`, `handler`, `profileType` (`USER`/`STORE`), `description`, `registrationDate`, `lastSeen`, `followerCount`, `rating` (`upvotes`, `downvotes`, `upvotesPaid`, `downvotesPaid`, `average`), `badges[]`, `verifications[]`, `isRealtor`, `linkedViaNafath`, `vatNumber`, `phoneNumbers[]`, `emails[]`, `latitude`, `longitude`, `storePages[]`, `recordType=sellerProfile`.\n\n## Trending output (`mode=trending`)\n\n`keyword`, `score`, `rangeInDays`, `recordType=trendingKeyword`, `scrapedAt`.\n\n## Input\n\n| Field | Type | Default | Notes |\n|---|---|---|---|\n| `mode` | select | `search` | `search` / `browse` / `byId` / `byAuthor` / `seller` / `trending` |\n| `searchQuery` | string | — | Keyword in Arabic or English; required for `search` |\n| `category` | select | any | 21 top-level sections incl. Jobs |\n| `subTag` | string | — | A specific brand/model/category tag; wins over `category` for narrowing |\n| `carBodyType` | select | any | 12 body styles; wins over `subTag`/`category` for narrowing |\n| `city` | select | any | One region; `عسير` is accepted as an alias of `أبها` |\n| `cities` | array | `[]` | Several regions at once; OR-combined with `city` |\n| `neighborhood` | string | — | Exact finer town/district (`geoCity`); AND-combined with city filters |\n| `excludeCategory` | select | none | Drop one top-level section |\n| `postIds` | array | `[]` | Ad IDs or full ad URLs; required for `byId` |\n| `authorUsername` | string | — | Seller name, `@handler`, or `/users/...` link; used by `byAuthor` and `seller` |\n| `includeSimilarListings` | bool | `false` | Attach related ads (mode=byId) |\n| `trendingRangeDays` | int | `1` | 1–14 days (mode=trending) |\n| `postedWithin` | select | any | `1days` / `3days` / `1week` / `1months` |\n| `priceMin` / `priceMax` | int | — | SAR bounds |\n| `onlyWithPrice` | bool | `false` | Skip ads without a stated price |\n| `onlyWithImage` / `onlyWithVideo` | bool | `false` | Media presence |\n| `hideShowRooms` | bool | `false` | Hide dealer/showroom sellers (search, browse) |\n| `carCondition` | select | any | `NEW`, `USED`, quality grades, `DAMGED` |\n| `fuelType` | select | any | `GASOLINE`, `DIESEL`, `HYBRID`, `ELECTRIC` |\n| `transmission` | select | any | `AUTO`, `MANUAL` |\n| `sellOrWaiver` | select | any | `SELL`, `WAIVER` |\n| `is4WD` | bool | `false` | Require four-wheel drive |\n| `mileageMinKm` / `mileageMaxKm` | int | — | Kilometre bounds |\n| `modelYearMin` / `modelYearMax` | int | — | Model-year bounds |\n| `sortBy` | select | `recentlyActive` | `recentlyActive` or `newestPosted` |\n| `splitByCity` | bool | `false` | Run per region and merge (gets past the single-query window) |\n| `includeSeller` | bool | `false` | Attach a compact `seller` object to each ad |\n| `includeLikeCounts` | bool | `false` | Add `likeCount` (one request per ad) |\n| `includeComments` | bool | `false` | Add `comments[]` (one request per ad page) |\n| `maxCommentsPerListing` | int | `10` | 1–100; used with `includeComments` |\n| `maxItems` | int | `30` | 1–1000 emitted records |\n\n### Examples\n\nKeyword search with a price band and recency:\n\n```json\n{ \"mode\": \"search\", \"searchQuery\": \"ايفون\", \"postedWithin\": \"3days\", \"priceMin\": 1000, \"priceMax\": 3000, \"maxItems\": 50 }\n```\n\nBrowse a section and region, newest first:\n\n```json\n{ \"mode\": \"browse\", \"category\": \"حراج السيارات\", \"city\": \"جده\", \"sortBy\": \"newestPosted\", \"onlyWithImage\": true, \"maxItems\": 50 }\n```\n\nCar filters:\n\n```json\n{ \"mode\": \"browse\", \"category\": \"حراج السيارات\", \"carCondition\": \"USED\", \"fuelType\": \"GASOLINE\", \"transmission\": \"AUTO\", \"mileageMaxKm\": 150000, \"modelYearMin\": 2018, \"maxItems\": 100 }\n```\n\nSeller inventory + profile snippet:\n\n```json\n{ \"mode\": \"byAuthor\", \"authorUsername\": \"https://haraj.com.sa/users/da3.9\", \"includeSeller\": true, \"maxItems\": 100 }\n```\n\nSeller/store profile:\n\n```json\n{ \"mode\": \"seller\", \"authorUsername\": \"@Ayman_354\" }\n```\n\nSpecific ads with engagement:\n\n```json\n{ \"mode\": \"byId\", \"postIds\": [\"186610241\"], \"includeSeller\": true, \"includeLikeCounts\": true, \"includeComments\": true }\n```\n\nMore results for a broad query:\n\n```json\n{ \"mode\": \"browse\", \"category\": \"حراج الأجهزة\", \"splitByCity\": true, \"maxItems\": 500 }\n```\n\n## Use cases\n\n- Price monitoring for cars, phones and property across Saudi regions\n- New-ad alerts by keyword, section or seller\n- Seller/store due diligence from public profile and verification data\n- Lead lists with seller names, store phones and ad text phone numbers\n- Automotive market analysis with model year, mileage, fuel and condition\n- Jobs-market sampling (all job ads are reachable through the Jobs section)\n\n## FAQ and honest limits\n\n**Does it need a login, cookie or proxy?** No. Every shipped field comes from Haraj's public API and works with a plain HTTP request.\n\n**Why do some sellers have no phone number?** Haraj only exposes store-profile phone numbers publicly on business (`STORE`) profiles. Personal sellers' contact numbers require a logged-in Haraj session, which this actor never uses, so that field is omitted for them. Numbers a seller writes in the ad text are still returned in `phones[]`.\n\n**Why does a broad query stop before `maxItems`?** Haraj's own pagination returns roughly 300 unique ads per query and then repeats. The actor stops and says so in the status message. Enable `splitByCity` (and/or narrow by section, brand or region) to collect more.\n\n**Are real-estate area/room/bathroom fields included?** Haraj's public API does not expose structured property attributes; only the REGA licence numbers are structured. Size/room details remain in the free-text description. This is a site limitation, not a missing selector.\n\n**Why is `mileageKm` different from Haraj's raw mileage number?** Haraj stores mileage in thousands of kilometres. `mileageThousandKm` preserves the raw value; `mileageKm` is the converted distance in kilometres. Both are provided so either convention can be used.\n\n**What is `mode=trending`?** Haraj's own trending-search-keyword feed for the chosen 1–14 day window, useful for choosing a keyword before a `search` run.\n\n**Can I monitor only new ads?** This actor is stateless by design and does not keep cross-run history. Use a schedule and deduplicate on `id` in your storage.\n\n**What about map-area searches?** Haraj accepts a `near` parameter on its API, but in live probing it returned the same unrelated set for distinct values, so the actor does not expose it as a filter. Region, city and neighbourhood filters cover the supported location axes.\n\nIndependent third-party tool using Haraj's public API. Not affiliated with or endorsed by Haraj.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "haraj-classifieds-search-and-seller-listings",
      "title": "Haraj Classifieds Search & Seller Listings Scraper",
      "description": "Scrape Haraj (haraj.com.sa) classifieds: search by keyword, browse by category/city, look up ads by ID, pull a seller's listings or profile. Get price (SAR), city, coordinates, images, seller info, phones and dates.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Haraj Classifieds Search & Seller Listings Scraper\n\nCollect live ads from **Haraj** (haraj.com.sa), Saudi Arabia's largest classifieds marketplace — cars, real estate, electronics, jobs, furniture, services, animals and more. The actor uses Haraj's own public JSON API, so it runs without login, cookies or a proxy. Search by keyword, browse by section or region, resolve specific ad IDs/URLs, download a seller's active inventory, or pull the public store profile behind a seller name.\n\n## Modes\n\n| Mode | What it returns |\n|---|---|\n| `search` | Ads matching a free-text keyword, optionally narrowed by section, region, price, recency, media and seller type |\n| `browse` | The same listing feed without a keyword — by section, region, or the site-wide latest feed |\n| `byId` | One record per ad ID or ad URL you provide |\n| `byAuthor` | Every active ad from one seller (accepts a display name, `@handler`, or `/users/...` link) |\n| `seller` | A seller/store profile: join date, followers, rating, verified badges, store description, public store phone/email, store pages and map point |\n| `trending` | Haraj's own trending search keywords (not ads) |\n\nAll 21 sections are selectable, including **Jobs (`وظائف`)**. There are 21 regions (20 Saudi regions plus Kuwait, UAE and Bahrain), and `cities` lets you combine several regions in one run.\n\n## Listing filters\n\n- **Recency:** `postedWithin` — last 24 hours, 3 days, week or month\n- **Price:** `priceMin` / `priceMax` in SAR; `onlyWithPrice` drops \"message me\" ads\n- **Media:** `onlyWithImage`, `onlyWithVideo`\n- **Section:** `category`, `excludeCategory`, free-text `subTag` (brand/model/generic tag), `carBodyType`\n- **Place:** one `city`, several `cities`, or an exact `neighborhood`\n- **Seller type:** `hideShowRooms` hides dealer/showroom accounts\n- **Cars:** `carCondition`, `fuelType`, `transmission`, `sellOrWaiver`, `is4WD`, `mileageMinKm`, `mileageMaxKm`, `modelYearMin`, `modelYearMax`\n- **Volume:** `splitByCity` runs the same query once per region and merges the results; this is the way past Haraj's roughly 300-row window for a single query\n\n## Listing output\n\nCore fields: `id`, `title`, `description`, `priceSAR`, `priceFormatted`, `category`, `categories[]`, `subcategory`, `city`, `geoCity`, `geoNeighborhood`, `geoHash`, `latitude`, `longitude`, `images[]`, `thumbnailUrl`, `imageCount`, `url`, `authorUsername`, `authorId`, `sellerUrl`, `postedDate`, `updatedDate`, `hasImage`, `hasVideo`, `isPromoted`, `postType`, `commentsEnabled`, `commentCount`, `upvotes`, `downvotes`, `recordType`, `scrapedAt`.\n\nOptional:\n\n- `specs` — key/value attributes Haraj stored (phone model/storage/colour, laptop specs, …)\n- `car` — `listingType`, `is4WheelDrive`, `modelYear`, `mileageThousandKm` (raw Haraj value), `mileageKm` (actual kilometres), `fuelType`, `transmission`, `condition`, `vehicleType`, `bank`, `make`, `modelName`\n- `realEstate` — REGA advertiser registration and authorization numbers\n- `job` — offer type, experience, contract type, qualification, commercial register, job family\n- `phones[]` — phone numbers the seller wrote in the ad, normalised to `+9665…`\n- `seller` — compact seller/store object when `includeSeller=true`\n- `likeCount` — when `includeLikeCounts=true`\n- `comments[]` — when `includeComments=true` (author, body, date, reply marker)\n- `similarListings[]` — when `mode=byId` and `includeSimilarListings=true`\n\nEmpty values are always omitted — never `null`, `\"\"`, `[]` or `{}`.\n\n## Seller profile output (`mode=seller`)\n\n`id`, `username`, `url`, `handler`, `profileType` (`USER`/`STORE`), `description`, `registrationDate`, `lastSeen`, `followerCount`, `rating` (`upvotes`, `downvotes`, `upvotesPaid`, `downvotesPaid`, `average`), `badges[]`, `verifications[]`, `isRealtor`, `linkedViaNafath`, `vatNumber`, `phoneNumbers[]`, `emails[]`, `latitude`, `longitude`, `storePages[]`, `recordType=sellerProfile`.\n\n## Trending output (`mode=trending`)\n\n`keyword`, `score`, `rangeInDays`, `recordType=trendingKeyword`, `scrapedAt`.\n\n## Input\n\n| Field | Type | Default | Notes |\n|---|---|---|---|\n| `mode` | select | `search` | `search` / `browse` / `byId` / `byAuthor` / `seller` / `trending` |\n| `searchQuery` | string | — | Keyword in Arabic or English; required for `search` |\n| `category` | select | any | 21 top-level sections incl. Jobs |\n| `subTag` | string | — | A specific brand/model/category tag; wins over `category` for narrowing |\n| `carBodyType` | select | any | 12 body styles; wins over `subTag`/`category` for narrowing |\n| `city` | select | any | One region; `عسير` is accepted as an alias of `أبها` |\n| `cities` | array | `[]` | Several regions at once; OR-combined with `city` |\n| `neighborhood` | string | — | Exact finer town/district (`geoCity`); AND-combined with city filters |\n| `excludeCategory` | select | none | Drop one top-level section |\n| `postIds` | array | `[]` | Ad IDs or full ad URLs; required for `byId` |\n| `authorUsername` | string | — | Seller name, `@handler`, or `/users/...` link; used by `byAuthor` and `seller` |\n| `includeSimilarListings` | bool | `false` | Attach related ads (mode=byId) |\n| `trendingRangeDays` | int | `1` | 1–14 days (mode=trending) |\n| `postedWithin` | select | any | `1days` / `3days` / `1week` / `1months` |\n| `priceMin` / `priceMax` | int | — | SAR bounds |\n| `onlyWithPrice` | bool | `false` | Skip ads without a stated price |\n| `onlyWithImage` / `onlyWithVideo` | bool | `false` | Media presence |\n| `hideShowRooms` | bool | `false` | Hide dealer/showroom sellers (search, browse) |\n| `carCondition` | select | any | `NEW`, `USED`, quality grades, `DAMGED` |\n| `fuelType` | select | any | `GASOLINE`, `DIESEL`, `HYBRID`, `ELECTRIC` |\n| `transmission` | select | any | `AUTO`, `MANUAL` |\n| `sellOrWaiver` | select | any | `SELL`, `WAIVER` |\n| `is4WD` | bool | `false` | Require four-wheel drive |\n| `mileageMinKm` / `mileageMaxKm` | int | — | Kilometre bounds |\n| `modelYearMin` / `modelYearMax` | int | — | Model-year bounds |\n| `sortBy` | select | `recentlyActive` | `recentlyActive` or `newestPosted` |\n| `splitByCity` | bool | `false` | Run per region and merge (gets past the single-query window) |\n| `includeSeller` | bool | `false` | Attach a compact `seller` object to each ad |\n| `includeLikeCounts` | bool | `false` | Add `likeCount` (one request per ad) |\n| `includeComments` | bool | `false` | Add `comments[]` (one request per ad page) |\n| `maxCommentsPerListing` | int | `10` | 1–100; used with `includeComments` |\n| `maxItems` | int | `30` | 1–1000 emitted records |\n\n### Examples\n\nKeyword search with a price band and recency:\n\n```json\n{ \"mode\": \"search\", \"searchQuery\": \"ايفون\", \"postedWithin\": \"3days\", \"priceMin\": 1000, \"priceMax\": 3000, \"maxItems\": 50 }\n```\n\nBrowse a section and region, newest first:\n\n```json\n{ \"mode\": \"browse\", \"category\": \"حراج السيارات\", \"city\": \"جده\", \"sortBy\": \"newestPosted\", \"onlyWithImage\": true, \"maxItems\": 50 }\n```\n\nCar filters:\n\n```json\n{ \"mode\": \"browse\", \"category\": \"حراج السيارات\", \"carCondition\": \"USED\", \"fuelType\": \"GASOLINE\", \"transmission\": \"AUTO\", \"mileageMaxKm\": 150000, \"modelYearMin\": 2018, \"maxItems\": 100 }\n```\n\nSeller inventory + profile snippet:\n\n```json\n{ \"mode\": \"byAuthor\", \"authorUsername\": \"https://haraj.com.sa/users/da3.9\", \"includeSeller\": true, \"maxItems\": 100 }\n```\n\nSeller/store profile:\n\n```json\n{ \"mode\": \"seller\", \"authorUsername\": \"@Ayman_354\" }\n```\n\nSpecific ads with engagement:\n\n```json\n{ \"mode\": \"byId\", \"postIds\": [\"186610241\"], \"includeSeller\": true, \"includeLikeCounts\": true, \"includeComments\": true }\n```\n\nMore results for a broad query:\n\n```json\n{ \"mode\": \"browse\", \"category\": \"حراج الأجهزة\", \"splitByCity\": true, \"maxItems\": 500 }\n```\n\n## Use cases\n\n- Price monitoring for cars, phones and property across Saudi regions\n- New-ad alerts by keyword, section or seller\n- Seller/store due diligence from public profile and verification data\n- Lead lists with seller names, store phones and ad text phone numbers\n- Automotive market analysis with model year, mileage, fuel and condition\n- Jobs-market sampling (all job ads are reachable through the Jobs section)\n\n## FAQ and honest limits\n\n**Does it need a login, cookie or proxy?** No. Every shipped field comes from Haraj's public API and works with a plain HTTP request.\n\n**Why do some sellers have no phone number?** Haraj only exposes store-profile phone numbers publicly on business (`STORE`) profiles. Personal sellers' contact numbers require a logged-in Haraj session, which this actor never uses, so that field is omitted for them. Numbers a seller writes in the ad text are still returned in `phones[]`.\n\n**Why does a broad query stop before `maxItems`?** Haraj's own pagination returns roughly 300 unique ads per query and then repeats. The actor stops and says so in the status message. Enable `splitByCity` (and/or narrow by section, brand or region) to collect more.\n\n**Are real-estate area/room/bathroom fields included?** Haraj's public API does not expose structured property attributes; only the REGA licence numbers are structured. Size/room details remain in the free-text description. This is a site limitation, not a missing selector.\n\n**Why is `mileageKm` different from Haraj's raw mileage number?** Haraj stores mileage in thousands of kilometres. `mileageThousandKm` preserves the raw value; `mileageKm` is the converted distance in kilometres. Both are provided so either convention can be used.\n\n**What is `mode=trending`?** Haraj's own trending-search-keyword feed for the chosen 1–14 day window, useful for choosing a keyword before a `search` run.\n\n**Can I monitor only new ads?** This actor is stateless by design and does not keep cross-run history. Use a schedule and deduplicate on `id` in your storage.\n\n**What about map-area searches?** Haraj accepts a `near` parameter on its API, but in live probing it returned the same unrelated set for distinct values, so the actor does not expose it as a filter. Region, city and neighbourhood filters cover the supported location axes.\n\nIndependent third-party tool using Haraj's public API. Not affiliated with or endorsed by Haraj.\n",
      "input": {
        "title": "Haraj Scraper Input",
        "description": "Search Haraj (haraj.com.sa) by keyword, browse by category/city, look up listings by ID or URL, pull all active listings or the profile of a seller, or fetch trending search keywords.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to fetch. `seller` returns one seller/store profile; the other modes return listings (or trending keywords).",
            "editor": "select",
            "enum": [
              "search",
              "browse",
              "byId",
              "byAuthor",
              "seller",
              "trending"
            ],
            "enumTitles": [
              "Search by keyword",
              "Browse by category / city / latest",
              "Lookup listings by ID or URL",
              "All listings from a seller",
              "Seller / store profile",
              "Trending search keywords (no listings)"
            ],
            "default": "search",
            "prefill": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword search, in Arabic or English (mode=search). Required for this mode.",
            "editor": "textfield",
            "prefill": "ايفون"
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Restrict results to a Haraj top-level category (mode=search, browse). Jobs (وظائف) is included; leave as \"(any category)\" for no category filter.",
            "editor": "select",
            "enum": [
              "",
              "حراج السيارات",
              "حراج الأجهزة",
              "حراج العقار",
              "اثاث",
              "خدمات",
              "مستلزمات شخصية",
              "مواشي وحيوانات وطيور",
              "وظائف",
              "العاب وترفيه",
              "تعليم وتدريب",
              "اطعمة ومشروبات",
              "حفلات ومناسبات",
              "برمجة وتصاميم",
              "زراعة وحدائق",
              "نوادر و تراثيات",
              "مشاريع واستثمارات",
              "مكتبة وفنون",
              "صيد ورحلات",
              "سفر وسياحة",
              "مفقودات",
              "قسم غير مصنف"
            ],
            "enumTitles": [
              "(any category)",
              "Cars",
              "Electronics & Devices",
              "Real Estate",
              "Furniture",
              "Services",
              "Fashion & Personal Care",
              "Livestock, Pets & Birds",
              "Jobs",
              "Games & Entertainment",
              "Education & Training",
              "Food & Beverages",
              "Events & Celebrations",
              "Programming & Design",
              "Agriculture & Gardens",
              "Antiques & Collectibles",
              "Projects & Investments",
              "Books, Library & Arts",
              "Hunting & Trips",
              "Travel & Tourism",
              "Lost & Found",
              "Other / Uncategorized"
            ],
            "default": "",
            "prefill": ""
          },
          "city": {
            "title": "City / region",
            "type": "string",
            "description": "Restrict results to a Saudi city/region (or Kuwait, UAE, Bahrain) (mode=search, browse). \"عسير\" is accepted as an alias of \"أبها\" (the value Haraj returns). Leave as \"(any city)\" for no city filter.",
            "editor": "select",
            "enum": [
              "",
              "الرياض",
              "الشرقيه",
              "جده",
              "مكه",
              "ينبع",
              "حفر الباطن",
              "المدينة",
              "الطايف",
              "تبوك",
              "القصيم",
              "حائل",
              "أبها",
              "عسير",
              "الباحة",
              "جيزان",
              "نجران",
              "الجوف",
              "عرعر",
              "الكويت",
              "الإمارات",
              "البحرين"
            ],
            "enumTitles": [
              "(any city)",
              "Riyadh",
              "Eastern Province",
              "Jeddah",
              "Makkah",
              "Yanbu",
              "Hafr Al-Batin",
              "Madinah",
              "Taif",
              "Tabuk",
              "Qassim",
              "Hail",
              "Abha",
              "Asir",
              "Al Baha",
              "Jazan",
              "Najran",
              "Al Jouf",
              "Arar",
              "Kuwait",
              "UAE",
              "Bahrain"
            ],
            "default": "",
            "prefill": ""
          },
          "subTag": {
            "title": "Brand / model / sub-category tag",
            "type": "string",
            "description": "Narrower than `category` — a specific brand or model tag from Haraj's own hierarchical tag tree, e.g. `تويوتا` (Toyota), `كامري` (Camry), `ايفون` (iPhone) (mode=search, browse). Confirmed via live probing that Haraj's finer tags filter correctly server-side, but the full tag tree runs into the thousands (every brand/model/variant across every category) so it isn't a stable curated dropdown — enter the exact tag text, e.g. copied from a listing's own `categories[]` output field. When set, this takes priority over `category` for narrowing (only one tag value can be sent upstream at a time) — `category`/`excludeCategory` still apply as an extra check afterwards.",
            "editor": "textfield",
            "prefill": ""
          },
          "carBodyType": {
            "title": "Car body type",
            "type": "string",
            "description": "Restrict results to a specific car body style (mode=search, browse). Haraj's own frontend uses this exact 12-value vocabulary as a hidden filter axis, distinct from `subTag`'s brand/model tags — confirmed via live probing that each value reliably narrows to the correct body style server-side. Since only one tag value can be sent upstream at a time, this takes priority over `subTag`/`category` for that slot when set (both still apply as extra client-side checks afterwards). Leave as \"(any body type)\" for no filter.",
            "editor": "select",
            "enum": [
              "",
              "سيدان صغيرة",
              "سيدان",
              "سيدان فاخرة",
              "هاتشباك",
              "كوبيه",
              "اس يو في",
              "جيوب",
              "جيوب فاخرة",
              "فان",
              "بيك أب صغير",
              "بيك أب كبير",
              "تراثية"
            ],
            "enumTitles": [
              "(any body type)",
              "Small sedan",
              "Sedan",
              "Luxury sedan",
              "Hatchback",
              "Coupe",
              "SUV",
              "Jeep / off-road",
              "Luxury jeep / off-road",
              "Van",
              "Small pickup",
              "Large pickup",
              "Antique / classic"
            ],
            "default": "",
            "prefill": ""
          },
          "cities": {
            "title": "Multiple cities / regions",
            "type": "array",
            "description": "Restrict results to any of several Saudi cities/regions (or Kuwait, UAE, Bahrain) in one request — a listing matching ANY selected city passes (mode=search, browse). Combines with `city` above (both are OR'd together) if both are set. Leave empty for no multi-city filter.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "الرياض",
                "الشرقيه",
                "جده",
                "مكه",
                "ينبع",
                "حفر الباطن",
                "المدينة",
                "الطايف",
                "تبوك",
                "القصيم",
                "حائل",
                "أبها",
                "عسير",
                "الباحة",
                "جيزان",
                "نجران",
                "الجوف",
                "عرعر",
                "الكويت",
                "الإمارات",
                "البحرين"
              ],
              "enumTitles": [
                "Riyadh",
                "Eastern Province",
                "Jeddah",
                "Makkah",
                "Yanbu",
                "Hafr Al-Batin",
                "Madinah",
                "Taif",
                "Tabuk",
                "Qassim",
                "Hail",
                "Abha",
                "Asir",
                "Al Baha",
                "Jazan",
                "Najran",
                "Al Jouf",
                "Arar",
                "Kuwait",
                "UAE",
                "Bahrain"
              ]
            },
            "default": [],
            "prefill": []
          },
          "neighborhood": {
            "title": "Neighborhood / town (fine-grained location)",
            "type": "string",
            "description": "Restrict results to an exact match of Haraj's finer town/neighbourhood-level location tag (the `geoCity` output field) — e.g. `الدرعية` (Diriyah) or `الخبر` (Al Khobar). More granular than `city`/`cities` (which match the broader region) and combines with them as an AND. Free-text because Haraj's town list runs into the hundreds and isn't a stable curated set — enter the exact value from a listing's own `geoCity` output field (mode=search, browse, byAuthor).",
            "editor": "textfield",
            "prefill": ""
          },
          "excludeCategory": {
            "title": "Exclude category",
            "type": "string",
            "description": "Drop results from this category, even if they match other filters (mode=search, browse).",
            "editor": "select",
            "enum": [
              "",
              "حراج السيارات",
              "حراج الأجهزة",
              "حراج العقار",
              "اثاث",
              "خدمات",
              "مستلزمات شخصية",
              "مواشي وحيوانات وطيور",
              "وظائف",
              "العاب وترفيه",
              "تعليم وتدريب",
              "اطعمة ومشروبات",
              "حفلات ومناسبات",
              "برمجة وتصاميم",
              "زراعة وحدائق",
              "نوادر و تراثيات",
              "مشاريع واستثمارات",
              "مكتبة وفنون",
              "صيد ورحلات",
              "سفر وسياحة",
              "مفقودات",
              "قسم غير مصنف"
            ],
            "enumTitles": [
              "(none)",
              "Cars",
              "Electronics & Devices",
              "Real Estate",
              "Furniture",
              "Services",
              "Fashion & Personal Care",
              "Livestock, Pets & Birds",
              "Jobs",
              "Games & Entertainment",
              "Education & Training",
              "Food & Beverages",
              "Events & Celebrations",
              "Programming & Design",
              "Agriculture & Gardens",
              "Antiques & Collectibles",
              "Projects & Investments",
              "Books, Library & Arts",
              "Hunting & Trips",
              "Travel & Tourism",
              "Lost & Found",
              "Other / Uncategorized"
            ],
            "default": "",
            "prefill": ""
          },
          "postIds": {
            "title": "Listing IDs or URLs (mode=byId)",
            "type": "array",
            "description": "Haraj numeric listing IDs or full listing URLs, e.g. `186610241` or `https://haraj.com.sa/11186610241/...`. Required for this mode.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "authorUsername": {
            "title": "Seller / store username or URL (mode=byAuthor, seller)",
            "type": "string",
            "description": "Haraj seller display name, @handler, or a full https://haraj.com.sa/users/... URL. Required for mode=byAuthor (all listings) and mode=seller (profile).",
            "editor": "textfield"
          },
          "includeSimilarListings": {
            "title": "Include similar listings (mode=byId)",
            "type": "boolean",
            "description": "For each resolved listing, attach a `similarListings[]` array of related Haraj listings (id, title, url, priceSAR, thumbnailUrl, city) using Haraj's own \"related items\" lookup. Adds one extra request per listing ID, so only available for mode=byId.",
            "default": false,
            "prefill": false
          },
          "includeSeller": {
            "title": "Include seller / store profile",
            "type": "boolean",
            "description": "Attach a compact `seller` object to every listing (username, seller URL, store type, public store phone numbers, rating, verified badges, coordinates). Adds up to two requests per distinct seller.",
            "default": false,
            "prefill": false
          },
          "includeLikeCounts": {
            "title": "Include like counts",
            "type": "boolean",
            "description": "Add `likeCount` to every listing using Haraj's public likes endpoint. One extra request per listing.",
            "default": false,
            "prefill": false
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Add a `comments[]` array (author, body, date, reply info) to every listing. One request per listing page; slow for large runs.",
            "default": false,
            "prefill": false
          },
          "maxCommentsPerListing": {
            "title": "Max comments per listing",
            "type": "integer",
            "description": "When `includeComments` is enabled, stop after this many comments per listing.",
            "minimum": 1,
            "maximum": 100,
            "default": 10,
            "prefill": 10
          },
          "trendingRangeDays": {
            "title": "Trending window in days (mode=trending)",
            "type": "integer",
            "description": "How many trailing days of search activity to rank trending keywords over. Haraj's public trending-keywords endpoint only has data for 1-14 days.",
            "minimum": 1,
            "maximum": 14,
            "default": 1,
            "prefill": 1
          },
          "priceMin": {
            "title": "Min price (SAR)",
            "type": "integer",
            "description": "Drop listings priced below this (SAR). Listings with no price stated always pass through.",
            "minimum": 0,
            "maximum": 100000000
          },
          "priceMax": {
            "title": "Max price (SAR)",
            "type": "integer",
            "description": "Drop listings priced above this (SAR). Listings with no price stated always pass through.",
            "minimum": 0,
            "maximum": 100000000
          },
          "onlyWithImage": {
            "title": "Only listings with images",
            "type": "boolean",
            "description": "Skip listings that have no photos.",
            "default": false,
            "prefill": false
          },
          "onlyWithVideo": {
            "title": "Only listings with video",
            "type": "boolean",
            "description": "Skip listings that have no video.",
            "default": false,
            "prefill": false
          },
          "hideShowRooms": {
            "title": "Hide dealer / store showroom listings",
            "type": "boolean",
            "description": "Exclude listings from dealer/store-type sellers (e.g. car-parts shops, showroom accounts), keeping only individual sellers (mode=search, browse — Haraj's seller-listings endpoint doesn't support this filter).",
            "default": false,
            "prefill": false
          },
          "postedWithin": {
            "title": "Posted within",
            "type": "string",
            "description": "Only keep listings posted within this window (mode=search, browse; also applied client-side for byAuthor).",
            "editor": "select",
            "enum": [
              "",
              "1days",
              "3days",
              "1week",
              "1months"
            ],
            "enumTitles": [
              "(any time)",
              "Last 24 hours",
              "Last 3 days",
              "Last week",
              "Last month"
            ],
            "default": "",
            "prefill": ""
          },
          "onlyWithPrice": {
            "title": "Only listings with a stated price",
            "type": "boolean",
            "description": "Skip listings where the seller did not state a price.",
            "default": false,
            "prefill": false
          },
          "carCondition": {
            "title": "Car condition",
            "type": "string",
            "description": "Only keep car listings in this condition (client-side over Haraj's structured car info). Listings without the attribute are skipped.",
            "editor": "select",
            "enum": [
              "",
              "NEW",
              "USED",
              "USED_AS_NEW",
              "USED_EXCELLENT",
              "USED_GOOD",
              "USED_NOT_GOOD",
              "DAMGED"
            ],
            "enumTitles": [
              "(any condition)",
              "New",
              "Used",
              "Used - as new",
              "Used - excellent",
              "Used - good",
              "Used - not good",
              "Damaged"
            ],
            "default": "",
            "prefill": ""
          },
          "fuelType": {
            "title": "Fuel type",
            "type": "string",
            "description": "Only keep car listings with this fuel type (client-side). Listings without the attribute are skipped.",
            "editor": "select",
            "enum": [
              "",
              "GASOLINE",
              "DIESEL",
              "HYBRID",
              "ELECTRIC"
            ],
            "enumTitles": [
              "(any fuel)",
              "Gasoline",
              "Diesel",
              "Hybrid",
              "Electric"
            ],
            "default": "",
            "prefill": ""
          },
          "transmission": {
            "title": "Transmission",
            "type": "string",
            "description": "Only keep car listings with this transmission (client-side). Listings without the attribute are skipped.",
            "editor": "select",
            "enum": [
              "",
              "AUTO",
              "MANUAL"
            ],
            "enumTitles": [
              "(any transmission)",
              "Automatic",
              "Manual"
            ],
            "default": "",
            "prefill": ""
          },
          "sellOrWaiver": {
            "title": "Sale or lease transfer",
            "type": "string",
            "description": "Only keep car listings that are sold outright or offered as a lease transfer (client-side). Listings without the attribute are skipped.",
            "editor": "select",
            "enum": [
              "",
              "SELL",
              "WAIVER"
            ],
            "enumTitles": [
              "(any)",
              "For sale",
              "Lease transfer (تنازل)"
            ],
            "default": "",
            "prefill": ""
          },
          "is4WD": {
            "title": "Only four-wheel drive",
            "type": "boolean",
            "description": "Only keep car listings marked as four-wheel drive (client-side).",
            "default": false,
            "prefill": false
          },
          "mileageMinKm": {
            "title": "Minimum mileage (km)",
            "type": "integer",
            "description": "Only keep car listings at or above this mileage in kilometres (client-side over Haraj's structured car info).",
            "minimum": 0,
            "maximum": 1000000
          },
          "mileageMaxKm": {
            "title": "Maximum mileage (km)",
            "type": "integer",
            "description": "Only keep car listings at or below this mileage in kilometres (client-side).",
            "minimum": 0,
            "maximum": 1000000
          },
          "modelYearMin": {
            "title": "Minimum model year",
            "type": "integer",
            "description": "Only keep car listings from this model year or newer (client-side).",
            "minimum": 1900,
            "maximum": 2100
          },
          "modelYearMax": {
            "title": "Maximum model year",
            "type": "integer",
            "description": "Only keep car listings from this model year or older (client-side).",
            "minimum": 1900,
            "maximum": 2100
          },
          "splitByCity": {
            "title": "Split search across cities (get more results)",
            "type": "boolean",
            "description": "Run the same search/browse query once per Saudi region and merge/dedupe the results. This gets past Haraj's ~300-row window for a single query. Ignored when `city` or `cities` is set. Adds one query per region, so it is slower.",
            "default": false,
            "prefill": false
          },
          "sortBy": {
            "title": "Sort order",
            "type": "string",
            "description": "Ordering of results (mode=search, browse).",
            "editor": "select",
            "enum": [
              "recentlyActive",
              "newestPosted"
            ],
            "enumTitles": [
              "Recently active (bumped/renewed first)",
              "Newest posted (by original post date)"
            ],
            "default": "recentlyActive",
            "prefill": "recentlyActive"
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted records. Haraj's own pagination exposes roughly 300 unique listings per unfiltered query before it starts repeating; narrow queries may return fewer than this cap. Set `splitByCity` to run the same query per region and collect more.",
            "minimum": 1,
            "maximum": 1000,
            "default": 30,
            "prefill": 30
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Haraj Classifieds Search & Seller Listings Scraper Output",
        "description": "Dataset of Haraj listings, seller profiles, trending keywords and optional comments/likes — title, price in SAR, category, city, coordinates, seller URL, phones, images, specs and dates.",
        "properties": {
          "listings": {
            "type": "string",
            "title": "Haraj listings",
            "description": "Dataset containing all scraped Haraj records (listings, sellerProfile records, or trendingKeyword records).",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Listings",
              "transformation": {
                "fields": [
                  "title",
                  "priceSAR",
                  "priceFormatted",
                  "category",
                  "subcategory",
                  "city",
                  "geoCity",
                  "postedDate",
                  "sellerUrl",
                  "latitude",
                  "longitude",
                  "url"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}