{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Marketplace Scraper: Prices and Postal Codes, 7 Countries",
    "description": "OLX scraper for Poland, Romania, Ukraine, Bulgaria, Portugal, Kazakhstan and Uzbekistan. Up to 1,000 listings per search with price, GPS, all photos, category details, seller info and dates. Filter by seller type, condition and price, or schedule a feed of only new listings.",
    "version": "0.2",
    "x-build-id": "t4eXkTwrVh7OskMzj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~olx-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-olx-marketplace-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/getascraper~olx-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-olx-marketplace-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/getascraper~olx-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-olx-marketplace-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": "Start URLs (optional)",
            "type": "array",
            "description": "Paste OLX search URLs to scrape directly instead of, or in addition to, the market/query filters below.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Which OLX country sites to search.",
            "items": {
              "type": "string",
              "enum": [
                "pl",
                "ro",
                "ua",
                "bg",
                "pt",
                "kz",
                "uz"
              ],
              "enumTitles": [
                "Poland",
                "Romania",
                "Ukraine",
                "Bulgaria",
                "Portugal",
                "Kazakhstan",
                "Uzbekistan"
              ]
            },
            "default": [
              "pl"
            ]
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search across the selected markets, e.g. \"iphone 15\".",
            "default": [
              "iphone"
            ],
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price, in the local currency of each market."
          },
          "priceMax": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price, in the local currency of each market."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Only private sellers or only businesses. Needs rich listing data (on by default); searches pasted as Start URLs are not filtered this way.",
            "default": "any"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "damaged"
            ],
            "type": "string",
            "description": "Only new, used or damaged items (damaged exists on Poland only). Some categories have no condition, for example cars and real estate.",
            "default": "any"
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Only this OLX category, as a number (for example 99 is Electronics on olx.pl, 2298 is mobile phones). Category numbers differ per country; the categoryId field in the results shows the one a listing belongs to."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "default",
              "created_at:desc",
              "price:asc",
              "price:desc"
            ],
            "type": "string",
            "description": "How OLX orders results. Newest first puts the most recently posted or bumped listings at the top. Promoted ads can still appear first.",
            "default": "default"
          },
          "postedAfter": {
            "title": "Only posted after",
            "type": "string",
            "description": "Only listings first posted after this: a date (2026-12-01 or 01.12.2026, day first) or a time window (30 minutes, 12h, 7 days, yesterday). Forces newest first."
          },
          "includeFullDetails": {
            "title": "Fetch full listing details",
            "type": "boolean",
            "description": "Visit each listing's own page for its full description, postal code, seller identity (name, business/private type, member-since date, profile link), category, condition, and whether a phone number is available. Most competing OLX scrapers only return seller data; this keeps it behind an opt-in so quick price scans stay cheap. Roughly doubles the number of pages loaded.",
            "default": false
          },
          "includeRichData": {
            "title": "Rich listing data",
            "type": "boolean",
            "description": "Return GPS coordinates, every photo, all category attributes (model, year, mileage, area and so on), posted and refreshed dates, previous price, seller company and last seen, plus chat and delivery flags, and read up to 1,000 listings per search instead of one page. Adds no extra page loads. If a search cannot be read this way, the Actor falls back to the basic fields.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Return only listings that earlier runs with the same monitor name have not returned yet. The first run returns everything and sets the baseline. Schedule the run to get a feed of new listings. Uses newest-first order.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of already returned listings apart for different searches or schedules. Use the same name on every scheduled run of one search.",
            "default": "default"
          },
          "trackPriceChanges": {
            "title": "Also return price changes",
            "type": "boolean",
            "description": "With Only new listings on, also return listings the monitor has seen before when their price changed. Each row says changeType: new or price_changed, and carries previousPriceSeen.",
            "default": false
          },
          "maxItemsPerMarket": {
            "title": "Max items per market",
            "minimum": 1,
            "type": "integer",
            "description": "Stop collecting from a single market/query combination after this many listings.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after collecting this many matching listings across all markets.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "OLX blocks plain requests without a real browser fingerprint; Apify's proxy is required for reliable access.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}