{"openapi":"3.0.0","info":{"title":"OpenSooq MENA Real Estate Listings","version":"1.0.0","description":"OpenSooq property sale and rental listings across 20 MENA country markets with prices, locations and seller metadata, one row per entity."},"servers":[{"url":"https://ah-opensooq-com.opendata.best/s/opensooq-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search OpenSooq MENA property listings","description":"Retrieve residential and commercial property listings by MENA market code, city and channel.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. OpenSooq property search or individual listing URLs. Each URL has its own maxResults allowance and takes precedence over generated market and category searches."},"market":{"type":"string","enum":["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","MR","OM","PS","QA","SA","SD","SY","TN","TR","YE","all"],"description":"Market. Country to search, or all for all 20 configured markets. A nonempty markets list takes precedence.","example":"JO"},"markets":{"type":"array","items":{"type":"string","enum":["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","MR","OM","PS","QA","SA","SD","SY","TN","TR","YE"]},"description":"Markets. Countries to search instead of market. Each country has its own maxResults allowance, shared by its selected property categories."},"channel":{"type":"string","enum":["BUY","RENT"],"description":"Channel. Choose BUY for properties for sale or RENT for rental listings.","default":"BUY","example":"BUY"},"propertyType":{"type":"string","enum":["all","residential","apartment","villa","townhouse","whole-building","farm-chalet","foreign-property","hotel-apartment","shared-rooms","commercial","office","shop","complex","showroom","restaurant-cafe","warehouse","supermarket","clinic","commercial-villa","full-floor","hotel","factory","staff-housing","land"],"description":"Property type. Choose one property category, or all for the broad sale or rent category. hotel-apartment and shared-rooms are available only with RENT.","default":"apartment","example":"apartment"},"propertyTypes":{"type":"array","items":{"type":"string","enum":["all","residential","apartment","villa","townhouse","whole-building","farm-chalet","foreign-property","hotel-apartment","shared-rooms","commercial","office","shop","complex","showroom","restaurant-cafe","warehouse","supermarket","clinic","commercial-villa","full-floor","hotel","factory","staff-housing","land"]},"description":"Property types. Choose several property categories instead of propertyType. They share each market's maxResults allowance.","default":[]},"expandAllCategories":{"type":"boolean","description":"Expand all categories. When propertyType is all and propertyTypes is empty, search its supported categories separately. The categories still share each market's row allowance.","default":false},"location":{"type":"string","description":"Location slug. City slug such as amman or dubai; leave empty for a national search. Do not combine location with postStatus sold.","example":"amman"},"locale":{"type":"string","enum":["","en","ar"],"description":"Locale. Choose English or Arabic for listing pages, or leave empty for the market default, English.","default":""},"postStatus":{"type":"string","enum":["active","sold"],"description":"Listing status. Choose active for current listings or sold for archived listings. Sold searches cannot be combined with location.","default":"active"},"maxPages":{"type":"integer","minimum":1,"maximum":100,"description":"Max search pages. Maximum search pages to read for each search URL. The run may stop sooner when the row allowance is reached.","default":1},"maxSearchUrls":{"type":"integer","minimum":1,"maximum":500,"description":"Max search URLs. Maximum number of searches generated from selected markets and property categories. Searches beyond this limit are not included.","default":60},"scrapeDetails":{"type":"boolean","description":"Scrape detail pages. Add available descriptions, attributes and advertiser information from listing detail pages. These fields remain in the same listing row.","default":true},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"market":"JO","location":"amman","channel":"BUY","propertyType":"apartment","scrapeDetails":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"id":{},"listingId":{"nullable":true,"type":"string"},"rowType":{"nullable":true,"type":"string"},"entityId":{"nullable":true,"type":"string"},"url":{"type":"string"},"source":{"type":"string"},"sourceLayer":{"type":"string"},"market":{"type":"string"},"category":{"nullable":true,"type":"string"},"categoryKey":{"nullable":true,"type":"string"},"categorySlug":{"nullable":true,"type":"string"},"siteCategory":{"nullable":true,"type":"string"},"subCategory":{"nullable":true,"type":"string"},"catReportingName":{"nullable":true,"type":"string"},"requestedPropertyType":{"nullable":true,"type":"string","description":"Property category requested in the input that produced this row. For the listing's own category, use category, categoryKey or categorySlug."},"channel":{"type":"string"},"title":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"price":{"nullable":true,"type":"string"},"priceAmount":{"nullable":true,"type":"number"},"currency":{"nullable":true,"type":"string"},"numBedrooms":{"nullable":true},"numBathrooms":{"nullable":true},"propertyType":{"nullable":true,"type":"string"},"size":{"nullable":true,"type":"number"},"sizeUnit":{"nullable":true,"type":"string"},"address":{"nullable":true,"type":"object","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"partial":{"nullable":true,"type":"boolean"}}}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string"}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"type":"object","additionalProperties":true},"ownerName":{"nullable":true,"type":"string"},"ownerId":{"nullable":true,"type":"string"},"ownerListings":{"nullable":true,"type":"number"},"ownerMemberSince":{"nullable":true,"type":"string"},"ownerRatingAvg":{"nullable":true,"type":"number"},"ownerRatingCount":{"nullable":true,"type":"number"},"ownerIsShop":{"nullable":true,"type":"boolean"},"chatType":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"cityEnName":{"nullable":true,"type":"string"},"neighborhood":{"nullable":true,"type":"string"},"latitude":{"nullable":true,"type":"number"},"longitude":{"nullable":true,"type":"number"},"furnished":{"nullable":true,"type":"string"},"floor":{"nullable":true,"type":"string"},"rentalPeriod":{"nullable":true,"type":"string"},"listerType":{"nullable":true,"type":"string"},"phoneMasked":{"nullable":true,"type":"string"},"phoneRevealKey":{"nullable":true,"type":"string"},"postedAt":{"nullable":true,"type":"string"},"expiredAt":{"nullable":true,"type":"string"},"verified":{"nullable":true,"type":"boolean"},"verificationLevel":{"nullable":true,"type":"number"},"listingStatus":{"nullable":true,"type":"string"},"isActive":{"nullable":true,"type":"boolean"},"postStatus":{"nullable":true,"type":"string"},"postBadges":{"nullable":true,"type":"array","items":{"type":"string"}},"attributes":{"nullable":true,"type":"object","additionalProperties":true},"images":{"nullable":true,"type":"array","items":{"type":"string"}},"imageCount":{"nullable":true,"type":"number"},"media":{"nullable":true,"type":"array","items":{"type":"object"}},"hasPhone":{"nullable":true,"type":"boolean"},"hasVideo":{"nullable":true,"type":"boolean"},"has360":{"nullable":true,"type":"boolean"},"hasYoutube":{"nullable":true,"type":"boolean"},"hasReels":{"nullable":true,"type":"boolean"},"memberBadges":{"nullable":true,"type":"array","items":{"type":"string"}},"memberAvatar":{"nullable":true,"type":"string"},"contactAddons":{"nullable":true,"type":"object","additionalProperties":true},"searchUrl":{"nullable":true,"type":"string"},"addressCheck":{"nullable":true,"type":"object","additionalProperties":true},"scrapedAt":{"type":"string"}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: listingId; rowType=listing: id, listingId, rowType, entityId, url, source, market, channel, title, currency, category, categoryKey, categorySlug, scrapedAt."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}