{
  "openapi": "3.0.1",
  "info": {
    "title": "OLX Scraper — Poland, Portugal, Romania, Bulgaria & Ukraine",
    "description": "Extract classified listings from OLX across Poland (.pl), Portugal (.pt), Romania (.ro), Bulgaria (.bg), and Ukraine (.ua) with prices, full descriptions, structured category attributes, seller profiles, locations, and HD photos.",
    "version": "0.1",
    "x-build-id": "sovxVpQBFWvWmAGIb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~olx-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-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/foxlabs~olx-scraper/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-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/foxlabs~olx-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-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": {
          "country": {
            "title": "OLX Country Portal",
            "enum": [
              "PL",
              "PT",
              "RO",
              "BG",
              "UA",
              "KZ",
              "UZ"
            ],
            "type": "string",
            "description": "Target OLX marketplace country when using queries or categoryId.",
            "default": "PL"
          },
          "queries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Keywords to search on OLX (e.g. 'iphone 15', 'macbook pro', 'kawalerka', 'apartament', 'bmw x5').",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Direct OLX Category or Search URLs (Optional)",
            "type": "array",
            "description": "Full OLX web category/search URLs or /api/v1/offers/ URLs across olx.pl, olx.pt, olx.ro, olx.bg, or olx.ua.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "OLX Numeric Category ID (Optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional numeric OLX category ID to scope keyword searches (or leave blank for all categories)."
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "created_at:desc",
              "filter_float_price:asc",
              "filter_float_price:desc"
            ],
            "type": "string",
            "description": "Ordering applied to OLX offer queries.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum Price Filter",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price in the marketplace's local currency (PLN, EUR, RON, BGN, UAH). Filtered-out rows cost $0."
          },
          "maxPrice": {
            "title": "Maximum Price Filter",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price in the marketplace's local currency."
          },
          "businessOnly": {
            "title": "Business / Dealer Sellers Only",
            "type": "boolean",
            "description": "Keep only professional business/agency/dealer listings (isBusiness: true).",
            "default": false
          },
          "privateOnly": {
            "title": "Private Individual Sellers Only",
            "type": "boolean",
            "description": "Keep only private individual listings (isBusiness: false).",
            "default": false
          },
          "onlyWithDelivery": {
            "title": "Only Listings With OLX Delivery",
            "type": "boolean",
            "description": "Keep only listings where OLX courier/parcel delivery is enabled.",
            "default": false
          },
          "maxListingsPerSearch": {
            "title": "Max Listings per Query / URL",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum unique listings extracted per query or searchUrl (~40 listings per API page).",
            "default": 40
          },
          "maxTotalListings": {
            "title": "Max Total Listings (Run Cap)",
            "minimum": 1,
            "maximum": 25000,
            "type": "integer",
            "description": "Global run cap on total billable OLX listings.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Automatically routes requests out of the box.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}