{
  "openapi": "3.0.1",
  "info": {
    "title": "Avito Scraper | Flats, Cars, Jobs & Classified Listings",
    "description": "Get Avito.ru listings with price, address, metro, coordinates, rooms, area, floor, seller name and rating, badges and photos. Search by keyword, city or region, category, price, sort and seller type, or paste Avito search links. A city alone gives its newest listings. No login.",
    "version": "0.0",
    "x-build-id": "9RUEGSa38gxOBbNJh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~avito-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-avito-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/genial_candlestand~avito-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-avito-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/genial_candlestand~avito-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-avito-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": {
          "queries": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search for, one per line, e.g. \"iphone 15\" or \"велосипед\". Russian words find the most. Each term is searched in every location (and inside the category, if set). Give at least one of: Locations, Search terms, Category path, Search URLs.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (Avito slugs)",
            "type": "array",
            "description": "Where to search: the Latin location slug from the Avito address, one per line. A city (moskva, sankt-peterburg, kazan), a region (moskovskaya_oblast, sverdlovskaya_oblast) or rossiya for all of Russia. A location alone (no search terms, no category) returns all its listings from every category, newest first, up to Max listings. Empty with search terms or a category = rossiya. \"Москва\" does not work. An unknown slug returns no rows with a warning.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category path",
            "type": "string",
            "description": "Avito category path from the site address, after the location, e.g. kvartiry/prodam (flats for sale), kvartiry/sdam/na_dlitelnyy_srok (long-term rent), doma_dachi_kottedzhi/prodam, avtomobili, avtomobili/bmw, mototsikly_i_mototehnika, telefony, vakansii. Empty = all categories. An unknown path returns no rows with a warning."
          },
          "priceMin": {
            "title": "Minimum price (RUB)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at least this many roubles (for jobs: salary). Works with every location and category, also with a location alone. If it is above Maximum price, the two are swapped with a warning."
          },
          "priceMax": {
            "title": "Maximum price (RUB)",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings priced at most this many roubles (for jobs: salary). Works with every location and category, also with a location alone. If it is below Minimum price, the two are swapped with a warning."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "default",
              "date",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Order of results: Avito's default relevance, newest first, or by price. Works with every location, category and keyword. For a location alone (no search terms, no category) Default means Newest first.",
            "default": "default"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "company"
            ],
            "type": "string",
            "description": "Only private sellers or only companies (agencies, dealers, shops). Works with every location and category. When set, every row gets this value in sellerType.",
            "default": "any"
          },
          "localOnly": {
            "title": "Only the exact city",
            "type": "boolean",
            "description": "Avito mixes in listings from nearby towns. Turn on to keep only listings whose address on Avito is the searched city slug. Use with a city; for a region slug it is switched off with a warning (region listings carry town slugs), and it is ignored for rossiya.",
            "default": false
          },
          "startUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Avito search or category pages copied from your browser with all their filters, e.g. https://www.avito.ru/moskva/kvartiry/prodam?s=104. A city page without a category (https://www.avito.ru/kazan) lists all its listings, newest first. Price, sort and seller type fields do not change these URLs. Listing pages and other sites are not accepted.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings in total across all searches. Each listing is one row and one charge; duplicates are free.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Avito shows 50 listings per page. Stop each search after this many pages. Large searches end on Avito's side after about 30 pages (1500 listings); narrow them with filters to get more.",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Avito blocks requests without a proxy. Keep the default Apify datacenter proxy: it is the tested and cheapest option.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}