{
  "openapi": "3.0.1",
  "info": {
    "title": "Avito.ru Listings Scraper",
    "description": "Extract public Avito listings, prices, seller information, product specifications, and optional reviews.",
    "version": "1.2",
    "x-build-id": "BeH45Wn0ITE0oivW5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~avito-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-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/w3crawler~avito-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-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/w3crawler~avito-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-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": {
          "searchUrl": {
            "title": "Search URL (compatibility)",
            "maxLength": 2000,
            "type": "string",
            "description": "One public HTTPS Avito search URL. Use searchUrls for multiple sources.",
            "default": "https://www.avito.ru/moskva/telefony"
          },
          "searchUrls": {
            "title": "Search URLs",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Up to ten public HTTPS Avito search or category URLs. Pages are combined and deduplicated when enabled.",
            "items": {
              "type": "string",
              "maxLength": 2000
            }
          },
          "listingUrls": {
            "title": "Direct listing URLs",
            "maxItems": 500,
            "type": "array",
            "description": "Optional direct HTTPS Avito listing URLs or numeric listing IDs. When present, each page is treated as a detail target.",
            "items": {
              "type": "string",
              "maxLength": 2000
            }
          },
          "query": {
            "title": "Search query",
            "maxLength": 160,
            "type": "string",
            "description": "Keywords used when no searchUrl or searchUrls value is supplied."
          },
          "location": {
            "title": "Location",
            "maxLength": 120,
            "type": "string",
            "description": "Avito city or region for a generated URL, for example Москва or Санкт-Петербург.",
            "default": "Россия"
          },
          "category": {
            "title": "Category",
            "maxLength": 80,
            "type": "string",
            "description": "Optional Avito category slug used for a generated URL.",
            "default": "all"
          },
          "priceMin": {
            "title": "Minimum price (RUB)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Optional lower price filter for a generated URL."
          },
          "priceMax": {
            "title": "Maximum price (RUB)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Optional upper price filter for a generated URL."
          },
          "sort": {
            "title": "Source sort order",
            "enum": [
              "relevance",
              "newest",
              "cheapest",
              "expensive"
            ],
            "type": "string",
            "description": "Ordering hint for a generated Avito search URL.",
            "default": "relevance"
          },
          "pageParameter": {
            "title": "Pagination parameter",
            "enum": [
              "p",
              "page"
            ],
            "type": "string",
            "description": "Query parameter used for pages after the first page.",
            "default": "p"
          },
          "maxPages": {
            "title": "Maximum pages per search URL",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Bound the number of public pagination pages requested for each search URL.",
            "default": 1
          },
          "deduplicate": {
            "title": "Deduplicate listings",
            "type": "boolean",
            "description": "Remove repeated listing IDs or URLs across pages and search URLs.",
            "default": true
          },
          "sortBy": {
            "title": "Local result sort",
            "enum": [
              "input_order",
              "price_asc",
              "price_desc",
              "rating_desc",
              "title_asc"
            ],
            "type": "string",
            "description": "Sort extracted rows after filtering.",
            "default": "input_order"
          },
          "filters": {
            "title": "Listing filters",
            "type": "object",
            "description": "Local filters applied only to fields publicly exposed by Avito.",
            "properties": {
              "includeKeywords": {
                "title": "Include keywords",
                "description": "Keep a row only when every term appears in its public text.",
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "maxLength": 120
                },
                "default": []
              },
              "excludeKeywords": {
                "title": "Exclude keywords",
                "description": "Drop a row when any term appears in its public text.",
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "maxLength": 120
                },
                "default": []
              },
              "minPrice": {
                "title": "Minimum local price",
                "description": "Keep rows at or above this normalized price.",
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              },
              "maxPrice": {
                "title": "Maximum local price",
                "description": "Keep rows at or below this normalized price.",
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              },
              "minRating": {
                "title": "Minimum public rating",
                "description": "Keep rows whose public seller or listing rating meets this value.",
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              "locationContains": {
                "title": "Location contains",
                "description": "Keep rows whose public location contains this text.",
                "type": "string",
                "maxLength": 200
              }
            },
            "default": {},
            "additionalProperties": false
          },
          "maxResults": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum unique listing rows stored after filters and sorting.",
            "default": 100
          },
          "includePhone": {
            "title": "Include public seller phone",
            "type": "boolean",
            "description": "Keep a phone number only when it is exposed in public page text.",
            "default": false
          },
          "includeDetails": {
            "title": "Include public details",
            "type": "boolean",
            "description": "Keep public descriptions, locations, attributes, seller details, and structured product fields.",
            "default": true
          },
          "maxDetailRequests": {
            "title": "Maximum detail requests",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Bound the number of listing detail pages requested for enrichment.",
            "default": 20
          },
          "includeReviews": {
            "title": "Include public ratings and reviews",
            "type": "boolean",
            "description": "Keep public rating and review counts when present.",
            "default": true
          },
          "includeImages": {
            "title": "Include public image URLs",
            "type": "boolean",
            "description": "Keep bounded image URLs exposed by listing cards or detail pages.",
            "default": true
          },
          "maxImages": {
            "title": "Maximum images per listing",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum public image URLs retained for each row.",
            "default": 20
          },
          "developerOptions": {
            "title": "Developer options",
            "type": "object",
            "description": "Operational controls for bounded public requests. These options do not bypass source access controls.",
            "properties": {
              "requestDelayMs": {
                "title": "Request delay (ms)",
                "description": "Pause before each live public request.",
                "type": "integer",
                "minimum": 0,
                "maximum": 10000,
                "default": 250
              },
              "maxConcurrency": {
                "title": "Detail concurrency",
                "description": "Maximum concurrent public detail requests.",
                "type": "integer",
                "minimum": 1,
                "maximum": 5,
                "default": 2
              },
              "maxRequestRetries": {
                "title": "Request retries",
                "description": "At most 3 retries with 1/2/4-second backoff for transient transport failures and HTTP 408/500/502/503/504. Security checks, access denials, HTTP 429/439, and proxy authentication failures are never retried.",
                "type": "integer",
                "minimum": 0,
                "maximum": 3,
                "default": 1
              },
              "requestTimeoutSecs": {
                "title": "Request timeout (seconds)",
                "description": "Timeout for each live public request.",
                "type": "integer",
                "minimum": 5,
                "maximum": 120,
                "default": 30
              },
              "maxResponseBytes": {
                "title": "Maximum response bytes",
                "description": "Bound live response and fixture size.",
                "type": "integer",
                "minimum": 1000,
                "maximum": 15000000,
                "default": 5000000
              },
              "userAgent": {
                "title": "Transparent user agent",
                "description": "Optional transparent public request label.",
                "type": "string",
                "maxLength": 300
              }
            },
            "default": {},
            "additionalProperties": false
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds, compatibility)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Legacy top-level alias; prefer developerOptions.requestTimeoutSecs."
          },
          "timeoutMs": {
            "title": "Request timeout (ms, compatibility)",
            "minimum": 1000,
            "maximum": 120000,
            "type": "integer",
            "description": "Legacy top-level alias; prefer developerOptions.requestTimeoutSecs."
          },
          "requestDelayMs": {
            "title": "Request delay (ms, compatibility)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Legacy top-level alias; prefer developerOptions.requestDelayMs."
          },
          "maxConcurrency": {
            "title": "Detail concurrency (compatibility)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Legacy top-level alias; prefer developerOptions.maxConcurrency."
          },
          "maxRequestRetries": {
            "title": "Request retries (compatibility)",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Legacy top-level alias; prefer developerOptions.maxRequestRetries."
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes (compatibility)",
            "minimum": 1000,
            "maximum": 15000000,
            "type": "integer",
            "description": "Legacy top-level alias; prefer developerOptions.maxResponseBytes."
          },
          "maxBytes": {
            "title": "Maximum response bytes (legacy alias)",
            "minimum": 1000,
            "maximum": 15000000,
            "type": "integer",
            "description": "Legacy top-level alias; prefer developerOptions.maxResponseBytes."
          },
          "userAgent": {
            "title": "Transparent user agent (compatibility)",
            "maxLength": 300,
            "type": "string",
            "description": "Legacy top-level alias; prefer developerOptions.userAgent."
          },
          "proxyConfiguration": {
            "title": "Apify Proxy configuration",
            "type": "object",
            "description": "Optional standard Apify Proxy configuration. Use ordinary proxy transport only when direct public access is blocked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}