{"openapi":"3.1.0","info":{"title":"Bayt Middle East Jobs and Companies (x402 & MCP)","version":"0.1.0","description":"Bayt.com job listings, full job descriptions, company profiles and regional locations across the Middle East, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base, Polygon, Arbitrum, Monad, World Chain and Solana. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2) and 'exact' (EIP-3009) on EVM chains, and 'exact' (SPL USDC transfer, facilitator-paid fees) on Solana. 'upto' charges only for the rows delivered. 'exact' settles the full quoted amount (quoted rows x the row price) even when fewer rows than maxResults are delivered. Empty/0-row (404), invalid input (422), and upstream failures or timeouts (503, see error.code) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://agensi.opendata.best"}],"paths":{"/s/bayt-com/v1/search":{"post":{"operationId":"bayt_com_search","summary":"Bayt Middle East Jobs and Companies: Search Bayt jobs and regional locations","description":"Middle East job listings and city location rows by keyword, country or city. Leave mode on auto or pick jobs, allJobs or locations. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["bayt-com","Jobs"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose job search, specific job pages, a company profile, locations or all-jobs search. Auto selects a mode from your target fields; empty input starts the three-row example.","default":"auto","enum":["auto","jobs","allJobs","locations"]},"keyword":{"type":"string","description":"One job title, skill or company search, such as accountant. Leave empty in an explicit jobs or allJobs search to include all matching jobs."},"country":{"type":"string","description":"Country name, code or Bayt slug, such as uae, saudi-arabia or egypt. Leave empty in an explicit search mode for all countries."},"city":{"type":"string","description":"City within the country you selected, such as Dubai or Riyadh. Use locations mode with that country to find city names."},"dateInterval":{"type":"string","description":"Limit jobs to those posted or updated within the last 24 hours, 7 days or 30 days. Leave empty for any time.","default":"","enum":["","24h","7d","30d"]},"remote":{"type":"boolean","description":"Apply Bayt's remote-work filter to searches.","default":false},"careerLevel":{"type":"string","description":"Filter jobs by the career level shown by Bayt. Leave empty for any level.","default":"","enum":["","student","graduate","entry","mid","management","director","executive"]},"employmentType":{"type":"string","description":"Filter jobs by employment arrangement, such as full time, part time or freelance. Leave empty for any type.","default":"","enum":["","full time","part time","contractor","temporary","internship","freelance"]},"sortBy":{"type":"string","description":"Use Bayt relevance order or show the newest jobs first. All-jobs searches read each group newest first.","default":"relevance","enum":["relevance","date"]},"enrichDetails":{"type":"boolean","description":"Add full descriptions, skills and other available job-page fields to matching job rows. This enriches the same rows without a separate row charge.","default":false},"enrichLimit":{"type":"integer","description":"Maximum matching jobs to enrich with full-page fields, from 0 to 300 and no more than maxResults. Used when enrichDetails is enabled.","default":30,"minimum":0,"maximum":300},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 20 (default 10). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"keyword":"software engineer","country":"uae","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_bayt_com"},"example":{"jobId":"job_bayt-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"dataType":"example_dataType","name":"example_name","jobId":"example_jobId","companyId":"example_companyId","company":"example_company","location":"example_location"}],"meta":{"site":"bayt-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"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/bayt-com/v1/job-details":{"post":{"operationId":"bayt_com_job_details","summary":"Bayt Middle East Jobs and Companies: Full job details by Bayt job IDs or URLs","description":"Full descriptions, skills and job metadata for specific Bayt job IDs or URLs. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["bayt-com","Jobs"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobIds":{"type":"array","items":{"type":"string"},"description":"Bayt job IDs or job URLs to read in full. Auto selects jobDetails when this field is filled."},"includeSimilarJobs":{"type":"boolean","description":"In jobDetails mode, include IDs of similar jobs when Bayt supplies them. These IDs remain inside the job row.","default":false},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 20 (default 10). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"jobIds":["5234567"],"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_bayt_com"},"example":{"jobId":"job_bayt-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"dataType":"example_dataType","name":"example_name","jobId":"example_jobId","companyId":"example_companyId","company":"example_company","location":"example_location"}],"meta":{"site":"bayt-com","endpoint":"job-details","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"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/bayt-com/v1/companies":{"post":{"operationId":"bayt_com_companies","summary":"Bayt Middle East Jobs and Companies: Bayt company profiles and open jobs","description":"Company profile row plus optional website, employee list and open job rows by Bayt company URL or ID. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["bayt-com","Jobs"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyUrl":{"type":"string","description":"A Bayt company URL, such as https://www.bayt.com/en/company/al-futtaim-1661592/, or its numeric ID. Auto selects company mode when this is the highest-priority target.","pattern":"^(\\s*|\\d+|https?://([a-z0-9-]+\\.)*bayt\\.com/.*company/.*)$"},"includeCompanyJobs":{"type":"boolean","description":"In company mode, add open jobs after the company row. Each job is separately billed and shares the company input row limit.","default":false},"includeCompanyPage":{"type":"boolean","description":"In company mode, add the website, introduction, followers and up to 50 listed employees from the public company page when available. Employees remain part of the company row and are not billed separately.","default":false},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 20 (default 10). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"companyUrl":"https://www.bayt.com/en/company/al-futtaim-1661592/","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_bayt_com"},"example":{"jobId":"job_bayt-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"dataType":"example_dataType","name":"example_name","jobId":"example_jobId","companyId":"example_companyId","company":"example_company","location":"example_location"}],"meta":{"site":"bayt-com","endpoint":"companies","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"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/bayt-com/v1/health":{"get":{"operationId":"bayt_com_health","summary":"Bayt Middle East Jobs and Companies: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["bayt-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_bayt_com":{"type":"object","properties":{"dataType":{"type":["string","null"],"title":"Type"},"name":{"type":["string","null"],"title":"Title / company"},"jobId":{"type":["string","null"],"title":"Job ID"},"companyId":{"type":["string","null"],"title":"Company ID"},"company":{"type":["string","null"],"title":"Company"},"location":{"type":["string","null"],"title":"Location"},"salaryDisplay":{"type":["string","null"],"title":"Salary"},"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"},"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":"Employer org"},"web":{"type":["string","null"],"title":"Website/socials"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"}},"additionalProperties":true},"Response_bayt_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_bayt_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"]}}}}