{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Brazil Scraper | Cars, Property & Stores",
    "description": "Collect public OLX Brazil ads, vehicle specifications, property details and official-store inventory, including prices, photos, seller names and locations. Pay per delivered ad row plus a start fee.",
    "version": "0.1",
    "x-build-id": "guOxddSXMA1V3Pa3D"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~olx-br-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-olx-br-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/lentic_clockss~olx-br-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-olx-br-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/lentic_clockss~olx-br-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-olx-br-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": {
          "query": {
            "title": "Search 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": {
            "title": "Search type",
            "enum": [
              "auto",
              "search",
              "detail",
              "category",
              "vehicles",
              "realestate",
              "seller",
              "hub"
            ],
            "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"
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "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.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "detailIds": {
            "title": "Detail list IDs",
            "type": "array",
            "description": "OLX listing numbers (the digits at the end of a listing URL, 6–15 digits). Duplicates are collected once.",
            "items": {
              "type": "string"
            }
          },
          "sellerSlug": {
            "title": "Official-store slug",
            "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."
          },
          "categorySlug": {
            "title": "Category slug",
            "type": "string",
            "description": "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."
          },
          "maxResults": {
            "title": "Maximum rows per input",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum rows for each search or supplied detail URL/ID: 1-5,000, default 70. Free-plan use is limited to 10 runs and 200 rows per run; your maximum-cost setting can reduce delivery further.",
            "default": 70
          },
          "region": {
            "title": "Region path",
            "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"
            ],
            "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"
          },
          "priceMin": {
            "title": "Min price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum price in BRL. Must not exceed priceMax."
          },
          "priceMax": {
            "title": "Max price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum price in BRL."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "",
              "date",
              "price",
              "relevance"
            ],
            "type": "string",
            "description": "Request site-default, newest, price or relevance ordering. OLX may ignore this hint, so global price ordering is not guaranteed.",
            "default": ""
          },
          "maxPages": {
            "title": "Page compatibility setting",
            "minimum": 1,
            "maximum": 8,
            "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
          },
          "page": {
            "title": "Starting page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "First result page to fetch, from 1 to 20.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich listing details",
            "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": {
            "title": "Search regional groups",
            "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
          },
          "incrementalMode": {
            "title": "Incremental monitoring",
            "type": "boolean",
            "description": "Compare this run with the previous run that used the same state key and deliver only new or changed ads. Off by default; standard runs are unaffected.",
            "default": false
          },
          "stateKey": {
            "title": "Monitoring state key",
            "type": "string",
            "description": "Name for the saved snapshot used by incremental monitoring, for example sp-iphone-daily. Reuse the same key on each scheduled run; up to 100 characters. Ignored unless incremental monitoring is on.",
            "default": ""
          },
          "emitUnchanged": {
            "title": "Include unchanged ads",
            "type": "boolean",
            "description": "With incremental monitoring, also deliver ads that have not changed since the previous run. Each delivered ad is a billed row.",
            "default": false
          },
          "emitExpired": {
            "title": "Include expired ads",
            "type": "boolean",
            "description": "With incremental monitoring, also deliver ads from the previous snapshot that are no longer listed. Each delivered ad is a billed row.",
            "default": false
          },
          "workerBaseUrl": {
            "title": "Developer testing override",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing.",
            "default": ""
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}