{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Brasil Scraper & API: Export Listings, Cars & Real Estate",
    "description": "Scrape OLX Brasil (olx.com.br) without login: search by keyword, category, state, price and seller type, or paste search URLs. Price, place, photos, details list, optional full description, CEP and seller. Tens of thousands of ads per run. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "Fg1ggXZ0f9UzwRw4F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~olx-brasil-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-olx-brasil-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/s_actors~olx-brasil-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-olx-brasil-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/s_actors~olx-brasil-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-olx-brasil-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "What to search on OLX Brasil: any words you would type in the search box, in Portuguese. One search per keyword. Leave empty to take every ad of the category or state below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "OLX search URLs",
            "type": "array",
            "description": "Search or category pages copied from your browser with the filters already set (for example https://www.olx.com.br/imoveis/aluguel/estado-sp/sao-paulo-e-regiao?ps=1000&pe=3000). The path (category, state, region), the keyword, the price range and the seller filter are kept.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Ads per search, URL and state",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum ads for each keyword, each URL and each state. OLX shows at most 5 000 ads per search, so above 5 000 the Actor cuts the search into slices (state, price band) and joins them: ads come in slice order, not in one global order. Ads without a price are left out of a cut search.",
            "default": 100
          },
          "category": {
            "title": "Category",
            "enum": [
              "imoveis",
              "imoveis/venda",
              "imoveis/aluguel",
              "imoveis/terrenos",
              "imoveis/comercio-e-industria",
              "autos-e-pecas/carros-vans-e-utilitarios",
              "autos-e-pecas/motos",
              "autos-e-pecas/caminhoes",
              "autos-e-pecas/pecas-e-acessorios",
              "celulares",
              "eletronicos-e-celulares",
              "informatica",
              "games",
              "tvs-e-video",
              "audio",
              "cameras-e-drones",
              "moveis",
              "eletro",
              "para-a-sua-casa",
              "materiais-de-construcao",
              "moda-e-beleza",
              "musica-e-hobbies",
              "esportes-e-lazer",
              "artigos-infantis",
              "animais-de-estimacao",
              "comercio-e-escritorio",
              "escritorio",
              "agro-e-industria",
              "servicos",
              "vagas-de-emprego",
              "festas-e-casamentos"
            ],
            "type": "string",
            "description": "Only this category. Other categories: open them on OLX and paste the URL in \"OLX search URLs\"."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Only ads from these states (for example São Paulo, Rio de Janeiro, Minas Gerais). One search per state. Empty = all of Brazil.",
            "items": {
              "type": "string",
              "enum": [
                "ac",
                "al",
                "ap",
                "am",
                "ba",
                "ce",
                "df",
                "es",
                "go",
                "ma",
                "mt",
                "ms",
                "mg",
                "pa",
                "pb",
                "pr",
                "pe",
                "pi",
                "rj",
                "rn",
                "rs",
                "ro",
                "rr",
                "sc",
                "sp",
                "se",
                "to"
              ],
              "enumTitles": [
                "Acre (AC)",
                "Alagoas (AL)",
                "Amapá (AP)",
                "Amazonas (AM)",
                "Bahia (BA)",
                "Ceará (CE)",
                "Distrito Federal (DF)",
                "Espírito Santo (ES)",
                "Goiás (GO)",
                "Maranhão (MA)",
                "Mato Grosso (MT)",
                "Mato Grosso do Sul (MS)",
                "Minas Gerais (MG)",
                "Pará (PA)",
                "Paraíba (PB)",
                "Paraná (PR)",
                "Pernambuco (PE)",
                "Piauí (PI)",
                "Rio de Janeiro (RJ)",
                "Rio Grande do Norte (RN)",
                "Rio Grande do Sul (RS)",
                "Rondônia (RO)",
                "Roraima (RR)",
                "Santa Catarina (SC)",
                "São Paulo (SP)",
                "Sergipe (SE)",
                "Tocantins (TO)"
              ]
            }
          },
          "priceFrom": {
            "title": "Minimum price (R$)",
            "minimum": 0,
            "type": "number",
            "description": "Only ads priced at or above this amount, in reais."
          },
          "priceTo": {
            "title": "Maximum price (R$)",
            "minimum": 0,
            "type": "number",
            "description": "Only ads priced at or below this amount, in reais."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private sellers only, businesses only, or both.",
            "default": "all"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "priceAsc"
            ],
            "type": "string",
            "description": "Newest first, best match, or price from low to high. Inside a cut search the order holds within each slice.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Open the page of every ad to add the full description, the postcode (CEP), the seller name and ID, the seller sales count and every photo. Charged as a separate \"Ad details\" event per ad.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new ads",
            "type": "boolean",
            "description": "Output only ads that were not returned for the same search in the previous runs with the same monitor name (sorted by newest, up to 5 000 per search). Schedule the Actor to get new ads every hour.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen ads apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}