{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Brazil Scraper: Listings, Cars and Real Estate",
    "description": "Scrape OLX Brazil listings by category and state: price, location, photos, seller type, car and real estate attributes. Optional descriptions, and monitor mode that returns only new listings. Em português: anúncios da OLX por categoria e estado.",
    "version": "1.1",
    "x-build-id": "DPFxOm0pJLuvRt5be"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/araluma~olx-brazil-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-araluma-olx-brazil-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/araluma~olx-brazil-scraper/runs": {
      "post": {
        "operationId": "runs-sync-araluma-olx-brazil-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/araluma~olx-brazil-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-araluma-olx-brazil-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": {
          "startUrls": {
            "title": "OLX category or location URLs (URLs do OLX)",
            "type": "array",
            "description": "Category or location pages such as https://www.olx.com.br/imoveis/venda/estado-sp or https://www.olx.com.br/autos-e-pecas/motos/estado-rj/rio-de-janeiro-e-regiao. One page of up to 50 ads is read per URL. URLs with a query string (?q=, ?o=, ?sf=) are refused. Overview pages without a listing grid, such as /imoveis, return an error for that URL; open a sub-category instead.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "category": {
            "title": "Category (categoria)",
            "type": "string",
            "description": "A category name in Portuguese or English, or an OLX path. Examples: imóveis, apartamentos, casas, terrenos, aluguel, apartamentos para alugar, carros usados, motos, celulares, notebooks. Use \"todas\" for every category. Combined with States it builds one URL per state."
          },
          "states": {
            "title": "States (estados)",
            "type": "array",
            "description": "Two-letter codes or names: SP, RJ, Minas Gerais, Paraná. Write \"all\" (or \"todos\") for the 27 states. With a category, one page per state is read. Leave empty to use only the URLs above.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword filter (palavra-chave)",
            "type": "string",
            "description": "Keeps only listings whose title, category or attributes contain every word, ignoring accents and case (\"jardim botanico\" matches \"Jardim Botânico\"). This filters the pages read; it is not OLX's own search, which robots.txt disallows. Combine it with narrow category and location URLs."
          },
          "sellerType": {
            "title": "Seller type (tipo de anunciante)",
            "enum": [
              "any",
              "professional",
              "private"
            ],
            "type": "string",
            "description": "Keep all listings, only business sellers (professional), or only private sellers.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum price in BRL (preço mínimo)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop listings below this price. Listings without a price are dropped when a price limit is set."
          },
          "maxPrice": {
            "title": "Maximum price in BRL (preço máximo)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop listings above this price."
          },
          "maxListings": {
            "title": "Maximum listings (máximo de anúncios)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many listings in total. Each URL gives at most 50, so 20 URLs give at most 1,000.",
            "default": 20
          },
          "includeDetails": {
            "title": "Add description and business name (descrição)",
            "type": "boolean",
            "description": "Opens each ad page for its description (phone numbers and e-mail addresses removed), postal code and, for business sellers, the business name. One extra request per listing, so the run is slower, and each enriched listing costs the listing-detail price on top.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode: only new listings (somente anúncios novos)",
            "type": "boolean",
            "description": "Returns only listings not seen in earlier runs with the same URLs and filters. The first run returns everything it finds and becomes the baseline. It watches the first page of each URL, so use narrow URLs (a city and a category) and run it often.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between requests in ms",
            "minimum": 500,
            "maximum": 60000,
            "type": "integer",
            "description": "Minimum time between two requests to OLX. Requests are sequential. Lower values are refused below 500.",
            "default": 1500
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "OLX blocks cloud and data center IP addresses, so on the Apify platform a run without a residential proxy usually gets HTTP 403. The Console form is prefilled with Apify Proxy on, group RESIDENTIAL, country BR. If this field is missing in an API call, NO proxy is used, so API runs never pay for proxy traffic unless you send it. Proxy traffic is billed to you by Apify per GB, on top of the Actor's own prices (see the README)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}