{"openapi":"3.0.0","info":{"title":"OLX Brazil Classifieds Vehicles and Real Estate","version":"1.0.0","description":"Public OLX Brazil ads, vehicle specs, property listings and official-store inventory with BRL prices and locations, one row per entity."},"servers":[{"url":"https://ah-olx-com-br.opendata.best/s/olx-com-br"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search OLX Brazil ads across categories, vehicles and real estate","description":"Classified ad rows filtered by query, searchType, region, categorySlug and BRL price range.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","description":"Search query. 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.","example":"sofa"},"searchType":{"type":"string","enum":["auto","search","detail","category","vehicles","realestate","seller","hub"],"description":"Search type. 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","example":"auto"},"region":{"type":"string","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"],"description":"Region path. 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","example":"brasil"},"categorySlug":{"type":"string","description":"Category slug. Use celulares or carros-vans-e-utilitarios for category listings, or select Real estate mode for properties. In hub mode, enter a navigation category such as imoveis; this mode does not deliver ad rows."},"priceMin":{"type":"integer","minimum":0,"description":"Min price (BRL). Optional minimum price in BRL. Must not exceed priceMax."},"priceMax":{"type":"integer","minimum":0,"description":"Max price (BRL). Optional maximum price in BRL."},"sort":{"type":"string","enum":["","date","price","relevance"],"description":"Sort. Request site-default, newest, price or relevance ordering. OLX may ignore this hint, so global price ordering is not guaranteed.","default":"","example":""},"maxPages":{"type":"integer","minimum":1,"maximum":8,"description":"Page compatibility setting. 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,"example":1},"page":{"type":"integer","minimum":1,"maximum":20,"description":"Starting page. First result page to fetch, from 1 to 20.","default":1,"example":1},"enrichDetails":{"type":"boolean","description":"Enrich listing details. 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,"example":false},"facetSlices":{"type":"boolean","description":"Search regional groups. 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,"example":false},"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":{"query":"sofa","region":"estado-sp","enrichDetails":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/details":{"post":{"operationId":"details","summary":"OLX Brazil ad details by URL or ID","description":"Detailed classified ad rows for given detailUrls or detailIds. Fixed for this endpoint: searchType=\"detail\".","tags":["details"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"detailUrls":{"type":"array","items":{"type":"string"},"description":"Detail URLs. 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":"Detail list IDs. OLX listing numbers (the digits at the end of a listing URL, 6–15 digits). Duplicates are collected once."},"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":{"detailIds":["1539287532"],"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/sellers":{"post":{"operationId":"sellers","summary":"Official store inventory by sellerSlug","description":"Ad rows belonging to an OLX Brazil official store. Fixed for this endpoint: searchType=\"seller\".","tags":["sellers"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"sellerSlug":{"type":"string","description":"Official-store slug. 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":"Search query. 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.","example":"sofa"},"maxPages":{"type":"integer","minimum":1,"maximum":8,"description":"Page compatibility setting. 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,"example":1},"page":{"type":"integer","minimum":1,"maximum":20,"description":"Starting page. First result page to fetch, from 1 to 20.","default":1,"example":1},"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":{"sellerSlug":"localiza-seminovos","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":{"rowType":{"type":"string","enum":["ad"]},"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"country":{"type":"string"},"authority":{"type":"string"},"listId":{"type":"string","description":"Listing number used for detail input; always present."},"adId":{"nullable":true,"type":"string","description":"Additional identifier returned with some details. Use listId, not adId, for detail input or listing URLs."},"url":{"type":"string","description":"Public listing URL on olx.com.br; always present (core field)."},"subject":{"type":"string","description":"Listing title; always present (core field)."},"price":{"nullable":true,"description":"Numeric list price when available; priceValue holds the displayed label."},"priceValue":{"nullable":true,"type":"string","description":"Display list-price label."},"oldPrice":{"nullable":true},"installments":{"nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string","description":"BRL when priced."},"offerPrice":{"nullable":true,"type":"string","description":"Detail-side offer price, separate from list price."},"offerCurrency":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string","description":"Municipality."},"uf":{"nullable":true,"type":"string","description":"Two-letter state code."},"ddd":{"nullable":true,"type":"string","description":"Two-digit Brazilian telephone area code (DDD) of the listing location when available; optional."},"stateId":{"nullable":true,"type":"string","description":"Numeric state identifier, stored as text when available."},"stateName":{"nullable":true,"type":"string","description":"State name when available."},"region":{"nullable":true,"type":"string","description":"Named area within a state when available."},"zone":{"nullable":true,"type":"string","description":"Named city zone when available; optional."},"neighbourhood":{"nullable":true,"type":"string","description":"Neighbourhood of the listing location when available; optional."},"categoryName":{"nullable":true,"type":"string"},"listingCategoryId":{"nullable":true},"mainCategory":{"nullable":true,"type":"string"},"subCategory":{"nullable":true,"type":"string"},"mainCategoryID":{"nullable":true},"subCategoryID":{"nullable":true},"searchCategoryLevelZero":{"nullable":true,"type":"string"},"searchCategoryLevelOne":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string","description":"Plain-text ad description with readable line breaks."},"images":{"nullable":true,"type":"array","items":{"type":"object"}},"properties":{"nullable":true,"type":"array","description":"Listing attribute pairs, excluding unsupported personal-contact entries.","items":{"type":"object"}},"attributes":{"nullable":true,"type":"object","description":"Named listing attributes, excluding unsupported personal-contact entries."},"professionalAd":{"nullable":true,"type":"boolean","description":"Whether OLX identifies the seller as a business."},"fixedOnTop":{"nullable":true,"type":"boolean"},"featured":{"nullable":true,"type":"boolean","description":"Whether the ad is shown as a featured (highlighted) listing; optional."},"olxPay":{"nullable":true,"type":"boolean"},"olxDelivery":{"nullable":true,"type":"boolean"},"officialStore":{"nullable":true,"type":"object","description":"Official-store identity when available with the listing details."},"lastBumpAgeSecs":{"nullable":true,"type":"number"},"listedAt":{"nullable":true,"description":"Original listing timestamp."},"kind":{"nullable":true,"type":"string","enum":["listing","detail","listing+detail"]},"hasAdview":{"nullable":true,"type":"boolean","description":"Whether the listing page includes structured detail information; may be absent."},"listIdMatchesUrl":{"nullable":true,"type":"boolean","description":"Whether the detail listing number matches the number in its URL."},"listIdFromUrl":{"nullable":true,"type":"string","description":"Identity cross-check extracted from the listing URL."},"listPageUrl":{"nullable":true,"type":"string","description":"Listing page URL the row came from; absent on detail-mode rows (there is no list page)."},"page":{"nullable":true,"type":"number"},"source":{"nullable":true,"type":"string","description":"Always olx.com.br."},"channel":{"nullable":true,"type":"string","description":"Source label for the listing fields. A plus sign combines labels when information is merged."},"seller":{"nullable":true,"type":"object","description":"Public seller information when available, including a display name and account information. A display name is not a verified legal identity."},"vehicle":{"nullable":true,"type":"object","description":"Vehicle attributes; detail can add FIPE price, finance eligibility and structured specifications."},"realEstate":{"nullable":true,"type":"object","description":"Available property attributes and, with detail enrichment, public map information and itemized costs in priceBreakdown."},"storeProfile":{"nullable":true,"type":"object","description":"Official-store metadata for verified seller inventory rows."},"phoneHidden":{"nullable":true,"type":"boolean","description":"Public phone visibility information; absent when not returned."},"phoneStatus":{"nullable":true,"type":"string","description":"Whether a phone is visible, masked, hidden, invalid or not returned; absent when visibility information is unavailable.","enum":["visible","masked","hidden","invalid","not_returned"]},"phoneExist":{"nullable":true,"type":"boolean","description":"Whether the seller has a phone number on the ad; the number itself may still be masked or require an OLX login. Optional."},"maskedPhone":{"nullable":true,"type":"string","description":"Partially hidden phone as shown publicly (for example (11) 9****-****); not a dialable number. Optional."},"changeStatus":{"nullable":true,"type":"string","description":"Absent on standard runs."},"fieldSources":{"nullable":true,"type":"object","description":"Source labels for individual fields when available."},"phones":{"nullable":true,"type":"array","description":"Valid phone numbers explicitly returned with phoneHidden=false; otherwise null. Masked values are excluded, and hidden numbers are not revealed.","items":{"type":"object"}},"emails":{"nullable":true,"type":"array","description":"Not returned by this scraper; null with a source-specific absence reason.","items":{"type":"object"}},"address":{"nullable":true,"type":"object","description":"Public listing location, including neighborhood and postal code when available. Street information is never inferred.","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","description":"BR CEP in canonical NNNNN-NNN string form (leading zeros preserved)."},"neighborhood":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"geo":{"nullable":true,"type":"object","description":"Valid public map coordinates when OLX makes the map visible. Coordinates may be approximate rather than an exact address."},"person":{"nullable":true,"type":"object","description":"Public seller display name when classified as an individual, not a verified legal identity."},"org":{"nullable":true,"type":"object","description":"Public seller display name when the ad identifies a business. Private legal identity is not collected.","properties":{"name":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string","enum":["company","individual"]}}},"web":{"nullable":true,"type":"object","description":"Seller-owned web links when returned; website is null when the seller has no external website.","properties":{"website":{"nullable":true,"type":"string","description":"The seller's own external website when the listing returns one; otherwise null. Never filled with the OLX site address. The absence reason is in leadAbsences.web."},"socials":{"nullable":true,"type":"array","description":"Seller social links are not returned; check leadAbsences for the reason.","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string","enum":["search","detail","entity","contact","reveal-xhr"]},"leadReveal":{"nullable":true,"type":"string","description":"Whether contact information is visible, gated or absent. The scraper does not reveal login-only contacts.","enum":["visible","click","xhr","gated","image","absent"]},"leadAbsences":{"nullable":true,"type":"object","description":"Reasons why a field is absent, hidden or unavailable in the collected listing. A missing value does not mean OLX never exposes that field elsewhere."}},"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: id; rowType=ad: id, subject, url."},"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"}}}}}}