{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Listings Scraper | Poland, Ukraine, Romania, Portugal +3",
    "description": "Extract OLX listings from Poland, Romania, Ukraine, Bulgaria, Portugal, Kazakhstan and Uzbekistan by keyword, category, city or pasted search link, with price, seller, condition and GPS data.",
    "version": "0.0",
    "x-build-id": "Q0M6Ohl4gemaiYGkl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/piotrv1001~olx-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-piotrv1001-olx-listings-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/piotrv1001~olx-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-piotrv1001-olx-listings-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/piotrv1001~olx-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-piotrv1001-olx-listings-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": {
          "country": {
            "title": "Country",
            "enum": [
              "pl",
              "bg",
              "ro",
              "pt",
              "ua",
              "kz",
              "uz"
            ],
            "type": "string",
            "description": "OLX regional market to scrape. Links in Start URLs carry their own market.",
            "default": "pl"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "category",
              "search",
              "urls"
            ],
            "type": "string",
            "description": "Scraping mode: search by keyword, browse by category ID, or provide OLX links directly. Pasting links into Start URLs is enough: they are used even if this stays on keyword search.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword to search for, as you would type it on OLX. Used in search mode, also next to links in Start URLs, and in category mode to search inside the categories. Leave it empty to browse the newest listings with the filters below."
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "OLX category IDs to scrape. Used in category and search modes. Category IDs are region-specific."
          },
          "location": {
            "title": "City or region",
            "type": "string",
            "description": "Only listings from this city, district or region, for example Warszawa, Mokotów, Mazowieckie, \"Warszawa, Mazowieckie\" or Київ. If OLX doesn't know the name, the run saves nothing and says so: it never widens to the whole country. Not used for Start URLs."
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of listings to save in the whole run. OLX serves at most 1,000 per search or category, so going past that takes several categories or Start URLs.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include details (no longer needed)",
            "type": "boolean",
            "description": "Deprecated. GPS coordinates, seller and delivery details are now part of every listing at the standard price, so this switch has no effect.",
            "default": false
          },
          "includePhones": {
            "title": "Include seller phone numbers",
            "type": "boolean",
            "description": "Adds the seller's phone numbers in a phones field, as OLX shows them to a logged-out visitor: most business sellers, few private ones. Each listing with a number found is billed once more as a Phone number; listings without one cost nothing extra.",
            "default": false
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "created_at:desc",
              "price:asc",
              "price:desc"
            ],
            "type": "string",
            "description": "Sort order. \"Recently updated\" puts the most recently posted or bumped listings first — the source has no true created-date sort. To get only genuinely new listings, use \"Only listings posted after\" below.",
            "default": "created_at:desc"
          },
          "postedAfter": {
            "title": "Only listings posted after",
            "type": "string",
            "description": "Skip listings first posted before this. Accepts a date (2026-08-01, or day first as OLX writes it: 01.08.2026) or a phrase (30 minutes, 12h, 7 days, yesterday; 30m = 30 minutes). A value that can't be read ends the run with 0 listings and a message. Leave empty to take everything. Bumped older listings are excluded — this filters on when a listing was first posted, not when it was last refreshed.",
            "default": ""
          },
          "priceFrom": {
            "title": "Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price filter in local currency (on olx.uz in so'm, also for listings priced in UYE)."
          },
          "priceTo": {
            "title": "Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price filter in local currency (on olx.uz in so'm)."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Only private sellers or only businesses.",
            "default": "any"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "damaged"
            ],
            "type": "string",
            "description": "Only new, used or damaged items (damaged: Poland). Not every category has a condition, for example cars and real estate on olx.pl: the run then stops with a message.",
            "default": "any"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "OLX links to scrape, copied from the browser: a search or category page with its filters (https://www.olx.pl/elektronika/telefony/warszawa/q-iphone/), a seller's page (https://www.olx.pl/oferty/uzytkownik/1VRzN/), a business shop (https://bikepower.olx.pl/) or a listing (https://www.olx.pl/d/oferta/...-ID1cQlDY.html). Sites can be mixed: olx.pl, .ro, .ua, .bg, .pt, .kz, .uz. The filters in the link are used, not the ones above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}