{"openapi":"3.1.0","info":{"title":"Hepsiemlak Turkey Properties and Projects (x402 & MCP)","version":"0.1.0","description":"Turkish residential, seasonal, office and new-project property listings from Hepsiemlak.com, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base. 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://ai.opendata.best"}],"paths":{"/s/hepsiemlak-com/v1/search":{"post":{"operationId":"hepsiemlak_com_search","summary":"Hepsiemlak Turkey Properties and Projects: Search Hepsiemlak Turkey property listings","description":"Retrieve Turkish property sale, rental and project listings filtered by city, district and property type. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["hepsiemlak-com","Data"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"location":{"type":"string","description":"City slug such as istanbul, or national, _ or all for a Turkey-wide listing search. Empty input starts an Istanbul sale example with at most 3 rows; normal event pricing applies.","maxLength":160},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Individual Hepsiemlak listing URLs to collect instead of a search. For project page URLs, also set channel to projects; for an office page use channel office and officeUrl."},"projectIds":{"type":"array","items":{"type":"string"},"description":"Full Hepsiemlak project page URLs ending in a numeric project identifier, not bare IDs. Selects projects automatically; cannot be combined with detailUrls or office inputs."},"officeUrl":{"type":"string","description":"Hepsiemlak office page URL under /emlak-ofisi/. Set channel to office; either this field or firmId is required.","pattern":"^$|^(https?://)?([A-Za-z0-9-]+\\.)*hepsiemlak\\.com/.*$"},"firmId":{"type":"string","description":"Numeric office ID or a slug ending in that ID. Set channel to office; either this field or officeUrl is required."},"district":{"type":"string","description":"District slug without the city prefix, such as arnavutkoy. Used to narrow listing searches, not the project directory."},"channel":{"type":"string","description":"Choose sale, rent or seasonal listings, the project directory, or an office and its listings. projectIds selects projects automatically; officeUrl and firmId still require channel office.","default":"sale","enum":["sale","rent","seasonal","projects","office"]},"neighborhood":{"type":"string","description":"Neighborhood slug for listing searches; also provide the district. Does not filter the project directory.","default":""},"propertyType":{"type":"string","description":"Accepted property category, such as daire or villa. Not currently applied to standard listing searches; do not rely on it for land or commercial-property coverage.","default":""},"locale":{"type":"string","description":"Accepted language setting: en, tr or ru. Source titles and descriptions may remain Turkish; this does not change the country.","default":"en","enum":["en","tr","ru"]},"maxPages":{"type":"integer","description":"Maximum search pages to request, from 1 to 50. This page limit can stop collection before maxResults is reached.","default":1,"minimum":1,"maximum":50},"enrichDetails":{"type":"boolean","description":"Add available listing details such as description, contacts and coordinates to the same row. Enabled in the form and empty-input example; set explicitly for direct API input, where an omitted value is false.","default":true},"maxResults":{"type":"integer","description":"Maximum delivered rows per location, detail URL, project URL or office input, from 1 to 500; default 70, with larger requests collected in parts of 70. Your maximum cost caps the run; free-plan accounts have 200 rows per run and 10 total runs of this Actor.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"location":"istanbul","channel":"sale","enrichDetails":false,"maxResults":10}}}},"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_hepsiemlak_com"},"example":{"jobId":"job_hepsieml_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"dataType":"example_dataType","listingId":"example_listingId","projectId":"example_projectId","firmId":"example_firmId","name":"example_name","channel":"example_channel"}],"meta":{"site":"hepsiemlak-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"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/hepsiemlak-com/v1/health":{"get":{"operationId":"hepsiemlak_com_health","summary":"Hepsiemlak Turkey Properties and Projects: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["hepsiemlak-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_hepsiemlak_com":{"type":"object","properties":{"dataType":{"type":["string","null"],"title":"Data type"},"listingId":{"type":["string","null"],"title":"Listing ID"},"projectId":{"type":["string","null"],"title":"Project ID"},"firmId":{"type":["string","null"],"title":"Firm ID"},"name":{"type":["string","null"],"title":"Title"},"channel":{"type":["string","null"],"title":"Channel"},"priceDisplay":{"type":["string","null"],"title":"Price"},"rooms":{"type":["string","null"],"title":"Rooms"},"floorSize":{"type":["string","null"],"title":"Size"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"geo":{"type":["string","null"],"title":"Geo"},"person":{"type":["string","null"],"title":"Contact person"},"org":{"type":["string","null"],"title":"Agency"},"web":{"type":["string","null"],"title":"Web"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"},"type":{"type":["string","null"],"title":"Record type"},"status":{"type":["string","null"],"title":"Status"},"country":{"type":["string","null"],"title":"Country"},"authority":{"type":["string","null"],"title":"Source"},"listingUrl":{"type":["string","null"],"format":"uri","title":"URL"},"contentDepth":{"type":["string","null"],"title":"Depth"}},"additionalProperties":true},"Response_hepsiemlak_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_hepsiemlak_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"]}}}}