{"openapi":"3.1.0","info":{"title":"OpenSooq MENA Real Estate Listings (x402 & MCP)","version":"0.1.0","description":"OpenSooq property sale and rental listings across 20 MENA country markets with prices, locations and seller metadata, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/opensooq-com/v1/search":{"post":{"operationId":"opensooq_com_search","summary":"OpenSooq MENA Real Estate Listings: Search OpenSooq MENA property listings","description":"Retrieve residential and commercial property listings by MENA market code, city and channel. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["opensooq-com","Data"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"OpenSooq property search or individual listing URLs. Each URL has its own maxItems allowance and takes precedence over generated market and category searches."},"market":{"type":"string","description":"Country to search, or all for all 20 configured markets. A nonempty markets list takes precedence.","enum":["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","MR","OM","PS","QA","SA","SD","SY","TN","TR","YE","all"]},"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":"Countries to search instead of market. Each country has its own maxItems allowance, shared by its selected property categories."},"channel":{"type":"string","description":"Choose BUY for properties for sale or RENT for rental listings.","default":"BUY","enum":["BUY","RENT"]},"propertyType":{"type":"string","description":"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","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"]},"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":"Choose several property categories instead of propertyType. They share each market's maxItems allowance.","default":[]},"expandAllCategories":{"type":"boolean","description":"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":"City slug such as amman or dubai; leave empty for a national search. Do not combine location with postStatus sold."},"locale":{"type":"string","description":"Choose English or Arabic for listing pages, or leave empty for the market default, English.","default":"","enum":["","en","ar"]},"postStatus":{"type":"string","description":"Choose active for current listings or sold for archived listings. Sold searches cannot be combined with location.","default":"active","enum":["active","sold"]},"maxPages":{"type":"integer","description":"Maximum search pages to read for each search URL. The run may stop sooner when the row allowance is reached.","default":1,"minimum":1,"maximum":100},"maxSearchUrls":{"type":"integer","description":"Maximum number of searches generated from selected markets and property categories. Searches beyond this limit are not included.","default":60,"minimum":1,"maximum":500},"scrapeDetails":{"type":"boolean","description":"Add available descriptions, attributes and advertiser information from listing detail pages. These fields remain in the same listing row.","default":true},"maxResults":{"type":"integer","description":"Alternative to maxItems; this value takes precedence when both are set. Each start URL or market receives this row allowance (default 70).","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"market":"JO","location":"amman","channel":"BUY","propertyType":"apartment","scrapeDetails":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_opensooq_com"},"example":{"jobId":"job_opensooq_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"id":"example_001","market":"example_market","category":"example_category","channel":"example_channel","title":"example_title","price":"example_price"}],"meta":{"site":"opensooq-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/opensooq-com/v1/health":{"get":{"operationId":"opensooq_com_health","summary":"OpenSooq MENA Real Estate Listings: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["opensooq-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"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"}}},"Row_opensooq_com":{"type":"object","properties":{"id":{"type":["string","null"],"title":"ID"},"market":{"type":["string","null"],"title":"Market"},"category":{"type":["string","null"],"title":"Category"},"channel":{"type":["string","null"],"title":"Channel"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["string","null"],"title":"Price"},"numBedrooms":{"type":["string","null"],"title":"Beds"},"numBathrooms":{"type":["string","null"],"title":"Baths"},"propertyType":{"type":["string","null"],"title":"Type"},"size":{"type":["number","null"],"title":"Size"},"city":{"type":["string","null"],"title":"City"},"neighborhood":{"type":["string","null"],"title":"Neighborhood"},"rentalPeriod":{"type":["string","null"],"title":"Rent period"},"furnished":{"type":["string","null"],"title":"Furnished"},"latitude":{"type":["number","null"],"title":"Lat"},"person":{"type":["string","null"],"title":"Contact"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"url":{"type":["string","null"],"format":"uri","title":"URL"}},"additionalProperties":true},"Response_opensooq_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_opensooq_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}