{
  "openapi": "3.0.1",
  "info": {
    "title": "Avito Auto Scraper",
    "description": "Collect bounded public Avito.ru auto search-card listings with prices, parameters, sellers, images, provenance, and truthful detail access diagnostics.",
    "version": "1.2",
    "x-build-id": "sDc3qR95q6x7zGELd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~avito-auto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-avito-auto-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-auto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-avito-auto-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-auto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-avito-auto-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)",
            "type": "string",
            "description": "One public HTTPS Avito.ru auto search URL. Use searchUrls for multiple sources.",
            "default": "https://www.avito.ru/moskva/avtomobili"
          },
          "searchUrls": {
            "title": "Search URLs",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "One to ten public HTTPS Avito.ru auto search or category URLs. Results are combined and deduplicated when enabled.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.avito.ru/moskva/avtomobili"
            ]
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum source-backed listing rows emitted after filtering and sorting. Diagnostics are emitted separately.",
            "default": 5
          },
          "maxPages": {
            "title": "Maximum pages per search URL",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Bounded number of public pagination pages requested for each search URL.",
            "default": 1
          },
          "pageParameter": {
            "title": "Pagination parameter",
            "enum": [
              "p",
              "page"
            ],
            "type": "string",
            "description": "Avito pagination query parameter used for later pages.",
            "default": "p"
          },
          "deduplicate": {
            "title": "Deduplicate listings",
            "type": "boolean",
            "description": "Remove repeated listing IDs across search URLs and pages.",
            "default": true
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "input_order",
              "price_asc",
              "price_desc",
              "seller_rating_desc",
              "title_asc"
            ],
            "type": "string",
            "description": "Local sort applied after extraction and filters.",
            "default": "input_order"
          },
          "filters": {
            "title": "Listing filters",
            "type": "object",
            "description": "Optional local filters applied only to public fields exposed by Avito.",
            "properties": {
              "includeKeywords": {
                "title": "Include keywords",
                "description": "Keep listings whose public text contains every one of these terms.",
                "type": "array",
                "minItems": 0,
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "maxLength": 120
                },
                "default": []
              },
              "excludeKeywords": {
                "title": "Exclude keywords",
                "description": "Drop listings whose public text contains any of these terms.",
                "type": "array",
                "minItems": 0,
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "maxLength": 120
                },
                "default": []
              },
              "minPrice": {
                "title": "Minimum price",
                "description": "Keep listings at or above this normalized public price.",
                "type": "number",
                "minimum": 0,
                "maximum": 100000000000
              },
              "maxPrice": {
                "title": "Maximum price",
                "description": "Keep listings at or below this normalized public price.",
                "type": "number",
                "minimum": 0,
                "maximum": 100000000000
              },
              "minSellerRating": {
                "title": "Minimum seller rating",
                "description": "Keep listings whose public seller rating meets this value.",
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              "locationContains": {
                "title": "Location contains",
                "description": "Keep listings whose public location contains this text.",
                "type": "string",
                "maxLength": 200
              }
            },
            "default": {},
            "additionalProperties": false
          },
          "includeDetails": {
            "title": "Attempt public detail enrichment",
            "type": "boolean",
            "description": "Attempt ordinary public listing pages for additional description, attributes, seller, publication, and image fields. Security checks are recorded and never bypassed.",
            "default": true
          },
          "maxDetailRequests": {
            "title": "Maximum detail requests",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Bounded number of listing detail pages to request.",
            "default": 5
          },
          "includeImages": {
            "title": "Include public image URLs",
            "type": "boolean",
            "description": "Retain bounded Avito image URLs exposed by cards or detail pages.",
            "default": true
          },
          "maxImages": {
            "title": "Maximum images per listing",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum public image URLs retained for each listing.",
            "default": 10
          },
          "developerOptions": {
            "title": "Developer options",
            "type": "object",
            "description": "Operational controls for bounded public requests. These do not bypass Avito 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": "Retries for transient request failures only; access boundaries 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": "Bounded live response or fixture size.",
                "type": "integer",
                "minimum": 1000,
                "maximum": 15000000,
                "default": 5000000
              },
              "userAgent": {
                "title": "Transparent user agent",
                "description": "Optional transparent public request user-agent 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. Start without proxy; 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}