{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX.pl Scraper — Poland Listings, Prices & Sellers",
    "description": "Scrape OLX.pl listings by keyword, category, city or pasted search URL. Filter by price, condition, seller type and distance. Get prices, price drops, seller details, GPS, photos and attributes. From $1 per 1,000 listings.",
    "version": "0.1",
    "x-build-id": "gIwViYf2Hkqfl2jTh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~olx-poland-classifieds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-olx-poland-classifieds-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/automation-lab~olx-poland-classifieds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-olx-poland-classifieds-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/automation-lab~olx-poland-classifieds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-olx-poland-classifieds-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",
            "type": "array",
            "description": "Paste one or more public OLX.pl category or search-results URLs. Location paths and filters that OLX applies (such as price, condition, and distance) are preserved. Individual listing URLs are not supported. Examples: <code>https://www.olx.pl/motoryzacja/samochody/warszawa/</code> or <code>https://www.olx.pl/oferty/q-laptop/?search%5Bfilter_float_price%3Ato%5D=2000</code>.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "🔎 Search query",
            "type": "string",
            "description": "Keyword to search for across all of OLX.pl, e.g. <code>rower</code>, <code>iphone 13</code>, <code>mieszkanie</code>. Used on its own, or added to Start URLs that have no keyword."
          },
          "categoryId": {
            "title": "📂 Category ID",
            "minimum": 1,
            "type": "integer",
            "description": "Numeric OLX.pl category ID. Leave empty for all categories. Common IDs: 5 = Motoryzacja (all motors), 84 = Samochody osobowe (cars), 3 = Nieruchomości, 1307 = Mieszkania, 1309 = Domy, 99 = Elektronika, 628 = Dom i Ogród, 87 = Moda, 767 = Sport i Hobby. Easier: paste the category page into Start URLs."
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "Polish city, district or region name, e.g. <code>Kraków</code>, <code>Mokotów</code> or <code>Mazowieckie</code>. Leave empty for all of Poland. A Start URL's own location wins."
          },
          "distanceKm": {
            "title": "↔️ Distance from city (km)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Also include listings within this many kilometres of the Location city. Needs a city in Location."
          },
          "priceMin": {
            "title": "💰 Minimum price (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount."
          },
          "priceMax": {
            "title": "💰 Maximum price (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount."
          },
          "condition": {
            "title": "🏷️ Condition",
            "enum": [
              "new",
              "used",
              "damaged"
            ],
            "type": "string",
            "description": "Only new, used or damaged items. Applies to categories where OLX records condition (most goods; not cars or real estate)."
          },
          "sellerType": {
            "title": "👤 Seller type",
            "enum": [
              "private",
              "business"
            ],
            "type": "string",
            "description": "Only private sellers or only businesses."
          },
          "regionId": {
            "title": "📍 Region ID",
            "minimum": 1,
            "type": "integer",
            "description": "Numeric OLX.pl region (voivodeship) ID. Easier: type the region name in Location. IDs: 1 Wielkopolskie, 2 Mazowieckie, 3 Dolnośląskie, 4 Małopolskie, 5 Pomorskie, 6 Śląskie, 7 Łódzkie, 8 Lubelskie, 9 Lubuskie, 11 Zachodniopomorskie, 12 Opolskie, 13 Świętokrzyskie, 14 Warmińsko-mazurskie, 15 Kujawsko-pomorskie, 17 Podkarpackie, 18 Podlaskie."
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "created_at:desc",
              "last_refresh_time:desc",
              "price:asc",
              "price:desc"
            ],
            "type": "string",
            "description": "Sort order for returned listings.",
            "default": "created_at:desc"
          },
          "maxResults": {
            "title": "📊 Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of listings to extract. OLX.pl caps search results at 1,000 per query.",
            "default": 100
          },
          "maxRequestRetries": {
            "title": "🔁 Max request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of retry attempts for failed HTTP requests.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}