{
  "openapi": "3.0.1",
  "info": {
    "title": "人人车 Renrenche Used Car",
    "description": "Scrape used car listings from renrenche.com (Renrenche / 58.com) by city, brand/model, price, mileage, age, body type, transmission, color and more. Decoded prices (font-encrypted on the site), full detail pages with specs, photos and seller info — per-event pricing.",
    "version": "0.1",
    "x-build-id": "geaZqrOkibiC1NB6v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/songd~renrenche-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-songd-renrenche-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/songd~renrenche-scraper/runs": {
      "post": {
        "operationId": "runs-sync-songd-renrenche-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/songd~renrenche-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-songd-renrenche-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": {
          "city": {
            "title": "City",
            "type": "string",
            "description": "City to scrape, as the site writes it in its URLs: the pinyin slug (e.g. bj, sh, gz, cd) or the Chinese name (e.g. 北京, 上海). 683 cities are supported; the actor validates and resolves the input. Default bj (Beijing). Ignored when startUrls is set.",
            "default": "bj"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "One or more renrenche.com listing URLs to scrape, e.g. https://www.renrenche.com/bj/ershouche/pve_5864_3_5/pn2/ (price 3-5万, page 2), https://www.renrenche.com/bj/dazhong/ (Volkswagen brand page). City, brand/series path slugs, pve_<code>_<values> filter segments, pn<N> page numbers and the refundable / param112691 / xnycar query toggles are all understood. When provided, these URLs take priority and all other search fields below are ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "brand": {
            "title": "Car brand (make)",
            "type": "string",
            "description": "Brand name in Chinese as shown on renrenche.com (e.g. 大众, 宝马, 奥迪) or the site's brand slug (e.g. dazhong, baoma). Resolved to the brand page /<city>/<brand-slug>/. Ignored when startUrls is set.",
            "default": ""
          },
          "model": {
            "title": "Model (series)",
            "type": "string",
            "description": "Model/series name or slug (e.g. 卡罗拉 or kaluola). Resolved to the series page /<city>/<series-slug>/. Requires a brand whose pages contain that series; if the series is not found the whole brand page is scraped.",
            "default": ""
          },
          "priceMin": {
            "title": "Price from (万 CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price in 万 CNY (10,000 CNY units — the site quotes prices this way). 3 = 30,000 CNY.",
            "default": 0
          },
          "priceMax": {
            "title": "Price to (万 CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price in 万 CNY. 0 = no limit.",
            "default": 0
          },
          "mileageMin": {
            "title": "Mileage from (万公里)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum mileage in 万公里 (10,000 km units — the site filters this way). 3 = 30,000 km.",
            "default": 0
          },
          "mileageMax": {
            "title": "Mileage to (万公里)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum mileage in 万公里. 0 = no limit.",
            "default": 0
          },
          "ageMin": {
            "title": "Car age from (years)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum car age in years since first registration.",
            "default": 0
          },
          "ageMax": {
            "title": "Car age to (years)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum car age in years. 0 = no limit.",
            "default": 0
          },
          "displacementMin": {
            "title": "Displacement from (L)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum engine displacement in liters.",
            "default": 0
          },
          "displacementMax": {
            "title": "Displacement to (L)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum engine displacement in liters. 0 = no limit.",
            "default": 0
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "sedan",
              "suv",
              "mpv",
              "sports",
              "van",
              "pickup",
              "ev",
              "any"
            ],
            "type": "string",
            "description": "Body type filter (site pve_2539 codes, verified from the live filter UI).",
            "default": "any"
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "auto",
              "manual",
              "any"
            ],
            "type": "string",
            "description": "Transmission filter (site pve_11287 codes, verified).",
            "default": "any"
          },
          "colors": {
            "title": "Colors",
            "type": "array",
            "description": "Exterior color filter (site pve_4917 codes, verified). One of: black, white, red, gray, blue, yellow, brown, green, purple, pink, other. Leave empty for all colors. Multiple colors are OR-combined (black + white = both).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "refundable": {
            "title": "Insured checks only (检测保障)",
            "type": "boolean",
            "description": "Only listings with the 检测保障 (insured inspection) guarantee.",
            "default": false
          },
          "videoOnly": {
            "title": "Video listings only (视频车源)",
            "type": "boolean",
            "description": "Only listings that include a video.",
            "default": false
          },
          "newEnergy": {
            "title": "New energy only (新能源)",
            "type": "boolean",
            "description": "Only new-energy (electric / hybrid) vehicles.",
            "default": false
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 0,
            "maximum": 70,
            "type": "integer",
            "description": "How many result pages (~50 listings each) to scrape per search (or per start URL). 0 = all available pages. The site itself caps every search at 70 pages no matter how many cars match. The run also stops earlier when results run out.",
            "default": 0
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after pushing this many listings in total. Default 300; 0 = unlimited (maxPages still applies).",
            "default": 300
          },
          "maxDetails": {
            "title": "Enriched data (max listings)",
            "minimum": 0,
            "type": "integer",
            "description": "Enrich this many listings with full detail-page data: detail price cross-check, new-car price, color, full spec tables, VIN (masked), original photo gallery, seller info and the owner's description. 0 = unlimited: every scraped listing is enriched. Each enriched listing is additionally charged as a 'listing-detail' event because it requires an extra detail-page fetch.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}