{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Scraper - Poland, Brazil, Romania & 5 More",
    "description": "OLX scraper for 8 countries: Poland, Portugal, Romania, Bulgaria, Ukraine, Kazakhstan, Uzbekistan and Brazil. Get price (in EUR where available), condition, city, category, photos and company names. Track new listings and price drops, or paste any OLX search URL. Export to JSON, CSV, Excel or API.",
    "version": "1.2",
    "x-build-id": "xC2wkJJPlRnX2FNZC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/difioprdy~olx-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-difioprdy-olx-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/difioprdy~olx-scraper/runs": {
      "post": {
        "operationId": "runs-sync-difioprdy-olx-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/difioprdy~olx-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-difioprdy-olx-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": {
          "preset": {
            "title": "Preset (what do you want to do?)",
            "enum": [
              "custom",
              "price_research",
              "deal_hunting",
              "business_leads",
              "market_report"
            ],
            "type": "string",
            "description": "Fills the settings for a goal. price_research: all listings with EUR prices and a price summary. deal_hunting: scheduled watch that returns only new listings and price changes (needs monitorName; monitor mode on, newest first, titles must contain every search word). business_leads: business sellers only, with company name and category. market_report: 500 listings per search for a market overview with the cheapest market. Any preset other than Custom always sets Sort by, Seller type, Monitor mode, Title must contain every search word and Also return delisted listings, ignoring what you entered there; choose Custom to set them yourself. Max listings per search always uses your own value when you fill it in.",
            "default": "custom"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search on OLX, one per line, e.g. \"iphone 13 128gb\" or \"rower\". Narrow keywords (model + storage) give the most useful price summaries. Each keyword is searched in every selected country, so use the local language for best coverage. Optional when you use startUrls (clear the example keyword if you only want your URLs).",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "startUrls": {
            "title": "OLX search URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Paste OLX search or category pages from any of the 8 sites (e.g. https://www.olx.pl/elektronika/telefony/warszawa/q-iphone/?search[filter_float_price:from]=500 or https://www.olx.com.br/celulares/estado-sp?q=iphone). The URL's own filters (category, location, price, sort, seller type, other filters) are used; the price, seller type and sort fields below apply only when the URL does not set them. Countries are ignored for URLs. Single-listing pages are rejected. Up to 100 URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "countries": {
            "title": "Countries",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "OLX sites to search for each keyword. Prices are in the local currency of each site (PLN, EUR, RON, UAH, KZT, UZS/UYE, BRL).",
            "items": {
              "type": "string",
              "enum": [
                "pl",
                "pt",
                "ro",
                "bg",
                "ua",
                "kz",
                "uz",
                "br"
              ],
              "enumTitles": [
                "Poland (olx.pl)",
                "Portugal (olx.pt)",
                "Romania (olx.ro)",
                "Bulgaria (olx.bg)",
                "Ukraine (olx.ua)",
                "Kazakhstan (olx.kz)",
                "Uzbekistan (olx.uz)",
                "Brazil (olx.com.br)"
              ]
            },
            "default": [
              "pl"
            ]
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum listings checked for each keyword × country (or URL). This is your main cost control: 1,000 listings cost $1. Your value is always used, also with a preset; when empty, the default is 100 (preset market_report: 500). In monitor mode it counts every listing checked, including unchanged ones. OLX shows at most about 1,000 results per search (Brazil: 100 pages); above that the search is split into price ranges automatically."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Ignored unless Preset is Custom: any other preset sets this field. Order of results, as on OLX. Default relevance (preset deal_hunting: newest). Newest follows OLX's own order (on EU sites: by last refresh). When a search is split into price ranges, the first page(s) follow this order and the rest come from price ranges.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Only listings priced at or above this amount, in the site's local currency (e.g. 500 = 500 zł on olx.pl, R$ 500 on olx.com.br). 0 = no minimum. Note: olx.uz shows prices in two currencies (UYE and UZS); the filter is applied by OLX itself.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Only listings priced at or below this amount, in the site's local currency. 0 = no maximum. Note: olx.uz shows prices in two currencies (UYE and UZS); the filter is applied by OLX itself.",
            "default": 0
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Ignored unless Preset is Custom: any other preset sets this field. Only listings from private sellers or only from businesses. Default all (preset business_leads: business).",
            "default": "all"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 100,
            "type": "array",
            "description": "Drop listings whose title contains any of these words or phrases, e.g. \"case\", \"broken\", \"for parts\". Matching ignores case and accents and works on whole words (\"case\" does not drop \"suitcase\"). Dropped listings are not charged.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "requireAllWords": {
            "title": "Title must contain every search word",
            "type": "boolean",
            "description": "Ignored unless Preset is Custom: any other preset sets this field. Keep only listings whose title contains every word of the keyword (or of the URL's search text). Default off (preset deal_hunting: on). Dropped listings are not charged.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode (only new listings and price changes)",
            "type": "boolean",
            "description": "Ignored unless Preset is Custom: any other preset sets this field. Return only listings that are new or whose price changed since the previous run with the same monitorName and search; unchanged listings are skipped and not charged. The first run returns everything as new. Default off (preset deal_hunting: on).",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^$|^[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?$",
            "type": "string",
            "description": "Name of this watch, required with monitor mode: 1-63 letters, digits or hyphens, e.g. \"iphone-lisbon\". The monitor remembers listings for 60 days in the key-value store olx-scraper-monitor in your account. A new name starts a fresh monitor.",
            "default": ""
          },
          "emitDelisted": {
            "title": "Also return delisted listings",
            "type": "boolean",
            "description": "Ignored unless Preset is Custom: any other preset sets this field. In monitor mode, also return listings that disappeared since the previous run as changeType delisted (free). Only when the run read the whole search. Default off.",
            "default": false
          },
          "includeCompanyName": {
            "title": "Company name of business sellers",
            "type": "boolean",
            "description": "Add companyName: the company name a BUSINESS seller shows on OLX (EU sites; often empty, and not shown on olx.com.br). Always null for private sellers. No phone numbers or other contact data are collected.",
            "default": true
          },
          "includeCategoryName": {
            "title": "Category names",
            "type": "boolean",
            "description": "Add categoryName next to the category id, in the site's language (e.g. \"Telefony komórkowe\"). Costs one extra page load per EU site per run, not per listing.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Leave it off: the Actor connects directly and switches to Apify residential proxy in the site's country only when OLX blocks a request (Brazil always uses a Brazilian residential IP). Set a proxy here only if you want every request to go through it.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}