{
  "openapi": "3.0.1",
  "info": {
    "title": "Subito.it API & Scraper: Export Ads, Prices, Sellers & Alerts",
    "description": "Scrape Subito.it without login: ads from all of Italy by keyword, category, region, province or town, or from a search, ad or seller URL. Price, full text, photos, car and real estate attributes, seller rating, dealer phones and websites. New-ad alerts. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "YO6F8vS7Es6e68Ms7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~subito-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-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/s_actors~subito-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-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/s_actors~subito-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What to search for, as you would type it on Subito: \"iphone 15\", \"bici da corsa\", \"divano\", \"golf gti\". One search per keyword. Leave empty to list a whole category (choose one below) or paste URLs.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Region, province or town",
            "type": "string",
            "description": "Only ads from this place: an Italian region (\"Lombardia\"), a province by name or code (\"Milano\", \"MI\": the city and everything around it) or a town (\"Sesto San Giovanni\"). For the town that shares its name with a province write \"Milano città\". Empty = all of Italy."
          },
          "startUrls": {
            "title": "Subito URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set (subito.it/annunci-...), links of single ads (subito.it/<category>/<title>-<id>.htm: one row with seller details) or of sellers (subito.it/utente/<id>: all their ads). A search URL keeps its own filters (brand, model, year, km, rooms ...); the form adds the missing ones.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Ads per search",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum ads for each keyword and each URL. Subito shows 10,000 per search: above it the Actor reads the search region by region and province by province, so a keyword or category can return every ad in Italy.",
            "default": 100
          },
          "category": {
            "title": "Category",
            "enum": [
              "1",
              "2",
              "5",
              "3",
              "36",
              "22",
              "34",
              "4",
              "6",
              "7",
              "43",
              "29",
              "30",
              "31",
              "32",
              "33",
              "8",
              "24",
              "26",
              "50",
              "42",
              "25",
              "9",
              "10",
              "44",
              "11",
              "40",
              "12",
              "13",
              "14",
              "37",
              "15",
              "16",
              "17",
              "18",
              "23",
              "100",
              "19",
              "38",
              "39",
              "20",
              "41",
              "21",
              "27",
              "28"
            ],
            "type": "string",
            "description": "Only this category. With no keywords it lists the whole category."
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "s",
              "u",
              "h",
              "g",
              "k"
            ],
            "type": "string",
            "description": "For sale, for rent (real estate), holiday rental, free items or \"wanted\" ads. Empty = all types."
          },
          "minPrice": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or above this amount."
          },
          "maxPrice": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or below this amount."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private people or businesses (dealers, agencies, shops). \"Businesses\" with \"Seller and shop details\" gives a lead list: shop name, address, phones, website.",
            "default": "any"
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Only items in these conditions (categories with a condition: electronics, home, clothing, sports ...). Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "likeNew",
                "excellent",
                "good",
                "damaged"
              ],
              "enumTitles": [
                "New (Nuovo)",
                "Like new (Come nuovo)",
                "Excellent (Ottimo)",
                "Good (Buono)",
                "Damaged (Danneggiato)"
              ]
            }
          },
          "shippingOnly": {
            "title": "Shipping available",
            "type": "boolean",
            "description": "Only ads that can be shipped.",
            "default": false
          },
          "titleOnly": {
            "title": "Search in titles only",
            "type": "boolean",
            "description": "Match the keywords against the title of the ad, not its text: fewer accessories and unrelated ads.",
            "default": false
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Newest first is the steadiest while ads are added during a run and is what monitoring needs.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Seller and shop details",
            "type": "boolean",
            "description": "Open every ad page to add the number of favorites, the seller's name, the date of their first ad, number of ads, rating, reviews, reply time and last activity, and for a business its shop: address, phone numbers, website and contact person. Same price per ad, slower run.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new and price-changed",
            "type": "boolean",
            "description": "Output only ads that were not returned for the same search in the previous runs with the same monitor name, plus ads whose price changed (fields isNew, previousPrice, priceChange, priceChangePct). Sorted newest first, a run stops after two pages with nothing new. Schedule the Actor to get new ads every few minutes. The first run returns everything.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen ads apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}