{"openapi":"3.1.0","info":{"title":"OLX Brazil Classifieds Vehicles and Real Estate (x402 & MCP)","version":"0.1.0","description":"Public OLX Brazil ads, vehicle specs, property listings and official-store inventory with BRL prices and locations, 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/olx-com-br/v1/search":{"post":{"operationId":"olx_com_br_search","summary":"OLX Brazil Classifieds Vehicles and Real Estate: Search OLX Brazil ads across categories, vehicles and real estate","description":"Classified ad rows filtered by query, searchType, region, categorySlug and BRL price range. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["olx-com-br","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"One keyword or phrase for OLX Brazil listings; Portuguese terms give direct control over the wording. Required for keyword search and optional in category, vehicle, real-estate and official-store modes."},"searchType":{"type":"string","description":"Auto selects details, official-store inventory, a category or keyword search from the fields you fill. Vehicles and real estate need no keyword; hub inspects navigation but does not deliver ad rows.","default":"auto","enum":["auto","search","detail","category","vehicles","realestate","seller","hub"]},"region":{"type":"string","description":"Nationwide or any of the 27 Brazilian states (26 states plus the Federal District). Applies to listing modes. Direct detail IDs/URLs retain the listing's own location.","default":"brasil","enum":["brasil","estado-ac","estado-al","estado-am","estado-ap","estado-ba","estado-ce","estado-df","estado-es","estado-go","estado-ma","estado-mg","estado-ms","estado-mt","estado-pa","estado-pb","estado-pe","estado-pi","estado-pr","estado-rj","estado-rn","estado-ro","estado-rr","estado-rs","estado-sc","estado-se","estado-sp","estado-to"]},"categorySlug":{"type":"string","description":"Verified OLX Brazil category slug (all 12 verticals supported), e.g. celulares, carros-vans-e-utilitarios, motos, caminhoes, apartamentos, casas, terrenos, moveis, eletrodomesticos, ciclismo, vagas-de-emprego, servicos, roupas, brinquedos, cachorros, livros-e-revistas. In hub mode, enter a navigation hub such as imoveis."},"priceMin":{"type":"integer","description":"Optional minimum price in BRL. Must not exceed priceMax.","minimum":0},"priceMax":{"type":"integer","description":"Optional maximum price in BRL.","minimum":0},"sort":{"type":"string","description":"Request site-default, newest, price or relevance ordering. OLX may ignore this hint, so global price ordering is not guaranteed.","default":"","enum":["","date","price","relevance"]},"maxPages":{"type":"integer","description":"Compatibility setting from 1 to 8, not a total paging cap. Collection continues until maxResults or the source limit is reached; repeated pages stop collection with a warning.","default":1,"minimum":1,"maximum":8},"page":{"type":"integer","description":"First result page to fetch, from 1 to 500.","default":1,"minimum":1,"maximum":500},"enrichDetails":{"type":"boolean","description":"Add available public phone information, map coordinates, vehicle specifications, FIPE values and property costs to the same ad row. Unavailable values stay empty, and detail offerPrice remains separate from list price.","default":false},"facetSlices":{"type":"boolean","description":"For search and category modes, divide collection into supported regional searches within the selected region. This can reach more matching listings, but does not guarantee complete coverage.","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":{"query":"sofa","region":"estado-sp","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_olx_com_br"},"example":{"jobId":"job_olx-com-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","listId":"example_listId","subject":"example_subject","priceValue":"example_priceValue","price":"example_price"}],"meta":{"site":"olx-com-br","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/olx-com-br/v1/details":{"post":{"operationId":"olx_com_br_details","summary":"OLX Brazil Classifieds Vehicles and Real Estate: OLX Brazil ad details by URL or ID","description":"Detailed classified ad rows for given detailUrls or detailIds. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["olx-com-br","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"detailUrls":{"type":"array","items":{"type":"string","minLength":1},"description":"OLX Brazil listing URLs, for example https://sp.olx.com.br/sao-paulo-e-regiao/celulares/iphone-13-1234567890. The URL must end in the listing number. Detail URLs and IDs take precedence over the other fields."},"detailIds":{"type":"array","items":{"type":"string"},"description":"OLX listing numbers (the digits at the end of a listing URL, 6–15 digits). Duplicates are collected once."},"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":{"detailIds":["1539287532"],"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_olx_com_br"},"example":{"jobId":"job_olx-com-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","listId":"example_listId","subject":"example_subject","priceValue":"example_priceValue","price":"example_price"}],"meta":{"site":"olx-com-br","endpoint":"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/olx-com-br/v1/sellers":{"post":{"operationId":"olx_com_br_sellers","summary":"OLX Brazil Classifieds Vehicles and Real Estate: Official store inventory by sellerSlug","description":"Ad rows belonging to an OLX Brazil official store. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["olx-com-br","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sellerSlug":{"type":"string","description":"Official-store slug or URL, for example localiza-seminovos or https://www.olx.com.br/loja-oficial/localiza-seminovos. Returns that store's inventory."},"query":{"type":"string","description":"One keyword or phrase for OLX Brazil listings; Portuguese terms give direct control over the wording. Required for keyword search and optional in category, vehicle, real-estate and official-store modes."},"maxPages":{"type":"integer","description":"Compatibility setting from 1 to 8, not a total paging cap. Collection continues until maxResults or the source limit is reached; repeated pages stop collection with a warning.","default":1,"minimum":1,"maximum":8},"page":{"type":"integer","description":"First result page to fetch, from 1 to 500.","default":1,"minimum":1,"maximum":500},"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":{"sellerSlug":"localiza-seminovos","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_olx_com_br"},"example":{"jobId":"job_olx-com-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","listId":"example_listId","subject":"example_subject","priceValue":"example_priceValue","price":"example_price"}],"meta":{"site":"olx-com-br","endpoint":"sellers","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/olx-com-br/v1/health":{"get":{"operationId":"olx_com_br_health","summary":"OLX Brazil Classifieds Vehicles and Real Estate: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["olx-com-br","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_olx_com_br":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"ID"},"listId":{"type":["string","null"],"title":"listId"},"subject":{"type":["string","null"],"title":"Title"},"priceValue":{"type":["string","null"],"title":"List price"},"price":{"type":["string","null"],"title":"List price (num)"},"offerPrice":{"type":["string","null"],"title":"Detail price"},"city":{"type":["string","null"],"title":"City"},"uf":{"type":["string","null"],"title":"UF"},"region":{"type":["string","null"],"title":"Region"},"zone":{"type":["string","null"],"title":"Zone"},"categoryName":{"type":["string","null"],"title":"Category"},"description":{"type":["string","null"],"title":"Description"},"seller":{"type":["string","null"],"title":"Seller"},"vehicle":{"type":["string","null"],"title":"Vehicle"},"realEstate":{"type":["string","null"],"title":"Real estate"},"storeProfile":{"type":["string","null"],"title":"Official store"},"channel":{"type":["string","null"],"title":"Channel"},"kind":{"type":["string","null"],"title":"Kind"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"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":"Person"},"org":{"type":["string","null"],"title":"Seller type"},"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"}},"additionalProperties":true},"Response_olx_com_br":{"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_olx_com_br"}},"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"]}}}}