{
  "openapi": "3.0.1",
  "info": {
    "title": "Subito Scraper — Ads, Prices & Monitor",
    "description": "Export classified ads from Subito.it (Italy) with price, location, condition and photos, or monitor a search and get only new ads, price drops and removed ads on each run. No login needed.",
    "version": "0.1",
    "x-build-id": "g4PbIi1PSTdkFhOAH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muira_datamasters~subito-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muira_datamasters-subito-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/muira_datamasters~subito-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muira_datamasters-subito-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/muira_datamasters~subito-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muira_datamasters-subito-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": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "One entry per search on subito.it. Each search can have:<br><b>query</b>: keywords as you would type them on Subito<br><b>category</b>: one of <code>bikes, electronics, phones, cars, furniture, fashion</code> (mapped to the matching Subito category)<br><b>siteCategory</b>: Subito category id, for a category not in the list above. Overrides <i>category</i><br><b>location</b>: Italian city, province or region (e.g. <code>Milano</code>). Subito searches by area: a city searches its whole province. Leave it out to search all of Italy.<br><b>radiusKm</b>: <b>Not supported on Subito</b>: Subito has no distance search, so the whole province of the location is searched and this value is ignored.<br><b>label</b>: your own name for the search, copied to each result's <i>searchLabel</i><br>Each search needs at least a query, category, siteCategory or location. Example: <code>{\"query\":\"bici gravel\",\"category\":\"bikes\",\"location\":\"Milano\"}</code>"
          },
          "startUrls": {
            "title": "Subito search URLs",
            "type": "array",
            "description": "Optional. Paste search result links copied from your browser on subito.it, with any filters you set there. Each link is crawled like one search.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads in total across all searches (default 1,000). In Monitor mode it limits how many ads are checked per run (only changes are output); if left empty, Monitor checks 200 ads per run. Monitor checks are charged as a <i>monitor-scan</i> event per 100 ads."
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads without a price are left out when a price limit is set."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads without a price are left out when a price limit is set."
          },
          "condition": {
            "title": "Condition",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only ads in these conditions. Empty = all. Ads without a condition are kept.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "good",
                "used",
                "for_parts"
              ],
              "enumTitles": [
                "New",
                "Like new",
                "Good",
                "Used",
                "For parts / broken"
              ]
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private sellers, businesses or both.",
            "default": "any"
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order in which Subito lists ads. Monitor mode always uses newest first.",
            "default": "newest"
          },
          "monitor": {
            "title": "Monitor settings",
            "type": "object",
            "description": "Fill this in to switch from a full export to <b>Monitor mode</b>: each run outputs only what changed since the previous run with the same <b>stateKey</b>. Each run checks up to <i>Max results</i> ads (200 if left empty) and is charged a <i>monitor-scan</i> event per 100 ads checked, plus one event per change output. The first run only records the current ads and outputs nothing: it pays the monitor-scan events but no per-ad events. <b>stateKey</b> (required): any name for this watch list, e.g. <code>berlin-gravel</code>; reuse it on every scheduled run. <b>emit</b>: which changes to output, any of <code>new</code>, <code>priceDrop</code>, <code>priceIncrease</code>, <code>removed</code> (default: new, priceDrop, removed). Removed ads are reported only for searches that fit within <i>Max results</i>. Example: <code>{\"stateKey\": \"berlin-gravel\", \"emit\": [\"new\", \"priceDrop\", \"removed\"]}</code>. Leave empty for a normal export."
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "<b>No effect on Subito</b>: the search results already carry the full description, condition, location and photos, so no ad pages are opened and nothing extra is charged.",
            "default": false
          },
          "includeSellerNames": {
            "title": "Include business seller names",
            "type": "boolean",
            "description": "Adds the shop or company name for business sellers. Private sellers' names are never collected, and neither are phone numbers or emails.",
            "default": false
          },
          "splitDeepSearches": {
            "title": "Split large searches to get all results",
            "type": "boolean",
            "description": "Subito only lets you page through a limited number of results per search. When a search has more, it is split into the 20 Italian regions and then into price bands so you can get all of them. Turn off to stop at the site limit.",
            "default": true
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) works for Subito in most cases; if the site starts blocking, the run switches to residential proxies in Italy on its own. You can also choose your own proxies.",
            "default": {
              "useApifyProxy": true
            }
          },
          "healthCheck": {
            "title": "Health check (for scheduled monitoring)",
            "type": "object",
            "description": "Optional. Marks the run as <b>failed</b> when the site returned too few ads or the main fields are no longer filled, so a scheduled run can alert you when Subito changes its site. Results are still saved and charged. Example: <code>{\"minAds\": 20, \"minFillRate\": 0.9, \"minPriceFillRate\": 0.75}</code>. <i>minFillRate</i> covers title, link and city."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}